:root {
  --ink: #171716;
  --muted: #6d6d69;
  --soft: #f1f1ee;
  --canvas: #fafaf8;
  --white: #fff;
  --accent: #89745a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 16px 45px rgba(25, 25, 22, 0.07);
  --shell: min(1280px, calc(100% - 40px));
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection { color: var(--white); background: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 15px; border-radius: 999px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 23, 22, 0.06);
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex-direction: column; gap: 3px; flex: none; }
.brand-name { font-size: 14px; font-weight: 750; letter-spacing: 0.18em; }
.brand-tagline { color: var(--muted); font-size: 10px; letter-spacing: 0.07em; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #3e3e3b; font-size: 13px; }
.main-nav a, .main-nav button { transition: color 180ms ease; }
.main-nav a:hover, .main-nav button:hover { color: var(--accent); }
.nav-filter, .search-jump { padding: 8px 0; border: 0; background: transparent; }
.search-jump { display: inline-flex; align-items: center; gap: 7px; }
.search-jump svg, .search-box svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }

.hero { min-height: min(800px, calc(100vh - 76px)); display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: stretch; gap: clamp(30px, 6vw, 90px); padding-block: 36px 80px; }
.hero-copy { align-self: center; padding-left: clamp(0px, 3vw, 35px); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(48px, 6.3vw, 92px); font-weight: 580; letter-spacing: -0.058em; line-height: 0.98; }
.hero-copy > p:not(.eyebrow) { max-width: 465px; margin: 30px 0 24px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding-block: 10px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 650; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -2px); }
.hero-visual { position: relative; min-height: 540px; overflow: hidden; border-radius: var(--radius-lg); background: #e8e7e3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.2,.75,.25,1); }
.hero-visual:hover img { transform: scale(1.018); }
.hero-caption { position: absolute; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; color: var(--white); background: rgba(20,20,19,.3); backdrop-filter: blur(15px); }
.hero-caption span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero-caption strong { font-size: 14px; font-weight: 600; }

.collection { padding-block: 90px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading h2, .about-section h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 560; letter-spacing: -0.045em; line-height: 1.05; }
.product-count { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.catalog-tools { margin-bottom: 35px; }
.search-box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-radius: 16px; background: var(--soft); transition: background 180ms ease, box-shadow 180ms ease; }
.search-box:focus-within { background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.search-box svg { flex: none; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-box input::placeholder { color: #8a8a85; opacity: 1; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box kbd { padding: 3px 7px; border: 0; border-radius: 6px; color: var(--muted); background: #e4e4df; font: 11px ui-monospace, monospace; }
.filter-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar, .thumbnail-list::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; min-height: 43px; padding: 0 18px; border: 0; border-radius: 999px; color: #565652; background: var(--soft); font-size: 12px; font-weight: 620; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.is-active { color: var(--white); background: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 34px); }
.product-card { min-width: 0; animation: card-in 500ms both; animation-delay: calc(var(--index, 0) * 60ms); }
.card-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-md); background: var(--soft); box-shadow: 0 1px 0 rgba(23,23,22,.02); transition: transform 400ms cubic-bezier(.2,.75,.25,1), box-shadow 400ms ease; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.75,.25,1); }
.product-card:hover .card-image { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card:hover .card-image img { transform: scale(1.025); }
.card-tag { position: absolute; top: 13px; left: 13px; padding: 7px 10px; border-radius: 999px; color: #4e4e49; background: rgba(255,255,255,.78); backdrop-filter: blur(12px); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 15px 3px 8px; }
.card-info h3 { overflow: hidden; margin: 0 0 5px; font-size: 15px; font-weight: 620; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.card-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.card-price { align-self: start; font-size: 14px; font-weight: 650; white-space: nowrap; }
.empty-state { margin-block: 30px; padding: 80px 20px; border-radius: var(--radius-lg); text-align: center; background: var(--soft); }
.empty-state h3 { margin: 0; font-size: clamp(25px, 4vw, 40px); font-weight: 560; letter-spacing: -.04em; }
.empty-state > p:not(.eyebrow) { margin: 14px 0 25px; color: var(--muted); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 650; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #373734; }

.breadcrumb { display: flex; gap: 10px; margin: 28px 0; color: var(--muted); font-size: 11px; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: start; gap: clamp(45px, 7vw, 100px); }
.gallery { position: sticky; top: 104px; min-width: 0; }
.main-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft); }
.main-image-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity 180ms ease, transform 550ms ease; }
.main-image-wrap img.is-switching { opacity: .25; transform: scale(.995); }
.image-position { position: absolute; right: 16px; bottom: 16px; padding: 7px 10px; border-radius: 999px; color: white; background: rgba(20,20,19,.36); backdrop-filter: blur(8px); font-size: 10px; letter-spacing: .08em; }
.thumbnail-list { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.thumbnail { flex: 0 0 80px; width: 80px; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 13px; background: var(--soft); opacity: .55; scroll-snap-align: start; transition: opacity 180ms ease, border-color 180ms ease; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover, .thumbnail.is-active { opacity: 1; }
.thumbnail.is-active { border-color: var(--ink); }
.product-summary { padding-top: clamp(24px, 6vw, 85px); }
.product-summary h1 { max-width: 560px; margin: 0 0 18px; font-size: clamp(38px, 4.6vw, 66px); font-weight: 560; letter-spacing: -.055em; line-height: 1.01; }
.detail-price { margin: 0 0 11px; font-size: clamp(25px, 2.5vw, 34px); font-weight: 570; letter-spacing: -.025em; }
.product-stock { margin: 0 0 9px; color: #297a4b; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.product-stock.is-out-of-stock { color: var(--muted); }
.product-id { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.summary-copy { max-width: 510px; margin: 30px 0; color: #565652; font-size: 15px; line-height: 1.75; }
.variant-selectors { display: grid; gap: 22px; margin: 0 0 30px; }
.variant-selectors[hidden] { display: none; }
.variant-selector-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.variant-selector-group legend { margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.variant-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { min-height: 44px; padding: 0 16px; border: 1px solid #d8d8d3; border-radius: 999px; color: var(--ink); background: transparent; font: inherit; font-size: 12px; font-weight: 600; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease; }
.variant-option:hover:not(:disabled) { border-color: var(--ink); }
.variant-option.is-selected { color: var(--white); border-color: var(--ink); background: var(--ink); }
.variant-option.is-out-of-stock:not(.is-selected) { color: var(--muted); }
.variant-option:disabled { cursor: not-allowed; opacity: .28; text-decoration: line-through; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 35px; border-top: 1px solid #dfdfda; }
.spec-item { min-width: 0; padding: 17px 12px 17px 0; border-bottom: 1px solid #dfdfda; }
.spec-item:nth-child(odd) { margin-right: 18px; }
.spec-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.spec-item strong { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.4; }
.about-section { max-width: 780px; margin: 140px auto; text-align: center; }
.about-section > p:last-child { max-width: 660px; margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.recommendations { padding: 100px 0 130px; border-top: 1px solid #e2e2dd; }
.recommendation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); }
.recommendation-grid .card-info h3 { font-size: 13px; }
.recommendation-grid .card-image { border-radius: 16px; }
.page-state, .not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.page-state[hidden], .not-found[hidden], .product-detail[hidden], .recommendations[hidden] { display: none; }
.page-state p { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.loading-mark { width: 28px; height: 28px; margin: 0 auto 15px; border: 2px solid #d7d7d2; border-top-color: var(--ink); border-radius: 50%; animation: spin .75s linear infinite; }
.not-found-card { padding: 80px 20px; }
.not-found-code { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.not-found h1 { margin: 0; font-size: clamp(40px, 7vw, 75px); font-weight: 560; letter-spacing: -.055em; }
.not-found-card > p:nth-of-type(2) { margin: 20px 0 28px; color: var(--muted); font-size: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; }
.mobile-only { display: none; }

.site-footer { padding-block: 48px; color: #bcbcb6; background: var(--ink); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.footer-inner p { margin: 10px 0 0; font-size: 11px; }
.footer-inner > p { margin: 0; }
.noscript { position: fixed; z-index: 999; right: 20px; bottom: 20px; left: 20px; padding: 15px; border-radius: 12px; color: white; background: var(--ink); text-align: center; }

.reveal { animation: reveal 700ms cubic-bezier(.2,.75,.25,1) both; }
.hero-visual.reveal, .product-summary.reveal { animation-delay: 100ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .main-nav { gap: 18px; }
  .nav-filter { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 75px 80px; }
  .hero-copy { padding: 0 6vw; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 4.4; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; gap: 0; }
  .gallery { position: static; }
  .product-summary { padding-top: 48px; }
  .summary-copy { max-width: 680px; }
  .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 35px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); --radius-lg: 22px; --radius-md: 14px; }
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 68px; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 12px; }
  .main-nav { font-size: 12px; }
  .main-nav > a:not(.back-link) { display: none; }
  .search-jump span { display: none; }
  .search-jump svg { width: 20px; }
  .back-link { font-size: 11px; }
  .hero { gap: 36px; padding: 56px 0 65px; }
  .hero-copy { padding: 0 5px; }
  .hero h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-copy > p:not(.eyebrow) { margin: 22px auto 17px; font-size: 15px; line-height: 1.55; }
  .hero-visual { aspect-ratio: 4 / 4.7; }
  .hero-caption { right: 12px; bottom: 12px; left: 12px; padding: 13px; }
  .hero-caption strong { font-size: 12px; }
  .collection { padding-block: 66px 85px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2, .about-section h2 { font-size: 34px; }
  .product-count { font-size: 10px; }
  .catalog-tools { margin-bottom: 25px; }
  .search-box { min-height: 52px; padding-inline: 15px; }
  .search-box input { font-size: 13px; }
  .search-box kbd { display: none; }
  .filter-row { width: calc(100% + 14px); padding-right: 14px; }
  .filter-chip { min-height: 41px; padding-inline: 15px; }
  .product-grid { gap: 25px 10px; }
  .card-info { display: block; padding: 11px 2px 0; }
  .card-info h3 { margin-bottom: 4px; font-size: 12px; }
  .card-info p { font-size: 10px; }
  .card-price { display: block; margin-top: 7px; font-size: 12px; }
  .card-tag { top: 8px; left: 8px; padding: 5px 7px; font-size: 7px; }
  .breadcrumb { margin-block: 20px; }
  .main-image-wrap { width: calc(100% + 28px); margin-left: -14px; border-radius: 0; }
  .thumbnail-list { width: calc(100% + 14px); padding-right: 14px; }
  .thumbnail { flex-basis: 72px; width: 72px; }
  .product-summary { padding-top: 42px; }
  .product-summary h1 { font-size: 42px; }
  .summary-copy { margin-block: 24px; font-size: 14px; line-height: 1.7; }
  .variant-selectors { gap: 20px; margin-bottom: 28px; }
  .variant-option-list { gap: 8px 7px; }
  .variant-option { min-height: 46px; padding-inline: 15px; font-size: 11px; }
  .spec-grid { margin-bottom: 28px; }
  .spec-item { padding-block: 15px; }
  .spec-item:nth-child(odd) { margin-right: 12px; }
  .spec-item strong { font-size: 12px; }
  .full-width-mobile { width: 100%; }
  .about-section { margin-block: 100px; text-align: left; }
  .about-section > p:last-child { margin-top: 20px; font-size: 17px; }
  .recommendations { padding-block: 72px 90px; }
  .recommendation-grid { gap: 25px 10px; }
  .recommendation-grid .card-info h3 { font-size: 11px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; margin-top: 32px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .not-found-card { padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
