/* SKINZIO storefront: the "Lagoon" design (chosen October 2026). Sand ground, deep lagoon teal,
   Fraunces for display and Instrument Sans for text. Square edges; colour comes from the product photos.
   Light-only on purpose. Classes starting lg- are the Lagoon page furniture (header, home, footer). */

@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces.069cb90e11a3.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Italic.fa7ce081be5e.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans.fa41c43a3d8e.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Dhivehi (Thaana) text only: the browser downloads these just when a page shows Thaana letters. */
@font-face { font-family: "SZ Thaana"; src: url("../fonts/NotoSansThaana-Regular.eeb26d760709.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2, U+FDFD; }
@font-face { font-family: "SZ Thaana"; src: url("../fonts/NotoSansThaana-Bold.ac6e2483f72b.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2, U+FDFD; }

:root {
  --paper: #F7F3EC;         /* page ground (sand) */
  --cream: #EDE4D6;         /* photo ground behind products */
  --porcelain: #EFE7DB;     /* secondary bands */
  --white: #FFFDF9;         /* cards, form fields */
  --ink: #10302C;           /* text, primary buttons, dark bands (deep lagoon) */
  --teal: #10302C;
  --teal-2: #2F6E66;        /* hover links and italic accents, 5.6:1 on sand */
  --teal-soft: #E5EEEA;
  --muted: #6B5F56;         /* secondary text, 5.4:1 on sand */
  --stone: #A9A39A;
  --rule: #E3D9CB;
  --success: #2F6B4F;
  --warning: #8A5A12;
  --danger: #A23B3B;
  --sale: #93463F;
  --lede: #3D4D4A;
  --field: #8F8377;         /* form-field borders, 3.4:1 (WCAG non-text contrast) */
  --on-dark: #EFE6D8;       /* text on the lagoon bands */
  --on-dark-muted: #C9D6D2;
  --display: "Fraunces", "SZ Thaana", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "SZ Thaana", "Helvetica Neue", Arial, sans-serif;
  --fs-cap: .75rem;         /* 12px tracked caps, the floor */
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lede: 1.125rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2rem, 1.5rem + 1.9vw, 2.75rem);      /* 32 to 44px */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);    /* 36 to 56px; the home hero sets its own, larger */
  --radius: 0;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* hidden always wins over a component's display rule */
/* #links land exactly under the sticky header (site.js measures it into --header-h), clear of the chat button. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h, 77px); scroll-padding-bottom: 88px; }
@media (max-width: 860px) { html { scroll-padding-top: var(--header-h, 106px); } }
/* lining-nums keeps figures even, so "SKIN1004" never reads as "SKIN1oo4". */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-base)/1.6 var(--sans); font-variant-numeric: lining-nums;
  min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 2px; }
/* Typed text takes its direction from what's typed, so Dhivehi reads right to left. */
input:not([type]), input[type="text"], input[type="search"], textarea { unicode-bidi: plaintext; }
.lg-announce :focus-visible, .lg-routine :focus-visible, .site-footer :focus-visible, .chat-panel header :focus-visible,
.msg.you :focus-visible { outline-color: var(--on-dark); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; color: var(--teal-2); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }
.caps { font-family: var(--sans); font-size: var(--fs-cap); font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.caps a { color: inherit; text-decoration: none; }
.small { font-size: var(--fs-sm); color: var(--muted); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--lede); max-width: 38rem; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: inherit; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.empty { padding-block: 32px; color: var(--muted); }

/* Logo rule-and-dot motif, used to open sections */
.rule-dot { display: flex; align-items: center; gap: 10px; width: 120px; color: var(--stone); }
.rule-dot::before, .rule-dot::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule-dot i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* Header: navigation left, wordmark centred, bag right */
/* Solid, not see-through: over the dark bands, the footer or a photo, a translucent bar took on their colour. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { color: var(--ink); display: block; flex: none; }
.wordmark { width: 100%; height: auto; display: block; }
.bag { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.bag svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 0; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 500; line-height: 20px; text-align: center; }
.bag-count:empty { display: none; }
.lg-announce { background: var(--ink); color: var(--on-dark); text-align: center; font-size: .8125rem; letter-spacing: .04em; padding: 9px var(--gutter); }
.lg-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.lg-header .brand { width: 168px; }
.lg-nav { display: flex; gap: 28px; font-size: .95rem; }
.lg-nav a, .lg-track { color: var(--ink); text-decoration: none; }
.lg-nav a:hover, .lg-track:hover { text-decoration: underline; }
.lg-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.lg-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: .95rem; }
@media (max-width: 860px) {
  .lg-header-row { grid-template-columns: auto 1fr; gap: 10px 16px; min-height: 60px; padding-block: 8px 0; }
  .lg-header .brand { width: 128px; grid-row: 1; }
  .lg-tools { grid-row: 1; }
  .lg-track { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .lg-nav { grid-column: 1 / -1; overflow-x: auto; gap: 22px; padding-bottom: 0; white-space: nowrap; scrollbar-width: none; font-size: .9rem; }
  .lg-nav a { padding-block: 10px; }
  .lg-header .brand { padding-block: 10px; }
}
@media (max-width: 370px) { .lg-nav { gap: 16px; font-size: .875rem; } }

/* Flash */
.flash-stack { display: grid; gap: 8px; padding-top: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); background: var(--teal-soft); color: var(--ink); font-size: .92rem; }
.flash-error { background: #F6DCD7; color: #6E2626; }
.flash-success { background: #DDEBDF; color: #1F4A35; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 0; border: 1px solid var(--teal); font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn .icon { width: 18px; height: 18px; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .82rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
/* Small links in running text get a taller tap area without moving the text around them. */
.linklike, .crumbs a, .pdp-info > .caps a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home page */
.lg-eyebrow { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lg-accent { color: var(--teal-2); }
.lg-block { padding-block: clamp(44px, 6vw, 80px); display: grid; gap: 32px; }
.lg-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; }
.lg-head > div { display: grid; gap: 8px; }
.lg-head > a { font-size: .95rem; }

/* Hero */
.lg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 56px); }
.lg-hero-copy { display: grid; gap: 24px; }
.lg-hero h1 { font-size: clamp(2.125rem, 1.4rem + 3.8vw, 4.5rem); }
.lg-hero .lede { font-size: 1.1875rem; max-width: 32rem; }
.lg-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.lg-stats div { display: grid; }
.lg-stats dt { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.lg-stats dd { margin: 0; font-size: .875rem; color: var(--lede); }
.lg-hero-art { position: relative; aspect-ratio: 1 / 1; }
.lg-hero-fig { position: absolute; margin: 0; width: 54%; aspect-ratio: 511 / 600; overflow: hidden; background: var(--backdrop, var(--cream)); }
.lg-hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.lg-hero-fig:nth-child(1) { left: 0; top: 12%; }
.lg-hero-fig:nth-child(2) { right: 0; top: 0; box-shadow: 0 30px 60px -30px rgba(16, 48, 44, .5); }
.lg-slots { position: absolute; right: 6%; bottom: 0; display: grid; gap: 4px; max-width: 260px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); }
.lg-slots-time { font-family: var(--display); font-size: 1.375rem; line-height: 1.2; }
@media (max-width: 760px) {
  .lg-hero { grid-template-columns: 1fr; }
  .lg-hero-art { aspect-ratio: 6 / 5; }
  .lg-hero-fig { width: 50%; }
  .lg-slots { right: auto; left: 0; bottom: 0; padding: 12px 16px; }
  .lg-slots-time { font-size: 1.125rem; }
  .lg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .lg-stats dt { font-size: 1.5rem; }
  .lg-stats dd { font-size: .8125rem; line-height: 1.3; }
}

/* Routine */
.lg-routine { background: var(--ink); color: var(--on-dark); margin-top: 24px; }
.lg-routine .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 40px; }
.lg-routine h2 { color: var(--paper); }
.lg-routine .lg-eyebrow { color: #A9BFBA; }
.lg-routine-note { max-width: 26rem; color: var(--on-dark-muted); }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #2E504B; }
.lg-steps li { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 8px 0; border-right: 1px solid #2E504B; }
.lg-steps li + li { padding-left: 24px; }
.lg-steps li:last-child { border-right: 0; }
.lg-step-n { font-family: var(--display); font-size: 3.25rem; line-height: 1; color: #8FB8B0; }
.lg-steps strong { font-size: 1.25rem; font-weight: 500; color: var(--paper); }
.lg-step-text { color: var(--on-dark-muted); font-size: .95rem; }
.lg-step-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.lg-step-links a { color: var(--paper); font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .plain a { display: inline-block; padding-block: 6px; }
.lg-step-links a:hover { color: #8FB8B0; }
@media (max-width: 900px) {
  .lg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-steps li:nth-child(2) { border-right: 0; }
  .lg-steps li:nth-child(3) { padding-left: 0; }
  .lg-steps li:nth-child(n+3) { border-top: 1px solid #2E504B; }
}
@media (max-width: 480px) {
  .lg-steps { grid-template-columns: 1fr; }
  .lg-steps li, .lg-steps li + li { padding: 22px 0 18px; border-right: 0; }
  .lg-steps li + li { border-top: 1px solid #2E504B; }
}

/* Concerns */
.lg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 6vw, 64px); align-items: start; }
.lg-split-copy { display: grid; gap: 16px; }
.lg-concerns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 56px); }
.lg-concerns a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.375rem; }
.lg-concerns a:hover { color: var(--teal-2); }
.lg-count { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) {
  .lg-split { grid-template-columns: 1fr; }
  .lg-concerns a { font-size: 1.1875rem; }
}

/* Ingredient notes */
.lg-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lg-notes article { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--rule); }
.lg-notes h3 { font-size: 1.75rem; line-height: 1.1; }
.lg-notes p:not(.lg-eyebrow) { color: var(--lede); }
.lg-notes a { margin-top: auto; font-size: .95rem; }
@media (max-width: 860px) { .lg-notes { grid-template-columns: 1fr; } }

/* Brands band */
.lg-brands { border-block: 1px solid var(--rule); background: var(--porcelain); }
.lg-brands-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 36px; padding-block: 32px; }
.lg-brands-row a { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); color: var(--ink); text-decoration: none; }
.lg-brands-row a:hover { color: var(--teal-2); }
@media (max-width: 640px) { .lg-brands-row { justify-content: flex-start; gap: 10px 24px; } .lg-brands-row .lg-eyebrow { flex-basis: 100%; } }

/* Instagram */
.lg-feed { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lg-feed a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--backdrop, var(--cream)); }
.lg-feed img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lg-feed a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .lg-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Delivery and help band */
.lg-info { background: var(--teal-soft); }
.lg-info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-block: 44px; }
.lg-info strong { font-family: var(--display); font-size: 1.375rem; font-weight: 500; }
.lg-info p { margin-top: 6px; color: var(--lede); }

.lg-about { max-width: 46rem; gap: 12px; color: var(--lede); }
.lg-about h2 { font-size: var(--fs-h3); color: var(--ink); }

/* Sections */
.block { padding-block: clamp(32px, 5vw, 56px); display: grid; gap: 22px; align-content: start; }
.block-head { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: end; }
.block-head > .rule-dot, .block-head > .caps { grid-column: 1 / -1; }
.block-head .more, .block-head .count { font-size: var(--fs-sm); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: var(--fs-cap); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; padding: 8px 15px; border: 1px solid var(--rule); background: transparent; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.chip:hover { border-color: var(--teal); }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.card-media { display: block; aspect-ratio: 511 / 600; overflow: hidden; background: var(--backdrop, var(--cream)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: grid; gap: 3px; align-content: start; }
.card-brand { font-size: var(--fs-cap); letter-spacing: .16em; }
.card-title { font-family: var(--display); font-size: 1.1875rem; font-weight: 500; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-meta { font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; color: var(--lede); }
.card-meta .size { font-size: 1em; }
.card-meta .price { color: var(--ink); font-weight: 600; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; }
.was { color: var(--muted); font-size: .85em; }
.size { color: var(--muted); font-size: .85em; }
.stock { font-size: var(--fs-sm); font-weight: 500; }
.stock-out, .stock-sold_out { color: var(--danger); }
.stock-low { color: var(--warning); }
.stock-in_stock { color: var(--success); }
.lg-card { gap: 12px; grid-template-rows: auto 1fr auto; }
.card-brand { letter-spacing: .16em; }
.card-title { font-family: var(--display); font-size: 1.1875rem; font-weight: 500; line-height: 1.25; }
.card-meta { color: var(--lede); }
.card-meta .size { font-size: 1em; }
.card-meta .price { color: var(--ink); font-weight: 600; }
.lg-card-add .btn, .lg-card-choose { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.lg-low { color: var(--muted); font-weight: 400; }
.lg-card-out { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--danger); font-size: .9rem; }
@media (max-width: 640px) {
  .card-title { font-size: 1.0625rem; }
  .lg-card-add .btn, .lg-card-choose { font-size: .85rem; }
  .lg-low { display: none; }
}


/* Shop filters */
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 10px; }
.filters label { display: grid; gap: 4px; font-size: var(--fs-cap); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.filters select { min-width: 0; padding-inline: 8px; font-size: 1rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters label { letter-spacing: .08em; } .filters label:last-of-type { grid-column: 1 / -1; } }
.chip-on { border-color: var(--teal); background: var(--teal-soft); }
.step-group { display: grid; gap: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.step-head { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-h3); }
.step-num { font: 500 .8125rem var(--sans); letter-spacing: .12em; color: var(--muted); }

/* Forms */
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: var(--radius); padding: 11px 12px; width: 100%; min-height: 46px; }
textarea { min-height: 0; resize: vertical; }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--teal); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-2); outline-offset: 0; border-color: var(--teal-2); }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field .help { font-size: .8125rem; color: var(--muted); }
.field .error, .error { font-size: .8125rem; color: var(--danger); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; min-height: 44px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-family: var(--display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; margin-bottom: 10px; padding: 0; }
.stack-form { display: grid; gap: 14px; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: clamp(24px, 4vw, 48px); align-items: start; }
.pdp-media { display: grid; gap: 12px; }
.pdp-media img, .pdp-placeholder { width: 100%; aspect-ratio: 511 / 600; object-fit: cover; background: var(--backdrop, var(--cream)); }
.pdp-info { display: grid; gap: 18px; position: sticky; top: 88px; }
.pdp-info h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }
.pdp-price { font-size: 1.5rem; }
.size-line { color: var(--muted); }
.buy { display: grid; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--rule); }
.buy-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9375rem; }
.ask { display: grid; gap: 8px; font-size: .9375rem; }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-section { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pdp-section h2 { font-size: var(--fs-h3); }
.pdp-section ul { margin: 0; padding-left: 1.1rem; }
.pdp-section li + li { margin-top: 6px; }
.pdp-section li strong { font-weight: 500; }
details.pdp-section summary { cursor: pointer; font-weight: 500; }
.inci { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .pdp-media { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .pdp-media:has(> :only-child) { grid-auto-columns: 100%; }
  .pdp-media img { scroll-snap-align: start; }
}
@media (min-width: 761px) and (max-width: 860px) {
  /* Tablets: two photos side by side, so the price and Add to bag show without scrolling past one big photo. */
  .pdp-media { grid-auto-columns: 46%; }
  .pdp-media:has(> :only-child) { grid-auto-columns: 60%; justify-content: center; }
}

/* Bag */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; background: var(--paper); }
.line-media { display: block; width: 80px; aspect-ratio: 511 / 600; overflow: hidden; background: var(--backdrop, var(--cream)); }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: grid; gap: 2px; min-width: 0; }
.line-info a { color: var(--ink); text-decoration: none; font-weight: 500; }
.line-qty { display: grid; gap: 6px; justify-items: end; }
.line-qty input { width: 72px; text-align: center; }
.line-total { font-variant-numeric: tabular-nums; font-size: .92rem; white-space: nowrap; }
.bag-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; }
.bag-foot .btn { white-space: nowrap; }
.subtotal { font-size: 1.05rem; white-space: nowrap; }
.bag-cta { display: grid; gap: 10px; padding-top: 10px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout-form { display: grid; gap: 28px; }
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout [data-for] { display: grid; gap: 14px; }
.zone { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.zone:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.zone span { display: grid; gap: 2px; }
.zone small { color: var(--muted); }
.summary { position: sticky; top: 88px; background: var(--white); border: 1px solid var(--rule); padding: 20px; display: grid; gap: 14px; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li > :last-child { flex: none; white-space: nowrap; }
.summary-lines small { color: var(--muted); }
.totals { margin: 0; display: grid; gap: 6px; border-top: 1px solid var(--rule); padding-top: 12px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-size: 1.15rem; font-weight: 500; padding-top: 4px; }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; list-style: none; }
.summary-head::-webkit-details-marker { display: none; }
.summary-total { display: none; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; padding: 14px 16px; }
  .summary:not([open]) { gap: 0; }
  /* Folded to one line on phones, so the form starts near the top; tap to see the items. */
  .summary-head { cursor: pointer; min-height: 44px; align-items: center; }
  .summary-total { display: inline; font-weight: 500; white-space: nowrap; }
  .summary-head h2 { min-width: 0; }
  .summary-total::after { content: " ▾"; color: var(--muted); }
  .summary[open] .summary-total::after { content: " ▴"; }
}

/* Order status */
.pay-box { display: grid; gap: 14px; padding: 22px; background: var(--porcelain); }
.banks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.banks li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); }
.banks .caps { grid-column: 1 / -1; }
.banks .acct { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.banks button { grid-row: 2 / 4; grid-column: 2; align-self: center; }
.slip-form { display: grid; gap: 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--rule); display: grid; gap: 10px; }
.timeline li { position: relative; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.timeline .when { display: block; font-size: .8125rem; color: var(--muted); }
.order-card { display: grid; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--rule); }
dl.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; }

/* Prose pages */
.prose { line-height: 1.7; }
.prose h2 { margin-top: 18px; font-size: var(--fs-h3); }
.prose ul { padding-left: 1.2rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }

/* Footer */
.site-footer { margin-top: 48px; background: var(--ink); color: var(--on-dark-muted); padding-block: 56px 28px; }
.site-footer .plain { gap: 8px; }
/* Footer link lists are navigation, so no underline until hover or keyboard focus. */
.site-footer .plain a { text-decoration: none; }
.site-footer .plain a:hover, .site-footer .plain a:focus-visible { text-decoration: underline; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(239, 230, 216, .35); color: var(--on-dark); transition: background-color .2s, color .2s; }
.social a:hover, .social a:focus-visible { background: var(--on-dark); color: var(--ink); }
.fine { font-size: .8125rem; color: #8FA8A3; margin-top: 28px; }
.lg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.lg-footer-brand { display: grid; gap: 14px; align-content: start; max-width: 220px; color: var(--on-dark); }
.lg-footer-brand .caps { color: var(--on-dark-muted); }
.lg-footer-h { margin-bottom: 12px; font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--on-dark); letter-spacing: 0; }
.lg-footer a { color: var(--on-dark-muted); }
.lg-footer a:hover { color: var(--paper); }
@media (max-width: 860px) { .lg-footer-grid { grid-template-columns: 1fr 1fr; } .lg-footer-brand { grid-column: 1 / -1; } }


/* Chat widget */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
/* The light ring keeps the button visible when it floats over the dark footer. */
.chat-toggle { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 1.5px solid var(--on-dark); background: var(--ink); color: var(--paper); font: 500 .9375rem var(--sans); box-shadow: 0 10px 30px -12px rgba(22, 48, 46, .6); cursor: pointer; }
.chat-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chat-panel { position: absolute; right: 0; bottom: 60px; width: min(360px, calc(100vw - 32px)); max-height: min(520px, 70vh); display: grid; grid-template-rows: auto 1fr auto; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 20px 50px -20px rgba(16, 48, 44, .5); overflow: hidden; }
.msg.chat-error { max-width: none; justify-self: stretch; text-align: center; font-size: .8125rem; color: var(--danger); background: none; border: 1px dashed var(--danger); }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--teal); color: var(--paper); }
.chat-close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-log { list-style: none; margin: 0; padding: 12px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 0; font-size: .9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.shop { background: var(--porcelain); justify-self: start; }
.msg.you { background: var(--teal); color: var(--paper); justify-self: end; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); }
.chat-form textarea { min-height: 44px; }

/* Skin match (two questions, routine from what's in stock) */
.match-page { padding-block: clamp(28px, 5vw, 56px); }
.match { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.match-questions { display: grid; gap: 24px; min-width: 0; }
.match-intro { display: grid; gap: 12px; }
.match-title { font-size: var(--fs-h1); }
.match legend { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.match-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.match-opt { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 8px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500; text-align: center; line-height: 1.25; }
.match-opt:hover { border-color: var(--teal); color: var(--ink); }
.match-opt[aria-current] { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.match-goal { min-height: 70px; }
.match-goal strong { font-weight: 600; }
.match-goal span { font-size: .8125rem; opacity: .8; }
.match-result { display: grid; gap: 16px; min-width: 0; padding: clamp(18px, 3vw, 26px); background: var(--white); border: 1px solid var(--rule); box-shadow: 0 24px 60px -36px rgba(16, 48, 44, .45); }
.match-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.match-head strong { font-size: 1.25rem; font-weight: 600; }
.match-head > span { font-size: var(--fs-sm); color: var(--muted); }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.match-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); background: var(--paper); }
.match-list img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.match-item { display: grid; gap: 2px; min-width: 0; }
.match-step { font-size: var(--fs-cap); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.match-item a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3; }
.match-item a:hover { text-decoration: underline; }
.match-list .price { font-size: .9375rem; }
.match-list .match-none { display: block; padding: 14px; color: var(--muted); }
.match-tip { padding: 12px 14px; border-radius: var(--radius); background: #FFF4EA; color: #4A2A14; font-size: .9375rem; }
.match-foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.match-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: .9375rem; }
.match-total strong { color: var(--ink); font-size: 1.375rem; }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.match-actions form { flex: 1 1 170px; display: grid; }
.match-actions .btn-ghost { flex: 1 1 170px; }
.match-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 860px) { .match { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .match-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) {
  .match-list li { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; }
  .match-list img { width: 52px; height: 52px; grid-row: span 2; }
  .match-list .price { grid-column: 2; }
}

/* Phones -------------------------------------------------------------------------------------------- */

/* The page's main action in a bar pinned to the bottom of the screen (product page, bag); on bigger screens it
   sits in the page as a normal button. The chat button moves up above it. */
.buybar { display: grid; gap: 10px; }
/* Bag, checkout and order pages: no floating chat button at any width (it covered Checkout and prices); the page
   has a "Chat with us" link that opens the same chat. */
.no-chat-button .chat-toggle { display: none; }
.buybar-price { display: none; }
.buybar-phone { display: none; }
/* Phones, held either way up: a phone on its side is wide but short, and needs the same bottom bar and chat
   button (larger landscape screens, tablets, keep the desktop ones). */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) and (max-width: 1000px) {
  .buybar-phone { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 !important; }
  .has-buybar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .buybar, .buybar-phone { z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -12px 24px -20px rgba(16, 48, 44, .5); }
  .buybar-price { display: grid; line-height: 1.25; min-width: 0; }
  .buybar-price small { color: var(--muted); font-size: .8125rem; }
  .buybar:not(.buybar-phone) { position: sticky; bottom: 0; }  /* the product page's bar is fixed, above */
  .buybar .btn, .buybar-phone .btn { flex: 0 0 auto; min-width: 46%; white-space: nowrap; }
  .buybar-price small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buybar-phone.is-quiet { visibility: hidden; }  /* the page's own Add to bag is on screen */
  /* Bag, checkout and order pages: no floating chat button (it covered the + buttons and prices); the page
     has a "Questions? Chat with us" link that opens the same chat. */
  .no-chat-button .chat-panel { bottom: 0; }
  .checkout-form [data-place-order] { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30; box-shadow: 0 12px 28px -14px rgba(16, 48, 44, .7); }
  /* Chat: a light rounded "Chat" button, so it reads as a button floating over the page rather than a dark block
     on top of the photos. Lifted above the bottom bar where there is one. */
  .chat-toggle { height: 44px; padding: 0 16px; gap: 6px; border-radius: 999px; background: var(--white); color: var(--ink); border: 1px solid var(--field); box-shadow: 0 8px 24px -10px rgba(16, 48, 44, .5); font-size: .9rem; }
  .chat-toggle svg { width: 18px; height: 18px; }
  .chat-toggle[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--on-dark); }
  .has-buybar .chat { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .has-buybar .chat-panel { max-height: min(520px, calc(100dvh - 240px)); }
  /* Thumb-sized controls. */
  .line-qty .linklike { min-height: 44px; padding-inline: 6px; }
  .lg-footer-grid > div:last-child { grid-column: 1 / -1; }
  .pdp-placeholder { max-height: 42vh; }
}
.chat-panel { max-height: min(520px, calc(100dvh - 100px)); }
.chat-close { width: 44px; height: 44px; margin: -10px -12px -10px 0; }
@media (max-width: 360px) { .zone { padding-inline: 10px; } .zone strong { overflow-wrap: anywhere; } }

/* Landscape phones: the header scrolls away and photos fit the screen height. */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
  .pdp-media img { max-height: 80svh; width: auto; max-width: 100%; justify-self: center; }
}

/* Bag quantity: − and + either side of the number, each a full thumb's width. */
.stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; border: 1px solid var(--field); background: var(--white); }
.stepper input { width: 100%; min-height: 44px; border: 0; border-inline: 1px solid var(--rule); text-align: center; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step { min-height: 44px; border: 0; background: none; color: var(--teal); font: 500 1.25rem/1 var(--sans); cursor: pointer; }
.step:hover { background: var(--teal-soft); }

/* Order page: the amount and remark with Copy buttons; a big, clear slip picker. */
.copy-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copy-rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 12px; padding: 8px 14px; background: var(--paper); }
.copy-rows span { color: var(--muted); font-size: .875rem; }
.pay-again > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 500; list-style: none; }
.pay-again > summary::-webkit-details-marker { display: none; }
.pay-again > summary::before { content: "▸"; color: var(--muted); }
.pay-again[open] > summary::before { content: "▾"; }
.pay-again[open] { display: grid; gap: 14px; }
.btn-small { min-height: 44px; }
input[type="file"] { padding: 6px; }
input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--teal); background: var(--paper); color: var(--teal); font: 500 .9375rem var(--sans); cursor: pointer; }

/* Card "Added" note, shown at the bottom of the screen without leaving the page. */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--ink); color: var(--paper); border: 1px solid var(--on-dark); box-shadow: 0 16px 40px -18px rgba(16, 48, 44, .7); font-size: .9375rem; }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 500; white-space: nowrap; }
.toast.error { background: #6E2626; }

/* A product without a photo: its brand initial on the backdrop instead of an empty block. */
.photo-ph { display: grid; place-items: center; width: 100%; height: 100%; font: 400 clamp(2.5rem, 8vw, 4rem)/1 var(--display); color: rgba(16, 48, 44, .35); }
.match-ph { display: block; width: 72px; height: 72px; background: var(--cream); }
.gallery-count { justify-self: end; margin: -6px 0 0; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Bag lines on narrow phones: photo + name, then the quantity row underneath, so names keep their width. */
@media (max-width: 480px) {
  .line { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .line-media { width: 72px; }
  .line-qty { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
}
@media (max-width: 360px) {
  .stepper { grid-template-columns: 40px 48px 40px; }  /* stepper, total and Remove fit one row at 320px */
  .line-qty .linklike { padding-inline: 0; }
}
.line-media .photo-ph { font-size: 2rem; }
.line-note { font-size: .8125rem; color: var(--warning); }

/* Landscape phones: product photos sized to the screen, and the counter reads right. */
@media (max-height: 500px) and (orientation: landscape) {
  .pdp-media { grid-auto-columns: max-content; scroll-snap-type: x proximity; }
}

/* Touch screens don't keep a button "hovered" after a tap. */
@media (hover: none) {
  .btn-ghost:hover { background: transparent; color: var(--teal); }
  .btn-primary:hover { background: var(--teal); }
}

/* Shop filters on phones: tucked into one "Filter & sort" row, brands in a row you swipe. */
.filter-fold > summary { display: none; }
@media (max-width: 640px) {
  .filter-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border: 1px solid var(--field); background: var(--white); cursor: pointer; list-style: none; font-weight: 500; }
  .filter-fold > summary::-webkit-details-marker { display: none; }
  .filter-fold > summary::after { content: "▾"; color: var(--muted); }
  .filter-fold[open] > summary::after { content: "▴"; }
  .filter-fold[open] > .filters { margin-top: 10px; }
  .brand-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .brand-chips .chip { flex: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
