/* Dina's Dreamy Dazzle — v2 theme system
   Rule: brand gold/lavender are DECORATIVE colours. For TEXT, each theme uses its own
   readable variant (--gold-text / --lav-text) so light mode never shows pale gold on white. */
:root{
  --purple:#211329; --lav:#B98BD5; --gold:#D9B477; --softlav:#E9D9F4;
  --black:#09060C; --warm:#FFFDFB;
}
[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0d0812; --bg2:#171021; --surface:#1d1429; --surface2:#251a36;
  --text:#f4eef9; --muted:#c9b8dc; --border:#3a2a4e; --input:#140d1e;
  --gold-text:#E7C989; --lav-text:#D8B4F0;
  --err:#FF9D9D; --ok:#7FE0AE;
  --hero-grad:linear-gradient(160deg,#171021 0%,#211329 55%,#120a1a 100%);
  --shadow:0 18px 40px rgba(5,2,10,.55),0 4px 14px rgba(5,2,10,.35);
}
[data-theme="light"]{
  color-scheme:light;
  --bg:#FFFDFB; --bg2:#FBF5FF; --surface:#ffffff; --surface2:#F6ECFD;
  --text:#2B1A3D; --muted:#5F4A78; --border:#DECDF2; --input:#ffffff;
  --gold-text:#86600F; --lav-text:#7440A8;
  --err:#B3261E; --ok:#177245;
  --hero-grad:linear-gradient(160deg,#FDF9FF 0%,#EFE0FA 55%,#FDF8EE 100%);
  --shadow:0 18px 40px rgba(96,60,140,.13),0 4px 14px rgba(96,60,140,.07);
}
*{box-sizing:border-box}
/* CRITICAL: author display styles (flex/inline-block on .login-wrap, .btn, etc.) otherwise
   override the hidden attribute — this bug kept the login card visible over the dashboard */
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;line-height:1.6;transition:background .25s,color .25s}
h1,h2,h3{font-family:"Cormorant Garamond",serif;line-height:1.15;margin:.2em 0 .45em;color:var(--text)}
h1{font-size:clamp(2.2rem,6vw,3.6rem);font-weight:700}
h2{font-size:clamp(1.7rem,4vw,2.4rem);font-weight:600}
a{color:inherit}
.container{max-width:1180px;margin:0 auto;padding:0 18px}
.script{font-family:Parisienne,cursive;color:var(--gold-text)}
.gold{color:var(--gold-text)} .lav{color:var(--lav-text)} .muted{color:var(--muted)} .center{text-align:center} .fine{font-size:.85rem;color:var(--muted)}
/* loader — deep brand purple in BOTH themes (intentional splash) */
#loader{position:fixed;inset:0;background:#0A0610;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;z-index:99;transition:opacity .5s}
#loader img{width:110px;height:110px;border-radius:50%}
#loader .script{font-size:2rem;margin:0;color:#E7C989}
#loader.hide{opacity:0;pointer-events:none}
/* announce + nav */
.announce{background:#2C1A40;color:#F7EEDA;text-align:center;font-size:.86rem;padding:8px 14px}
.navwrap{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;gap:16px;padding-top:10px;padding-bottom:10px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{width:52px;height:52px;border-radius:50%;border:2px solid var(--gold);object-fit:cover}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text strong{font-family:"Cormorant Garamond",serif;font-size:1.35rem;color:var(--lav-text)}
.brand-text em{font-family:Parisienne,cursive;font-style:normal;font-size:1.05rem;color:var(--gold-text)}
.links{display:flex;gap:20px;margin-left:auto}
.links a{text-decoration:none;font-weight:500;font-size:.95rem;color:var(--text)}
.links a:hover{color:var(--lav-text)}
.nav-actions{display:flex;gap:8px;align-items:center;margin-left:8px}
.icon-btn{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:999px;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.05rem;text-decoration:none;position:relative}
.badge{position:absolute;top:-6px;right:-6px;background:var(--gold);color:#211329;font-size:.68rem;font-weight:700;border-radius:999px;padding:1px 6px}
.burger{display:none;background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text);width:42px;height:42px;margin-left:auto;cursor:pointer}
/* hero */
.hero{background:var(--hero-grad);border:1px solid var(--border);border-radius:24px;margin:26px 0;padding:52px 28px;text-align:center;box-shadow:var(--shadow)}
.hero img{width:150px;height:150px;border-radius:50%;border:3px solid var(--gold);object-fit:cover}
/* hero product spotlight (floating featured card beside the hero text) */
.hero.split{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;text-align:left;padding:44px 42px}
.hero.split img.hero-logo{width:102px;height:102px}
.hero.split .btn-row{justify-content:flex-start}
.hero.split p.lead{margin:10px 0 22px}
.spot{position:relative;min-width:0}
.spot-card{position:relative;background:var(--surface);border:1px solid var(--gold-text);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);animation:floaty 5.5s ease-in-out infinite;transition:opacity .22s}
.spot-card.fading{opacity:0}
.spot-card img.spot-img{width:100%;height:300px;object-fit:cover;display:block;border-radius:0;border:none}
.spot-ph{height:300px;display:flex;align-items:center;justify-content:center;font-size:3rem;background:var(--surface2)}
.spot-tag{position:absolute;top:14px;left:14px;background:var(--gold);color:#211329;font-weight:700;font-size:.75rem;padding:4px 12px;border-radius:999px;z-index:2;box-shadow:var(--shadow)}
.spot-body{padding:16px 18px 18px}
.spot-body h3{margin:0 0 4px;font-size:1.45rem}
.spot-body h3 a{text-decoration:none}
.spot-dots{display:flex;gap:7px;justify-content:center;margin-top:14px}
.spot-dots button{width:9px;height:9px;border-radius:50%;border:none;background:var(--border);cursor:pointer;padding:0}
.spot-dots button.on{background:var(--gold)}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media(max-width:820px){
  .hero.split{grid-template-columns:1fr;text-align:center;padding:36px 22px}
  .hero.split .btn-row{justify-content:center}
  .hero.split p.lead{margin:10px auto 22px}
  .spot-card img.spot-img,.spot-ph{height:240px}
}
.hero .script{font-size:clamp(1.6rem,4vw,2.4rem);margin:.1em 0}
.hero p.lead{max-width:640px;margin:10px auto 22px;color:var(--muted)}
.btn{display:inline-block;background:linear-gradient(120deg,#7D4BA6,#9663C4);color:#fff;border:none;border-radius:999px;padding:12px 26px;font-weight:600;cursor:pointer;text-decoration:none;font-size:.96rem}
.btn:hover{filter:brightness(1.1)}
.btn.gold{background:linear-gradient(120deg,#C9A35E,#D9B477);color:#211329}
.btn.ghost{background:transparent;border:1.5px solid var(--lav-text);color:var(--lav-text)}
.btn.small{padding:8px 18px;font-size:.88rem}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
/* sections */
.section{padding:34px 0}
.section-head{text-align:center;margin-bottom:20px}
.section-head .script{font-size:1.7rem}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.card img.pimg{width:100%;aspect-ratio:1/1.1;object-fit:cover;border-radius:12px;background:var(--surface2)}
.price{font-weight:700;color:var(--gold-text);font-size:1.1rem}
.price s{color:var(--muted);font-weight:400;margin-right:8px;font-size:.95rem}
.off{background:var(--gold);color:#211329;font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px;margin-left:8px;vertical-align:middle}
.empty{border:1.5px dashed var(--lav);border-radius:20px;padding:44px 22px;text-align:center;background:var(--surface)}
.empty .big{font-size:2.4rem}
.empty h3{font-size:1.6rem}
/* forms — color-scheme above makes native controls match the theme */
label{display:block;font-weight:600;font-size:.9rem;margin:12px 0 5px;color:var(--text)}
input,select,textarea{width:100%;background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:11px;padding:11px 13px;font:inherit;font-size:.95rem}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.75}
input:focus,select:focus,textarea:focus{outline:2px solid var(--lav);border-color:transparent}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px}
.filters label{margin-top:0}
.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;align-items:start}
@media(max-width:860px){.two-col{grid-template-columns:1fr}}
.notice{border:1px solid var(--gold-text);background:var(--surface2);color:var(--text);border-radius:12px;padding:13px 16px}
.error{color:var(--err);background:var(--surface2);border:1px solid var(--err);border-radius:12px;padding:12px 16px;font-weight:500}
.success{color:var(--ok);border:1px solid var(--ok);background:var(--surface2);border-radius:12px;padding:13px 16px}
/* cart / table */
.rowline{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}
.rowline img{width:64px;height:64px;border-radius:10px;object-fit:cover;background:var(--surface2)}
.rowline .rl-main{min-width:0}
.qty{display:inline-flex;align-items:center;gap:8px}
.qty button{width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:1.05rem}
@media(max-width:640px){
  .rowline{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"img main rm" "img qty total";column-gap:12px;row-gap:8px;padding:14px 0}
  .rowline .rl-img{grid-area:img;width:56px;height:56px}
  .rowline .rl-main{grid-area:main}
  .rowline .rl-rm{grid-area:rm;align-self:start}
  .rowline .rl-qty{grid-area:qty}
  .rowline .rl-total{grid-area:total;justify-self:end;font-size:1.05rem}
  .qty button{width:36px;height:36px}
}
/* navbar search + suggestions */
.nav-search{position:relative;margin-left:auto}
.nav-search .search-input{width:210px;padding:9px 14px;border-radius:999px}
.sugg{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;z-index:60;min-width:230px}
.sugg button{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;background:none;border:none;border-bottom:1px solid var(--border);color:var(--text);padding:10px 14px;cursor:pointer;font:inherit;font-size:.92rem}
.sugg button:last-child{border-bottom:none}
.sugg button:hover{background:var(--surface2)}
.mobile-only{display:none}
@media(max-width:900px){.desktop-only{display:none}.mobile-only{display:block}.nav-search{margin:0 0 8px}.nav-search .search-input{width:100%}}
/* wishlist heart on cards */
.card{position:relative}
.wish-btn{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--gold-text);font-size:1.15rem;cursor:pointer;z-index:2;line-height:1}
.wish-btn.on{background:var(--gold);color:#211329;border-color:var(--gold)}
/* reviews */
.stars{color:var(--gold-text);letter-spacing:2px}
.review{border-top:1px solid var(--border);padding:12px 0}
.vbadge{background:var(--surface2);border:1px solid var(--gold-text);color:var(--gold-text);border-radius:999px;font-size:.7rem;font-weight:700;padding:1px 8px;margin-left:8px;vertical-align:middle}
/* shop filters toggle (mobile) */
.filters-toggle{display:none;margin-bottom:14px}
@media(max-width:760px){
  .filters-toggle{display:inline-block}
  .filters{display:none}
  .filters.open{display:grid}
}
/* policy pages */
.policy-body{white-space:pre-wrap;line-height:1.75}
.totals{margin-top:14px}
.rowline + .totals{margin-top:2px}
.rowline + .totals .grand{border-top:none;padding-top:4px}
.totals .line{display:flex;justify-content:space-between;padding:5px 0}
.totals .grand{border-top:1px solid var(--border);margin-top:8px;padding-top:10px;font-size:1.12rem;font-weight:700}
/* product page */
.pdetail{display:grid;grid-template-columns:1fr 1fr;gap:28px}
@media(max-width:860px){.pdetail{grid-template-columns:1fr}}
.pdetail .main-img{width:100%;border-radius:18px;border:1px solid var(--border);aspect-ratio:1/1;object-fit:cover;background:var(--surface2)}
.thumbs{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.thumbs img{width:70px;height:70px;border-radius:10px;object-fit:cover;cursor:pointer;border:2px solid transparent}
.thumbs img.sel{border-color:var(--gold)}
.chip{display:inline-block;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:7px 15px;cursor:pointer;margin:0 8px 8px 0;font-size:.9rem}
.chip.sel{border-color:var(--gold-text);background:var(--surface2);font-weight:600;color:var(--text)}
/* timeline */
.timeline{display:flex;justify-content:space-between;margin:26px 0;position:relative;flex-wrap:wrap;gap:8px}
.tstep{text-align:center;flex:1;min-width:80px}
.tstep .dot{width:34px;height:34px;border-radius:50%;border:2px solid var(--border);margin:0 auto 6px;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--text);font-size:.9rem}
.tstep.done .dot{border-color:var(--gold);background:var(--gold);color:#211329;font-weight:700}
.tstep small{color:var(--muted)}
/* gallery / faq */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.gallery-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;border:1px solid var(--border)}
details.faq{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 18px;margin-bottom:12px}
details.faq summary{cursor:pointer;font-weight:600;font-family:"Cormorant Garamond",serif;font-size:1.2rem;color:var(--text)}
/* toast + footer */
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#2C1A40;color:#fff;padding:12px 22px;border-radius:999px;box-shadow:var(--shadow);z-index:80;border:1px solid var(--gold)}
/* footer — Chotto-style discipline: tiny letterspaced headings, small quiet
   links on an even rhythm, slim separated bottom bar */
.footer{border-top:1px solid var(--border);margin-top:36px;padding:28px 0 14px;background:var(--bg2)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:16px 28px;margin-bottom:18px}
.foot-logo{width:46px;height:46px;border-radius:50%;border:2px solid var(--gold);object-fit:cover}
.foot-brand p{font-size:.84rem;color:var(--muted);line-height:1.55;max-width:30ch;margin:8px 0 0}
.footer h4{font-family:Inter,sans-serif;font-size:.68rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-text);margin:2px 0 4px}
.foot-col{display:flex;flex-direction:column;gap:9px}
.foot-col a{text-decoration:none;color:var(--muted);font-size:.86rem}
.foot-col a:hover{color:var(--gold-text)}
.foot-col p{font-size:.84rem;color:var(--muted);line-height:1.55;margin:0}
.foot-col #socialLinks{display:flex;flex-direction:column;gap:9px}
.foot-bottom{border-top:1px solid var(--border);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.foot-bottom a{color:var(--muted);text-decoration:none}
.foot-bottom a:hover{color:var(--gold-text)}
@media(max-width:860px){
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1;display:flex;gap:12px;align-items:flex-start}
  .foot-brand p{margin:2px 0}
}
.footer a:hover{color:var(--gold-text)}
@media(max-width:760px){
  .links{display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);flex-direction:column;padding:14px 20px;border-bottom:1px solid var(--border);margin:0}
  .links.open{display:flex}
  .navwrap{position:relative}
  .burger{display:block}
  .nav-actions{margin-left:0}
}

/* ---------- elegance pass (v3.5): depth through polish, not effects ---------- */
.section{padding:40px 0}
.section-head{margin-bottom:24px}
.section-head::after{content:"";display:block;width:54px;height:2px;margin:12px auto 0;border-radius:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.btn{box-shadow:0 8px 20px rgba(125,75,166,.32);transition:transform .15s ease,box-shadow .25s ease,filter .2s}
.btn.gold{box-shadow:0 8px 20px rgba(201,163,94,.32)}
.btn:active{transform:scale(.98)}
.card:has(.pimg){transition:transform .25s ease,box-shadow .25s ease}
@media(hover:hover){
  .card:has(.pimg):hover{transform:translateY(-4px)}
}
.spot{z-index:0}
.spot::before{content:"";position:absolute;inset:10% -4% -6% -4%;background:radial-gradient(closest-side,rgba(217,180,119,.28),rgba(185,139,213,.13),transparent);filter:blur(18px);z-index:-1;pointer-events:none}
[data-theme="light"] .spot::before{opacity:.55}
.pdetail .main-img{box-shadow:var(--shadow)}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px rgba(185,139,213,.18)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--surface2);border:2px solid var(--bg);border-radius:8px}
::-webkit-scrollbar-track{background:var(--bg)}
/* scroll reveal — JS adds .rv, observer adds .in; content is never hidden without JS */
.rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .rv{opacity:1;transform:none;transition:none}
  .spot-card{animation:none}
  html{scroll-behavior:auto}
}
