/* Rebelote: page CSS on top of the taste-skill kit (assets/system.css). Only what the kit lacks:
   the hero rail, the address set large, product cards, the selection drawer, the catalogue and the
   try-on studio. Tokens come from the kit and the :root block in each page. */

/* ---------- brand: the logo in the bar ---------- */
.nav__logo img { display: block; height: 40px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 34px; } }
.nav__bag { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); }
.nav__bag-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--bg);
  font: 500 13px/22px var(--font-text); text-align: center; font-variant-numeric: tabular-nums; }
.nav__bag-count[data-n="0"] { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- hero: one file of five real pieces from the rail ---------- */
.hero--place > picture.hero__bg img { object-position: 50% 30%; }

/* ---------- the one type moment: the address, set large ---------- */
.type-moment { margin: 0 0 var(--s-7); font: var(--display-weight) clamp(34px, 4.6vw, 66px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.type-moment a:hover, .type-moment a:focus-visible { text-decoration-color: currentColor; }
@media (max-width: 639px) { .type-moment { margin-bottom: var(--s-5); } }
.visit--card { background: var(--surface); padding: var(--s-7); }
@media (max-width: 639px) { .visit--card { padding: var(--s-5); } }
.visit__phone { font-size: 20px; line-height: 30px; }
.pl-photo { margin: 0; overflow: hidden; }
.pl-photo > img, .pl-photo > a > img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--pl-r, 1); }
.pl-photo > a { display: block; overflow: hidden; }
.pl-photo > a > img { transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.pl-photo > a:hover > img { transform: scale(1.03); }

/* ---------- product cards: one recipe on every page ---------- */
.goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1023px) { .goods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); transition: transform 200ms cubic-bezier(0, 0, .2, 1); }
.pcard:hover { transform: translateY(-2px); }
.pcard__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #e6e2da; }
.pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); flex: 1; }
.pcard__name { margin: 0; font: 500 16px/24px var(--font-text); color: var(--ink); }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.pcard__price { font: 500 16px/24px var(--font-text); font-variant-numeric: tabular-nums; }
.pcard__size { font-size: 14px; color: var(--muted); }
.pcard__actions { position: relative; z-index: 1; display: flex; gap: var(--s-2); padding: 0 var(--s-4) var(--s-4); }
.pcard__actions .btn { flex: 1; min-width: 0; padding-inline: var(--s-3); }
.pcard.is-held { opacity: .72; }
@media (max-width: 639px) {
  .pcard__body { padding: var(--s-3); }
  .pcard__actions { flex-direction: column; padding: 0 var(--s-3) var(--s-3); }
  .pcard__actions .btn { flex: none; width: 100%; min-height: 44px; }
  .pcard__name { font-size: 15px; line-height: 24px; }
}
.btn--sm { --btn-h: 44px; font-size: 15px; }

.goods-head { align-items: baseline; margin-bottom: var(--head-gap); }
.goods-head h2 { margin: 0; }
.goods-head p { margin: 0; font-size: 16px; line-height: 24px; }
/* ---------- home: try-on teaser (tall-small) and the story row ---------- */
.ts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: stretch; }
.ts__text { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7); }
.ts__tall { grid-column: 7 / span 6; }
.ts__text .measure p { font-size: 20px; line-height: 30px; margin: var(--s-4) 0 var(--s-5); }
.ts__small { width: min(100%, 282px); }
@media (max-width: 1023px) {
  .ts { grid-template-columns: 1fr; }
  .ts__tall, .ts__text { grid-column: auto; }
  .ts__small { display: none; }
}
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.story__text { grid-column: 1 / span 6; }
.story__text p { font-size: 20px; line-height: 30px; margin: var(--s-4) 0 var(--s-5); max-width: 34em; }
.story__pic { grid-column: 7 / span 6; }
@media (max-width: 1023px) { .story { grid-template-columns: 1fr; } .story__text, .story__pic { grid-column: auto; } .story__text p { font-size: 18px; line-height: 28px; } }

/* ---------- selection drawer (shared) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 200ms cubic-bezier(.4, 0, 1, 1), visibility 0s 200ms; }
.drawer.is-open { transform: none; visibility: visible; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.shade { position: fixed; inset: 0; z-index: 39; background: rgb(11 21 48 / .36); opacity: 0; pointer-events: none; transition: opacity 200ms ease-out; }
.shade.is-open { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-5); height: var(--nav); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 24px; margin: 0; }
.drawer__body { flex: 1; overflow: auto; padding: var(--s-5); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--s-5); display: grid; gap: var(--s-3); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }
.icon-btn:hover { background: var(--surface); }
.sel-item { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-4); align-items: start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.sel-item img { width: 72px; height: 90px; object-fit: cover; display: block; }
.sel-item p { margin: 0; font-size: 16px; line-height: 24px; }
.sel-item .muted { font-size: 14px; }
.sel-sum { display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.sel-sum--total { font-weight: 500; font-size: 18px; }
.sel-empty { font-size: 16px; line-height: 1.6; color: var(--muted); }
.promo { display: flex; gap: var(--s-2); }
.promo input { flex: 1; min-width: 0; }

/* ---------- fields (one look for every input on the site) ---------- */
.input, .select { height: 48px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 16px var(--font-text); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.label { display: block; font: 500 14px/20px var(--font-text); margin-bottom: var(--s-2); }

/* ---------- catalogue page ---------- */
/* the catalogue and the studio are tools, not screens: their sections take their content's height */
main > section:is(.page-head, .catalogue, .studio-wrap):not(.hero, .section--hero, #_) { min-height: 0; height: auto; display: block; padding-block: 0; }
.page-head { padding-top: calc(var(--nav) + var(--s-9)); padding-bottom: var(--s-7); }
@media (max-width: 639px) { .page-head { padding-top: calc(var(--nav) + var(--s-7)); padding-bottom: var(--s-5); } }
.page-head h1 { margin: 0 0 var(--s-4); }
.page-head p { margin: 0; font-size: 20px; line-height: 30px; max-width: 40em; }
.filters { display: grid; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); }
.filters__row .select { min-width: 180px; }
@media (max-width: 639px) { .filters__row > div, .filters__row .select { width: 100%; } .filters__row { display: grid; grid-template-columns: 1fr 1fr; } .filters__search { grid-column: 1 / -1; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { height: 44px; padding: 0 var(--s-5); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); color: var(--ink); font: 500 15px var(--font-text); cursor: pointer; }
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.filters__search { position: relative; min-width: min(320px, 100%); }
.filters__search .input { width: 100%; padding-left: 40px; }
.filters__search svg { position: absolute; left: 14px; top: 16px; color: var(--muted); }
.result-count { font-size: 16px; color: var(--muted); margin: 0 0 var(--s-5); }
@media (max-width: 1023px) { .filters { grid-template-columns: 1fr; } }
.chips--scroll { flex-wrap: wrap; }
.catalogue { padding-bottom: var(--s-10); }

/* ---------- product dialog ---------- */
dialog.pd { width: min(1080px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--bg); color: var(--ink); }
dialog.pd::backdrop { background: rgb(11 21 48 / .5); }
.pd__grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd__gallery { background: #e6e2da; display: grid; gap: 2px; }
.pd__gallery img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.pd__info { padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); }
.pd__info h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.pd__price { font: 500 22px/30px var(--font-text); }
.pd__info p { margin: 0; font-size: 16px; line-height: 1.6; }
.pd__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); font-size: 16px; line-height: 24px; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.pd__facts dt { color: var(--muted); }
.pd__facts dd { margin: 0; }
.pd__close { position: absolute; top: var(--s-3); right: var(--s-3); background: var(--bg); }
@media (max-width: 799px) { .pd__grid { grid-template-columns: 1fr; } .pd__gallery { grid-template-columns: 1fr 1fr; } .pd__info { padding: var(--s-5); } }

/* ---------- try-on studio ---------- */
main > section.studio-wrap > .wrap.studio, .studio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: start; padding-bottom: var(--s-10); }
@media (max-width: 1023px) { .studio { grid-template-columns: 1fr; gap: var(--s-6); } }
.stage { position: sticky; top: calc(var(--nav) + var(--s-5)); }
@media (max-width: 1023px) { .stage { position: static; } }
.stage__frame { position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; max-height: calc(100svh - var(--nav) - 120px); margin-inline: auto; }
.stage__frame canvas, .stage__frame video, .stage__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__frame video { transform: scaleX(-1); object-fit: cover; }
.stage__frame canvas.is-mirror { transform: scaleX(-1); }
.stage__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-7); text-align: center; }
.stage__empty p { font-size: 18px; line-height: 28px; max-width: 24em; margin: 0 auto var(--s-5); }
.stage__busy { position: absolute; inset: auto 0 0 0; padding: var(--s-4) var(--s-5); background: rgb(247 244 238 / .94); border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.stage__bar { height: 3px; background: var(--line); margin-top: var(--s-2); overflow: hidden; }
.stage__bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 300ms linear; }
.stage__tools { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: center; margin-top: var(--s-4); }
.compare { position: absolute; inset: 0; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--bg); box-shadow: 0 0 0 1px rgb(11 21 48 / .25); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.step { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h2 { font-size: 22px; line-height: 30px; margin: 0 0 var(--s-2); }
.step > p { margin: 0 0 var(--s-4); font-size: 16px; line-height: 1.6; color: var(--muted); }
.step .btn-row { flex-wrap: wrap; }
.models { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.thumb { position: relative; padding: 0; border: 0; background: var(--surface); cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.thumb:hover img { transform: scale(1.03); }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.garments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); max-height: 420px; overflow: auto; padding: 2px; margin-top: var(--s-4); }
@media (max-width: 639px) { .garments { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 360px; } }
.garments .thumb img { object-fit: cover; }
.picked { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-4); }
.picked img { width: 64px; height: 80px; object-fit: cover; }
.picked p { margin: 0; font-size: 16px; line-height: 24px; }
.mode { display: grid; gap: var(--s-3); }
.mode__opt { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line-strong); cursor: pointer; }
.mode__opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mode__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.mode__opt strong { display: block; font-weight: 500; font-size: 16px; line-height: 24px; }
.mode__opt span { font-size: 15px; line-height: 24px; color: var(--muted); }
.adjust { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.adjust label { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: var(--s-3); font-size: 15px; }
.adjust input[type="range"] { accent-color: var(--ink); height: 44px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); font-size: 15px; line-height: 24px; margin: var(--s-4) 0; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.note { font-size: 15px; line-height: 24px; color: var(--muted); margin: var(--s-3) 0 0; }
.alert { padding: var(--s-4); border-left: 3px solid var(--ink); background: var(--surface); font-size: 16px; line-height: 24px; margin-top: var(--s-4); }
.alert[hidden] { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- legal page ---------- */
.prose { max-width: 40em; padding-bottom: var(--s-10); }
.prose h2 { font-size: 24px; margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose li { font-size: 17px; line-height: 28px; }

@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard__img img, .pl-photo > a > img, .thumb img, .drawer, .shade { transition: none !important; }
  .pcard:hover { transform: none; }
}

/* a day with a lunch break: its second shift under the first */
.hours dd + dd { grid-column: 2; margin-top: calc(-1 * var(--s-2) + 2px); }

/* the home page's goods: six on a phone (two screens) and a tablet (two square rows), four on a desktop (one row) */
@media (min-width: 640px) and (max-width: 1023px) { [data-new] .pcard__img { aspect-ratio: 1; } }
@media (min-width: 1024px) { [data-new] > li:nth-child(n+5) { display: none; } }

/* =====================================================================================================
   Premium layer (v2): navy and ivory, Cormorant Garamond for display, Jost for text. Sections take their
   content's height everywhere (the kit's one-section-per-screen sizing left the home page half empty).
   ===================================================================================================== */
:root { --navy: #0b1530; --navy-2: #131f42; --ivory: #f7f4ee; --paper: #eee8de; --gold: #cfa860; }
body { background: var(--ivory); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
main > :is(section, .section):not(#_), footer.closing:not(#_) { min-height: 0; height: auto; }
main > :is(section, .section):not(#_) > .wrap, footer.closing:not(#_) > .wrap { height: auto; }

/* the bar: navy, the logo's own ground, so the logo sits in it seamlessly */
header.nav { background: var(--navy); border-bottom-color: rgb(247 244 238 / .12);
  --ink: var(--ivory); --muted: rgb(247 244 238 / .72); --line: rgb(247 244 238 / .14); --line-strong: rgb(247 244 238 / .4);
  --action: var(--gold); --action-ink: var(--navy); --bg: var(--navy); color: var(--ivory); }
header.nav .nav__link { color: var(--ivory); font-weight: 500; letter-spacing: .01em; }
header.nav .nav__logo img { height: 46px; }
@media (max-width: 639px) { header.nav .nav__logo img { height: 38px; } }
.nav__bag-count { background: var(--gold); color: var(--navy); }
.nav__bag-count[data-n="0"] { background: transparent; color: rgb(247 244 238 / .8); box-shadow: inset 0 0 0 1px rgb(247 244 238 / .4); }

/* any navy ground: gold primary, ivory outline secondary */
.on-navy, .hx, .tryx, .visitcard, footer.site-foot { --ink: var(--ivory); --muted: rgb(247 244 238 / .72); --line: rgb(247 244 238 / .16); --line-strong: rgb(247 244 238 / .55);
  --action: var(--gold); --action-ink: var(--navy); --bg: var(--navy); }

/* product cards, premium: brand line, display-face price */
.pcard { background: #fff; box-shadow: 0 1px 0 var(--line); }
.pcard__img { background: var(--paper); }
.pcard__brand { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); letter-spacing: .02em; }
.pcard__price { font: 600 19px/24px var(--font-display); }

/* footer v2 */
footer.site-foot { background: var(--navy); color: var(--ivory); padding: clamp(56px, 7vw, 96px) 0 calc(var(--s-6) + var(--bar)); }
footer.site-foot .site-foot__mark { margin: 0 0 clamp(32px, 4vw, 56px); font: 500 clamp(56px, 13vw, 200px)/.85 var(--font-display); letter-spacing: .06em; color: var(--ivory); }
.site-foot__mark span { color: var(--gold); }
.site-foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: var(--gutter); padding-top: var(--s-6); border-top: 1px solid rgb(247 244 238 / .16); }
.site-foot h3 { margin: 0 0 var(--s-4); font: 500 22px/1.2 var(--font-display); color: var(--gold); }
.site-foot p, .site-foot li { margin: 0; font-size: 16px; line-height: 28px; color: rgb(247 244 238 / .84); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .hours { color: rgb(247 244 238 / .84); font-size: 15px; }
.site-foot__legal { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(247 244 238 / .16); font-size: 14px; color: rgb(247 244 238 / .65); }
@media (max-width: 1023px) { .site-foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .site-foot__cols { grid-template-columns: 1fr; } .site-foot li a { display: inline-flex; min-height: 44px; align-items: center; } }

/* inner pages keep a little more air under the bar */
.page-head h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.015em; }
@media (max-width: 639px) { .models { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- audit fixes (UX skills) ---------- */
/* the studio stacks on tablets and phones (the rule above it is more specific, so it repeats here) */
@media (max-width: 1023px) { main > section.studio-wrap > .wrap.studio { grid-template-columns: 1fr; gap: var(--s-6); } }
/* stand-alone text links and footer links are 44px hit targets; links inside a sentence stay inline */
:is(div, li, section, nav) > a.link { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot li { line-height: 1.5; }
/* icon buttons: a real tooltip on hover and keyboard focus, in the same words as the aria-label */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; padding: 4px 8px; background: var(--navy); color: var(--ivory);
  font: 500 13px/20px var(--font-text); white-space: nowrap; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity 100ms ease-in; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transition: opacity 150ms ease-out 300ms; }
@media (prefers-reduced-motion: reduce) { [data-tip]::after { transition: none !important; } }
/* visible field labels on the catalogue filters and the promo code */
.field-sm { display: grid; gap: 4px; }
.field-sm > label { font: 500 13px/20px var(--font-text); color: var(--muted); }
.filters__row { align-items: end; }
.filters__search svg { top: 40px; }

/* =====================================================================================================
   v3: announcement strip, card details, search panel, product page
   ===================================================================================================== */
/* the strip sits inside the fixed bar, so --nav (every offset under the bar) includes it */
:root { --announce: 36px; --nav: calc(72px + var(--announce)); }
@media (max-width: 639px) { :root { --announce: 32px; --nav: calc(56px + var(--announce)); } }
header.nav .announce { margin: 0; height: var(--announce); display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: #070e22; color: var(--gold); font: 500 13px/1.2 var(--font-text); letter-spacing: .02em; text-align: center; }
header.nav .nav__bar { height: calc(100% - var(--announce)); }
.drawer__head { height: 72px; }
header.nav .icon-btn { color: var(--ivory); }
header.nav .icon-btn:hover { background: rgb(247 244 238 / .08); }

/* cards: a second photo on hover (pointer devices only), the designer label, the heart */
.pcard__img { position: relative; }
.pcard__alt { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease-out; }
@media (hover: hover) { .pcard:hover .pcard__alt { opacity: 1; } }
.pcard__badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; background: var(--ivory); color: var(--navy); font: 500 12px/16px var(--font-text); letter-spacing: .02em; border: 1px solid rgb(11 21 48 / .12); border-radius: 2px; }
.pcard__fav { position: absolute; top: 4px; right: 4px; z-index: 2; color: var(--navy); background: rgb(247 244 238 / .86); border-radius: 50%; }
.pcard__fav:hover { background: var(--ivory); }
[data-fav][aria-pressed="true"] { --heart-fill: currentColor; color: #8a1c2b; }
@media (prefers-reduced-motion: reduce) { .pcard__alt { transition: none; } }

/* search panel: drops under the bar, live results, Esc closes */
.search { position: fixed; inset: var(--nav) 0 auto 0; z-index: 45; background: var(--ivory); border-bottom: 1px solid var(--line); padding: var(--s-6) 0 var(--s-7);
  opacity: 0; transform: translateY(-8px); transition: opacity 200ms ease-in, transform 200ms ease-in; max-height: calc(100svh - var(--nav)); overflow: auto; }
.search.is-open { opacity: 1; transform: none; transition: opacity 300ms ease-out, transform 300ms cubic-bezier(0, 0, .2, 1); }
.search__head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: end; }
.search__form label { display: block; font: 500 14px/20px var(--font-text); color: var(--muted); margin-bottom: 8px; }
.search__row { display: flex; gap: var(--s-3); }
.search__row .input { flex: 1; height: 56px; font-size: 20px; }
.search__row .btn { height: 56px; }
.search__results { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.search__results li a { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.search__results li a:hover span { text-decoration: underline; }
.search__results img { width: 48px; height: 64px; object-fit: cover; }
.search__results span { display: grid; font-size: 16px; line-height: 1.4; }
.search__results .muted { font-size: 13px; color: var(--muted); }
.search__results b { font: 600 18px/1 var(--font-display); }
.search__results .search__all, .search__results .search__none { grid-column: 1 / -1; padding-top: var(--s-4); font-size: 16px; color: var(--muted); }
@media (max-width: 639px) { .search__results { grid-template-columns: 1fr; } .search__row { flex-direction: column; } .search__row .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .search, .search.is-open { transition: opacity 100ms linear; transform: none; } }

/* product page */
.pdp { padding: calc(var(--nav) + var(--s-5)) 0 var(--s-9); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-5); padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; }
.pdp__grid { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(320px, 440px); gap: var(--s-5) var(--s-7); align-items: start; }
.pdp__thumbs { display: grid; gap: var(--s-2); position: sticky; top: calc(var(--nav) + var(--s-5)); }
.pdp__thumbs button { padding: 0; border: 1px solid transparent; background: var(--paper); cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; }
.pdp__thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__stage { position: relative; background: var(--paper); aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.pdp__stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms cubic-bezier(0, 0, .2, 1); }
.pdp__stage img.is-cutout { object-fit: contain; padding: 6%; }
.pdp__stage.is-zoom img { transform: scale(2); }
.pdp__stage.is-zoom { cursor: zoom-out; }
.pdp__panel { position: sticky; top: calc(var(--nav) + var(--s-5)); display: grid; gap: var(--s-4); }
.pdp__brand { margin: 0; font: 500 14px/20px var(--font-text); letter-spacing: .04em; color: var(--muted); }
.pdp__panel h1 { margin: 0; font: 500 clamp(30px, 2.6vw, 40px)/1.08 var(--font-display); letter-spacing: -.01em; }
.pdp__price { display: flex; align-items: baseline; gap: var(--s-3); margin: 0; font: 600 28px/1 var(--font-display); }
.pdp__price small { font: 400 14px/1 var(--font-text); color: var(--muted); }
.pdp__facts { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s-5); margin: 0; font-size: 16px; line-height: 1.5; }
.pdp__facts dt { color: var(--muted); } .pdp__facts dd { margin: 0; }
.pdp__actions { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); }
.pdp__actions .btn { height: 52px; font-size: 16px; }
.pdp__actions .pdp__try { grid-column: 1 / -1; }
.pdp__fav { width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--navy); }
.pdp__service { list-style: none; margin: 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); font-size: 15px; line-height: 24px; color: var(--muted); }
.pdp__service li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.pdp__service svg { margin-top: 2px; color: var(--navy); }
.pdp details { border-top: 1px solid var(--line); }
.pdp details:last-of-type { border-bottom: 1px solid var(--line); }
.pdp summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; list-style: none; font: 500 16px/1.4 var(--font-text); }
.pdp summary::-webkit-details-marker { display: none; }
.pdp summary::after { content: "+"; font: 400 22px/1 var(--font-text); color: var(--muted); }
.pdp details[open] summary::after { content: "\2013"; }
.pdp details p { margin: 0 0 var(--s-4); font-size: 16px; line-height: 1.6; max-width: 60ch; }
.related { padding: var(--s-8) 0 var(--s-9); border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 var(--s-6); font: 500 clamp(28px, 3vw, 40px)/1.1 var(--font-display); }
@media (max-width: 1023px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__thumbs { position: static; grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; }
  .pdp__stage { order: 1; }
  .pdp__panel { position: static; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .pdp__stage img { transition: none; } }
main > section:is(.pdp, .related):not(.hero, .section--hero, #_) { min-height: 0; height: auto; display: block; }
main > section:is(.pdp, .related):not(.hero, .section--hero, #_) > .wrap { display: block; height: auto; }

/* the drawer and its shade sit above the fixed bar (z-index 50) */
.drawer { z-index: 60; }
.shade { z-index: 55; }
.search { z-index: 56; }
.search__results .search__all a { display: inline-flex; grid-template-columns: none; border-bottom: 0; padding: 0; }
.site-foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot__legal { align-items: center; }
.announce__short { display: none; }
@media (max-width: 639px) { .announce__long { display: none; } .announce__short { display: inline; } }

/* the display face (Cormorant) sets figures in its lining form, so 46, CHF 25.– and prices stand on the line like the text face */
body, h1, h2, h3, .hx__facts dt, .pcard__price, .pdp__price, .search__results b, .tag b, .site-foot__mark { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---------- search v2: a lookbook search ---------- */
html.is-locked { overflow: hidden; }
.search { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px); background: var(--ivory); border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; transition: opacity 200ms ease-in, transform 200ms ease-in; max-height: calc(100svh - var(--nav)); overflow: auto; overscroll-behavior: contain; }
.search.is-open { transform: none; opacity: 1; transition: opacity 300ms ease-out, transform 300ms cubic-bezier(0, 0, .2, 1); }
.search__top { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: start; }
.search__form label { display: block; font: 500 13px/20px var(--font-text); letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.search__field { display: flex; align-items: center; gap: var(--s-4); border-bottom: 1px solid var(--navy); color: var(--navy); }
.search__field input { flex: 1; min-width: 0; height: 72px; border: 0; background: transparent; color: var(--navy); outline: none;
  font: 500 clamp(32px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__field:focus-within { border-bottom-width: 2px; margin-bottom: -1px; }
.search__clear { border: 0; background: none; color: var(--muted); font: 500 14px var(--font-text); min-height: 44px; padding: 0 var(--s-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.search__help { margin: var(--s-3) 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.search__close { border: 1px solid var(--line-strong); border-radius: 50%; margin-top: 24px; }
.search__suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-7); }
.search__suggest[hidden] { display: none; }
.search__label { margin: 0 0 var(--s-3); font: 500 13px/20px var(--font-text); letter-spacing: .04em; color: var(--muted); }
.search__suggest ul { list-style: none; margin: 0; padding: 0; display: grid; }
.search__suggest button { border: 0; background: none; padding: 0; min-height: 44px; color: var(--navy); cursor: pointer; text-align: left;
  font: 500 clamp(22px, 2vw, 28px)/1.2 var(--font-display); }
.search__suggest button:hover, .search__suggest button:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.search__count { margin: var(--s-6) 0 var(--s-4); font-size: 15px; line-height: 24px; color: var(--muted); }
.search__count:empty { display: none; }
.search__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.search__grid li { animation: search-in 200ms cubic-bezier(0, 0, .2, 1) both; animation-delay: calc(min(var(--i), 6) * 30ms); }
.search__grid a { display: grid; gap: 4px; color: var(--navy); text-decoration: none; }
.search__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); margin-bottom: var(--s-2); }
.search__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.search__grid a:hover .search__img img { transform: scale(1.03); }
.search__brand { font-size: 13px; line-height: 18px; color: var(--muted); }
.search__name { font: 500 15px/1.4 var(--font-text); }
.search__grid a:hover .search__name { text-decoration: underline; text-underline-offset: 3px; }
.search__price { font: 600 18px/1.2 var(--font-display); font-variant-numeric: lining-nums; }
.search__all { margin: var(--s-6) 0 0; }
.search__all[hidden] { display: none; }
@keyframes search-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1023px) { .search__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); }
  .search__suggest { grid-template-columns: 1fr; gap: var(--s-5); margin-top: var(--s-6); }
  .search__field input { height: 56px; }
  .search__close { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .search, .search.is-open { transform: none; transition: opacity 100ms linear; }
  .search__grid li { animation: none; }
  .search__img img { transition: none; }
}

/* small screens: the kit keeps only the main button in the bar; search and the selection stay reachable as icons */
.nav__bag-icon { display: none; }
@media (max-width: 1023px) {
  header.nav:not(.is-open) .nav__actions > :is(.nav__search, .nav__bag) { display: inline-flex; }
  header.nav .nav__bag { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; gap: 4px; color: var(--ivory); }
  header.nav .nav__bag-label { display: none; }
  header.nav .nav__bag-icon { display: block; }
  header.nav .nav__bag::before { display: none; }
}
@media (max-width: 639px) {
  header.nav:not(.is-open) .nav__actions > .btn--primary { display: none; }
  header.nav:not(.is-open) .nav__actions { gap: 0; }
}
/* while search is open the bar stays bright above the backdrop */
html.is-locked header.nav { z-index: 57; }
