/* HATISAN storefront: sections, discovery, product cards and product detail. */

/* ---------------------------------------------------------------------------
 * Section rhythm
 * ------------------------------------------------------------------------- */
.section { padding: clamp(56px, 7vw, 104px) var(--edge); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 48px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.02em; font-weight: 380; }
.section-head h2:focus { outline: none; }
.section-note { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.weave-rule { height: 12px; background: repeating-linear-gradient(135deg, rgba(122, 98, 66, .2) 0 2px, transparent 2px 7px), var(--sand); border-block: 1px solid var(--line); }

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: min(740px, calc(100svh - 104px)); background: var(--sand); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px) clamp(28px, 4.5vw, 72px) clamp(40px, 5vw, 72px) var(--edge); }
.hero h1 { font-size: clamp(48px, 6.1vw, 94px); line-height: .98; letter-spacing: -.03em; font-weight: 340; margin: 0 0 26px; }
.hero h1 em { display: block; color: var(--olive); }
.hero-lede { max-width: 31em; margin: 0 0 34px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid rgba(31, 29, 26, .14); }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dd { margin: 0 0 4px; font: 380 clamp(28px, 2.6vw, 38px)/1 var(--serif); font-variant-numeric: lining-nums; }
.hero-facts dt { font-size: 13px; color: var(--muted); }
.hero-media { position: relative; margin: 0; overflow: hidden; background: #d9cdb9; min-height: 420px; }
.hero-media picture, .hero-image { width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 63% 50%; }
.ai-label { position: absolute; top: 14px; right: 14px; margin: 0; padding: 5px 9px; background: rgba(247, 243, 236, .9); color: var(--ink-2); font-size: 11.5px; letter-spacing: .04em; line-height: 1.3; }
.hero-product { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 20px 10px 10px; background: rgba(247, 243, 236, .96); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.hero-product:hover { transform: translateY(-2px); }
/* Product photos blend into a wrapper's background so white studio backdrops read as the card tone. */
.thumb { display: block; background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb--hero { flex: none; width: 56px; height: 70px; padding: 4px; }
.hero-product small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-product strong { display: block; margin: 2px 0 4px; font: 400 19px/1.2 var(--serif); }
.hero-product-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-product-cta .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------------
 * Shop by moment
 * ------------------------------------------------------------------------- */
.moment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.moment-card { display: flex; flex-direction: column; text-decoration: none; }
.moment-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.moment-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 9%; transition: transform .7s var(--ease); }
.moment-card:hover .moment-media img { transform: scale(1.045); }
.moment-body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding-top: 16px; }
.moment-index { grid-row: span 3; padding-top: 5px; font: italic 400 15px/1 var(--serif); color: var(--clay); }
.moment-title { font: 400 clamp(21px, 1.9vw, 26px)/1.15 var(--serif); letter-spacing: -.01em; }
.moment-card:hover .moment-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.moment-text { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.moment-count { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }

/* ---------------------------------------------------------------------------
 * Collection toolbar
 * ------------------------------------------------------------------------- */
.collection { padding-top: clamp(24px, 3vw, 48px); }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chip-scroll { min-width: 0; max-width: 100%; }
.toolbar-row > .chip-scroll { flex: 1 1 auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--quiet { min-height: 38px; padding: 0 15px; border-color: var(--line); font-size: 14px; }
.chip--quiet[aria-pressed="true"] { background: var(--card); border-color: var(--ink); color: var(--ink); font-weight: 600; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.toolbar-tools { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 500; }
.tool-btn .ico { width: 18px; height: 18px; }
.tool-btn[aria-pressed="true"] { color: var(--clay); font-weight: 600; }
.tool-btn[aria-pressed="true"] .ico { fill: currentColor; }
.sort-control { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort-control select { min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: var(--ink); font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 34px; }
.catalog-count { margin: 0; color: var(--muted); font-size: 14px; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 13px; border-radius: 999px; background: var(--sand); font-size: 13.5px; }
.filter-pill .ico { width: 14px; height: 14px; }
.filter-pill:hover { background: var(--card); }

/* ---------------------------------------------------------------------------
 * Product cards
 * ------------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 52px) clamp(12px, 1.6vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.card-image { display: block; width: 100%; height: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .7s var(--ease); }
.card:hover .card-image img { transform: scale(1.04); }
.card-save { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(247, 243, 236, .78); transition: background-color .2s, color .2s; }
.card-save:hover { background: var(--paper); }
.card-save[aria-pressed="true"] { color: var(--clay); }
.card-save[aria-pressed="true"] .ico { fill: currentColor; }
.card-flag { position: absolute; left: 10px; top: 12px; z-index: 2; padding: 4px 8px; background: var(--paper); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding-top: 14px; }
.card-meta { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.card-title { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.25; letter-spacing: -.005em; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { text-decoration: underline; text-underline-offset: 4px; }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 4px; }
.card-colours { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card-compare { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 14px; }
.card-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 2px; transition: background-color .15s; }
.card-check .ico { width: 13px; height: 13px; stroke-width: 2.2; opacity: 0; }
.card-compare[aria-pressed="true"] { font-weight: 600; }
.card-compare[aria-pressed="true"] .card-check { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card-compare[aria-pressed="true"] .card-check .ico { opacity: 1; }
.card-photos { color: var(--muted); font-size: 13px; white-space: nowrap; }
.card--compact .card-title { font-size: 16.5px; }
.card--compact .card-meta { font-size: 11.5px; }
.card--compact .card-colours { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card--skeleton .card-media { background: linear-gradient(100deg, var(--card) 30%, #f4efe7 50%, var(--card) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.card--skeleton .card-body span { display: block; height: 12px; margin-top: 8px; background: var(--card); border-radius: 2px; }
.card--skeleton .card-body span:nth-child(1) { width: 40%; }
.card--skeleton .card-body span:nth-child(2) { width: 85%; height: 18px; }
.card--skeleton .card-body span:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -150% 0; } }

.img-failed { position: relative; }
.img-failed img { opacity: 0; }
.img-failed::after { content: 'Photo unavailable'; position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: var(--muted); font-size: 12px; text-align: center; }

.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: clamp(40px, 6vw, 72px) 20px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.empty-state h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); }
.empty-state p { max-width: 34em; margin: 0 0 12px; }
.empty-state--error { border-style: solid; border-color: var(--clay); background: rgba(151, 71, 42, .04); }

/* ---------------------------------------------------------------------------
 * Story band
 * ------------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--olive); color: var(--on-dark); }
.story :focus-visible { outline-color: var(--on-dark); }
.story-media { position: relative; margin: 0; min-height: 100%; background: #6e6650; }
.story-media picture, .story-media img { width: 100%; height: 100%; }
.story-media img { object-fit: cover; aspect-ratio: 1 / 1; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) var(--edge) clamp(48px, 6vw, 96px) clamp(28px, 5vw, 88px); }
.story .eyebrow { color: #e7c9aa; }
.story h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.025em; font-weight: 340; margin-bottom: 24px; }
.story h2 em { display: block; color: #e7c9aa; }
.story-copy p { max-width: 30em; color: var(--on-dark-muted); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.story .button { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.story .button:hover { background: transparent; color: var(--on-dark); }
.story .text-link { color: var(--on-dark); }

/* ---------------------------------------------------------------------------
 * How it works
 * ------------------------------------------------------------------------- */
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); list-style: none; margin: 0; padding: 0; }
.how-steps li { display: flex; flex-direction: column; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--ink); }
.how-num { font: italic 400 18px/1 var(--serif); color: var(--clay); }
.how-steps h3 { margin: 14px 0 10px; font-size: clamp(22px, 2vw, 28px); }
.how-steps p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 6px; }

/* ---------------------------------------------------------------------------
 * Home, storage & seasonal
 * ------------------------------------------------------------------------- */
.home-goods { background: var(--sand); border-top: 1px solid var(--line); }
.home-goods-inner { padding: clamp(56px, 7vw, 96px) var(--edge); }
.home-goods .section-head h2 { font-size: clamp(28px, 3vw, 42px); }
.home-goods .chip-scroll { margin-bottom: 28px; }
.product-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 18px; }
.home-goods .card-media { background: var(--paper); }
.home-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------------------------------------------------------------------------
 * Product detail dialog
 * ------------------------------------------------------------------------- */
.detail-panel { width: min(1260px, 100%); height: min(900px, calc(100dvh - 48px)); max-height: none; padding: 0; overflow: hidden; }
#detail-content { height: 100%; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
.pdp-gallery { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 20px; background: var(--card); }
.pdp-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--card); touch-action: pan-y; }
.pdp-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
#pdp-main { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease), opacity .2s; }
.pdp-stage.loading #pdp-main { opacity: .5; }
.pdp-stage.zoomed .pdp-zoom { cursor: zoom-out; }
.pdp-stage.zoomed #pdp-main { transform: scale(2.2); }
.pdp-stage.failed #pdp-main { opacity: 0; }
.pdp-stage.failed::after { content: 'This photo could not be loaded'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.pdp-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(247, 243, 236, .94); box-shadow: 0 4px 16px -6px rgba(31, 29, 26, .35); transition: background-color .2s; }
.pdp-nav:hover { background: var(--paper); }
.pdp-prev { left: 12px; }
.pdp-next { right: 12px; }
.pdp-counter { position: absolute; left: 12px; bottom: 12px; z-index: 2; margin: 0; padding: 4px 10px; background: rgba(247, 243, 236, .94); font-size: 13px; font-variant-numeric: tabular-nums; }
.pdp-counter:empty { display: none; }
.pdp-photo-note { margin: 0; color: var(--muted); font-size: 13px; }
.pdp-thumbs-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.pdp-thumbs-head span:first-child { color: var(--ink); font-weight: 600; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; flex: none; max-height: 154px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; }
.pdp-thumbs button { aspect-ratio: 4 / 5; padding: 3px; border: 1px solid transparent; background: var(--paper); transition: border-color .15s; }
.pdp-thumbs button:hover { border-color: var(--line-strong); }
.pdp-thumbs button.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 48px clamp(24px, 3.4vw, 52px) 44px; }
.pdp-info h2 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -.02em; font-weight: 380; margin: 0 0 10px; padding-right: 32px; }
.pdp-price { margin: 0 0 24px; color: var(--muted); font-size: 15.5px; }
.pdp-options { margin: 0 0 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-options-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14.5px; }
#option-legend { font-weight: 600; }
#option-current { color: var(--muted); text-align: right; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 12px 8px; }
.swatch { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.swatch-img { display: block; aspect-ratio: 1; overflow: hidden; padding: 2px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s; }
.swatch-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.swatch-none { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 11px; }
.swatch:hover .swatch-img { border-color: var(--line-strong); }
.swatch[aria-checked="true"] .swatch-img { border: 2px solid var(--ink); padding: 1px; }
.swatch-label { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }
.swatch[aria-checked="true"] .swatch-label { color: var(--ink); font-weight: 600; }
.pdp-option-error { margin: 12px 0 0; color: var(--clay); font-size: 14px; font-weight: 600; }
.pdp-actions { display: flex; gap: 10px; }
.pdp-actions .button .ico { width: 19px; height: 19px; }
.pdp-actions .button:hover .ico { transform: none; }
.square-btn { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border: 1px solid var(--ink); border-radius: var(--radius); transition: background-color .2s, color .2s; }
.square-btn:hover { background: var(--sand); }
.square-btn[aria-pressed="true"] { color: var(--clay); }
.square-btn[aria-pressed="true"] .ico { fill: currentColor; }
.pdp-note { margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
.pdp-secondary { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 18px; }
.pdp-secondary [aria-pressed="true"] { color: var(--clay); font-weight: 600; }
.pdp-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pdp-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; font: 300 24px/1 var(--sans); color: var(--muted); }
.pdp-acc[open] summary::after { content: '\2013'; }
.pdp-acc p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.pdp-dl { display: grid; gap: 9px; margin: 0 0 18px; }
.pdp-dl div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.pdp-dl dt { color: var(--muted); }
.pdp-dl dd { margin: 0; overflow-wrap: anywhere; }
.pdp-style { margin: 22px 0; padding: 18px 20px; background: var(--sand); }
.pdp-style .eyebrow { margin-bottom: 8px; }
.pdp-style p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.pdp-style small { color: var(--muted); font-size: 12.5px; }
.pdp-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pdp-related-grid a { display: block; text-decoration: none; font-size: 13px; line-height: 1.35; }
.pdp-related-grid .thumb { aspect-ratio: 4 / 5; padding: 6px; margin-bottom: 8px; }
.pdp-related-grid span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-related-grid a:hover span { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Search
 * ------------------------------------------------------------------------- */
.modal--search { align-items: flex-start; padding-top: min(10vh, 96px); }
.search-panel { width: min(760px, 100%); max-height: min(82dvh, 780px); padding: 18px 24px 24px; }
.search-head { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); transition: border-color .2s, box-shadow .2s; }
.search-head:focus-within { border-bottom-color: var(--clay); box-shadow: 0 1px 0 var(--clay); }
.search-field { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.search-field .ico { width: 22px; height: 22px; color: var(--muted); }
.search-input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; font: 400 clamp(19px, 2.2vw, 24px)/1.2 var(--serif); }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-input::placeholder { color: #8a8276; }
.search-suggest { padding: 18px 0 2px; }
.search-suggest .eyebrow { margin-bottom: 10px; }
.search-status { margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
.search-status:empty { display: none; }
.search-group { margin-bottom: 18px; }
.search-group .eyebrow { margin: 14px 0 4px; }
.search-group ul { list-style: none; margin: 0; padding: 0; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.thumb--search { flex: none; width: 56px; height: 70px; padding: 3px; }
.search-result strong { display: block; font: 400 17px/1.3 var(--serif); }
.search-result small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.search-result:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------------------
 * Menu drawer
 * ------------------------------------------------------------------------- */
.wordmark-small { font: 500 22px/1 var(--serif); letter-spacing: .22em; padding-top: 10px; }
.menu-nav { display: flex; flex-direction: column; padding: 18px 24px 8px; }
.menu-nav .eyebrow { margin-bottom: 4px; }
.menu-nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 24px/1.2 var(--serif); text-decoration: none; }
.menu-nav a span { font: 400 13px var(--sans); color: var(--muted); }
.menu-nav .menu-quiet { font-size: 19px; color: var(--ink-2); border-bottom: 0; }
.menu-secondary { display: grid; padding: 12px 24px 24px; margin-top: auto; border-top: 1px solid var(--line); }
.menu-secondary button { min-height: 44px; text-align: left; font-size: 15.5px; }

/* ---------------------------------------------------------------------------
 * Finder
 * ------------------------------------------------------------------------- */
.finder-panel { width: min(760px, 100%); }
.finder-panel h2 { margin-bottom: 10px; }
.finder-intro { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.finder-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; padding: 0; border: 0; }
.finder-options legend { margin-bottom: 12px; padding: 0; font-weight: 600; font-size: 15px; }
.finder-options legend span { margin-right: 8px; font: italic 400 16px var(--serif); color: var(--clay); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: block; height: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .15s, background-color .15s; }
.choice strong { display: block; font-weight: 600; font-size: 15px; }
.choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--sand); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.finder-result-head { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.finder-result-head h3 { font-size: 26px; margin-bottom: 6px; }
.finder-result-head p { color: var(--muted); font-size: 14.5px; }
.finder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 8px; }
.finder-grid a { display: block; text-decoration: none; }
.finder-grid .thumb { aspect-ratio: 4 / 5; padding: 8px; }
.finder-grid span { display: block; margin: 10px 0 2px; font: 400 16px/1.3 var(--serif); }
.finder-grid small { color: var(--muted); font-size: 13px; }
.finder-grid a:hover span { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Compare
 * ------------------------------------------------------------------------- */
.compare-tray { position: fixed; left: 50%; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 8px 10px 12px; background: var(--paper); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: translateX(-50%); }
.compare-tray-items { display: flex; gap: 6px; }
.thumb--tray { width: 40px; height: 50px; padding: 2px; }
.compare-tray p { margin: 0; font-size: 14px; white-space: nowrap; }
body.has-tray { padding-bottom: 88px; }
.compare-panel { width: min(1120px, 100%); }
.compare-panel h2 { margin-bottom: 22px; }
.compare-scroll { overflow-x: auto; margin-bottom: 16px; }
.compare-table { width: 100%; min-width: calc(var(--cols) * 190px + 130px); border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.compare-table thead th, .compare-table thead td { border-top: 0; font-weight: 400; }
.compare-table tbody th { position: sticky; left: 0; z-index: 1; width: 130px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: normal; hyphens: auto; }
.compare-table thead td { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.compare-table thead td { width: 130px; }
.compare-head { display: block; text-decoration: none; }
.compare-head .thumb { aspect-ratio: 4 / 5; padding: 10px; margin-bottom: 10px; }
.compare-head span { display: block; font: 400 18px/1.25 var(--serif); }
.compare-head:hover span { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (min-width: 1700px) {
  .product-grid:not(.product-grid--compact) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .product-grid:not(.product-grid--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp-related-grid a:nth-child(4) { display: none; }
}
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 40px var(--gutter) 36px; }
  .hero h1 em { display: inline; }
  .hero-media { min-height: 0; overflow: visible; }
  .hero-media picture { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero-image { object-position: 66% 50%; }
  .hero-product { position: relative; left: auto; bottom: auto; margin: -32px var(--gutter) 0; max-width: none; }
  .hero-facts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-media picture { display: block; height: auto; }
  .story-media img { height: auto; aspect-ratio: 4 / 3; }
  .story-copy { padding: 44px var(--gutter) 52px; }

  .modal--detail { padding: 0; }
  .detail-panel { width: 100%; height: 100%; max-height: none; overflow-y: auto; box-shadow: none; }
  #detail-content { height: auto; }
  .pdp { display: block; height: auto; }
  .pdp-gallery { padding: 12px 12px 14px; }
  .pdp-stage { flex: none; width: 100%; aspect-ratio: 1 / 1; max-height: 64svh; }
  .pdp-thumbs-hint { display: none; }
  .pdp-thumbs { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .pdp-thumbs button { flex: 0 0 58px; scroll-snap-align: start; }
  .pdp-info { overflow: visible; padding: 26px var(--gutter) 48px; }
  .detail-panel .close-floating { position: fixed; top: 10px; right: 10px; box-shadow: 0 2px 12px -4px rgba(31, 29, 26, .4); }
  .pdp-info h2 { padding-right: 0; }

  .modal--search { padding: 0; }
  .search-panel { width: 100%; height: 100%; max-height: none; padding: 10px 12px 24px 16px; }
}
@media (max-width: 760px) {
  .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-head .text-link { min-height: 36px; }
  .product-grid:not(.product-grid--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .product-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .chip-scroll { max-width: none; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip-row { flex-wrap: nowrap; width: max-content; padding-inline: var(--gutter) 28px; }
  .toolbar-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .toolbar-tools { width: 100%; justify-content: space-between; }
  .card-body { padding-top: 12px; gap: 4px; }
  .card-meta { font-size: 11px; letter-spacing: .07em; }
  .card-title { font-size: 16.5px; }
  .card-colours { font-size: 13px; }
  .card-foot { flex-wrap: wrap; gap: 0 8px; }
  .card-compare { font-size: 13.5px; }
  .card-photos { font-size: 12.5px; }
  .card-save { top: 2px; right: 2px; }
  .card-image img { padding: 7%; }
  .moment-title { font-size: 20px; }
  .moment-text { font-size: 13.5px; }
  .finder-options { grid-template-columns: 1fr; }
  .compare-tray { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: none; gap: 10px; justify-content: space-between; }
  .thumb--tray { width: 32px; height: 40px; }
  .compare-tray p { white-space: normal; font-size: 13px; line-height: 1.35; }
  .compare-panel { padding-inline: 16px; }
  .compare-table tbody th { width: 96px; font-size: 10.5px; letter-spacing: .05em; }
  .compare-table thead td { width: 96px; }
  .compare-table { min-width: calc(var(--cols) * 150px + 96px); }
  body.has-tray .toast { bottom: 84px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(40px, 12vw, 50px); }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-facts { gap: 16px 22px; }
  .hero-facts dd { font-size: 26px; }
  .hero-facts dt { font-size: 12px; }
  .hero-product { padding-right: 12px; }
  .hero-product strong { font-size: 17px; }
  .compare-tray-items { display: none; }
}
@media (hover: none) {
  .card:hover .card-image img, .moment-card:hover .moment-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card--skeleton .card-media { animation: none; }
  .card:hover .card-image img, .moment-card:hover .moment-media img, .hero-product:hover { transform: none; }
  #pdp-main { transition: none; }
}
