:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --white: #fff;
  --ink: #27211e;
  --muted: #847b73;
  --line: #dedad4;
  --soft: #edeae5;
  --olive: #68735a;
  --rust: #a35f49;
  --brown: #7a5a44;
  --serif: "Manrope", "DM Sans", sans-serif;
  --sans: "DM Sans", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
::selection { background: #d7c9bb; color: var(--ink); }

.site-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; min-height: 72px; padding: 0 clamp(20px, 5.5vw, 88px); border-bottom: 1px solid rgba(39, 33, 30, .1); background: rgba(248, 247, 244, .94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 39px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 12px; font-weight: 800; }
.brand-name { display: grid; gap: 1px; font-family: var(--serif); font-size: 14px; font-weight: 800; line-height: 1.05; }
.brand-name small { color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.main-nav { display: flex; gap: 34px; margin-left: clamp(36px, 6vw, 92px); }
.main-nav a, .header-note { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .site-footer a:hover { color: var(--rust); }
.header-note { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; letter-spacing: .2px; text-transform: none; }
.status-dot { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--olive); }

.intro { min-height: 390px; padding: 79px 24px 48px; text-align: center; animation: rise-in .65s ease both; }
.eyebrow { margin: 0 0 15px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.intro h1, .section-heading h2 { margin: 0; font-family: var(--serif); font-weight: 800; letter-spacing: 0; }
.intro h1 { font-size: clamp(44px, 6vw, 76px); line-height: .99; }
.intro-copy { margin: 18px 0 16px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.text-link span { font-size: 17px; }

.gender-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; padding: 0 clamp(20px, 5.5vw, 88px); max-width: 1000px; margin: 0 auto; }
.gender-tile { position: relative; display: flex; min-height: 0; aspect-ratio: 3/4; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 28px 30px; border: 0; border-radius: 3px; background: #c9c5bf; color: var(--white); text-align: left; cursor: pointer; isolation: isolate; }
.gender-tile::before { position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, rgba(30, 26, 24, .77), rgba(30, 26, 24, .03) 78%); content: ""; }
.gender-women { background-color: #978d80; }
.gender-men { background-color: #75776d; }
.tile-image { position: absolute; z-index: -3; inset: 0; background-position: center 40%; background-size: cover; opacity: .72; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile-image img { width: 100%; height: 100%; object-fit: cover; }
.gender-tile:hover .tile-image { transform: scale(1.04); }
.gender-women .tile-image:empty, .gender-men .tile-image:empty { background-image: linear-gradient(120deg, rgba(151, 141, 128, .25), rgba(39, 33, 30, .38)); }
.tile-index { position: absolute; top: 22px; left: 24px; color: rgba(255, 255, 255, .82); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.tile-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 800; line-height: 1.1; }
.tile-link { display: inline-flex; gap: 13px; margin-top: 10px; font-size: 12px; }

.catalogue { padding: 88px clamp(20px, 5.5vw, 88px) 104px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.result-count { margin: 0 0 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filters { display: grid; grid-template-columns: minmax(190px, 1.7fr) repeat(3, minmax(110px, 1fr)); gap: 9px; margin-bottom: 16px; }
.search-field, .filter-select { display: flex; min-width: 0; min-height: 45px; align-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--white); }
.search-field { gap: 10px; padding: 0 13px; }
.search-icon { position: relative; width: 15px; aspect-ratio: 1; flex: 0 0 auto; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.5px; transform: rotate(45deg); background: var(--muted); content: ""; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: #a29b94; }
.filter-select { position: relative; }
.filter-select::after { position: absolute; right: 12px; color: var(--muted); content: "⌄"; font-size: 15px; pointer-events: none; }
.filter-select select { width: 100%; height: 100%; min-width: 0; padding: 0 30px 0 12px; appearance: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; cursor: pointer; }
.active-filters { min-height: 0; }
.active-filters:not(:empty) { display: flex; gap: 8px; margin: 0 0 17px; }
.clear-filters { padding: 7px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 15px; }
.product-card { min-width: 0; animation: rise-in .45s ease both; }
.product-card:nth-child(4n + 2) { animation-delay: .045s; }
.product-card:nth-child(4n + 3) { animation-delay: .09s; }
.product-card:nth-child(4n + 4) { animation-delay: .13s; }
.product-image-button { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; aspect-ratio: 4 / 5; border: 1px solid rgba(39, 33, 30, .08); background: var(--soft); cursor: pointer; }
.product-image { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e9e5e0 0%, #d8d4cd 100%); color: rgba(39, 33, 30, .18); font-family: var(--serif); font-size: 50px; font-weight: 800; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-image-button:hover .product-image img { transform: scale(1.045); }
.product-badge { position: absolute; top: 11px; left: 11px; padding: 6px 8px; background: var(--paper); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.product-meta { padding: 12px 1px 0; }
.product-brand { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.product-name { display: block; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 14px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.product-category { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.product-price { font-family: var(--serif); font-size: 15px; font-weight: 800; }
.old-price { margin-left: 6px; color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 400; text-decoration: line-through; }
.stock-label { color: var(--olive); font-size: 10px; white-space: nowrap; }
.stock-label.out { color: var(--muted); }
.empty-state { max-width: 560px; margin: 35px auto 0; padding: 52px 22px; border: 1px solid var(--line); background: var(--white); text-align: center; }
.empty-mark { display: inline-grid; width: 46px; aspect-ratio: 1; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 11px; font-weight: 800; }
.empty-state h3 { margin: 0; font-family: var(--serif); font-size: 21px; }
.empty-state p { max-width: 370px; margin: 10px auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.button-secondary { min-height: 40px; padding: 0 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; cursor: pointer; }

.product-dialog { position: fixed; width: min(920px, calc(100vw - 32px)); max-width: none; max-height: min(84vh, 800px); padding: 0; overflow: auto; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px rgba(39, 33, 30, .24); }
.product-dialog::backdrop { background: rgba(32, 28, 25, .53); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; z-index: 2; top: 12px; float: right; display: grid; width: 38px; aspect-ratio: 1; place-items: center; margin: 12px 12px -50px 0; border: 0; border-radius: 50%; background: var(--paper); font-size: 26px; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.detail-photo { position: relative; min-height: 420px; background: var(--soft); }
.detail-photo .product-image { min-height: 100%; font-size: 72px; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 52px 38px 38px; }
.detail-copy h2 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(25px, 4vw, 36px); line-height: 1.08; }
.detail-price { margin: 0 0 22px; font-family: var(--serif); font-size: 26px; font-weight: 800; }
.detail-price del { margin-left: 8px; color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 400; }
.detail-description { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-variants { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.detail-variants li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; }
.detail-variants span:last-child { color: var(--muted); }
.detail-availability { margin: 20px 0 0; color: var(--olive); font-size: 12px; font-weight: 700; }
.detail-availability.out { color: var(--muted); }
.toast { position: fixed; z-index: 10; right: 20px; bottom: 20px; max-width: calc(100vw - 40px); padding: 12px 16px; transform: translateY(12px); border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 30px rgba(39, 33, 30, .12); color: var(--ink); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes rise-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 1440px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 64px; padding: 0 17px; }
  .brand-mark { width: 34px; font-size: 10px; }
  .brand-name { font-size: 12px; }
  .main-nav { gap: 15px; margin-left: auto; }
  .main-nav a { font-size: 9px; letter-spacing: .5px; }
  .header-note { display: none; }
  .intro { min-height: 315px; padding: 66px 20px 40px; }
  .intro h1 { font-size: clamp(42px, 12vw, 58px); }
  .intro-copy { max-width: 300px; margin: 17px auto 14px; font-size: 13px; line-height: 1.55; }
  .gender-grid { grid-template-columns: 1fr; gap: 10px; padding: 0 16px; }
  .gender-tile { min-height: 0; padding: 22px; }
  .tile-index { top: 17px; left: 19px; }
  .catalogue { padding: 62px 16px 70px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 17px; }
  .section-heading h2 { max-width: 360px; font-size: 25px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 7px; }
  .search-field { grid-column: 1 / -1; }
  .filter-select { min-height: 43px; }
  .filters > .filter-select:has(#gender-filter) { grid-column: 1 / -1; }
  .filter-select select { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 10px; }
  .product-image-button { aspect-ratio: 4 / 5.25; }
  .product-brand { font-size: 8px; }
  .product-name { font-size: 12px; }
  .product-category { font-size: 10px; }
  .product-bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-price { font-size: 14px; }
  .product-dialog { width: calc(100vw - 18px); max-height: 91vh; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .detail-photo .product-image { font-size: 58px; }
  .detail-copy { padding: 24px 20px 25px; }
  .detail-copy h2 { margin-bottom: 13px; }
  .detail-price { margin-bottom: 15px; font-size: 23px; }
  .detail-description { margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }
.site-header { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.main-nav { flex-wrap: wrap; gap: 18px; }
.header-note { display: none; }
.shop-view { min-height: 65vh; padding: 40px clamp(20px, 5.5vw, 88px) 80px; }
.shop-heading { margin: 38px 0 28px; }
.shop-heading h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.8px; }
.shop-heading > p:last-child, .shop-muted { color: var(--muted); line-height: 1.7; font-size: 13px; }
.product-card { position: relative; }
/* Cuore dei preferiti: piatto e marrone, senza cerchio né sfondo; pieno quando il capo è salvato. */
.heart-button { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--brown); cursor: pointer; }
.heart-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.heart-button.saved .heart-icon, .list-choice[aria-pressed=true] .heart-icon { fill: currentColor; }
.list-choice .heart-icon { width: 18px; height: 18px; color: var(--brown); }
.account-menu-links .heart-icon { width: 18px; height: 18px; margin-right: 8px; color: var(--brown); }
.auth-points .heart-icon { width: 16px; height: 16px; vertical-align: -3px; }
.detail-photo > .heart-button { z-index: 1; }
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 28px; border: 1px solid var(--line); }
.product-page .detail-copy { justify-content: flex-start; padding: 40px; }
.product-page h1 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 42px); }
.product-page .detail-photo { min-height: 600px; }
.shop-field { display: grid; gap: 9px; margin-bottom: 18px; font-size: 13px; }
.shop-field input, .shop-field select { min-width: 0; width: 100%; padding: 12px; min-height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; color: var(--ink); }
.shop-field select { font: inherit; }
.shop-view .button-secondary { min-height: 46px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.form-message { color: var(--rust); font-size: 13px; line-height: 1.5; }
.form-message:empty { display: none; }
.pickup-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; font-size: 13px; line-height: 1.6; }
.pickup-note p { color: var(--muted); margin: 8px 0; }
.shop-notice { padding: 18px; border: 1px solid var(--line); background: var(--soft); line-height: 1.6; font-size: 14px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.checkout-summary, .account-card { padding: 28px; background: var(--white); border: 1px solid var(--line); }
.checkout-summary h2, .account-card h2 { margin-top: 0; font-size: 21px; }
.cart-row { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-photo { position: relative; min-height: 150px; }
.cart-quantity { width: 65px; margin: 0 18px 0 8px; padding: 8px; border: 1px solid var(--line); }
.text-button { border: 0; background: transparent; padding: 8px 0; text-decoration: underline; cursor: pointer; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--line); font-size: 20px; }
.payment-methods { font-size: 13px; font-weight: 700; }
.checkout-summary .button-secondary { width: 100%; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.account-tabs a { padding: 14px 0; color: var(--muted); font-size: 14px; }
.account-tabs a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--ink); }
.account-tabs button { margin-left: auto; }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-layout { width: 100%; max-width: 1000px; margin: 48px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center; }
.auth-layout .shop-heading { margin: 0; }
.auth-layout .shop-heading h1 { max-width: 460px; line-height: 1.12; }
.auth-layout .shop-heading > p:last-child { max-width: 350px; font-size: 15px; }
.auth-layout .auth-card { width: 100%; margin: 0; padding: 32px; }
.auth-card form > button[type=submit] { width: 100%; }
.auth-card .auth-links { justify-content: space-between; gap: 12px; }
@media (max-width: 760px) {
  .auth-layout { max-width: 480px; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .auth-layout .auth-card { padding: 24px; }
  .auth-layout .shop-heading > p:last-child { font-size: 13px; }
}
.auth-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 12px; text-decoration: underline; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 24px 0 38px; }
.inline-form .shop-field { margin: 0; flex: 1; max-width: 420px; }
.inline-form .form-message { width: 100%; }
.favorite-list { margin: 36px 0 56px; }
.list-share-controls { margin: 12px 0 24px; }
.list-share-controls > .stop-sharing { margin-left: 16px; }
.share-list { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; vertical-align: middle; }
.share-list svg { width: 24px; height: 24px; }
.share-list:hover { background: var(--paper); }
.share-list:disabled { opacity: .5; cursor: wait; }
.share-status:empty { display: none; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.list-heading h2 { margin: 0; font-size: 22px; }
.list-heading .text-button { margin-left: 16px; }
.list-dialog { width: min(460px, calc(100vw - 30px)); border: 1px solid var(--line); padding: 30px; background: var(--paper); color: var(--ink); }
.list-dialog::backdrop { background: #27211e80; }
.list-choices { display: grid; gap: 10px; margin: 24px 0; }
.list-choice { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.list-choice[aria-pressed=true] { color: var(--brown); border-color: var(--brown); }
.list-choice-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-choice-action { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1.5px solid var(--brown); border-radius: 50%; color: var(--brown); font-size: 20px; font-weight: 600; line-height: 1; }
.list-choice[aria-pressed=true] .list-choice-action { background: var(--brown); color: var(--white); font-size: 15px; }
/* Su mobile la finestra delle liste occupa tutto lo schermo. */
@media (max-width: 620px) {
  .list-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); overflow: auto; }
  .list-dialog .dialog-close { top: 0; margin-top: 0; }
  .list-choice { padding: 14px 16px; }
  .list-choice-action { flex-basis: 34px; width: 34px; height: 34px; }
}
.order-card { margin: 22px 0; }
.store-hours { margin: 20px 0; }
.contact-card { max-width: 640px; margin-bottom: 24px; }
.shop-field textarea { width: 100%; min-height: 140px; padding: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.store-hours > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.store-hours dt { font-weight: 600; }
.store-hours dd { margin: 0; }
.order-card ul { padding-left: 20px; line-height: 1.9; font-size: 13px; }
.order-status { color: var(--olive); font-size: 12px; }
.resume-payment { display: inline-flex; align-items: center; margin-top: 15px; }
#account-content > .account-card:not(.order-card) { max-width: 640px; }
@media (max-width: 800px) {
  .product-page, .checkout-layout { grid-template-columns: 1fr; }
  .product-page .detail-photo { min-height: 0; aspect-ratio: 4/5; }
  .product-page .detail-copy { padding: 24px; }
  .list-heading { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .site-header .main-nav { width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .site-header .main-nav a { font-size: 10px; }
  .account-tabs { gap: 16px; }
  .checkout-summary, .account-card { padding: 20px; }
  .cart-row { grid-template-columns: 85px 1fr; gap: 14px; }
}

/* The default development preview is iPhone 17 portrait (402 × 874). */
.nav-icon { width: 23px; height: 23px; display: inline-block; font-size: 25px; }
svg.nav-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-action { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.main-nav { align-items: center; margin-left: auto; }
.account-menu { position: relative; }
.account-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; background: var(--white); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-links { position: absolute; z-index: 20; right: 0; top: 54px; width: min(260px, calc(100vw - 40px)); padding: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 35px #27211e20; border-radius: 12px; }
.main-nav .account-menu-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; }
.account-menu-links a:hover { background: var(--soft); border-radius: 8px; }
.cart-link #cart-count { position: absolute; top: 0; right: -3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; background: var(--ink); color: var(--white); border-radius: 50%; }
.mobile-browse { display: none; }
.product-name { max-width: 100%; }
.gender-tile { text-decoration: none; }
.gender-tile.selected { outline: 3px solid var(--rust); outline-offset: 3px; }
.outfit-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 5.5vw, 88px) 12px; color: var(--muted); font-size: 12px; }
.outfit-controls button { min-height: 44px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.gender-tile .tile-image { opacity: 1; }
.outfit-photo { animation: outfit-reveal .6s ease; }
@keyframes outfit-reveal { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .outfit-photo { animation: none; } }
.home-selections { padding: 40px clamp(20px, 5.5vw, 88px) 0; }
.home-selections-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-selections-heading .eyebrow { margin-bottom: 8px; }
.home-selections-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.home-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-group, .group-skeleton { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; aspect-ratio: 1; padding: 24px; border-radius: 8px; overflow: hidden; }
.home-group { color: var(--ink); background: #e7ded2; transition: transform .2s; }
.home-group:hover { transform: translateY(-3px); }
.group-tone-2 { background: #dfe3d8; }
.group-tone-3 { background: #8e5948; color: var(--white); }
.group-eyebrow { position: absolute; top: 20px; left: 24px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.home-group h3 { margin: 0; font-size: clamp(18px, 2.8vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.group-description { margin: 12px 0 24px; font-size: 12px; line-height: 1.6; }
.group-arrow { position: absolute; bottom: 16px; right: 20px; font-size: 22px; }
.group-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #e9e5e0; }
.home-group.with-photo { color: var(--white); }
.home-group.with-photo::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(0deg, #27211ecc, #27211e22); }
.group-skeleton { background: var(--soft); }
.home-selections + .catalogue { padding-top: 52px; }
.load-more { display: block; margin: 30px auto 0; min-height: 46px; }
@media (max-width: 620px) {
  html { scroll-padding-top: 120px; }
  .site-header { gap: 0; padding: 10px 18px 0; min-height: 0; }
  .site-header .brand { margin-right: auto; min-height: 44px; }
  .site-header .brand-name { font-size: 14px; }
  .site-header .brand-mark { width: 36px; }
  .site-header .main-nav { width: auto; gap: 14px; margin: 0; }
  .main-nav .nav-browse { display: none; }
  .site-header .main-nav .nav-action { min-height: 44px; min-width: 44px; }
  .mobile-browse { display: flex; flex-basis: 100%; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line); }
  .mobile-browse a { display: grid; flex: 1; place-items: center; min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 13px; white-space: nowrap; color: var(--muted); }
  .intro-actions .text-link { display: none; }
  .mobile-browse a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); font-weight: 700; }
  .intro { min-height: 0; padding: 30px 20px 26px; }
  .intro .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .intro h1 { font-size: 37px; line-height: 1.06; }
  .intro-copy { margin: 12px auto 0; font-size: 13px; }
  .gender-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
  .gender-tile { aspect-ratio: 3/4; min-height: 0; padding: 18px 14px; border-radius: 8px; }
  .outfit-controls { padding: 0 18px 8px; font-size: 11px; }
  .tile-index { font-size: 8px; top: 14px; left: 14px; }
  .tile-title { font-size: 29px; }
  .tile-link { font-size: 10px; line-height: 1.5; margin-top: 8px; }
  .home-selections { padding: 30px 18px 0; }
  .home-selections-heading h2 { font-size: 20px; }
  .home-selections-heading .eyebrow { font-size: 8px; }
  .home-groups { gap: 9px; }
  .home-group, .group-skeleton { padding: 12px 10px 24px; border-radius: 7px; }
  .home-group h3 { font-size: 14px; line-height: 1.2; overflow-wrap: normal; hyphens: auto; }
  .group-eyebrow { top: 10px; left: 10px; font-size: 8px; letter-spacing: .7px; }
  .group-description { display: none; }
  .group-arrow { bottom: 5px; right: 9px; font-size: 17px; }
  .catalogue { padding-left: 18px; padding-right: 18px; }
  .home-selections + .catalogue { padding-top: 35px; }
  .section-heading h2 { font-size: 23px; }
  .shop-view { padding: 26px 18px 50px; }
  .shop-heading { margin: 28px 0 24px; }
  input, select, .shop-field input, .shop-field select, .search-field input, .filter-select select { font-size: 16px; }
  .filter-select { min-height: 48px; }
  .product-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
  .product-category { line-height: 1.5; }
  .text-button, .text-link, .auth-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .account-tabs a { min-height: 44px; }
  .cart-quantity { min-height: 44px; }
  .checkout-summary, .account-card, .inline-form { min-width: 0; }
  .list-heading, .account-tabs { overflow-wrap: anywhere; }
  .checkout-summary p, .pickup-note p { overflow-wrap: anywhere; }
  .product-page .detail-copy { min-width: 0; }
}
.selection-page > .intro,
.selection-page > .home-hero,
.selection-page > .outfit-controls,
.selection-page > .gender-grid,
.selection-page > .home-selections { display: none; }
.selection-page .catalogue { padding-top: 36px; }
.selection-page .section-heading > div { display: none; }
.selection-page .section-heading { margin-bottom: 16px; }
.selection-header { margin-bottom: 26px; }
.selection-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 24px; color: var(--muted); }
.selection-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.selection-header h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.6px; }
#selection-description { max-width: 650px; margin: 0 0 22px; line-height: 1.6; }
.selection-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #f0ede8; border-radius: 8px; font-size: 13px; }
.selection-context span { font-weight: 600; }
.selection-context a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
@media (max-width: 620px) {
  .selection-page .catalogue { padding-top: 16px; }
  .selection-breadcrumb { gap: 8px; margin-bottom: 12px; }
  .selection-header { margin-bottom: 22px; }
  .selection-header h1 { font-size: 32px; }
  #selection-description { font-size: 14px; margin-bottom: 16px; }
  .selection-context { gap: 0; padding: 10px 12px; }
}

.photo-thumbnails { position:absolute; bottom:12px; left:12px; right:12px; display:flex; gap:8px; overflow-x:auto; padding:4px; background:#ffffffdb; border-radius:8px; }
.photo-thumbnails button { flex:0 0 56px; width:56px; height:68px; padding:2px; border:2px solid transparent; border-radius:4px; background:var(--paper); cursor:pointer; }
.photo-thumbnails button[aria-pressed=true] { border-color:var(--ink); }
.detail-photo .photo-thumbnails .product-image { height:100%; min-height:0; font-size:14px; }
.photo-thumbnails img { width:100%; height:100%; object-fit:contain; }
.detail-photo .photo-thumbnails .product-image { position:relative; inset:auto; width:100%; }
.detail-photo > .product-image { bottom:100px; min-height:0; }
.detail-photo > .product-image img { object-fit:contain; }

/* Banner cookie */
.cookie-banner { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; padding: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 40px rgba(39, 33, 30, .18); color: var(--ink); font-size: 13px; line-height: 1.55; }
.cookie-banner h2 { margin: 0 0 6px; font-size: 15px; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: var(--rust); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; min-height: 46px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.cookie-actions button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.cookie-actions button:hover { background: var(--soft); }
@media (min-width: 700px) { .cookie-banner { left: 20px; right: auto; bottom: 20px; margin: 0; } }
