/* =========================================================
   STONE DISTRICT — Natural + Lab-Grown Diamonds
   Palette: Graphite & Platinum — dark charcoal, platinum accent
   ========================================================= */

:root {
  --bg:        #070b12;   /* iced-out near-black blue */
  --bg-2:      #0b131d;   /* bands, marquee, footer */
  --panel:     #0f1a26;   /* cards */
  --panel-2:   #142230;
  --line:      #20303f;   /* hairline */
  --line-2:    #2c4055;
  --text:      #eaf6ff;   /* icy white */
  --muted:     #8ea6ba;
  --gold:      #7fdfff;   /* icy cyan accent (var name kept for compatibility) */
  --gold-lite: #b3ecff;   /* bright ice — accent text / labels on dark */
  --gold-deep: #3a7089;   /* cyan border */
  --ink-btn:   #7fdfff;   /* icy cyan — primary CTA (takes dark text) */
  --ink-btn-2: #b3ecff;
  --ice:       #cfeeff;
  --danger:    #cf6a60;
  --radius:    14px;
  --maxw:      1240px;
  --gold-grad: linear-gradient(135deg, #d6f6ff 0%, #7fdfff 55%, #46b6dd 100%);
  --shadow:    0 20px 50px rgba(0,0,0,.6);
  --font-head: 'Anton', 'Cinzel', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(127,223,255,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(70,150,220,.09), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border: none; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn-gold {
  background: var(--ink-btn); color: #17171a;
  box-shadow: 0 8px 24px rgba(38,51,59,.22);
}
.btn-gold:hover { transform: translateY(-2px); background: var(--ink-btn-2); box-shadow: 0 12px 30px rgba(38,51,59,.30); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lite); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(22,22,24,.8);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Great Vibes', cursive; font-weight: 400;
  font-size: 2.1rem; letter-spacing: 0; line-height: 1;
}
.brand .diamond { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lite); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; background: var(--panel); border: 1px solid var(--line-2);
  color: var(--text); width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; transition: border-color .2s ease;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--gold-grad);
  color: #17171a; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 40ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stats .stat b {
  font-family: var(--font-head); font-size: 1.7rem; display: block; color: var(--gold-lite);
}
.hero-stats .stat span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.hero-art {
  aspect-ratio: 1/1; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 38%, #2b2b31, #131315 72%);
  position: relative;
}
.hero-art .shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.09) 50%, transparent 58%);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 48px; padding: 16px 0;
  animation: scroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: '◆'; color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: flex-end; transition: transform .25s ease, border-color .25s ease;
}
.cat-tile:hover { transform: translateY(-6px); border-color: var(--gold); }
.cat-tile .cat-art { position: absolute; inset: 0; }
.cat-tile .cat-label {
  position: relative; z-index: 2; width: 100%; padding: 20px;
  background: linear-gradient(to top, rgba(12,12,14,.94) 28%, transparent);
}
.cat-tile .cat-label h3 { font-family: var(--font-head); font-size: 1.3rem; }
.cat-tile .cat-label span { color: var(--gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Product grid ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px;
}
.filter-chip {
  padding: 9px 20px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line-2); color: var(--muted);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; transition: all .2s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--gold-deep); }
.filter-chip.active { background: var(--gold-grad); color: #17171a; border-color: transparent; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.card-media .art { position: absolute; inset: 0; transition: transform .5s ease; }
/* Multi-angle carousel */
.card-carousel { position: absolute; inset: 0; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.cslide { flex: 0 0 100%; height: 100%; }
.cslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(16,16,18,.7); border: 1px solid var(--line-2); color: var(--text); font-size: 1.2rem; line-height: 1;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; }
.card:hover .cnav { opacity: 1; }
.cnav.cprev { left: 8px; } .cnav.cnext { right: 8px; }
.cnav:hover { border-color: var(--gold); }
.cdots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.cdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer; }
.cdot.on { background: var(--gold-lite); width: 16px; border-radius: 3px; }
.card-media { cursor: zoom-in; }

/* Lightbox / zoom modal */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.lb-panel { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  width: min(980px, 96vw); max-height: 92vh; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lb-close { position: absolute; top: 12px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(16,16,18,.7); border: 1px solid var(--line-2); color: var(--text); font-size: 1.5rem; line-height: 1; }
.lb-close:hover { border-color: var(--gold); }
.lb-media { background: #0e0e10; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.lb-main { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; opacity: .6; }
.lb-thumbs img.on, .lb-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.lb-info { padding: 30px 28px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-info .lb-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lb-info .lb-name { font-family: var(--font-head); font-size: 1.6rem; margin: 4px 0 6px; }
.lb-info .lb-price { font-size: 1.4rem; color: var(--gold-lite); font-family: var(--font-head); margin-bottom: 18px; }
.lb-specs { border-top: 1px solid var(--line); }
.lb-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.lb-row .lb-k { color: var(--muted); letter-spacing: .02em; }
.lb-row .lb-v { color: var(--text); text-align: right; font-weight: 500; }
.lb-add { margin-top: 22px; }
@media (max-width: 760px) {
  .lb-panel { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
  .lb-info { padding: 22px; }
}
.card:hover .card-media .art { transform: scale(1.07); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(16,16,18,.82); border: 1px solid var(--line-2); color: var(--gold-lite);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card-title { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.25; }
.card-meta { color: var(--muted); font-size: .84rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-price { font-size: 1.15rem; font-weight: 700; color: var(--gold-lite); }
.card-add {
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  transition: all .2s ease; font-size: 1.1rem;
}
.card-add:hover { background: var(--gold-grad); color: #17171a; border-color: transparent; }

/* ---------- Value props ---------- */
.props { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.prop {
  padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.prop .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(185,193,201,.1); border: 1px solid var(--gold-deep); margin-bottom: 16px; font-size: 1.3rem; }
.prop h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.prop p { color: var(--muted); font-size: .9rem; }

/* ---------- Custom CTA band ---------- */
.band {
  border-radius: 24px; padding: 56px; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(185,193,201,.16), transparent 60%),
    var(--panel);
  border: 1px solid var(--line-2);
}
.band h2 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 14px; max-width: 20ch; }
.band p { color: var(--muted); max-width: 46ch; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-col h5 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 10px; transition: color .2s ease; }
.foot-col a:hover { color: var(--gold-lite); }
.foot-brand p { max-width: 34ch; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem;
}

/* ---------- Page header (interior) ---------- */
.page-head { padding: 64px 0 20px; text-align: center; }
.page-head h1 { font-family: var(--font-head); font-size: clamp(2.2rem,5vw,3.4rem); }
.page-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--line-2); z-index: 100;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--font-head); font-size: 1.3rem; }
.drawer-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.drawer-close:hover { color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer-total b { font-size: 1.4rem; color: var(--gold-lite); font-family: var(--font-head); }
.empty-cart { text-align: center; color: var(--muted); padding: 60px 0; }

.line-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .li-art { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line-2); }
.line-item .li-info { flex: 1; min-width: 0; }
.line-item .li-info h4 { font-size: .95rem; font-family: var(--font-head); font-weight: 600; }
.line-item .li-info .li-cat { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.li-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem; display: grid; place-items: center; }
.qty button:hover { border-color: var(--gold); }
.qty span { min-width: 22px; text-align: center; font-size: .9rem; }
.li-price { color: var(--gold-lite); font-weight: 700; font-size: .95rem; }
.li-remove { background: none; border: none; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 0; }
.li-remove:hover { color: var(--danger); }

/* ---------- Forms ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Checkout layout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 34px; align-items: start; }
.summary-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: .92rem; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; color: var(--text); font-size: 1.15rem; }
.summary-line.total b { color: var(--gold-lite); font-family: var(--font-head); font-size: 1.4rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--gold-deep); color: var(--text);
  padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200;
  display: flex; align-items: center; gap: 10px; font-size: .9rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Notice banner ---------- */
.notice {
  background: rgba(185,193,201,.08); border: 1px solid var(--gold-deep); border-radius: 12px;
  padding: 16px 20px; font-size: .88rem; color: var(--gold-lite); margin-bottom: 24px;
}

/* ---------- Empty state ---------- */
.big-empty { text-align: center; padding: 80px 0; }
.big-empty h2 { font-family: var(--font-head); margin-bottom: 12px; }
.big-empty p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Live Chat Widget ---------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: var(--gold-grad); color: #17171a;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 34px rgba(185,193,201,.42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 40px rgba(185,193,201,.55); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .fab-close { display: none; }
.chat-fab .fab-face { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-fab.open .fab-chat, .chat-fab.open .fab-face { display: none; }
.chat-fab.open .fab-close { display: block; }
.chat-fab .notify-dot {
  position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.25);opacity:.7} }

.chat-panel {
  position: fixed; bottom: 98px; right: 24px; z-index: 120;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-head {
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: radial-gradient(400px 120px at 100% 0%, rgba(185,193,201,.14), transparent), var(--panel);
  display: flex; align-items: center; gap: 12px;
}
.chat-head .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.chat-head h4 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.1; }
.chat-head .status { font-size: .74rem; color: #7dd67d; display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7dd67d; }

/* Pre-chat questionnaire */
.chat-intake { flex: 1; overflow-y: auto; padding: 20px 22px; }
.chat-intake h4 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 4px; }
.chat-intake .sub { color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.chat-intake label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 5px; }
.chat-intake input, .chat-intake select {
  width: 100%; padding: 11px 13px; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--line-2); color: var(--text); font-family: inherit; font-size: .92rem;
}
.chat-intake input:focus, .chat-intake select:focus { outline: none; border-color: var(--gold); }
.chat-intake .err { color: var(--danger); font-size: .76rem; margin-top: 8px; display: none; }
.chat-intake .btn { margin-top: 18px; }
.chat-skip { display: block; width: 100%; text-align: center; margin-top: 12px; padding: 6px;
  background: none; border: none; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.chat-skip:hover { color: var(--gold-lite); }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 15px; font-size: .9rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--gold-grad); color: #17171a; border-bottom-right-radius: 4px; font-weight: 500; }
.msg a { color: var(--gold-lite); text-decoration: underline; }
.msg.user a { color: #17171a; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 15px; border-bottom-left-radius: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.3} 30%{opacity:1} }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-quick button {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--gold-lite);
  padding: 8px 13px; border-radius: 999px; font-size: .8rem; transition: all .18s ease;
}
.chat-quick button:hover { border-color: var(--gold); background: rgba(185,193,201,.08); }
.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: .9rem;
}
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--gold-grad);
  color: #17171a; display: grid; place-items: center; flex-shrink: 0;
}
.chat-input button:hover { transform: scale(1.05); }

/* Image-generation loader */
.gen-loader { padding: 6px; }
.gen-shimmer { width: 100%; aspect-ratio: 1/1; border-radius: 10px; position: relative; overflow: hidden; background: #1a1a1d; border: 1px solid var(--line); }
.gen-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(185,193,201,.20) 50%, transparent 70%); transform: translateX(-100%); animation: gen-sweep 1.4s ease-in-out infinite; }
@keyframes gen-sweep { to { transform: translateX(100%); } }
.gen-diamond { position: absolute; inset: 0; display: grid; place-items: center; }
.gen-diamond svg { width: 56px; height: 56px; opacity: .92; animation: gen-spin 2.4s linear infinite; filter: drop-shadow(0 0 10px rgba(185,193,201,.35)); }
@keyframes gen-spin { to { transform: rotateY(360deg); } }
.gen-cap { display: flex; align-items: center; gap: 9px; margin: 10px 4px 2px; font-size: .86rem; color: var(--muted); }
.gen-cap .d { width: 9px; height: 9px; background: var(--gold-grad); transform: rotate(45deg); animation: gen-pulse 1s ease-in-out infinite; }
@keyframes gen-pulse { 0%, 100% { opacity: .4; transform: rotate(45deg) scale(.8); } 50% { opacity: 1; transform: rotate(45deg) scale(1.1); } }

@media (max-width: 640px) {
  .chat-panel { bottom: 88px; right: 12px; left: 12px; width: auto; height: min(70vh, 520px); }
  .chat-fab { bottom: 16px; right: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cat-grid, .product-grid, .props { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .cat-grid, .product-grid, .props { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .band { padding: 34px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
}
