/* Luna shop · lunalb.com · colours come from the logo (24 Nov 2026): ink-plum, cream, champagne gold */
:root {
  --cream: #F6EFE9; --cream-2: #EFE4DA; --paper: #FFFDFB; --plum: #2A1B2E; --plum-2: #4A3350; --plum-3: #6E5772;
  --gold: #C9A36A; --gold-d: #9C7A45; --line: #E5D9CF; --muted: #77677A; --sale: #9B2C52; --ok: #2E6B4E; --shadow: 0 10px 30px rgba(42, 27, 46, .08);
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --max: 1180px; --hdr: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--plum); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.loading { padding: 120px 16px; text-align: center; color: var(--muted); }

/* ---------- announcement + header ---------- */
.announce { background: var(--plum); color: var(--cream); font-size: 12.5px; letter-spacing: .02em; text-align: center; }
.announce-in { max-width: var(--max); margin: 0 auto; padding: 8px 16px; }
.announce b { color: var(--gold); font-weight: 700; }
.announce .cd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(246, 239, 233, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: var(--max); margin: 0 auto; height: var(--hdr); padding: 0 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { grid-column: 2; display: block; padding: 6px; }
.brand img { height: 34px; width: auto; }
.hdr-nav { display: none; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hdr-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.hdr-nav a:hover, .hdr-nav a.on { border-color: var(--plum); }
.hdr-nav .sale-link { color: var(--sale); }
.hdr-actions { grid-column: 3; justify-self: end; display: flex; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.icon-btn:hover { background: rgba(42, 27, 46, .06); }
#menuBtn { grid-column: 1; grid-row: 1; }
.bag-count { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--plum); color: var(--cream); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bag-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.search { border-top: 1px solid var(--line); }
.search-in { max-width: 720px; margin: 0 auto; display: flex; padding: 8px 12px; gap: 6px; }
.search input { flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 11px 18px; font: inherit; color: var(--plum); outline: none; }
.search input:focus { border-color: var(--plum-3); }
@media (min-width: 900px) {
  .hdr-in { grid-template-columns: 1fr auto 1fr; padding: 0 20px; }
  #menuBtn { display: none; }
  .hdr-nav { display: flex; grid-column: 1; grid-row: 1; }
  .brand img { height: 40px; }
}

/* ---------- mobile menu ---------- */
.drawer-nav { position: fixed; inset: 0; z-index: 60; background: rgba(42, 27, 46, .35); }
.dn-panel { position: absolute; inset: 0 auto 0 0; width: min(330px, 86vw); background: var(--cream); padding: 12px 22px 30px; display: flex; flex-direction: column; animation: slideL .25s ease-out; overflow-y: auto; }
.dn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dn-panel > a { font-family: var(--serif); font-size: 26px; text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dn-panel .dn-sale { color: var(--sale); }
.dn-panel .dn-wa { margin-top: auto; font-family: var(--sans); font-size: 14px; font-weight: 600; border: 0; background: var(--plum); color: var(--cream); text-align: center; border-radius: 999px; padding: 14px; }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes slideR { from { transform: translateX(100%); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--plum); background: var(--plum); color: var(--cream); border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { background: var(--plum-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: rgba(42, 27, 46, .06); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.btn.wa { background: #1f7a4d; border-color: #1f7a4d; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; }
.hero-txt { padding: 26px 18px 34px; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold-d); }
.hero h1 { font-size: clamp(38px, 9vw, 68px); margin: 10px 0 12px; }
.hero h1 em { font-style: italic; color: var(--plum-3); }
.hero p { margin: 0 0 22px; color: var(--plum-2); max-width: 430px; font-size: 16px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .hero-img { aspect-ratio: 16 / 7; object-position: 50% 50%; }
  .hero-txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 max(36px, calc((100vw - var(--max)) / 2 + 20px)); max-width: 640px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.trust-it { display: flex; gap: 10px; align-items: center; padding: 14px 14px; font-size: 13px; line-height: 1.3; }
.trust-it svg { flex: none; width: 26px; height: 26px; color: var(--gold-d); }
.trust-it b { display: block; font-size: 13.5px; }
.trust-it span { color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .trust-in { grid-template-columns: repeat(4, 1fr); } .trust-it { justify-content: center; padding: 18px; } }

/* ---------- sections ---------- */
.sec { padding: 48px 0; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-hd h2 { font-size: clamp(30px, 6vw, 42px); }
.sec-hd p { margin: 6px 0 0; color: var(--muted); }
.sec-hd a { white-space: nowrap; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper); text-decoration: none; aspect-ratio: 3 / 4; display: flex; flex-direction: column; border: 1px solid var(--line); }
.cat img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 10px; transition: transform .4s; }
.cat:hover img { transform: scale(1.04); }
.cat span { font-family: var(--serif); font-size: 22px; font-weight: 600; text-align: center; padding: 6px 4px 12px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; }
.tag.gold { background: var(--gold); color: var(--plum); }
.tag.r { left: auto; right: 10px; }
.card-b { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.card-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; font-weight: 600; margin: 4px 0 8px; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; gap: 8px; align-items: baseline; font-weight: 700; font-size: 16px; margin-top: auto; }
.price.on-sale .now { color: var(--sale); }
.price s { color: var(--muted); font-weight: 500; font-size: 13px; }
.card-add { margin-top: 10px; width: 100%; padding: 10px; border-radius: 999px; border: 1.5px solid var(--plum); background: transparent; font-weight: 600; font-size: 13px; transition: background .15s, color .15s; }
.card-add:hover { background: var(--plum); color: var(--cream); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip.on { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.chip.sale { color: var(--sale); }
.chip.sale.on { background: var(--sale); color: #fff; border-color: var(--sale); }
.empty { padding: 50px 10px; text-align: center; color: var(--muted); }

/* ---------- kit banner ---------- */
.kit { display: grid; background: var(--plum); color: var(--cream); border-radius: calc(var(--r) * 1.4); overflow: hidden; }
.kit img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kit-t { padding: 26px 22px 30px; display: flex; flex-direction: column; justify-content: center; }
.kit-t h2 { font-size: clamp(32px, 6vw, 46px); color: var(--cream); margin: 8px 0 10px; }
.kit-t p { color: #dccfd9; margin: 0 0 14px; }
.kit-t ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.kit-t li::before { content: '✦ '; color: var(--gold); }
.kit .price { font-size: 26px; margin: 0 0 18px; color: var(--cream); }
.kit .price s { color: #b8a6b6; font-size: 16px; }
.kit .eyebrow { color: var(--gold); }
@media (min-width: 800px) { .kit { grid-template-columns: 1fr 1fr; } .kit img { aspect-ratio: auto; height: 100%; } .kit-t { padding: 40px 48px; } }

/* ---------- how it works + faq ---------- */
.how { display: grid; gap: 12px; counter-reset: s; }
.how-it { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; }
.how-it::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; display: block; margin-bottom: 6px; }
.how-it h3 { font-size: 24px; margin-bottom: 6px; }
.how-it p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--plum-2); }

/* ---------- product page ---------- */
.pd { display: grid; gap: 22px; padding: 18px 0 40px; }
.crumbs { font-size: 12.5px; color: var(--muted); padding-top: 16px; }
.crumbs a { text-decoration: none; }
.pd-img { background: #fff; border-radius: calc(var(--r) * 1.4); overflow: hidden; border: 1px solid var(--line); position: relative; }
.pd-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; }
.pd h1 { font-size: clamp(32px, 7vw, 46px); margin: 6px 0 12px; }
.pd .price { font-size: 26px; margin: 0 0 6px; }
.pd .price s { font-size: 17px; }
.save { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--sale); background: #f6e3ea; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 10px; }
.lbl span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.shades { display: flex; flex-wrap: wrap; gap: 8px; }
.shade { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; }
.shade.on { border-color: var(--plum); background: var(--plum); color: var(--cream); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 20px; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.pd-buy { display: grid; gap: 10px; margin: 22px 0 18px; }
.pd-perks { list-style: none; margin: 0 0 18px; padding: 16px; display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; }
.pd-perks li { display: flex; gap: 10px; align-items: center; }
.pd-perks svg { color: var(--gold-d); flex: none; }
.pd-desc { color: var(--plum-2); }
@media (min-width: 860px) { .pd { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .pd-img { position: sticky; top: calc(var(--hdr) + 16px); } }

/* ---------- bag drawer ---------- */
.bag { position: fixed; inset: 0; z-index: 70; background: rgba(42, 27, 46, .35); }
.bag-panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100vw); background: var(--cream); display: flex; flex-direction: column; animation: slideR .25s ease-out; }
.bag-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.bag-hd h2 { font-size: 28px; }
.bag-free { padding: 14px 20px; font-size: 13px; border-bottom: 1px solid var(--line); }
.bar { height: 6px; background: var(--cream-2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.bag-items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.bi { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bi img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.bi-n { font-weight: 600; font-size: 14px; line-height: 1.3; }
.bi-s { font-size: 12px; color: var(--muted); }
.bi .qty { margin-top: 6px; transform: scale(.85); transform-origin: left; }
.bi-p { text-align: right; font-weight: 700; }
.bi-x { display: block; margin-left: auto; margin-top: 6px; font-size: 12px; color: var(--muted); background: none; border: 0; text-decoration: underline; }
.bag-ft { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.row.total { font-size: 17px; font-weight: 700; margin: 10px 0 14px; }
.cod-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- checkout ---------- */
.co { display: grid; gap: 22px; padding: 22px 0 50px; }
.co h1 { font-size: clamp(34px, 7vw, 46px); }
.co-box { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.2); padding: 20px; }
.co-box h2 { font-size: 24px; margin-bottom: 12px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: 13px; font-weight: 600; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--plum); outline: none; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--plum-3); }
.fld textarea { min-height: 70px; resize: vertical; }
.err { color: var(--sale); font-size: 13px; font-weight: 600; min-height: 18px; }
.sum-it { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; }
.sum-it span:first-child { color: var(--plum-2); }
.pay { display: flex; gap: 12px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; }
.pay svg { color: var(--ok); flex: none; }
@media (min-width: 860px) { .co { grid-template-columns: 1.2fr 1fr; align-items: start; } .co > h1, .co > .co-back { grid-column: 1 / -1; } }

/* ---------- thank you ---------- */
.ty { max-width: 560px; margin: 0 auto; text-align: center; padding: 60px 0 70px; }
.ty-moon { width: 74px; height: 74px; margin: 0 auto 18px; }
.ty h1 { font-size: clamp(36px, 8vw, 52px); margin-bottom: 10px; }
.ty p { color: var(--plum-2); }
.ty .btn { margin-top: 12px; }

/* ---------- footer, whatsapp, toast ---------- */
.ftr { background: var(--plum); color: #dccfd9; margin-top: 30px; }
.ftr-in { max-width: var(--max); margin: 0 auto; padding: 44px 16px 26px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr-brand p { max-width: 320px; font-size: 14px; }
.ftr h4 { color: var(--gold); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.ftr-col a { display: block; text-decoration: none; padding: 5px 0; font-size: 14px; cursor: pointer; }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: 12px; padding: 16px; }
@media (min-width: 800px) { .ftr-in { grid-template-columns: 2fr 1fr 1fr; } .ftr-brand { grid-column: auto; } }
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.wa-float svg { width: 30px; height: 30px; stroke: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--plum); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
