/* ═══════════════════════════════════════════════
   DECHRISTIANA COSMETICS — luxury espresso & gold
   ═══════════════════════════════════════════════ */
:root {
  --espresso: #2a1508;
  --cocoa: #3d2010;
  --mocha: #5a3419;
  --cream: #f6efe6;
  --ivory: #fdf9f2;
  --gold: #d4a24a;
  --gold-light: #e8c583;
  --gold-deep: #a97b2e;
  --ink: #241307;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
em { font-style: italic; }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .42s; } .d5 { transition-delay: .55s; }

/* ── Topbar marquee ── */
.topbar { background: var(--espresso); color: var(--gold-light); overflow: hidden; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.topbar-track { display: flex; gap: 3.5rem; white-space: nowrap; padding: .55rem 0; width: max-content; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 5vw, 4rem);
  background: rgba(253, 249, 242, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 21, 8, .08);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(42, 21, 8, .08); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--cream); background: linear-gradient(135deg, var(--cocoa), var(--espresso));
  border: 1px solid var(--gold); border-radius: 50%;
}
.brand-logo { height: 48px; width: auto; display: block; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand-name em { color: var(--gold-deep); font-size: .85em; }
.nav-links { display: flex; gap: 2.2rem; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; padding: .2rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold-deep); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.account-link { color: var(--gold-deep); font-weight: 500; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background .25s; }
.cart-btn:hover { background: rgba(212, 162, 74, .15); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; font-size: .68rem; font-weight: 600;
  color: var(--espresso); background: var(--gold); border-radius: 9px;
  transition: transform .3s var(--ease);
}
.cart-count.pop { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.5); } }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 700px at 80% -10%, #4a2a12 0%, var(--espresso) 55%);
  color: var(--cream);
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 6vw, 5rem) clamp(6rem, 14vh, 10rem);
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero-eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--gold-light); margin-bottom: 1.6rem; }
.hero-title { font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 1.04; font-weight: 400; }
.hero-title .line { display: block; }
.hero-title em { color: var(--gold); }
.hero-sub { max-width: 520px; margin: 1.8rem 0 2.4rem; color: #e8ddce; font-weight: 300; font-size: 1.06rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .95rem 2.1rem; font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: var(--espresso); box-shadow: 0 10px 30px rgba(212, 162, 74, .35); }
.btn-gold:hover { box-shadow: 0 16px 40px rgba(212, 162, 74, .5); }
.btn-ghost { border: 1px solid rgba(246, 239, 230, .4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-full { width: 100%; text-align: center; }

.hero-orb {
  position: absolute; right: -8%; top: 8%; width: clamp(300px, 42vw, 620px); aspect-ratio: 1;
  border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, rgba(232, 197, 131, .5), rgba(212, 162, 74, .12) 45%, transparent 70%);
  filter: blur(2px); animation: float 9s ease-in-out infinite;
}
.hero-ring {
  position: absolute; right: 4%; bottom: -14%; width: clamp(260px, 34vw, 520px); aspect-ratio: 1;
  border: 1px solid rgba(212, 162, 74, .35); border-radius: 50%; z-index: 1;
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float { 50% { transform: translateY(-24px); } }

.hero-badge { position: absolute; right: clamp(1rem, 8vw, 7rem); bottom: 3rem; width: 120px; height: 120px; z-index: 2; }
.hero-badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { fill: var(--gold-light); font-size: 10.5px; letter-spacing: .22em; font-family: var(--sans); text-transform: uppercase; }
.hero-badge-center { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 1.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Category strip ── */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: 1px solid rgba(42, 21, 8, .1);
}
.strip-item {
  padding: 2.2rem 1.5rem; font-family: var(--serif); font-size: 1.25rem;
  display: flex; align-items: baseline; gap: .8rem;
  border-right: 1px solid rgba(42, 21, 8, .1); transition: background .3s, color .3s;
}
.strip-item:last-child { border-right: none; }
.strip-item:hover { background: var(--espresso); color: var(--gold-light); }
.strip-num { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; color: var(--gold-deep); }
.strip-item:hover .strip-num { color: var(--gold); }

/* ── Shop ── */
.shop { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 4rem); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .76rem; color: var(--gold-deep); margin-bottom: .7rem; }
.section-head h2, .about-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; }

.filters { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter {
  padding: .6rem 1.5rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(42, 21, 8, .2); border-radius: 999px; color: var(--mocha);
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.filter.active { background: var(--espresso); border-color: var(--espresso); color: var(--gold-light); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; max-width: 1240px; margin: 0 auto; }
.card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(42, 21, 8, .07);
  box-shadow: 0 4px 18px rgba(42, 21, 8, .05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .5s, scale .5s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(42, 21, 8, .14); }
.card.hide { display: none; }
.card-art { position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; overflow: hidden; }
.card-art svg { width: 52%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.22)); transition: transform .5s var(--ease); }
.card:hover .card-art svg { transform: translateY(-6px) scale(1.04); }
.card-tag {
  position: absolute; top: 12px; left: 12px; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(253, 249, 242, .85); color: var(--mocha); backdrop-filter: blur(4px);
}
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { font-size: 1.12rem; font-weight: 500; }
.card-note { font-size: .85rem; color: #7a6a58; font-weight: 300; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.price { font-family: var(--serif); font-size: 1.15rem; color: var(--espresso); }
.add-btn {
  padding: .55rem 1.2rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--espresso); border-radius: 999px; color: var(--espresso);
  transition: all .3s var(--ease);
}
.add-btn:hover { background: var(--espresso); color: var(--gold-light); }
.add-btn.added { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.add-btn:disabled { border-color: rgba(42,21,8,.15); color: #b3a58f; cursor: not-allowed; }

/* ── Services ── */
.services { background: var(--espresso); color: var(--cream); padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 4rem); }
.services .kicker { color: var(--gold); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.service {
  padding: 2.4rem 2rem; border: 1px solid rgba(212, 162, 74, .25); border-radius: 18px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.service:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(212, 162, 74, .07); }
.service-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 1rem; }
.service h3 { font-size: 1.3rem; margin-bottom: .6rem; font-weight: 400; }
.service p { font-weight: 300; color: #decfba; font-size: .95rem; }

/* ── About ── */
.about { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 4rem); }
.about-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, #fff, var(--cream));
  border: 1px solid rgba(212, 162, 74, .35); border-radius: 24px;
  box-shadow: 0 24px 60px rgba(42, 21, 8, .08);
}
.about-card h2 { margin-bottom: 1.2rem; }
.about-card > p:not(.kicker) { max-width: 580px; margin: 0 auto 2rem; color: #6b5a47; font-weight: 300; }

/* ── Footer ── */
.footer { background: var(--espresso); color: var(--cream); padding: 4rem clamp(1.2rem, 5vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; max-width: 1100px; margin: 0 auto 3rem; }
.footer-brand { font-size: 1.4rem; }
.footer-brand em { color: var(--gold); }
.footer-tag { margin-top: .8rem; font-weight: 300; color: #cbb89e; font-size: .92rem; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer a { display: block; padding: .25rem 0; font-weight: 300; color: #e8ddce; transition: color .25s; }
.footer a:hover { color: var(--gold-light); }
.footer-note { text-align: center; font-size: .8rem; color: #9c8567; border-top: 1px solid rgba(212, 162, 74, .18); padding-top: 1.6rem; max-width: 1100px; margin: 0 auto; }

/* ── Cart drawer ── */
.overlay {
  position: fixed; inset: 0; background: rgba(36, 19, 7, .5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100vw);
  background: var(--ivory); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .45s var(--ease);
  box-shadow: -20px 0 60px rgba(42, 21, 8, .25);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid rgba(42, 21, 8, .1); }
.drawer-head h3 { font-size: 1.4rem; font-weight: 400; }
.drawer-close { font-size: 1.1rem; width: 38px; height: 38px; border-radius: 50%; transition: background .25s; color: var(--ink); }
.drawer-close:hover { background: rgba(42, 21, 8, .08); }
.drawer-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.drawer-empty { text-align: center; color: #9c8567; margin-top: 3rem; font-weight: 300; }
.ditem { display: grid; grid-template-columns: 58px 1fr auto; gap: .9rem; align-items: center; }
.ditem-art { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; }
.ditem-art svg { width: 55%; }
.ditem h4 { font-family: var(--serif); font-weight: 500; font-size: .98rem; }
.ditem-price { font-size: .85rem; color: #7a6a58; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button { width: 26px; height: 26px; border: 1px solid rgba(42, 21, 8, .25); border-radius: 50%; font-size: .9rem; color: var(--ink); transition: all .25s; }
.qty button:hover { background: var(--espresso); color: var(--gold-light); border-color: var(--espresso); }
.qty span { min-width: 18px; text-align: center; font-weight: 500; font-size: .92rem; }
/* ── Checkout form ── */
.drawer-checkout { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.back-btn { align-self: flex-start; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); padding: .3rem 0; transition: color .25s; }
.back-btn:hover { color: var(--espresso); }
.drawer-checkout label { display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #7a6a58; }
.drawer-checkout input, .drawer-checkout textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .75rem .9rem; background: #fff;
  border: 1px solid rgba(42, 21, 8, .18); border-radius: 12px;
  outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.drawer-checkout input:focus, .drawer-checkout textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 162, 74, .18); }
.form-error { color: #a8442e; font-size: .84rem; }
.btn-dark { background: var(--espresso); color: var(--gold-light); margin-top: .6rem; }
.btn-dark:hover { background: var(--cocoa); }
#payActions { display: flex; flex-direction: column; }
#payActions[hidden], #bagActions[hidden], .drawer-checkout[hidden], .drawer-items[hidden] { display: none; }

.drawer-foot { padding: 1.4rem 1.6rem 1.8rem; border-top: 1px solid rgba(42, 21, 8, .1); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.drawer-total span { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: #7a6a58; }
.drawer-total strong { font-family: var(--serif); font-size: 1.5rem; }
.drawer-hint { font-size: .76rem; color: #9c8567; text-align: center; margin-top: .8rem; font-weight: 300; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 80px);
  background: var(--espresso); color: var(--gold-light); padding: .8rem 1.8rem;
  border-radius: 999px; font-size: .86rem; letter-spacing: .08em; z-index: 120;
  opacity: 0; transition: transform .45s var(--ease), opacity .45s;
  border: 1px solid rgba(212, 162, 74, .4);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-badge { display: none; }
  /* two products side by side on phones */
  .grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card-body { padding: .9rem .9rem 1.1rem; }
  .card-body h3 { font-size: .95rem; }
  .card-note { font-size: .78rem; }
  .price { font-size: 1rem; }
  .add-btn { padding: .5rem .8rem; font-size: .66rem; letter-spacing: .08em; }
  .card-row { flex-wrap: wrap; gap: .5rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: none; }
  .strip-item { border-bottom: 1px solid rgba(42, 21, 8, .1); }
}