/* Moony Eye — store. Night sky + pearl moonlight. */
:root {
  --night: #161214;
  --night-2: #2a2023;
  --plum: #c9564f;
  --lilac: #f9a8a4;
  --pearl: #fbf6f3;
  --pearl-2: #f5e9e5;
  --card: #fffdfc;
  --ink: #1f1a1c;
  --muted: #86777a;
  --line: #efdfda;
  --gold: #f4958f;
  --gold-soft: #fde4e2;
  --ok: #2f8f6b;
  --err: #c0444e;
  --radius: 22px;
  --shadow: 0 12px 40px -18px rgba(22, 18, 20, .35);
  --font: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
  --display: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--font); font-weight: 400; background: var(--pearl); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.announce { background: var(--night); color: var(--gold-soft); text-align: center; font-size: 13px; padding: 8px 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 246, 243, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(239, 223, 218, .7); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex: none; transition: transform .6s; }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: .3px; direction: ltr; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.search { flex: 1; max-width: 420px; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--night); display: grid; place-items: center; flex: none; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; border-radius: 11px; background: var(--gold); color: var(--night);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--pearl); }
.badge.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* hero */
.hero { position: relative; overflow: hidden; margin: 18px clamp(12px, 3vw, 40px) 0; border-radius: 34px; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, #5a2f33 0%, transparent 60%), radial-gradient(700px 400px at 0% 110%, #3a2226 0%, transparent 65%), var(--night);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 460px; padding: clamp(28px, 5vw, 64px); gap: 20px; }
.eyebrow { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin: 0 0 8px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.1; margin: 0; font-weight: 600; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-soft), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #f1dedc; max-width: 470px; font-size: 16px; margin: 18px 0 26px; }
.lead b { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #fbc3bf 100%); color: var(--night); box-shadow: 0 10px 30px -12px rgba(244, 149, 143, .9); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(244, 149, 143, 1); }
.btn-primary:disabled { opacity: .55; box-shadow: none; cursor: default; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }

.hero-art { position: relative; height: 380px; }
.moon { position: absolute; width: 330px; height: 330px; border-radius: 50%; inset: 0; margin: auto;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .22), rgba(249, 168, 164, .08) 55%, transparent 70%);
  box-shadow: 0 0 120px 30px rgba(249, 168, 164, .18); }
.iris { position: absolute; inset: 0; margin: auto; width: 250px; height: 250px; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 0deg, #7fa98a, #b9cf8e, #6f9a7a, #c2a35a, #7fa98a, #5f8b74, #a9c487, #7fa98a);
  box-shadow: inset 0 0 0 10px rgba(22, 18, 20, .85), inset 0 0 40px 18px rgba(22, 18, 20, .6), 0 20px 60px -10px rgba(0, 0, 0, .6);
  animation: spin 40s linear infinite; transition: background 1.2s; }
.iris-ring { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 2deg, transparent 2deg 7deg), radial-gradient(circle, transparent 30%, rgba(22, 18, 20, .25) 70%); }
.pupil { position: absolute; inset: 0; margin: auto; width: 82px; height: 82px; border-radius: 50%; background: radial-gradient(circle, #050308 55%, #161214 100%); }
.glint { position: absolute; width: 46px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .75); top: 62px; left: 70px; transform: rotate(-30deg); filter: blur(2px); }
@keyframes spin { to { transform: rotate(360deg); } }
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); animation: twinkle 3s ease-in-out infinite; }
.s1 { top: 8%; right: 18%; } .s2 { top: 22%; left: 10%; animation-delay: .8s; } .s3 { bottom: 12%; right: 8%; animation-delay: 1.6s; } .s4 { bottom: 26%; left: 22%; animation-delay: 2.2s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px clamp(12px, 3vw, 40px) 0; }
.perks div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; }
.perks b { font-size: 16px; }
.perks span { font-size: 13px; color: var(--muted); }

/* shop */
.shop { padding: 48px clamp(16px, 4vw, 48px) 20px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.shop h2, .how h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; font-weight: 600; }
.seg { display: inline-flex; background: var(--pearl-2); border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--night); color: #fff; }
.seg-wide { display: flex; } .seg-wide button { flex: 1; }
.families { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.families::-webkit-scrollbar { display: none; }
.fam { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.fam i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 0 0 1px rgba(0, 0, 0, .08); }
.fam.on { border-color: var(--night); box-shadow: 0 0 0 1px var(--night); }
.result-count { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: start; position: relative;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 8px; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ph { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle, #fff 0%, var(--pearl-2) 100%); overflow: hidden; position: relative; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover .ph img { transform: scale(1.06) rotate(6deg); }
.tile .ph.noimg::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, #222 18%, #9aa 20%, #dde 60%, #f4f4f4 100%); }
.tile h4 { margin: 0; font-size: 15px; font-weight: 500; direction: ltr; text-align: right; }
.tile .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.tile .price { color: var(--ink); font-weight: 600; font-size: 15px; }
.tags { position: absolute; top: 18px; inset-inline-start: 18px; display: flex; gap: 4px; flex-direction: column; align-items: flex-start; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--night); font-weight: 600; }
.tag.new { background: var(--gold); }
.tag.med { background: var(--night); color: #fff; }
.tag.out { background: #eee; color: #888; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.how { margin: 40px clamp(12px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 48px); }
.how ol { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.how li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding-top: 52px; position: relative; }
.how li::before { content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--gold-soft);
  display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.how span { color: var(--muted); font-size: 14px; }

.foot { background: var(--night); color: #e9d6d4; padding: 40px clamp(16px, 4vw, 48px) 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.foot .brand-text b { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 14px; }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; }
.copy, .social { font-size: 13px; margin: 0; }

.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); z-index: 15; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(22, 18, 20, .55); backdrop-filter: blur(3px); animation: fade .25s; }
.sheet-card { position: relative; background: var(--card); border-radius: 28px; max-height: 92vh; overflow: auto; animation: rise .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--pearl-2); font-size: 24px; line-height: 1; z-index: 2; }
.product-card { width: min(880px, 94vw); display: grid; grid-template-columns: 1fr 1fr; }
.p-media { position: relative; background: radial-gradient(circle, #fff, var(--pearl-2)); border-radius: 28px 0 0 28px; min-height: 300px; }
[dir="rtl"] .p-media { border-radius: 0 28px 28px 0; }
.p-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.p-new { position: absolute; top: 16px; inset-inline-start: 16px; }
.p-body { padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.p-body h3 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 600; direction: ltr; text-align: right; line-height: 1.1; }
.p-price { margin: 0; font-size: 20px; font-weight: 600; color: var(--plum); }
.label { margin: 6px 0 6px; font-size: 14px; font-weight: 500; }
.label small { font-weight: 400; color: var(--muted); }
.powers { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; padding: 2px; }
.powers button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 0; font-size: 13px; direction: ltr; }
.powers button.on { background: var(--night); color: #fff; border-color: var(--night); }
.powers button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: none; width: 40px; height: 40px; font-size: 20px; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.p-msg { min-height: 1.2em; margin: 0; color: var(--err); font-size: 14px; }

.drawer { place-items: stretch end; }
.drawer-card { width: min(470px, 100vw); height: 100%; max-height: none; border-radius: 0; padding: 28px 22px 24px; animation: slide .3s ease; }
[dir="rtl"] .drawer { justify-items: start; }
@keyframes slide { from { transform: translateX(-40px); opacity: 0; } }
.drawer-card h3 { margin: 4px 0 16px; font-size: 22px; }
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.ci { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; }
.ci img, .ci .noimg { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--pearl-2); }
.ci b { display: block; font-weight: 500; direction: ltr; text-align: right; }
.ci small { color: var(--muted); }
.ci .qty button { width: 30px; height: 30px; font-size: 16px; }
.ci .rm { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; text-decoration: underline; }
.cart-sum { margin: 16px 0; padding: 14px 16px; background: var(--pearl); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cart-sum div { display: flex; justify-content: space-between; }
.cart-sum .total { font-size: 18px; font-weight: 700; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
form input, form select, form textarea { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: #fff; font-weight: 400; outline: none; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(201, 86, 79, .14); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.choice { flex-direction: row !important; align-items: flex-start; gap: 10px !important; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 !important; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--night); box-shadow: 0 0 0 1px var(--night); background: #fff; }
.choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.choice input { margin-top: 4px; accent-color: var(--night); }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); font-weight: 400; }
.hint { background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: -4px 0 12px; }
.back-link { border: 0; background: none; color: var(--muted); padding: 0; font-size: 14px; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 60;
  font-size: 14px; box-shadow: var(--shadow); animation: rise .3s; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 34px; }
  .hero-art { height: 260px; order: -1; }
  .moon { width: min(240px, 70vw); height: min(240px, 70vw); } .iris { width: min(180px, 54vw); height: min(180px, 54vw); } .pupil { width: 60px; height: 60px; } .glint { top: 44px; left: 50px; width: 34px; height: 22px; }
  .lead { margin-inline: auto; } .hero-cta { justify-content: center; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .how ol { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .p-media, [dir="rtl"] .p-media { border-radius: 28px 28px 0 0; min-height: 0; aspect-ratio: 1.3; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .brand-text b { font-size: 22px; }
  .cart-btn { margin-inline-start: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 8px; border-radius: 18px; }
  .sheet:not(.drawer) { place-items: end stretch; }
  .product-card { width: 100vw; border-radius: 28px 28px 0 0; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
