/* =========================================================
   Maison Lilith web shop — from the approved Claude Design canvas (2026-10-12)
   Source of truth for colour: brand book v1.0.
   Rules: no #FFFFFF anywhere (Paper is brand white); House Gold is accent only
   (type, rules, small chips, one CTA); Navy Ink is wordmark-only and not used here.
   ========================================================= */

:root {
  --satin-shadow: #0F0505;
  --passion-eclipse: #3A090C;
  --burgundy: #5C1622;
  --crimson-kiss: #8B1021;
  --house-gold: #C8A968;
  --champagne: #E1C18F;
  --paper: #F4ECE2;

  --paper-82: rgba(244, 236, 226, 0.82);
  --paper-75: rgba(244, 236, 226, 0.75);
  --ink-75: rgba(58, 9, 12, 0.78);
  --gold-rule: rgba(200, 169, 104, 0.35);
  --wine-rule: rgba(92, 22, 34, 0.25);

  --serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --sans: "Inter", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--satin-shadow); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--house-gold); }
a:hover { color: var(--champagne); }
:focus-visible { outline: 2px solid var(--house-gold); outline-offset: 3px; }
.serif { font-family: var(--serif); font-weight: 500; }
.center { text-align: center; }
.wrap { max-width: 1280px; margin: 0 auto; }
.crimson { color: var(--crimson-kiss); }
.hint { font-size: 13px; color: inherit; opacity: .8; margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--house-gold); color: var(--satin-shadow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-block; color: var(--house-gold); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.eyebrow--crimson { color: var(--crimson-kiss); }
.rule { width: 64px; border: 0; border-top: 1px solid var(--house-gold); margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--gold { background: var(--house-gold); color: var(--satin-shadow); }
.btn--gold:hover { background: var(--champagne); color: var(--satin-shadow); }
.btn--wine { background: var(--burgundy); color: var(--paper); }
.btn--wine:hover { background: var(--crimson-kiss); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--passion-eclipse); }
.btn--paper:hover { background: var(--champagne); }
.btn--dark { background: var(--passion-eclipse); color: var(--paper); padding: 0 18px; min-height: 46px; letter-spacing: .14em; font-size: 12px; }
.btn--line { background: transparent; border: 1px solid var(--house-gold); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 12px; letter-spacing: .14em; }
.btn--block { width: 100%; min-height: 56px; font-size: 14px; }
.btn--grow { flex: 1 1 240px; min-height: 54px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: inherit; cursor: pointer; }

/* Announcement + nav */
.announce { background: var(--passion-eclipse); color: var(--champagne); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 10px 16px; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 5, 5, .94); border-bottom: 1px solid rgba(200, 169, 104, .25); backdrop-filter: blur(6px); }
.nav__inner { max-width: 1280px; margin: 0 auto; padding: 12px var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.nav__mark img { height: 44px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { color: var(--paper); text-decoration: none; padding: 6px 0; }
.nav__links a:hover { color: var(--house-gold); }
.nav__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid rgba(200, 169, 104, .5); border-radius: 999px; overflow: hidden; font-size: 12px; letter-spacing: .1em; }
.lang a { color: var(--paper); text-decoration: none; padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; }
.lang a[aria-current="true"] { background: var(--house-gold); color: var(--satin-shadow); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--paper); font: inherit; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cart-btn__count { background: var(--crimson-kiss); color: var(--paper); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 0; }
@media (max-width: 760px) {
  .nav__links { order: 3; width: 100%; justify-content: space-between; gap: 8px 16px; font-size: 12px; letter-spacing: .1em; }
  .cart-btn__label { position: absolute; left: -9999px; }
  .nav__mark img { height: 36px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); background: var(--passion-eclipse); }
.hero__copy { padding: clamp(56px, 9vw, 120px) clamp(16px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero__mark { margin: 0; }
.hero__mark img { width: min(420px, 100%); height: auto; }
.hero__tag { margin: 0; font-style: italic; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.hero__lead { margin: 0; max-width: 440px; color: var(--paper-82); line-height: 1.7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__price { font-size: 22px; color: var(--champagne); }
.hero__img { min-height: 420px; position: relative; overflow: hidden; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Manifesto */
.manifesto { background: var(--burgundy); padding: clamp(72px, 9vw, 128px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.manifesto__quote { margin: 0; font-style: italic; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.manifesto__body { margin: 0; max-width: 760px; font-size: 17px; line-height: 1.8; color: rgba(244, 236, 226, .86); }

/* Collection */
.collection { background: var(--paper); color: var(--passion-eclipse); padding: var(--section) var(--pad); }
.collection .wrap { display: flex; flex-direction: column; gap: 48px; }
.collection__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.collection__head h2 { margin: 12px 0 0; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; }
.offer { border: 1px solid var(--burgundy); padding: 14px 20px; display: flex; gap: 14px; align-items: center; max-width: 460px; font-size: 14px; line-height: 1.5; }
.offer__tag { background: var(--burgundy); color: var(--paper); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; white-space: nowrap; }
.offer--wine { background: var(--burgundy); color: var(--paper); border: 0; max-width: none; }
.offer__tag--gold { background: var(--house-gold); color: var(--satin-shadow); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--burgundy); color: var(--paper); display: flex; flex-direction: column; }
.card__img { display: block; padding: 14px 14px 0; }
.card__frame { display: block; background: var(--paper); aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; }
.card__frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card__no { color: var(--house-gold); font-size: 12px; letter-spacing: .22em; }
.card__name { margin: 0; font-size: 30px; line-height: 1; }
.card__name a { color: var(--paper); text-decoration: none; }
.card__name a:hover { color: var(--champagne); }
.card__family { font-size: 12px; letter-spacing: .08em; color: var(--paper-75); }
.card__mood { margin: 0; font-style: italic; font-size: 18px; line-height: 1.3; color: var(--champagne); flex-grow: 1; }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; border-top: 1px solid var(--gold-rule); padding-top: 14px; }
.card__price { font-size: 26px; }
del { opacity: .65; font-size: .8em; }
ins { text-decoration: none; }
.aphrodite { margin: 0; text-align: center; font-style: italic; font-size: 22px; color: var(--burgundy); }

/* Bottle photos multiply onto a Paper frame (isolation keeps the blend inside the frame)
   so the near-white studio background disappears without tinting the bottle. */
.gallery__thumbs button, .pair__img, .line__img { isolation: isolate; }

/* Moods */
.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.moods figure { margin: 0; position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.moods img { width: 100%; height: 100%; object-fit: cover; }
.moods figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 22px; background: linear-gradient(to top, rgba(15, 5, 5, .85), rgba(15, 5, 5, 0)); font-style: italic; font-size: 30px; }

/* House values */
.house { padding: clamp(64px, 8vw, 104px) var(--pad); }
.house__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: rgba(200, 169, 104, .3); border: 1px solid rgba(200, 169, 104, .3); }
.house__grid > div { background: var(--satin-shadow); padding: 36px 32px; }
.house__grid h3 { margin: 0 0 10px; font-size: 26px; }
.house__grid p { margin: 0; color: rgba(244, 236, 226, .78); line-height: 1.7; }

/* Footer */
.foot { background: var(--passion-eclipse); padding: 64px var(--pad) 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.foot > img { width: 200px; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 13px; }
.foot hr { width: 100%; max-width: 1280px; border: 0; border-top: 1px solid rgba(200, 169, 104, .3); margin: 8px 0 0; }
.foot__legal { margin: 0; font-size: 12px; color: rgba(244, 236, 226, .7); line-height: 1.8; }

/* Product page */
.phero { background: var(--passion-eclipse); padding: 56px var(--pad) 48px; }
.phero .wrap { display: flex; flex-direction: column; gap: 10px; }
.crumbs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 236, 226, .7); }
.crumbs a { color: var(--champagne); text-decoration: none; }
.phero__name { margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: .95; }
.phero__mood { margin: 0; font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--champagne); }
.pdetail { background: var(--paper); color: var(--passion-eclipse); padding: clamp(40px, 6vw, 80px) var(--pad); }
.pdetail a { color: var(--burgundy); }
.pdetail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery__main { border: 14px solid var(--burgundy); aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); isolation: isolate; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; background: var(--paper); aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--burgundy); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pinfo { display: flex; flex-direction: column; gap: 26px; }
.pinfo__price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pinfo__amount { font-size: 48px; line-height: 1; }
.pinfo .hint { color: var(--ink-75); opacity: 1; }
.meta { margin: 0; display: grid; grid-template-columns: 110px 1fr; row-gap: 14px; column-gap: 20px; border-top: 1px solid rgba(92, 22, 34, .3); border-bottom: 1px solid rgba(92, 22, 34, .3); padding: 22px 0; font-size: 15px; }
.meta dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson-kiss); padding-top: 4px; }
.meta dd { margin: 0; }
.meta--dark { border-color: var(--gold-rule); max-width: 520px; }
.meta--dark dt { color: var(--house-gold); }
.buyrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1px solid var(--burgundy); }
.qty button { width: 48px; min-height: 52px; background: transparent; border: 0; font-size: 22px; color: var(--passion-eclipse); cursor: pointer; }
.qty output { min-width: 36px; text-align: center; font-size: 17px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-75); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { color: var(--crimson-kiss); flex-shrink: 0; }
.desc h2 { margin: 0 0 8px; font-size: 28px; }
.desc p { margin: 0 0 12px; line-height: 1.8; }
.pair { background: var(--passion-eclipse); padding: 64px var(--pad); }
.pair h2 { margin: 0 0 28px; font-size: 36px; }
.pair__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pair__item { display: flex; gap: 14px; align-items: center; background: var(--burgundy); padding: 12px; text-decoration: none; color: var(--paper); }
.pair__item:hover { color: var(--paper); background: #6a1a28; }
.pair__img { width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; background: var(--paper); }
.pair__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pair__txt { display: flex; flex-direction: column; gap: 2px; }
.pair__name { font-size: 22px; }

/* Success / simple pages */
.done { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); background: var(--passion-eclipse); min-height: 70vh; }
.done__copy { padding: clamp(48px, 7vw, 96px) clamp(16px, 6vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.done__copy h1 { margin: 0; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.done__copy h1 em { color: var(--champagne); }
.done__copy p { margin: 0; max-width: 480px; color: var(--paper-82); line-height: 1.75; }
.done__img { position: relative; min-height: 360px; overflow: hidden; }
.done__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.simple { min-height: 50vh; padding: var(--section) var(--pad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; background: var(--passion-eclipse); }
.simple h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); }
.simple p { margin: 0; max-width: 560px; color: var(--paper-82); }
.simple--paper { background: var(--paper); color: var(--passion-eclipse); }
.simple--paper p { color: var(--ink-75); }

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15, 5, 5, .72); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 50; background: var(--paper); color: var(--passion-eclipse); display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(0, 0, 0, .45); }
.drawer a { color: var(--burgundy); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--wine-rule); }
.drawer__head h2 { margin: 0; font-size: 30px; }
.drawer__count { font-size: 20px; color: var(--crimson-kiss); }
.drawer__body { flex-grow: 1; overflow-y: auto; padding: 4px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { border-top: 1px solid var(--wine-rule); padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.drawer__foot .hint { color: var(--ink-75); opacity: 1; font-size: 12px; }
.drawer__notice:empty, .code__msg:empty { display: none; }
.drawer__notice { font-size: 13px; color: var(--crimson-kiss); }
.empty { padding: 40px 0; text-align: center; color: var(--ink-75); }
.line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(92, 22, 34, .18); }
.line__img { width: 76px; height: 94px; border: 6px solid var(--burgundy); overflow: hidden; flex-shrink: 0; background: var(--paper); }
.line__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.line__main { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.line__sub { font-size: 12px; letter-spacing: .1em; color: var(--ink-75); }
.line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.line .qty { border-color: rgba(92, 22, 34, .5); }
.line .qty button { width: 40px; min-height: 40px; font-size: 18px; }
.line .qty output { min-width: 28px; font-size: 15px; }
.linkish { background: transparent; border: 0; font: inherit; font-size: 13px; text-decoration: underline; color: var(--burgundy); min-height: 40px; cursor: pointer; }
.gift { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: rgba(200, 169, 104, .22); border: 1px dashed var(--house-gold); font-size: 13px; }
.gift strong { font-weight: 600; }
.gift span:last-child { margin-left: auto; }
.label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--crimson-kiss); }
.code { display: flex; flex-direction: column; gap: 8px; }
.code__row { display: flex; gap: 8px; }
.code input, .code__email input, .ti input, .ti textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(92, 22, 34, .5); background: var(--paper); font: inherit; font-size: 15px; color: var(--passion-eclipse); border-radius: 0; }
.code__row input { flex-grow: 1; letter-spacing: .08em; text-transform: uppercase; }
.code__email { display: flex; flex-direction: column; gap: 6px; }
.code__email .hint, .ti .hint { color: var(--ink-75); opacity: 1; }
.code__msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--burgundy); }
.code__msg.is-ok { color: #2f5d34; }
.ti { border: 1px solid rgba(92, 22, 34, .3); margin: 0; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ti legend { padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--burgundy); }
.ti__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.field--wide { grid-column: span 2; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--crimson-kiss); border-width: 2px; }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 14px; }
.totals dd { margin: 0; text-align: right; }
.totals .disc { color: var(--crimson-kiss); }
.totals .grand { font-family: var(--serif); font-size: 26px; padding-top: 6px; }
.totals .vat { font-size: 12px; color: var(--ink-75); }
@media (max-width: 420px) {
  .ti__fields { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Thai has no capitals and breaks when tracked out: drop the English-style letter-spacing
   and uppercase transforms on Thai pages (brand names in Latin stay as they are). */
html[lang="th"] .announce,
html[lang="th"] .eyebrow,
html[lang="th"] .card__family,
html[lang="th"] .line__sub,
html[lang="th"] .nav__links,
html[lang="th"] .btn,
html[lang="th"] .label,
html[lang="th"] .meta dt,
html[lang="th"] .offer__tag,
html[lang="th"] .crumbs,
html[lang="th"] .cart-btn { letter-spacing: 0; text-transform: none; }
html[lang="th"] .btn { font-size: 15px; }
html[lang="th"] .nav__links { font-size: 14px; }
html[lang="th"] .meta dt { font-size: 13px; }
