/* ============================================================
   Nureva Fashion — Design System
   Palette : Aubergine #3B1F32 / Wine #6B3A57 / Gold #C9A063
             Ivory #FBF7F2 / Ink #2A1F26 / Mauve #8B6F7A
   Type    : "Playfair Display" (display) + "Poppins" (body)
   Signature: stitched gold divider lines — a nod to tailoring
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #000000;
  --primary-light: #2E2E2E;
  --gold: #C9A063;
  --gold-soft: #E4CB9E;
  --ivory: #FBF7F2;
  --ink: #000000;
  --mauve: #6B6B6B;
  --white: #FFFFFF;
  --danger: #A23B3B;
  --success: #3B6B4A;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; outline: none; }
button:focus, a:focus { outline: none; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- stitch divider signature ---------- */
.stitch { height: 1px; border-top: 1.5px dashed var(--gold); opacity: 0.55; margin: 0; }
.stitch-label { display: flex; align-items: center; gap: 14px; margin: 4px 0 28px; }
.stitch-label::before, .stitch-label::after { content: ""; flex: 1; height: 1px; border-top: 1.5px dashed var(--gold); opacity: 0.6; }
.stitch-label span { font-family: var(--font-display); color: var(--gold); letter-spacing: 0.08em; font-size: 0.85rem; }

/* ---------- top utility bar ---------- */
.topbar { background: #FFFFFF; color: #000000; font-size: 0.82rem; text-align: center; padding: 10px 12px; letter-spacing: 0.02em; border-top: 1px solid rgba(0,0,0,0.1); font-weight: 600; }

/* ---------- header ---------- */
header.site-header { background: #FFFFFF; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(59, 31, 50, 0.12); }
.header-inner { display: flex; align-items: center; padding: 14px 16px; gap: 10px; }
.logo { display: flex; align-items: center; }
.logo-center { flex: 1; justify-content: center; min-width: 0; }
.logo-img-slim { height: 24px; width: auto; max-width: 100%; display: block; object-fit: contain; }

nav.main-nav { display: none; gap: 28px; }
nav.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; padding: 4px 0; }
nav.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.25s ease; }
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { background: none; border: none; color: var(--primary); font-size: 1.15rem; padding: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(201, 160, 99, 0.15); }
.icon-btn-round { width: 42px; height: 42px; border: none; color: var(--primary); background: none; }
.icon-btn-round:hover, .icon-btn-round:active { background: rgba(59,31,50,0.06); }

.menu-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: none; border: none; color: var(--primary); }
.menu-toggle:hover, .menu-toggle:active { background: rgba(59,31,50,0.06); }

.search-panel { display: none; border-top: 1px solid rgba(59,31,50,0.1); background: var(--white); }
.search-panel.open { display: block; }
.search-panel .container { padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.search-panel input { flex: 1 1 200px; min-width: 0; box-sizing: border-box; padding: 10px 14px; border: 1px solid rgba(59,31,50,0.2); border-radius: var(--radius); font-size: 0.95rem; background: var(--ivory); }
.search-panel button { flex-shrink: 0; background: var(--primary); color: var(--white); border: none; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; }
@media (max-width: 480px) {
  .search-panel .container { flex-direction: column; }
  .search-panel input, .search-panel button { width: 100%; flex: none; }
}
#searchResults { max-height: 60vh; overflow-y: auto; border-top: 1px dashed rgba(59,31,50,0.15); }
#searchResults a { display: flex; gap: 12px; padding: 10px 20px; align-items: center; border-bottom: 1px solid rgba(59,31,50,0.06); }
#searchResults img { width: 44px; height: 54px; object-fit: cover; border-radius: 3px; }

/* ---------- mobile nav drawer ---------- */
.nav-drawer { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: #FFFFFF; color: #000000; z-index: 200; transform: translateX(100%); transition: transform 0.3s ease; padding: 24px 22px; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,0.12); }
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { display: block; padding: 12px 0; font-weight: 600; color: #000000; border-bottom: 1px solid rgba(0,0,0,0.1); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,10,16,0.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-close { background: none; border: none; color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 30px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: 1.5px solid transparent; transition: all 0.2s ease; }
.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: rgba(0,0,0,0.06); }
.btn-primary { background: var(--primary); color: var(--ivory); }
.btn-primary:hover { background: var(--primary-light); }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 9px 22px; font-size: 0.85rem; }

/* ---------- homepage covers (2 fixed covers, photo itself is the link) ---------- */
.covers-section { padding: 18px 0 6px; background: var(--white); }
.covers-grid { display: flex; flex-direction: column; gap: 22px; }
.cover-block { display: flex; flex-direction: column; align-items: center; }
.cover-card { display: block; width: 100%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cover-card img { width: 100%; height: 100%; object-fit: cover; }
/* cover 1 (top, big) matches 1586x992 photo; cover 2 (bottom, small) matches 2062x763 photo */
.cover-block:nth-child(1) .cover-card { aspect-ratio: 1586/992; }
.cover-block:nth-child(2) .cover-card { aspect-ratio: 2062/763; }
@media (max-width: 759px) {
  /* keep covers from filling the whole screen so the floating contact button (fixed near the bottom) never sits on top of them */
  .cover-block:nth-child(1) .cover-card { max-height: 34vh; }
  .cover-block:nth-child(2) .cover-card { max-height: 24vh; }
}
@media (min-width: 760px) {
  .covers-grid { flex-direction: row; align-items: flex-start; }
  .cover-block { flex: 1; }
}

/* ---------- news ticker ---------- */
.news-ticker { background: var(--gold-soft); color: var(--primary); overflow: hidden; white-space: nowrap; padding: 8px 0; font-size: 0.88rem; font-weight: 600; }
.news-ticker-track { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
.news-ticker-track span { margin-right: 60px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); font-weight: 700; }
.section-head p { color: var(--mauve); margin-top: 8px; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .label { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); color: var(--ivory); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--primary); color: var(--gold-soft); font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 3px; letter-spacing: 0.03em; }
.badge.offer { background: var(--danger); color: var(--ivory); }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.75rem; color: var(--mauve); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.price-old { text-decoration: line-through; color: var(--mauve); font-size: 0.88rem; }
.product-body .btn { margin-top: auto; text-align: center; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--mauve); }
.empty-state h3 { font-family: var(--font-display); color: var(--primary); margin-bottom: 8px; }

/* ---------- footer ---------- */
footer { background: #FFFFFF; color: #000000; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 34px; padding: 52px 0 30px; }
.footer-grid.footer-grid-minimal { grid-template-columns: 1.5fr 1fr; }
.footer-grid h4 { font-family: var(--font-display); color: var(--gold); margin-bottom: 16px; font-size: 1.05rem; }
.footer-grid p, .footer-grid a { color: rgba(0,0,0,0.72); font-size: 0.92rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.foot-logo { font-family: var(--font-display); font-size: 1.4rem; color: #000000; margin-bottom: 12px; }
.foot-logo span { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #1877F2; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.15s ease, opacity 0.15s ease; }
.social-row a svg { display: block; }
.social-row a:hover { transform: translateY(-2px); opacity: 0.9; }
.social-row a.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-row a.msg { background: linear-gradient(135deg, #00B2FF, #006AFF, #A100FF); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.1); text-align: center; padding: 18px 0; font-size: 0.82rem; color: rgba(0,0,0,0.55); }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--mauve); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- product detail ---------- */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 30px 0 60px; }
.pd-gallery-main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 68px; height: 84px; object-fit: cover; border-radius: 3px; cursor: pointer; border: 2px solid transparent; opacity: 0.75; }
.pd-thumbs img.active { border-color: var(--gold); opacity: 1; }
.pd-info .pd-cat { color: var(--mauve); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.pd-info h1 { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); margin: 8px 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price .price-now { font-size: 1.6rem; }
.pd-stock { font-size: 0.85rem; color: var(--success); margin-bottom: 20px; }
.pd-stock.low { color: var(--danger); }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border: 1.5px solid rgba(59,31,50,0.25); border-radius: 20px; font-size: 0.88rem; background: var(--white); }
.chip.selected { background: var(--primary); color: var(--ivory); border-color: var(--primary); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qty-row button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(59,31,50,0.25); background: var(--white); font-size: 1.1rem; }
.pd-actions { display: flex; gap: 12px; margin-bottom: 26px; }
.pd-actions .btn { flex: 1; }
.pd-desc { line-height: 1.85; color: var(--ink); opacity: 0.9; }
.pd-desc h4 { font-family: var(--font-display); color: var(--primary); margin-bottom: 8px; }

/* ---------- filter bar (products page) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 26px 0 8px; }
.filter-chip { padding: 9px 18px; border-radius: 20px; border: 1.5px solid rgba(59,31,50,0.2); font-size: 0.88rem; font-weight: 600; background: var(--white); color: var(--ink); }
.filter-chip.active { background: var(--primary); color: var(--ivory); border-color: var(--primary); }

/* ---------- forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 13px; border: 1px solid rgba(59,31,50,0.25); border-radius: var(--radius); background: var(--white); font-size: 0.95rem; }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: #FFFFFF; color: #000000; padding: 46px 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.08); }
.page-hero h1 { font-family: var(--font-display); font-size: 2.1rem; }
.page-hero p { color: var(--mauve); margin-top: 8px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--primary); color: var(--ivory); padding: 13px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 500; opacity: 0; pointer-events: none; transition: all 0.3s ease; font-size: 0.9rem; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- lightbox ---------- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(20,10,16,0.92); z-index: 600; display: none; align-items: center; justify-content: center; padding: 30px 16px; cursor: zoom-out; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay .lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 6px; box-shadow: var(--shadow-lg); cursor: default; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(251,247,242,0.15); color: var(--ivory); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; }

/* ---------- floating contact button ---------- */
.fab-container { position: fixed; right: 20px; bottom: 78px; z-index: 999; width: 60px; height: 58px; pointer-events: none; }

/* ---------- offer popup badge ---------- */
.offer-popup {
  position: fixed; left: 0; bottom: 84px; z-index: 400;
  width: 112px;
  opacity: 0; transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.offer-popup.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.offer-popup img { width: 100%; display: block; cursor: pointer; filter: drop-shadow(0 8px 18px rgba(20,10,16,0.28)); }
.offer-popup-close {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  border-radius: 50%; border: 1px solid rgba(59,31,50,0.15);
  background: var(--white); color: var(--primary);
  font-size: 13px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,10,16,0.2);
  cursor: pointer;
}
.fab-container, .fab-container * { pointer-events: none; }
.fab-container .fab-main, .fab-container .fab-option { pointer-events: auto; }

/* ---------- scroll-to-top button ---------- */
.scroll-top-btn { position: fixed; right: 20px; bottom: 148px; z-index: 998; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(155deg, #FFF9F1, #EDDCC3); border: 1px solid #E4CDA6; color: #3B2A1E; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(80,55,20,0.25), inset 0 1px 1px rgba(255,255,255,0.6); cursor: pointer; touch-action: manipulation; opacity: 0; transform: translateY(10px) scale(0.8); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.scroll-top-btn.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top-btn:active { transform: scale(0.92); }
.scroll-top-btn svg { width: 22px; height: 22px; }

/* ---------- bottom navigation bar ---------- */
body { padding-bottom: 64px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: #FFFFFF; border-top: 1px solid rgba(59,31,50,0.12); display: flex; box-shadow: 0 -4px 16px rgba(43,22,36,0.08); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 4px 8px; color: var(--mauve); font-size: 0.7rem; font-weight: 600; position: relative; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav .bn-badge { position: absolute; top: 3px; right: calc(50% - 20px); background: var(--gold); color: var(--primary); border-radius: 50%; width: 16px; height: 16px; font-size: 0.62rem; display: none; align-items: center; justify-content: center; font-weight: 700; }
/* Clay-morphism teardrop launcher: an outer gold ring with an inset cream
   body, matching the reference "puffy bubble" style. The ::after layer is
   the visible cream face; the button background is the gold ring. */
.fab-main { position: absolute; right: 0; bottom: 0; width: 62px; height: 60px; padding: 0; border-radius: 46% 46% 46% 12%; background: linear-gradient(160deg, #EACB92, #C9A063); border: none; color: #2E2016; cursor: pointer; touch-action: manipulation; box-shadow: 0 18px 32px rgba(80,55,20,0.45), 0 5px 12px rgba(80,55,20,0.28); transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); z-index: 3; }
.fab-main::after { content: ""; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius: inherit; background: linear-gradient(160deg, #FFFDF8, #F3E6CC); box-shadow: inset 0 2px 3px rgba(255,255,255,0.9), inset 0 -6px 10px rgba(120,85,35,0.18); }
.fab-main:active { transform: scale(0.94); }
.fab-main .fab-icon-wrap { position: absolute; top: 50%; left: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 4px; transform: translate(calc(-50% + 6px), calc(-50% - 6px)); transition: all 0.3s cubic-bezier(.34,1.56,.64,1); }
.fab-main svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.fab-main svg.fab-icon-close { position: absolute; top: 50%; left: 50%; z-index: 1; opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scale(0.4); transition: all 0.32s cubic-bezier(.34,1.56,.64,1); }
.fab-container.open .fab-icon-dots { opacity: 0; transform: translate(calc(-50% + 6px), calc(-50% - 6px)) rotate(45deg) scale(0.4); }
.fab-container.open .fab-icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
.fab-dot { width: 6px; height: 6px; border-radius: 50%; background: #2E2016; animation: fabDotBounce 1.2s ease-in-out infinite; }
.fab-dot:nth-child(1) { animation-delay: 0s; }
.fab-dot:nth-child(2) { animation-delay: 0.15s; }
.fab-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes fabDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Option bubbles start stacked on the main button, then fan out into a
   scattered cluster (varied x/y/rotation per bubble) when opened, mirroring
   the reference's hand-placed, non-linear layout rather than a straight list. */
.fab-option { position: absolute; right: 5px; bottom: 4px; width: 50px; height: 50px; padding: 0; border-radius: 50%; background: linear-gradient(160deg, #EACB92, #C9A063); border: none; color: #2E2016; box-shadow: 0 14px 24px rgba(80,55,20,0.4), 0 4px 8px rgba(80,55,20,0.24); opacity: 0; transform: translate(0, 0) scale(0.3) rotate(-20deg); pointer-events: none; transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease; text-decoration: none; font-family: inherit; cursor: pointer; touch-action: manipulation; z-index: 2; }
.fab-option::after { content: ""; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius: 50%; background: linear-gradient(160deg, #FFFDF8, #F3E6CC); box-shadow: inset 0 2px 3px rgba(255,255,255,0.9), inset 0 -5px 8px rgba(120,85,35,0.18); }
.fab-option svg { width: 21px; height: 21px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }
.fab-option:active { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.9) !important; }
.fab-container.open .fab-option { opacity: 1; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(1); pointer-events: auto; }

/* nth-child (not nth-of-type) so the mix of <a>/<button> tags is still
   counted in true document order: 1=Details 2=Message 3=WhatsApp 4=Call */
.fab-option:nth-child(1) { --fx: -72px; --fy: 2px; --fr: -3deg; width: 46px; height: 46px; transition-delay: 0.02s; }
.fab-option:nth-child(2) { --fx: -76px; --fy: -64px; --fr: 4deg; width: 48px; height: 48px; transition-delay: 0.08s; }
.fab-option:nth-child(3) { --fx: -42px; --fy: -118px; --fr: -3deg; width: 56px; height: 56px; transition-delay: 0.14s; }
.fab-option:nth-child(4) { --fx: 8px; --fy: -150px; --fr: 3deg; width: 54px; height: 54px; transition-delay: 0.2s; }

/* Dark "alert" variant for the Details bubble, matching the reference's
   solid dark glyph-on-light-circle look */
.fab-option-alert svg { color: #2E2016; }
.fab-badge-dot { position: absolute; top: 1px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #D64545; border: 2px solid #FFFDF8; display: none; z-index: 3; }

/* ---------- live chat panel (customer side) ---------- */
.chat-panel-overlay { position: fixed; inset: 0; background: rgba(20,10,15,0.35); z-index: 995; display: none; }
.chat-panel-overlay.open { display: block; }
.chat-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 996;
  width: 340px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 100px);
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.96); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head { background: var(--primary); color: var(--ivory); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-panel-title { font-family: var(--font-display); font-size: 1.05rem; }
.chat-panel-sub { font-size: 0.75rem; color: var(--gold-soft); margin-top: 2px; }
.chat-panel-head button { background: none; border: none; color: var(--ivory); font-size: 1.1rem; cursor: pointer; }
.chat-panel-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.chat-start-form p { font-size: 0.88rem; color: var(--mauve); margin-bottom: 14px; }
.chat-thread { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.chat-empty { color: var(--mauve); font-size: 0.85rem; text-align: center; margin-top: 30px; }
.chat-bubble { max-width: 80%; padding: 9px 12px; border-radius: 12px; font-size: 0.88rem; line-height: 1.45; }
.chat-bubble-text { word-break: break-word; }
.chat-bubble-time { font-size: 0.65rem; opacity: 0.65; margin-top: 3px; }
.chat-bubble.from-customer { align-self: flex-end; background: var(--primary); color: var(--ivory); border-bottom-right-radius: 3px; }
.chat-bubble.from-admin { align-self: flex-start; background: var(--ivory); border: 1px solid rgba(0,0,0,0.1); border-bottom-left-radius: 3px; }
.chat-send-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; }
.chat-send-form input { flex: 1; padding: 10px 13px; border: 1px solid rgba(0,0,0,0.18); border-radius: 20px; font-size: 0.9rem; }
.chat-send-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--ivory); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
@media (max-width: 480px) {
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 8px; height: 70vh; max-height: 70vh; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 0 20px; }
  section { padding: 40px 0; }
}
