:root {
  --background: #f2f0eb;
  --surface: #fbfaf7;
  --surface-strong: #e5e1d9;
  --ink: #191a18;
  --muted: #6c6c65;
  --line: #d3cec3;
  --accent: #314a3b;
  --accent-soft: #dce4dd;
  --radius: 1.15rem;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #789381; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shop-shell { width: min(92rem, 100%); margin-inline: auto; background: var(--surface); box-shadow: 0 0 0 1px rgba(25, 26, 24, .04); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(14px);
}
.brand { font-size: 1.05rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.site-header nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-header nav a { color: var(--muted); font-size: .86rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.cart-summary { display: grid; grid-template-columns: auto auto; gap: 0 .65rem; min-width: 8.5rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); font-size: .72rem; }
.cart-summary > span { color: var(--muted); }
.cart-summary strong { justify-self: end; }
.cart-summary small { grid-column: 1 / -1; color: var(--accent); font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, .8fr); min-height: 40rem; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6.5rem); }
.hero h1 { max-width: 10ch; margin: 1rem 0 1.25rem; font-size: clamp(3.25rem, 7vw, 7.4rem); font-weight: 650; }
.hero-intro { max-width: 36rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.primary-link { display: inline-block; margin-top: 2rem; padding: .85rem 1.15rem; border-radius: .4rem; background: var(--accent); color: white; font-size: .88rem; font-weight: 750; text-decoration: none; }
.hero-visual { position: relative; min-height: 34rem; overflow: hidden; background: linear-gradient(145deg, #d9d5cc, #aaa99f); }
.hero-visual::after { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(16, 22, 18, .12) 70%); content: ""; }
.hero-number { position: absolute; top: 1rem; right: 1.5rem; z-index: 2; color: rgba(255, 255, 255, .72); font-size: clamp(5rem, 12vw, 11rem); font-weight: 800; letter-spacing: -.09em; line-height: 1; }
.hero-note { position: absolute; z-index: 3; right: 1.5rem; bottom: 1.5rem; color: white; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-align: right; }
.hero-garment { position: absolute; z-index: 2; top: 21%; left: 50%; width: min(68%, 27rem); aspect-ratio: .9; background: #36483d; clip-path: polygon(29% 0, 43% 9%, 57% 9%, 71% 0, 100% 21%, 84% 47%, 72% 40%, 76% 100%, 24% 100%, 28% 40%, 16% 47%, 0 21%); filter: drop-shadow(0 2rem 1.6rem rgba(31, 37, 32, .28)); transform: translateX(-50%) rotate(-3deg); }
.hero-garment::after { position: absolute; inset: 42% 18% auto; height: 2px; background: rgba(255, 255, 255, .32); content: ""; }

.catalog { padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem); }
.catalog-heading { display: grid; grid-template-columns: 1fr minmax(18rem, .7fr); align-items: end; gap: 2rem; margin-bottom: 2rem; }
.catalog-heading h2, .size-guide h2 { margin-top: .55rem; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 650; }
.catalog-heading > p { max-width: 40rem; color: var(--muted); }
.shop-tools { display: grid; grid-template-columns: minmax(16rem, 1fr) auto; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: .65rem; width: min(100%, 31rem); padding: 0 .8rem; border: 1px solid var(--line); border-radius: .5rem; background: white; }
.search-box > span { color: var(--muted); font-size: 1.35rem; }
.search-box input { width: 100%; min-width: 0; padding: .75rem 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #99988f; }
.category-filters { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.category-filters button { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 750; }
.category-filters button:hover, .category-filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: white; }
.results-count { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { box-shadow: 0 1rem 2.5rem rgba(31, 35, 31, .1); transform: translateY(-3px); }
.product-media { position: relative; display: grid; min-height: 19rem; overflow: hidden; place-items: center; background: var(--surface-strong); }
.product-media::after { position: absolute; inset: 10%; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; content: ""; }
.product-media svg { position: relative; z-index: 2; width: 78%; max-height: 16rem; fill: #282b28; filter: drop-shadow(0 1rem .7rem rgba(15, 18, 15, .22)); }
.product-media .product-shade { fill: #4b504c; }
.product-media .product-line { fill: none; stroke: rgba(255, 255, 255, .48); stroke-width: 4; }
.media-code { position: absolute; z-index: 3; top: 1rem; left: 1rem; font-size: .65rem; font-weight: 850; letter-spacing: .14em; }
.product-media-sand { background: #d9d1c2; }
.product-media-stone { background: #c7c6c1; }
.product-media-forest { background: #afb9b0; }
.product-media-clay { background: #c9b5aa; }
.product-media-charcoal { background: #aeb0ad; }
.product-media-olive { background: #b8bba8; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 1.1rem; }
.product-category { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-info h3 { margin-top: .45rem; font-size: 1.35rem; font-weight: 700; }
.product-description { min-height: 3rem; margin-top: .65rem; color: var(--muted); font-size: .86rem; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-meta strong { font-size: 1.08rem; }
.product-meta span { color: var(--muted); font-size: .7rem; text-align: right; }
.buy-actions { margin-top: 1rem; }
.add-button { width: 100%; padding: .72rem 1rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--ink); color: white; font-size: .8rem; font-weight: 800; }
.add-button:hover { background: var(--accent); border-color: var(--accent); }
.quantity-stepper { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; overflow: hidden; border: 1px solid var(--ink); border-radius: .45rem; }
.quantity-stepper button { min-height: 2.7rem; border: 0; background: var(--ink); color: white; font-size: 1.15rem; }
.quantity-stepper button:hover { background: var(--accent); }
.quantity-stepper output { display: grid; place-items: center; font-weight: 800; }
.empty-state { padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.product-card.product-filter-reveal { animation: reveal .25s ease both; }

.size-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 6vw, 6.5rem); background: var(--accent-soft); }
.size-guide > div:first-child { max-width: 43rem; }
.size-guide p:last-child { margin-top: 1rem; color: var(--muted); }
.size-list { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); border: 1px solid #aebcaf; }
.size-list span { padding: .8rem 1rem; font-size: .8rem; font-weight: 750; }
.size-list span:nth-child(odd) { border-right: 1px solid #aebcaf; }
.size-list span:nth-child(-n+2) { border-bottom: 1px solid #aebcaf; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer a { text-decoration: none; }

@keyframes reveal { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 68rem) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: 1fr .75fr; } }
@media (max-width: 48rem) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { min-height: 31rem; }
  .hero-visual { min-height: 29rem; }
  .catalog-heading, .size-guide { grid-template-columns: 1fr; }
  .shop-tools { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .category-filters { justify-content: flex-start; }
  .results-count { grid-column: auto; }
}
@media (max-width: 35rem) {
  .site-header { gap: .75rem; }
  .cart-summary { min-width: 7.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { min-height: 17rem; }
  .category-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-filters button { width: 100%; }
  .size-list { grid-template-columns: 1fr; width: 100%; }
  .size-list span { border-bottom: 1px solid #aebcaf; border-right: 0 !important; }
  .size-list span:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .product-card, .product-card.product-filter-reveal { animation: none; transition: none; } }
