/* =====================================================================
   Pelewura Treasures — Universal Stylesheet
   Shared design system for every page (home, products, about, admin)
   ===================================================================== */

/* ----- 1. Design tokens -------------------------------------------- */
:root {
  /* Brand — royal purple (Pelewura logo) with gold accents.
     NOTE: variable/class names (--solar, --green, .btn-solar) are kept
     for compatibility; their VALUES are the jewellery palette below. */
  --brand:        #5a2a83;   /* primary royal purple */
  --brand-dark:   #431f63;
  --brand-darker: #2e1544;
  --brand-light:  #8b5cb0;
  --green:        #b8860b;   /* primary ACTION colour — now gold (buttons/CTAs) */
  --green-dark:   #9a6f08;
  --green-light:  #d4a017;
  --solar:        #e8b923;   /* accent — badges, stars, highlights (gold) */
  --solar-dark:   #c69214;
  --solar-light:  #f6d55c;

  /* Neutrals */
  --ink:        #1a0e29;   /* deep purple-black — dark sections / headings */
  --ink-2:      #241238;
  --ink-3:      #33194d;
  --text:       #2a2233;
  --muted:      #6b6076;
  --muted-2:    #948aa1;
  --line:       #ece6f2;
  --line-2:     #ddd2e8;
  --bg:         #ffffff;
  --bg-soft:    #faf7fc;
  --bg-soft-2:  #f3ecf8;
  --white:      #ffffff;

  /* Effects */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-sm:  10px;
  --radius-pill: 999px;
  --shadow-sm:  0 2px 8px rgba(26, 14, 41, .06);
  --shadow:     0 12px 30px rgba(26, 14, 41, .10);
  --shadow-lg:  0 26px 60px rgba(26, 14, 41, .20);
  --shadow-brand: 0 14px 34px rgba(90, 42, 131, .32);
  --shadow-green: 0 14px 30px rgba(184, 134, 11, .38);
  --shadow-solar: 0 14px 30px rgba(232, 185, 35, .42);

  --grad-brand: linear-gradient(135deg, #7a3fae 0%, #431f63 100%);
  --grad-green: linear-gradient(135deg, #e8c25a 0%, #c69214 50%, #9a6f08 100%);
  --grad-solar: linear-gradient(135deg, #f6d55c 0%, #e8b923 55%, #c69214 100%);
  --grad-ink:   linear-gradient(160deg, #1a0e29 0%, #2e1544 55%, #431f63 130%);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .18s ease;
  --t: .3s var(--ease);

  --container: 1200px;
  --topbar-h: 42px;
  --nav-h: 76px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ----- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
/* Fixed topbar + nav: hero pages tuck under it; all other pages get clearance.
   .admin has its own (non-fixed) header, so it must NOT get this padding. */
body:not(.has-hero):not(.admin) { padding-top: calc(var(--topbar-h) + var(--nav-h)); }
:target, [id] { scroll-margin-top: calc(var(--topbar-h) + var(--nav-h) + 12px); }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
/* Luxury serif display for the big headings (hero, section titles, promo cards) */
.hero h1, .section-title, .cta-band h2, .about-promo__h, .footer__brand .brand__txt,
h1.display, h2.display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
::selection { background: var(--brand); color: #fff; }

/* ----- 3. Layout helpers ------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--grad-ink); color: #cdd9e8; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--solar-dark); margin-bottom: 16px;
}
/* gold diamond flourishes flanking centered eyebrows (reference look) */
.section-head:not(.left) .eyebrow::before,
.section-head:not(.left) .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--solar), transparent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--solar); border-radius: 2px; }
.section-head:not(.left) .eyebrow { justify-content: center; }
.section--ink .eyebrow { color: var(--solar-light); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.section--ink .section-sub { color: #aebfd2; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----- 4. Buttons -------------------------------------------------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(90,42,131,.42); }

.btn-solar { background: var(--grad-green); color: #2e1a00; box-shadow: var(--shadow-green); }
.btn-solar:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(184,134,11,.5); }
.btn-green { background: var(--grad-green); color: #2e1a00; box-shadow: var(--shadow-green); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(184,134,11,.5); }
.btn-yellow { background: var(--grad-solar); color: #3a2e00; box-shadow: var(--shadow-solar); }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(232,185,35,.55); }

.btn-whatsapp { background: #25d366; color: #053d1c; box-shadow: 0 14px 30px rgba(37,211,102,.35); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(37,211,102,.5); }

.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); }

.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ----- 5a. Top utility bar ----------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 1001;
  background: var(--ink); color: rgba(255,255,255,.85);
  display: flex; align-items: center; font-size: .82rem;
  border-bottom: 1px solid rgba(232,185,35,.14);
}
.topbar__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__contact { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar__contact a, .topbar__contact span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); white-space: nowrap; }
.topbar__contact a:hover { color: var(--solar-light); }
.topbar__contact svg { width: 14px; height: 14px; color: var(--solar); flex: none; }
.topbar__social { display: flex; align-items: center; gap: 8px; }
.topbar__social .lbl { color: rgba(255,255,255,.6); margin-right: 3px; }
.topbar__social a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); transition: var(--t-fast); }
.topbar__social a:hover { background: var(--solar); color: var(--ink); }
.topbar__social svg { width: 13px; height: 13px; }

/* ----- 5b. Navbar -------------------------------------------------- */
.nav {
  position: fixed; inset: var(--topbar-h) 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; background: rgba(26,14,41,.96); backdrop-filter: blur(14px);
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid rgba(232,185,35,.12); box-shadow: 0 10px 30px rgba(12,6,20,.28);
}
/* transparent = homepage hero state; goes solid on scroll (JS toggles .solid) */
.nav.transparent { background: rgba(26,14,41,.34); box-shadow: none; }
.nav.transparent.solid, .nav.solid { background: rgba(26,14,41,.96); box-shadow: 0 10px 30px rgba(12,6,20,.35); }
.nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; border-radius: 10px; }
.brand__txt { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.brand__txt span { font-family: var(--font-display); color: var(--solar-dark); }
.brand__txt small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .28em; color: var(--solar-dark); text-transform: uppercase; margin-top: 4px; }
/* on the dark nav + footer the wordmark is light with a brighter gold accent */
.nav .brand__txt, .footer .brand__txt { color: #fff; }
.nav .brand__txt span, .footer .brand__txt span { color: var(--solar-light); }
.nav .brand__txt small, .footer .brand__txt small { color: var(--solar); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.82); transition: color var(--t-fast), background var(--t-fast); position: relative;
}
.nav__links a:hover { color: var(--solar-light); }
.nav__links a.active { color: var(--solar-light); }
.nav__links a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--solar); border-radius: 2px; }
.nav__cta { display: flex; align-items: center; gap: 6px; }
.nav__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.85); transition: var(--t-fast); position: relative; }
.nav__icon:hover { background: rgba(232,185,35,.15); color: var(--solar-light); }
.nav__icon svg { width: 20px; height: 20px; }
.nav__icon .badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--solar); color: var(--ink); font-size: .64rem; font-weight: 800; display: grid; place-items: center; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; }
.nav__toggle svg { width: 26px; height: 26px; }

/* mobile drawer */
.nav__backdrop { position: fixed; inset: 0; background: rgba(8,16,28,.5); opacity: 0; visibility: hidden; transition: var(--t); z-index: 999; }
.nav__backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 340px);
  background: #fff; z-index: 1001; transform: translateX(100%);
  transition: transform var(--t), visibility var(--t);
  visibility: hidden;   /* keeps the off-screen panel out of layout/scroll width */
  display: flex; flex-direction: column; padding: 22px; box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer a { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; color: var(--ink); transition: var(--t-fast); }
.drawer a:hover, .drawer a.active { background: var(--bg-soft); color: var(--brand); }
.drawer .btn { margin-top: 14px; }

/* ----- 6. Hero ----------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-top: calc(var(--topbar-h) + var(--nav-h)); }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-color: var(--ink); background-size: cover; background-position: center; transform: scale(1.04); }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18,9,29,.94) 0%, rgba(22,12,36,.82) 42%, rgba(26,14,41,.6) 100%); }
/* default hero content (page heroes: about, products, category, blog) */
.hero__inner { padding-block: 60px; max-width: 760px; }

/* -- Split hero (homepage): TWO real columns — text left, gold-bar image right.
   Because the image is its own grid column (not a background), the text can NEVER
   overlap it, at any width. The flat purple backdrop fills the whole hero. */
.hero--split .hero__bg {
  /* just the deep-purple stage backdrop (curtains + bokeh), bar cropped out to the right */
  background-image: var(--hero-img, url("../assets/hero-gold-bar-wide.jpeg"));
  background-size: cover; background-position: left center; transform: none;
  opacity: .5;
}
.hero--split .hero__overlay { background:
  linear-gradient(100deg, rgba(18,9,29,.92) 0%, rgba(20,11,33,.86) 46%, rgba(26,14,41,.7) 100%); }
.hero--split .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: center; gap: 40px; max-width: var(--container); padding-block: 60px;
}
.hero--split .hero__copy { min-width: 0; }
.hero__figure { position: relative; justify-self: end; }
.hero__figure img {
  width: 100%; max-width: 460px; height: auto; border-radius: var(--radius-lg);
  border: 1px solid rgba(232,185,35,.28); box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.hero__figure::after { content: ""; position: absolute; inset: -12%; z-index: -1;
  background: radial-gradient(circle, rgba(232,185,35,.24), transparent 62%); }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); color: #fff; line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 .hl { display: block; background: var(--grad-solar); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__rule { width: 110px; height: 2px; margin: 24px 0; background: linear-gradient(90deg, var(--solar), transparent); position: relative; }
.hero__rule::before { content: "\25C6"; position: absolute; left: 42px; top: 50%; transform: translateY(-50%); color: var(--solar); font-size: .7rem; }
.hero p.lead { margin-top: 20px; font-size: clamp(1rem, 2vw, 1.14rem); color: #e6dced; max-width: 440px; line-height: 1.7; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 38px; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--solar-light); font-weight: 700; }
.hero__stat span { font-size: .86rem; color: #c9bcd6; letter-spacing: .02em; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0%{opacity:.2; transform: scaleY(.3);} 50%{opacity:1;} 100%{opacity:.2; transform: scaleY(1); transform-origin: top;} }

/* ----- 7. Cards ---------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }

/* feature / service cards */
.feature { padding: 32px 28px; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft-2); color: var(--brand); margin-bottom: 20px; transition: var(--t); }
.feature:hover .feature__icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* product cards */
.pcard { overflow: hidden; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.08); }
.pcard__badge { position: absolute; top: 12px; left: 12px; background: var(--grad-solar); color: #3a2300; font-size: .72rem; font-weight: 800; padding: 6px 12px; border-radius: var(--radius-pill); letter-spacing: .03em; box-shadow: var(--shadow-sm); }
.pcard__cat { position: absolute; top: 12px; right: 12px; background: rgba(12,22,38,.78); color: #fff; font-size: .68rem; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill); backdrop-filter: blur(4px); }
.pcard__play { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-sm); }
.pcard__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pcard__desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* stacked footer: price on its own row, actions full-width below — never crops,
   even in the narrow 4-column desktop grid */
.pcard__foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
.pcard__price { font-weight: 800; color: var(--ink); font-size: 1.18rem; line-height: 1.2; }
.pcard__price small { display: block; font-size: .68rem; color: var(--muted-2); font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.pcard__price.poa { font-size: 1rem; color: var(--brand); }
.pcard__actions { display: flex; gap: 8px; }
.pcard__actions .btn { flex: 1; min-width: 0; padding: 10px 10px; font-size: .86rem; gap: 6px; }
.pcard__actions .btn svg { width: 15px; height: 15px; flex: none; }
.oos { opacity: .62; }
.oos .pcard__media::after { content: "Out of stock"; position: absolute; inset: 0; background: rgba(12,22,38,.55); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .04em; }

/* ----- 8. Misc components ------------------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: var(--radius-pill); background: var(--bg-soft-2); color: var(--brand); font-weight: 600; font-size: .85rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; padding: 16px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.media-badge .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-solar); color: #3a2300; display: grid; place-items: center; }
.media-badge strong { display: block; font-size: 1.25rem; color: var(--ink); }
.media-badge span { font-size: .78rem; color: var(--muted); }

.checklist li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 15px; color: var(--text); }
.checklist li svg { flex: none; width: 24px; height: 24px; color: var(--brand); margin-top: 1px; }
.checklist li b { color: var(--ink); }

/* steps */
.step { position: relative; padding: 30px 26px; }
.step__num { font-size: 2.4rem; font-weight: 800; color: var(--bg-soft-2); position: absolute; top: 16px; right: 22px; line-height: 1; }
.section--ink .step__num { color: rgba(255,255,255,.08); }
.step__ic { width: 50px; height: 50px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.section--ink .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.section--ink .step p { color: #aebfd2; }

/* testimonials */
.quote { padding: 30px 28px; }
.quote__stars { color: var(--solar); display: flex; gap: 3px; margin-bottom: 14px; }
.quote__stars svg { width: 18px; height: 18px; }
.quote p { font-size: 1.02rem; color: var(--text); }
.quote__who { margin-top: 20px; display: flex; align-items: center; gap: 13px; }
.quote__av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote__who b { color: var(--ink); display: block; font-size: .96rem; }
.quote__who span { color: var(--muted); font-size: .82rem; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.statband .s strong { font-size: clamp(2rem, 5vw, 3rem); background: var(--grad-solar); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; display: block; }
.statband .s span { color: #aebfd2; font-size: .92rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px clamp(24px, 6vw, 70px); background: var(--grad-brand); color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); top: -160px; right: -80px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); position: relative; }
.cta-band p { color: #d8e9fb; margin-top: 12px; position: relative; max-width: 560px; }
.cta-band .hero__actions { position: relative; }

/* contact cards */
.contact-card { padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--bg-soft-2); color: var(--brand); display: grid; place-items: center; }
.contact-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; }
.contact-card a:hover { color: var(--brand); }

/* ----- 8b. Catalog toolbar ----------------------------------------- */
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2);
  background: #fff; color: var(--text); font-weight: 600; font-size: .9rem; transition: var(--t-fast);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.catalog-search { position: relative; min-width: 240px; flex: 1; max-width: 340px; }
.catalog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.catalog-search .input { padding-left: 42px; border-radius: var(--radius-pill); }

/* ----- 8b-i. Star ratings + likes ---------------------------------- */
.stars { position: relative; display: inline-block; font-size: .98rem; line-height: 1; letter-spacing: 2px; font-family: Arial, sans-serif; }
.stars .base { color: #d7dee6; }
.stars .fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--solar-dark); white-space: nowrap; }
.stars__n { margin-left: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.rate-row { display: flex; align-items: center; gap: 0; margin: 8px 0 12px; }
.likes { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .82rem; color: var(--ink); }
.likes svg { width: 15px; height: 15px; color: #ef4d5a; }
.pcard__like { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 5px 10px; box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 800; color: var(--ink); backdrop-filter: blur(3px); }
.pcard__like svg { width: 13px; height: 13px; color: #ef4d5a; }
.pcard__cat2 { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.pcard__cat2:hover { text-decoration: underline; }
a.pd__cat:hover { background: var(--brand); color: #fff; }

/* Shop-by-category tiles (home) */
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile__ic { width: 54px; height: 54px; border-radius: 15px; background: var(--bg-soft-2); color: var(--brand); display: grid; place-items: center; margin-bottom: 8px; transition: var(--t); }
.cat-tile:hover .cat-tile__ic { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.cat-tile__ic svg { width: 27px; height: 27px; }
.cat-tile h3 { font-size: 1.08rem; }
.cat-tile span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ----- 8b-ii. E-commerce shop layout ------------------------------- */
.shop { display: grid; grid-template-columns: 258px 1fr; gap: 32px; align-items: start; }
.shop__side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
.filter-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-group h4 { font-size: .95rem; margin-bottom: 13px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button { text-align: left; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: var(--t-fast); width: 100%; }
.filter-list button .n { font-size: .74rem; color: var(--muted-2); background: var(--bg-soft); padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.filter-list button:hover { background: var(--bg-soft); color: var(--brand); }
.filter-list button.active { background: var(--grad-brand); color: #fff; }
.filter-list button.active .n { background: rgba(255,255,255,.25); color: #fff; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 9px; font-size: .88rem; }
.price-inputs span { color: var(--muted-2); }
.rating-filter button .stars { pointer-events: none; }
.shop__main { min-width: 0; }

/* view toggle (grid / list) */
.view-toggle { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); overflow: hidden; }
.view-toggle button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); transition: var(--t-fast); }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button.active { background: var(--grad-brand); color: #fff; }
.view-toggle button:not(.active):hover { color: var(--brand); background: var(--bg-soft); }

/* GRID VIEW — responsive columns: 2 on phones → up to 4 on large screens */
#catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 620px) { #catalog-grid:not(.list) { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 22px; } }

/* LIST VIEW — horizontal rows */
#catalog-grid.list { grid-template-columns: 1fr; gap: 14px; }
#catalog-grid.list .pcard { flex-direction: row; }
#catalog-grid.list .pcard__media { width: clamp(120px, 32%, 240px); flex: none; aspect-ratio: auto; }
#catalog-grid.list .pcard__media img { height: 100%; }
#catalog-grid.list .pcard__body { flex: 1; }
#catalog-grid.list .pcard__desc { -webkit-line-clamp: 2; }
#catalog-grid.list .pcard__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#catalog-grid.list .pcard__actions .btn { flex: none; padding: 10px 16px; }
@media (max-width: 480px) { #catalog-grid.list .pcard__cat2 { display: none; } #catalog-grid.list .pcard__desc { display: none; } }
.shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop__bar .count { color: var(--muted); font-size: .92rem; font-weight: 600; }
.shop__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-select { padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem; background: #fff; cursor: pointer; }
.side-toggle { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop__side { position: static; display: none; }
  .shop__side.open { display: flex; }
  .side-toggle { display: inline-flex; }
}

/* ----- 8b-iii. Product detail reviews ------------------------------ */
.rating-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 2px; }
.rating-summary .big { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }
.review { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.review__who b { display: block; color: var(--ink); font-size: .96rem; }
.review__who span { font-size: .8rem; color: var(--muted); }
.review p { color: var(--text); font-size: .98rem; }
.review .stars { margin-top: 3px; }

/* ----- 8c. Team + mission ------------------------------------------ */
.team-card { padding: 30px 26px; text-align: center; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card .av { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 18px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; box-shadow: var(--shadow-brand); }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--brand); font-weight: 700; font-size: .92rem; margin: 4px 0 12px; }
.team-card p { color: var(--muted); font-size: .94rem; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mission { padding: 34px 30px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.mission.brand { background: var(--grad-brand); color: #fff; }
.mission.dark { background: var(--grad-ink); color: #cdd9e8; }
.mission h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.mission .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.mission.brand p { color: #e3effb; } .mission p { font-size: 1.02rem; }
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }

/* ----- 8d. Product detail ------------------------------------------ */
.pcard__media { display: block; }
.pcard__body h3 a { color: inherit; transition: color var(--t-fast); }
.pcard:hover .pcard__body h3 a { color: var(--brand); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
/* Media column sticks in view while the description scrolls past (desktop). */
.pd__media { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
/* Ratio is set per-media in JS (var --pd-ratio); 4/3 is only the pre-load default.
   Height is capped so a tall portrait (9:16) video never exceeds the viewport,
   and object-fit: contain guarantees the whole frame shows — never cropped. */
.pd__main { aspect-ratio: var(--pd-ratio, 4 / 3); max-height: calc(100vh - var(--nav-h) - 40px); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft-2); box-shadow: var(--shadow); }
.pd__main img, .pd__main video { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd__thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bg-soft-2); position: relative; transition: border var(--t-fast); }
.pd__thumb.active { border-color: var(--brand); }
.pd__thumb img, .pd__thumb video { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb .pi { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(12,22,38,.4); }
.pd__thumb .pi svg { width: 22px; height: 22px; }
.pd__cat { display: inline-flex; margin-bottom: 14px; }
.pd__title { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.pd__price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 16px 0 6px; }
.pd__price.poa { font-size: 1.3rem; color: var(--brand); }
.pd__stock { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; }
.pd__stock.in { color: #137a43; } .pd__stock.out { color: #b3261e; }
.pd__stock .d { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd__desc { color: var(--muted); font-size: 1.04rem; margin: 20px 0 24px; white-space: pre-line; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pd__assure { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.pd__assure li { display: flex; gap: 11px; align-items: center; font-size: .94rem; color: var(--text); }
.pd__assure svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 30px; }
  /* Stacked layout: media scrolls normally, no sticky, taller cap allowed. */
  .pd__media { position: static; }
  .pd__main { max-height: 78vh; }
}

/* ----- 8e. Blog ---------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.bcard { overflow: hidden; display: flex; flex-direction: column; }
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bcard__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft-2); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.07); }
.bcard__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.bcard__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted-2); margin-bottom: 11px; }
.bcard__meta .pill { padding: 4px 11px; font-size: .74rem; }
.bcard__body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 9px; }
.bcard__body h3 a { color: inherit; transition: color var(--t-fast); }
.bcard:hover h3 a { color: var(--brand); }
.bcard__excerpt { color: var(--muted); font-size: .94rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__more { margin-top: 16px; font-weight: 700; color: var(--brand); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.bcard__more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.bcard:hover .bcard__more svg { transform: translateX(4px); }

/* featured blog hero */
.blog-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; margin-bottom: 40px; }
.blog-feature__img { min-height: 320px; background-size: cover; background-position: center; background-color: var(--bg-soft-2); }
.blog-feature__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.blog-feature__body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0; }
.blog-feature__body p { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 820px) { .blog-feature { grid-template-columns: 1fr; } .blog-feature__img { min-height: 220px; } }

/* post detail */
.post { max-width: 760px; margin-inline: auto; }
/* Cover ratio is set per-image in JS (--post-cover-ratio); 16/8 is the pre-load
   default. Height capped + object-fit: contain so a portrait cover shows fully. */
.post__cover { width: 100%; aspect-ratio: var(--post-cover-ratio, 16 / 8); max-height: 70vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 30px; background: var(--bg-soft-2); }
.post__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-bottom: 14px; flex-wrap: wrap; }
.post__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 18px; }
.post__content { font-size: 1.08rem; color: #33414f; line-height: 1.8; }
.post__content p { margin-bottom: 22px; }
.post__content img, .post__content video { border-radius: var(--radius); margin: 10px 0 24px; width: 100%; }
/* Inline video: never taller than the viewport; portrait clips sit centered on a
   dark band (contain) instead of stretching the page full-width. */
.post__content video { max-height: 70vh; object-fit: contain; background: #0c1626; display: block; }
.post__share { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ----- Social share row (product + blog) --------------------------- */
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.share__label { font-weight: 700; color: var(--ink); }
.share__btn { gap: 7px; }
.share__btn svg { width: 17px; height: 17px; }
.post__share-more { margin-top: 16px; }

/* ----- 8f. Admin tabs ---------------------------------------------- */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px; gap: 4px; margin-bottom: 26px; }
.tab { padding: 9px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: .94rem; color: var(--muted); transition: var(--t-fast); }
.tab.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.tab:not(.active):hover { color: var(--brand); }

/* ----- 9. Footer --------------------------------------------------- */
.footer { background: var(--grad-ink); color: #c3b6d2; padding-top: 76px; border-top: 3px solid var(--solar); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 18px; letter-spacing: .02em; position: relative; padding-bottom: 12px; }
.footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--solar); }
.footer a { color: #c3b6d2; transition: var(--t-fast); }
.footer a:hover { color: var(--solar-light); }
.footer__links li { margin-bottom: 11px; }
.footer__brand img { height: 92px; width: auto; }
.footer__brand p { margin-top: 18px; font-size: .94rem; max-width: 320px; line-height: 1.75; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .94rem; align-items: flex-start; }
.footer__contact svg { width: 19px; height: 19px; color: var(--solar); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 11px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: var(--t); }
.socials a:hover { background: var(--solar); transform: translateY(-3px); }
.socials a:hover svg { color: var(--ink); }
.socials svg { width: 19px; height: 19px; color: #fff; transition: var(--t-fast); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer__bottom a.admin-link { color: #8778a0; }
.footer__bottom a.admin-link:hover { color: var(--solar-light); }

/* ----- 10. Floating WhatsApp -------------------------------------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45); animation: wa-pulse 2.4s infinite; transition: transform var(--t); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
@keyframes wa-pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 18px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ----- 10b. Mobile sticky bottom bar ------------------------------- */
.botbar { display: none; }
.botbar__item { position: relative; }
.botbar__item .badge-wa { position: absolute; top: 4px; right: 50%; transform: translateX(18px); width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
@media (max-width: 860px) {
  .botbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(12,22,38,.10);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .botbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 4px 9px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .01em; transition: color var(--t-fast); }
  .botbar__item svg { width: 22px; height: 22px; }
  .botbar__item.active { color: var(--brand); }
  .botbar__item.wa { color: var(--green-dark); }
  body { padding-bottom: 64px; }
  .wa-float { bottom: 76px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ----- 11. Scroll reveal animations -------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----- 12. Forms (shared + admin) ---------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--muted-2); font-size: .82rem; }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; transition: border var(--t-fast), box-shadow var(--t-fast); font-size: .98rem;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,128,201,.14); }
.textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .94rem; color: var(--ink); }
.switch input { display: none; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: var(--t-fast); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: var(--t-fast); box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* ----- 13. Modal --------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 1100; display: none; }
.modal.open { display: block; }
.modal__bg { position: absolute; inset: 0; background: rgba(8,16,28,.62); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__panel {
  position: relative; z-index: 1; background: #fff; width: min(640px, 94vw); max-height: 92vh; overflow-y: auto;
  margin: 5vh auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
.modal__head { position: sticky; top: 0; background: #fff; padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.modal__head h3 { font-size: 1.25rem; }
.modal__close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: var(--t-fast); }
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__body { padding: 26px; }
.modal__foot { position: sticky; bottom: 0; background: #fff; padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* ----- 14. Toast --------------------------------------------------- */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .94rem; animation: slide-in .3s var(--ease); max-width: 360px; }
.toast.ok { background: #137a43; } .toast.err { background: #b3261e; } .toast.info { background: var(--brand-dark); }
.toast svg { width: 20px; height: 20px; flex: none; }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }

/* ----- 15. Loaders / states ---------------------------------------- */
.skeleton { background: linear-gradient(100deg, var(--bg-soft) 30%, var(--bg-soft-2) 50%, var(--bg-soft) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { width: 60px; height: 60px; color: var(--line-2); margin: 0 auto 18px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(47,128,201,.25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- 15b. Admin dashboard ---------------------------------------- */
body.admin { background: var(--bg-soft); }
.admin-top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); height: 66px; display: flex; align-items: center; }
.admin-top__inner { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-top .brand img { height: 34px; }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.admin-user .who { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.admin-user .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

.admin-main { max-width: 1160px; margin: 0 auto; padding: 30px 22px 80px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-head h1 { font-size: 1.7rem; }
.admin-head p { color: var(--muted); font-size: .95rem; margin-top: 2px; }

/* login */
.login-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px 32px; border: 1px solid var(--line); }
.login-card .logo-badge { width: 68px; height: 68px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin: 0 auto 20px; }
.login-card .logo-badge img { height: 46px; }
.login-card h2 { text-align: center; font-size: 1.4rem; }
.login-card .sub { text-align: center; color: var(--muted); font-size: .94rem; margin: 6px 0 26px; }

/* admin account settings */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; max-width: 860px; }
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 24px; }
.acct-card h2 { font-size: 1.15rem; }
.acct-card__sub { color: var(--muted); font-size: .88rem; margin: 6px 0 18px; }
.acct-card .field { margin-bottom: 14px; }
.acct-card .btn { margin-top: 4px; }

/* admin product grid */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.ptile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.ptile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ptile__media { position: relative; aspect-ratio: 1; background: var(--bg-soft-2); }
.ptile__media img { width: 100%; height: 100%; object-fit: cover; }
.ptile__flags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .66rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .03em; }
.tag.solar { background: var(--grad-solar); color: #3a2300; }
.tag.feat { background: var(--brand); color: #fff; }
.tag.oos { background: #b3261e; color: #fff; }
.tag.vid { background: rgba(12,22,38,.8); color: #fff; }
.ptile__body { padding: 13px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.ptile__body h3 { font-size: .98rem; line-height: 1.3; }
.ptile__cat { font-size: .74rem; color: var(--brand); font-weight: 700; margin: 3px 0 7px; }
.ptile__price { font-weight: 800; color: var(--ink); margin-top: auto; }
.ptile__acts { display: flex; gap: 8px; padding: 0 14px 14px; }
.ptile__acts button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 700; font-size: .84rem; border: 1.5px solid var(--line-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: var(--t-fast); }
.ptile__acts button svg { width: 15px; height: 15px; }
.ptile__acts .edit:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }
.ptile__acts .del:hover { border-color: #b3261e; color: #b3261e; background: #fdf0ef; }

.add-tile { border: 2px dashed var(--line-2); border-radius: var(--radius); display: grid; place-items: center; min-height: 230px; cursor: pointer; transition: var(--t); color: var(--brand); background: #fff; text-align: center; }
.add-tile:hover { border-color: var(--brand); background: var(--bg-soft); transform: translateY(-3px); }
.add-tile svg { width: 40px; height: 40px; margin-bottom: 8px; }
.add-tile span { font-weight: 700; }

/* uploader / dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; cursor: pointer; transition: var(--t-fast); color: var(--muted); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--bg-soft); color: var(--brand); }
.dropzone svg { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--brand); }
.dropzone b { color: var(--ink); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px,1fr)); gap: 10px; margin-top: 14px; }
.previews:empty { display: none; }
.preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; }
.preview .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(12,22,38,.85); color: #fff; display: grid; place-items: center; }
.preview .rm svg { width: 14px; height: 14px; }
.preview .cover { position: absolute; bottom: 0; left: 0; right: 0; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 800; text-align: center; padding: 2px; letter-spacing: .04em; }
.preview .vlabel { position: absolute; top: 4px; left: 4px; background: rgba(12,22,38,.8); color: #fff; font-size: .6rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.upload-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 12px; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .2s; }

/* ratings row + testimonials editor (admin) */
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr; } }
.t-editor { display: flex; flex-direction: column; gap: 14px; }
.t-editor:empty { display: none; }
.t-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft); }
.t-row__grid { display: grid; grid-template-columns: 1fr 1fr 96px; gap: 10px; margin-bottom: 10px; }
@media (max-width: 560px) { .t-row__grid { grid-template-columns: 1fr; } }
.t-row .input, .t-row .textarea { background: #fff; }
.t-remove { margin-top: 10px; color: #b3261e; font-weight: 700; font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; }
.t-remove:hover { text-decoration: underline; }

/* content builder (admin) */
.cb-list { display: flex; flex-direction: column; gap: 12px; }
.cb-list:empty { display: none; }
.cb-block { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); padding: 12px 12px 14px; }
.cb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cb-type { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.cb-ctrls { display: inline-flex; gap: 4px; }
.cb-ctrls button { width: 28px; height: 28px; border-radius: 7px; color: var(--muted); font-size: .8rem; line-height: 1; }
.cb-ctrls button:hover { background: #fff; color: var(--ink); }
.cb-ctrls .cb-del:hover { color: #b3261e; }
.cb-body .input, .cb-body .textarea { background: #fff; }
.cb-media { margin-bottom: 8px; }
.cb-media:empty { display: none; }
.cb-media img, .cb-media video { max-height: 160px; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.cb-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.cb-add__label { font-weight: 700; font-size: .85rem; color: var(--muted); }
.cb-add button { padding: 7px 13px; border: 1.5px dashed var(--line-2); border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--brand); transition: var(--t-fast); }
.cb-add button:hover { border-color: var(--brand); background: #fff; }

/* content builder (public render) */
.cb-render { max-width: 820px; }
.cb-render > * { margin-bottom: 24px; }
.cb-render > *:last-child { margin-bottom: 0; }
.cb-h { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.cb-text { color: #33414f; line-height: 1.8; font-size: 1.05rem; }
.cb-text p { margin-bottom: 16px; }
.cb-text p:last-child { margin-bottom: 0; }
.cb-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cb-img figcaption { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 10px; }
.cb-video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #000; }
.cb-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-btnwrap { display: flex; }

/* ----- 16. Utilities ----------------------------------------------- */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex { display: flex; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-center { justify-content: center; }
.hide { display: none !important; }
.muted { color: var(--muted); }

/* ----- 17. Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 1080px) {
  .nav__links { display: none; }        /* collapse to hamburger before links wrap */
  .nav__toggle { display: flex; }
  .topbar__contact span.topbar__addr { display: none; }
}
/* narrower desktops/tablets: give the text more room, shrink the figure */
@media (max-width: 1100px) {
  .hero--split .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 28px; }
  .hero__figure img { max-width: 380px; }
}
@media (max-width: 900px) {
  /* stack: gold bar on top, centered text below (like the reference mobile) */
  .hero--split .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 18px; max-width: 640px; margin-inline: auto; }
  .hero--split .hero__copy { order: 2; }
  .hero__figure { order: 1; justify-self: center; }
  .hero__figure img { max-width: 260px; }
  .hero--split .hero__bg { background-position: center; opacity: .35; }
  .hero--split .hero__overlay { background: linear-gradient(180deg, rgba(18,9,29,.82) 0%, rgba(26,14,41,.76) 55%, rgba(18,9,29,.9) 100%); }
  .hero__rule, .hero p.lead { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
}
@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
  .row-2 { grid-template-columns: 1fr; }
  /* NOTE: .services-row / .whyrow / .about-promo responsive rules live at the
     end of the file (after their base definitions) so they aren't overridden. */
}
@media (max-width: 620px) {
  :root { --topbar-h: 38px; }
  .topbar__contact a span.topbar__phone2 { display: none; }
  .topbar__social .lbl { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 22px; }
  .section { padding: 58px 0; }
}

/* ----- 18. Mobile overflow / cropping hardening -------------------- */
@media (max-width: 560px) {
  /* buttons must never clip their text — allow wrapping + stack full width */
  .btn { white-space: normal; }
  .btn-lg { padding: 15px 20px; font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; flex: none; }
  .pd__actions { flex-direction: column; }
  .pd__actions .btn { width: 100%; }
  ul.checklist { columns: 1 !important; }
  .toast { max-width: calc(100vw - 36px); }
  .hero__stats { gap: 20px 30px; }
  .breadcrumb { font-size: .82rem; }
}
/* very narrow phones: stack the two action buttons vertically */
@media (max-width: 430px) {
  #catalog-grid:not(.list) .pcard__actions { flex-direction: column; }
  #catalog-grid:not(.list) .pcard__desc { -webkit-line-clamp: 3; }
  #catalog-grid.list .pcard__foot { flex-direction: column; align-items: stretch; gap: 9px; }
  #catalog-grid.list .pcard__actions .btn { flex: 1; }
}
/* very small phones: single column so cards never get too cramped */
@media (max-width: 359px) {
  #catalog-grid:not(.list) { grid-template-columns: 1fr; }
}

/* =====================================================================
   Editor.js block editor (admin) + .rich rendered content (public)
   Appended section; safe to keep at the end of the file.
   ===================================================================== */

/* ---- Admin: Editor.js holder ---- */
.ejs {
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; min-height: 140px; padding: 6px 8px;
  transition: border var(--t-fast), box-shadow var(--t-fast);
  /* allow inline/block toolbars & popovers to overflow the holder */
  overflow: visible;
}
.ejs:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,128,201,.14); }
/* Editor.js injects .codex-editor — match the form typography & width */
.ejs .codex-editor { font-family: inherit; color: var(--ink); }
.ejs .codex-editor__redactor { padding-bottom: 60px !important; }
/* constrain content width so blocks don't run edge-to-edge inside the modal,
   but leave room on the left for the "+"/settings tune buttons */
.ejs .ce-block__content,
.ejs .ce-toolbar__content { max-width: 100%; }
.ejs .ce-paragraph { line-height: 1.65; }
/* keep the "+" add button and settings tune buttons visible */
.ejs .ce-toolbar__plus,
.ejs .ce-toolbar__settings-btn { color: var(--ink); }
/* popovers / inline toolbars must sit above modal content and not clip */
.ejs .ce-toolbar, .ejs .ce-inline-toolbar, .ejs .ce-conversion-toolbar,
.ejs .ce-popover, .ejs .ce-settings { z-index: 30; }
.ejs .cdx-marker { background: rgba(245,235,111,.85); padding: 1px 0; }

/* the modal body scrolls — don't clip Editor.js popovers horizontally */
.modal__body { overflow-x: visible; }

@media (max-width: 560px) {
  .ejs { padding: 4px 4px; }
}

/* ---- Public: rendered rich content (.rich) ---- */
.rich > *:first-child { margin-top: 0; }
.rich > *:last-child { margin-bottom: 0; }
.rich h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 30px 0 14px; }
.rich h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 26px 0 12px; }
.rich h3 { font-size: clamp(1.12rem, 2.4vw, 1.3rem); margin: 22px 0 10px; }
.rich h4 { font-size: clamp(1rem, 2vw, 1.14rem); margin: 20px 0 9px; }
.rich p { margin: 0 0 18px; }
.rich ul, .rich ol { margin: 0 0 18px; padding-left: 28px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 8px; }
.rich a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.rich a:hover { color: var(--brand-dark); }
.rich strong, .rich b { font-weight: 700; color: var(--ink); }
.rich mark { background: rgba(245,235,111,.75); padding: 1px 2px; border-radius: 3px; }
.rich blockquote {
  margin: 0 0 22px; padding: 12px 20px; border-left: 4px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-style: italic;
}
.rich blockquote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--ink); font-size: .9rem; }
.rich figure.cb-img { margin: 0 0 22px; }
.rich figure.cb-embed-fig { margin: 0 0 22px; }
.rich figure.cb-embed-fig figcaption { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 10px; }
.rich .cb-embed { margin: 0; }
.rich iframe { max-width: 100%; }
.rich hr.cb-hr {
  border: 0; height: 0; margin: 30px auto; width: 60%;
  border-top: 2px dashed var(--line-2);
}
/* pd__desc uses .rich too — clear its legacy pre-line whitespace mode */
.pd__desc.rich { white-space: normal; }

/* =====================================================================
   Custom Editor.js blocks (admin) + their public .rich rendering
   Video/Embed, Button, Bookmark, Checklist, Table, Callout, Divider.
   Appended section; safe to keep at the end of the file.
   ===================================================================== */

/* ---- Admin: custom block forms (.cb-tool) ---- */
.cb-tool { display: grid; gap: 10px; padding: 4px 2px; }
.cb-tool__label { font-weight: 700; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cb-tool__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cb-tool__input { flex: 1 1 200px; min-width: 0; }
.cb-tool__select { max-width: 200px; }
.cb-tool__btn { flex: none; white-space: nowrap; }
.cb-tool__note { color: var(--muted-2); font-size: .84rem; font-style: italic; }
.cb-tool__preview { margin-top: 2px; }
.cb-tool__preview:empty { display: none; }
.cb-tool__preview .cb-embed,
.cb-tool__preview .cb-video { max-width: 480px; }
.cb-tool__preview.cb-btnwrap { display: flex; }
.cb-tool__preview .btn { pointer-events: none; }

/* ---- Admin: Carousel block editor ---- */
.cbc-opts { align-items: center; }
.cbc-auto { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text); white-space: nowrap; }
.cbc-auto input { width: 16px; height: 16px; }
.cbc-list { display: flex; gap: 10px; flex-wrap: wrap; --cbc-ratio: 16 / 9; }
.cbc-slide { width: 130px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-soft-2); }
.cbc-slide__media { aspect-ratio: var(--cbc-ratio); background: #0c1626; display: grid; place-items: center; }
.cbc-slide__media img, .cbc-slide__media video { width: 100%; height: 100%; object-fit: contain; }
.cbc-slide__ctrl { display: flex; gap: 2px; padding: 5px; background: #fff; }
.cbc-slide__ctrl button { flex: 1; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; font-size: .95rem; line-height: 1; padding: 5px 0; color: var(--ink); }
.cbc-slide__ctrl button:hover:not([disabled]) { background: var(--bg-soft); border-color: var(--brand); }
.cbc-slide__ctrl button[disabled] { opacity: .35; cursor: default; }
.cbc-slide__ctrl .cbc-del { color: #b3261e; font-weight: 700; }

/* ---- Public (.rich) & anywhere: Carousel / slider ---- */
.carousel { position: relative; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: #0c1626; box-shadow: var(--shadow-sm); --carousel-ratio: 16 / 9; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; cursor: grab; }
.carousel__viewport:active { cursor: grabbing; }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.carousel__slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: var(--carousel-ratio); background: #0c1626; }
.carousel__slide img, .carousel__slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(8,14,24,.75)); }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: background var(--t-fast), transform var(--t-fast); z-index: 2; }
.carousel__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow.prev { left: 12px; }
.carousel__arrow.next { right: 12px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.carousel__dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background var(--t-fast), transform var(--t-fast); }
.carousel__dot.active { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) {
  .carousel__arrow { width: 34px; height: 34px; }
  .carousel__arrow svg { width: 18px; height: 18px; }
  .carousel__arrow.prev { left: 8px; }
  .carousel__arrow.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* ---- Admin: shared row-list builder (spec / features / faq) ---- */
.cbx-list { display: grid; gap: 8px; margin: 4px 0; }
.cbx-row { display: flex; gap: 8px; align-items: flex-start; }
.cbx-row .input, .cbx-row .textarea { min-width: 0; }
.cbx-icon { flex: 0 0 60px; text-align: center; }
.cbx-row--spec .cbx-label { flex: 1 1 40%; }
.cbx-row--spec .cbx-value { flex: 1 1 40%; }
.cbx-fbody { flex: 1; display: grid; gap: 6px; min-width: 0; }
.cbx-fbody .textarea { min-height: 52px; }
.cbx-del { flex: none; width: 34px; height: 34px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; color: #b3261e; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cbx-del:hover { background: #fdeceb; border-color: #b3261e; }

/* ---- Public (.rich): Spec table ---- */
.rich .rich-spec { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.rich .rich-spec__title { margin: 0; padding: 14px 18px; font-size: 1.05rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.rich .rich-spec__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.rich .rich-spec__row:first-child { border-top: none; }
.rich .rich-spec__k { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; }
.rich .rich-spec__i { font-size: 1.1rem; }
.rich .rich-spec__v { color: var(--ink); font-weight: 700; text-align: right; }

/* ---- Public (.rich): Feature cards ---- */
.rich .rich-features__title { margin: 0 0 16px; }
.rich .rich-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 24px; }
.rich .rich-feature { padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.rich .rich-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.rich .rich-feature__i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); font-size: 1.4rem; margin-bottom: 12px; }
.rich .rich-feature__t { margin: 0 0 6px; font-size: 1.05rem; }
.rich .rich-feature__x { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---- Public (.rich): CTA banner ---- */
.rich .rich-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--grad-brand, linear-gradient(135deg, var(--brand), var(--brand-dark))); color: #fff; box-shadow: var(--shadow); }
.rich .rich-cta__h { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.rich .rich-cta__s { margin-top: 6px; opacity: .92; font-size: 1rem; }
.rich .rich-cta__btn { flex: none; }
.rich .rich-cta__btn svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .rich .rich-cta { flex-direction: column; align-items: flex-start; } .rich .rich-cta__btn { width: 100%; justify-content: center; } }

/* ---- Public (.rich): FAQ accordion ---- */
.rich .rich-faq { margin: 0 0 24px; }
.rich .rich-faq__title { margin: 0 0 14px; }
.rich .rich-faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; overflow: hidden; }
.rich .rich-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.rich .rich-faq__q::-webkit-details-marker { display: none; }
.rich .rich-faq__chev { flex: none; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--t-fast); margin-top: -4px; }
.rich .rich-faq__item[open] .rich-faq__chev { transform: rotate(-135deg); margin-top: 2px; }
.rich .rich-faq__a { padding: 0 18px 16px; color: var(--muted); line-height: 1.7; }

/* ---- Public (.rich): bookmark card ---- */
.rich .cb-bookmark {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; margin: 0 0 22px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.rich .cb-bookmark:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.rich .cb-bookmark__t { font-weight: 700; color: var(--ink); text-decoration: none; }
.rich .cb-bookmark__u { font-size: .82rem; color: var(--muted); }

/* ---- Public (.rich): checklist / to-do ---- */
.rich .rich-check { list-style: none; margin: 0 0 18px; padding-left: 0; }
.rich .rich-check li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--ink); }
.rich .rich-check .tick {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 2px solid var(--line-2); background: #fff; position: relative;
}
.rich .rich-check li.done .tick { background: var(--green); border-color: var(--green); }
.rich .rich-check li.done .tick::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.rich .rich-check li.done { color: var(--muted); }

/* ---- Public (.rich): table ---- */
.rich .rich-table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.rich .rich-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rich .rich-table th, .rich .rich-table td {
  border: 1px solid var(--line-2); padding: 10px 14px; text-align: left; vertical-align: top;
}
.rich .rich-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

/* ---- Public (.rich): callout / warning ---- */
.rich .rich-callout {
  margin: 0 0 22px; padding: 14px 18px;
  border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
}
.rich .rich-callout__t { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.rich .rich-callout__t:empty { display: none; }
.rich .rich-callout__m { color: var(--muted); }
.rich .rich-callout__m:empty { display: none; }

/* ---- Public (.rich): video + divider spacing ---- */
.rich .cb-video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #000; margin: 0 0 22px; }
.rich .cb-btnwrap { margin: 0 0 22px; }

@media (max-width: 560px) {
  .cb-tool__row { flex-direction: column; align-items: stretch; }
  .cb-tool__btn { width: 100%; }
  .cb-tool__select { max-width: 100%; }
}

/* =====================================================================
   FEATURE 1 — Full-page editor screen (product + post editors)
   These editors reuse the .modal markup but present as a full-screen page
   that replaces the dashboard (no dark backdrop, no centered card).
   The delete #confirm-modal keeps the normal modal styling above.
   ===================================================================== */
.modal.editor-page { position: fixed; inset: 0; z-index: 1100; display: none; background: var(--bg-soft); overflow-y: auto; }
.modal.editor-page.open { display: block; }
/* no dark backdrop / blur on the full-page editors */
.modal.editor-page > .modal__bg { display: none; }
.modal.editor-page > .modal__panel {
  position: relative; z-index: 1; background: transparent; box-shadow: none;
  width: 100%; max-width: none; max-height: none; overflow: visible;
  margin: 0; border-radius: 0; animation: fade .2s;
}

/* sticky top bar: back • title • save */
.editor-topbar {
  position: sticky; top: 0; z-index: 20; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 12px 22px; display: flex; align-items: center; gap: 14px;
}
.editor-topbar h3 { flex: 1; text-align: center; font-size: 1.15rem; margin: 0; }
.editor-back {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 15px; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem;
  color: var(--brand); background: var(--bg-soft-2); transition: var(--t-fast);
}
.editor-back:hover { background: var(--line-2); }
.editor-back svg { width: 18px; height: 18px; }
.editor-topbar__save { flex: none; }

/* constrain the editor form content to a comfortable reading width */
.modal.editor-page .modal__body {
  max-width: 820px; margin: 0 auto; padding: 26px 22px 60px; overflow-x: visible;
}
.modal.editor-page .modal__foot {
  position: static; max-width: 820px; margin: 0 auto; width: 100%;
  border-top: 1px solid var(--line); background: transparent;
  padding: 18px 22px 60px;
}

@media (max-width: 560px) {
  .editor-topbar { padding: 10px 14px; gap: 8px; }
  .editor-topbar h3 { font-size: 1rem; }
  .editor-back span { display: none; }        /* compact: arrow only on tiny screens */
  .editor-back { padding: 9px 12px; }
  .modal.editor-page .modal__body { padding: 18px 14px 50px; }
  .modal.editor-page .modal__foot { padding: 16px 14px 50px; }
}

/* =====================================================================
   FEATURE 2 — Columns block (admin editing UI)
   ===================================================================== */
.cb-columns { display: grid; gap: 14px; padding: 4px 2px; }
.cb-columns__bar { display: flex; align-items: center; gap: 8px; }
.cb-columns__bar .lbl { font-weight: 700; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cb-columns__switch { display: inline-flex; gap: 6px; }
.cb-columns__switch button {
  min-width: 34px; padding: 5px 10px; border-radius: 8px; font-weight: 700; font-size: .86rem;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); transition: var(--t-fast);
}
.cb-columns__switch button.active { border-color: var(--brand); background: var(--bg-soft-2); color: var(--brand); }
.cb-columns__cols { display: grid; gap: 14px; }
.cb-columns__cols.n2 { grid-template-columns: 1fr 1fr; }
.cb-columns__cols.n3 { grid-template-columns: 1fr 1fr 1fr; }
.cb-columns__col {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: #fff; padding: 4px 6px; min-width: 0;
}
.cb-columns__col .codex-editor { min-height: 60px; }
.cb-columns__col .ce-block__content, .cb-columns__col .ce-toolbar__content { max-width: 100%; }
@media (max-width: 700px) {
  .cb-columns__cols.n2, .cb-columns__cols.n3 { grid-template-columns: 1fr; }
}

/* Public (.rich): rendered columns */
.rich .rich-cols { display: grid; gap: 22px; margin: 0 0 22px; }
.rich .rich-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rich .rich-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rich .rich-col > *:first-child { margin-top: 0; }
.rich .rich-col > *:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .rich .rich-cols-2, .rich .rich-cols-3 { grid-template-columns: 1fr; }
}

/* =====================================================================
   FEATURE 3 — Image width presets (Small / Medium / Full)
   Applies to both the public .rich figure and stays responsive.
   ===================================================================== */
.cb-img img, .rich figure.cb-img img { max-width: 100%; }
.rich figure.cb-img.img-full { max-width: 100%; }
.rich figure.cb-img.img-md { max-width: 560px; margin-left: auto; margin-right: auto; }
.rich figure.cb-img.img-sm { max-width: 320px; margin-left: auto; margin-right: auto; }
.rich figure.cb-img.img-md, .rich figure.cb-img.img-sm { text-align: center; }

/* =====================================================================
   CHECKOUT — bank transfer + WhatsApp confirmation flow (checkout.html)
   ===================================================================== */

/* step indicator */
.co-steps { list-style: none; padding-left: 0; display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.co-steps li {
  display: inline-flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--muted); font-weight: 700; font-size: .92rem;
  transition: var(--t-fast);
}
.co-steps li .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-soft-2); color: var(--muted);
  font-size: .84rem; font-weight: 800;
}
.co-steps li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-steps li.active { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow-sm); }
.co-steps li.active .n { background: var(--grad-brand); color: #fff; }
.co-steps li.done { border-color: var(--green); color: var(--green-dark); }
.co-steps li.done .n { background: var(--grad-green); color: #fff; }
.co-steps li.done .n::before { content: "✓"; }
.co-steps li.done .n { font-size: 0; }
.co-steps li.done .n::before { font-size: .9rem; }

/* layout */
.co { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.co__side { position: sticky; top: calc(var(--nav-h) + 16px); }

/* panels */
.co-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 36px); }
.co-panel__title { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 8px; }
.co-panel__sub { color: var(--muted); margin-bottom: 24px; font-size: .98rem; }
.co-panel__sub b { color: var(--ink); }
.co-panel__acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.co-panel__acts.center { justify-content: center; margin-top: 16px; }

/* quantity stepper */
.co-qty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.co-qty button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2);
  font-size: 1.3rem; font-weight: 800; color: var(--brand); background: #fff; transition: var(--t-fast);
}
.co-qty button:hover { border-color: var(--brand); background: var(--bg-soft); }
.co-qty input {
  width: 74px; height: 44px; text-align: center; font-weight: 800; font-size: 1.05rem;
  border: 1.5px solid var(--line-2); border-radius: 12px; -moz-appearance: textfield;
}
.co-qty input::-webkit-outer-spin-button, .co-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.co-qty input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,128,201,.14); }
.co-qty__total { margin-left: auto; color: var(--muted); font-size: .95rem; }
.co-qty__total b { color: var(--ink); font-size: 1.1rem; }

/* bank details box */
.co-bank { border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.co-bank__head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--grad-ink); color: #fff; font-weight: 800; letter-spacing: .02em; font-size: .95rem;
}
.co-bank__head svg { width: 20px; height: 20px; color: var(--solar); }
.co-bank__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; border-top: 1px solid var(--line);
}
.co-bank__row:first-of-type { border-top: 0; }
.co-bank__row > div { min-width: 0; }
.co-bank__row span { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 2px; }
.co-bank__row b { font-size: 1.05rem; color: var(--ink); word-break: break-word; }
.co-bank__row b.acct { font-size: 1.45rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.co-copy {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2);
  font-weight: 700; font-size: .86rem; color: var(--brand); background: #fff; transition: var(--t-fast);
}
.co-copy:hover { border-color: var(--brand); background: var(--bg-soft); }
.co-copy svg { width: 15px; height: 15px; }

/* helper note */
.co-hint {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: #fff9e8; border: 1px solid #f3dfa0; border-radius: var(--radius-sm);
}
.co-hint svg { flex: none; width: 20px; height: 20px; color: var(--solar-dark); margin-top: 2px; }
.co-hint p { font-size: .92rem; color: #6b5a1e; }
.co-hint b { color: #4a3d0f; }

/* step 3 */
.co-done { text-align: center; margin-bottom: 22px; }
.co-done__ic {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad-green); color: #fff;
  display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-green);
}
.co-done__ic svg { width: 30px; height: 30px; }
.co-todo { list-style: none; padding-left: 0; counter-reset: todo; margin: 0 0 24px; display: grid; gap: 12px; }
.co-todo li {
  counter-increment: todo; position: relative; padding: 13px 16px 13px 52px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--text);
}
.co-todo li b { color: var(--ink); }
.co-todo li::before {
  content: counter(todo); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.co-fineprint { margin-top: 20px; text-align: center; color: var(--muted); font-size: .88rem; }
.co-fineprint a { color: var(--brand); font-weight: 700; }

/* order summary sidebar */
.co-summary { padding: 22px; }
.co-summary h4 { font-size: 1.05rem; margin-bottom: 16px; }
.co-summary__prod { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.co-summary__prod img { flex: none; width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: var(--bg-soft-2); }
.co-summary__prod b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.co-summary__prod span { font-size: .8rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.co-summary__rows { margin: 14px 0; display: grid; gap: 10px; }
.co-summary__rows li { display: flex; justify-content: space-between; gap: 10px; font-size: .94rem; color: var(--muted); }
.co-summary__rows li b { color: var(--ink); }
.co-summary__rows li.total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.co-summary__rows li.total b { font-size: 1.25rem; }
.co-summary__note { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--muted); padding-top: 4px; }
.co-summary__note svg { flex: none; width: 17px; height: 17px; color: var(--green); margin-top: 2px; }

@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; }
  .co__side { position: static; }
}
@media (max-width: 560px) {
  .co-steps { gap: 6px; }
  .co-steps li { padding: 10px 10px; justify-content: center; }
  .co-steps li:not(.active) .t { display: none; }   /* compact: number-only chips for inactive steps */
  .co-panel__acts { flex-direction: column-reverse; align-items: stretch; }
  .co-panel__acts .btn { width: 100%; }
  .co-bank__row { flex-wrap: wrap; }
  .co-qty__total { margin-left: 0; width: 100%; }
}

/* =====================================================================
   SHOPPING CART — navbar icon, bottom-bar badge, cart page (cart.html)
   ===================================================================== */

/* navbar cart icon + live badge */
.nav-cart { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); transition: var(--t-fast); }
.nav-cart:hover { background: var(--bg-soft); color: var(--brand); }
.nav.transparent .nav-cart { color: #fff; }
.nav.transparent .nav-cart:hover { background: rgba(255,255,255,.12); }
.nav-cart svg { width: 23px; height: 23px; }
.nav-cart__n {
  position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--green); color: #fff;
  font-size: .64rem; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; line-height: 1; box-shadow: 0 0 0 2px #fff;
}
.nav.transparent .nav-cart__n { box-shadow: none; }
/* when the built-in cart icon carries both classes, the new nav-icon look wins */
.nav__icon.nav-cart, .nav.transparent .nav__icon.nav-cart { width: 42px; height: 42px; border-radius: 50%; color: rgba(255,255,255,.85); }
.nav__icon.nav-cart:hover, .nav.transparent .nav__icon.nav-cart:hover { background: rgba(232,185,35,.15); color: var(--solar-light); }
.nav__icon.nav-cart svg { width: 20px; height: 20px; }

/* mobile bottom-bar badge */
.botbar__badge {
  position: absolute; top: 3px; right: 50%; transform: translateX(17px);
  min-width: 16px; height: 16px; border-radius: 999px; background: var(--green); color: #fff;
  font-size: .6rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; line-height: 1;
}

/* cart page */
.cart-n { color: var(--muted); font-weight: 600; font-size: 1rem; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; background: var(--bg-soft-2); flex: none; }
.cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-item__info .c { font-size: .72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.cart-item__info .t { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.cart-item__info .t:hover { color: var(--brand); }
.cart-item__info .u { font-size: .84rem; color: var(--muted); }
.cart-item__info .co-qty { margin-top: 8px; }
.co-qty.sm button { width: 34px; height: 34px; border-radius: 9px; font-size: 1.05rem; }
.co-qty.sm input { width: 56px; height: 34px; border-radius: 9px; font-size: .95rem; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.cart-item__right b { font-size: 1.08rem; color: var(--ink); }
.cart-item__rm { display: inline-flex; align-items: center; gap: 6px; color: #b3261e; font-weight: 700; font-size: .82rem; padding: 6px 10px; border-radius: 8px; transition: var(--t-fast); }
.cart-item__rm:hover { background: #fdf0ef; }
.cart-item__rm svg { width: 14px; height: 14px; }
.cart-acts { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* checkout sidebar: multi-item list */
.co-summary__list { display: grid; }
.co-summary__list .co-summary__prod { padding: 12px 0 12px; border-bottom: 1px solid var(--line); align-items: center; }
.co-summary__list .co-summary__prod img { width: 54px; height: 54px; border-radius: 10px; }
.co-summary__list .co-summary__prod > div { flex: 1; min-width: 0; }
.co-summary__list .co-summary__prod b { font-size: .92rem; }
.co-summary__list .co-summary__prod span { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.co-summary__list .co-summary__prod em { font-style: normal; font-weight: 800; color: var(--ink); font-size: .92rem; flex: none; }
.co-summary__edit { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .88rem; color: var(--brand); margin-bottom: 10px; }
.co-summary__edit:hover { text-decoration: underline; }
.co-summary__edit svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item__right { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
}

/* =====================================================================
   CATEGORY LANDING PAGES — category.html (+ admin Categories tab)
   Editable categories: hero banner, offer strip, best sellers, buying
   guide, FAQ accordion and the admin featured-product picker.
   ===================================================================== */

/* price anchor pill in the category hero ("From ₦185,000") */
.cat-from {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); color: #d2deec; font-size: .92rem; font-weight: 600;
}
.cat-from b { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }

/* offer / promo strip under the hero */
.offer-strip { background: var(--grad-solar); color: #3a2e00; }
.offer-strip__inner {
  max-width: var(--container); margin-inline: auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 800; font-size: 1rem; text-align: center; flex-wrap: wrap;
}
.offer-strip__inner svg { width: 22px; height: 22px; flex: none; }

/* FAQ accordion (public) */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; font-weight: 700; color: var(--ink); transition: var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .faq__ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft-2);
  color: var(--brand); display: grid; place-items: center; transition: transform var(--t);
}
.faq summary .faq__ic svg { width: 15px; height: 15px; }
.faq[open] summary .faq__ic { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.faq__a { padding: 0 20px 18px; color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* category tiles can show the banner image instead of an icon */
.cat-tile__ic.cat-tile__img { overflow: hidden; padding: 0; background: var(--bg-soft-2); }
.cat-tile__ic.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }

/* "Browse other categories" chip links */
a.chip { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Admin: featured-product picker (category editor) ---- */
.fp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .fp-list { grid-template-columns: 1fr; } }
.fp-list .fp-note { grid-column: 1 / -1; color: var(--muted-2); font-size: .9rem; font-style: italic; }
.fp-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; transition: var(--t-fast);
}
.fp-item:hover { border-color: var(--brand); }
.fp-item.on { border-color: var(--brand); background: var(--bg-soft-2); box-shadow: 0 0 0 3px rgba(47,128,201,.12); }
.fp-item input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.fp-item img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--bg-soft-2); flex: none; }
.fp-item .fp-txt { min-width: 0; line-height: 1.3; }
.fp-item .fp-txt b { display: block; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-item .fp-txt span { font-size: .78rem; color: var(--muted); }

/* slug preview under the slug input */
.slug-preview { font-size: .82rem; color: var(--muted-2); margin-top: 6px; word-break: break-all; }
.slug-preview b { color: var(--brand); font-weight: 700; }

/* ---- Navbar: "Products" categories dropdown (desktop) ---- */
.nav__links li.has-dd { position: relative; }
.nav__links li.has-dd > a::after {
  content: ""; display: inline-block; margin-left: 7px; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.nav .nav__links .nav-dd__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 1002;
}
/* invisible bridge so the pointer can travel from the link into the panel */
.nav .nav__links .nav-dd__panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__links li.has-dd:hover > .nav-dd__panel,
.nav__links li.has-dd:focus-within > .nav-dd__panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav .nav__links .nav-dd__panel a {
  display: block; color: var(--text); font-weight: 600; font-size: .92rem;
  padding: 10px 14px; border-radius: 9px;
}
.nav .nav__links .nav-dd__panel a:first-child { color: var(--brand); font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; margin-bottom: 4px; }
.nav .nav__links .nav-dd__panel a:hover { background: var(--bg-soft); color: var(--brand); }

/* ---- Mobile drawer: category links under "Products" ---- */
.drawer__cats {
  display: flex; flex-direction: column; gap: 0;
  margin: 0 0 4px 18px; padding-left: 12px; border-left: 2px solid var(--line);
}
.drawer__cats a { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: var(--t-fast); }
.drawer__cats a:hover { background: var(--bg-soft); color: var(--brand); }

/* =====================================================================
   Reference-design components — luxury jewellery homepage
   (services row with image tops, why-choose row, about promo card)
   ===================================================================== */

/* ---- Dark section variant on deep purple (services / hero-adjacent) ---- */
.section--royal { background: var(--grad-ink); color: #d6c9e4; position: relative; }
.section--royal::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 80% 20%, rgba(232,185,35,.06), transparent 45%); pointer-events: none; }
.section--royal h1, .section--royal h2, .section--royal h3, .section--royal h4 { color: #fff; }
.section--royal .section-sub { color: #c3b6d2; }
.section--royal .eyebrow { color: var(--solar-light); }

/* ---- Services row: image-topped cards with gold circular icon ---- */
.services-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.svc-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(232,185,35,.16);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(12,6,20,.5); border-color: rgba(232,185,35,.4); }
.svc-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.07); }
.svc-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,14,41,.75)); }
.svc-card__ic {
  position: absolute; left: 18px; bottom: -22px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); border: 1.5px solid var(--solar); color: var(--solar-light);
  box-shadow: 0 8px 20px rgba(12,6,20,.5);
}
.svc-card__ic svg { width: 24px; height: 24px; }
.svc-card__body { padding: 34px 22px 26px; }
.svc-card__body h3 { font-size: 1.12rem; color: var(--solar-light); margin-bottom: 9px; line-height: 1.3; }
.svc-card__body p { color: #c3b6d2; font-size: .92rem; line-height: 1.6; }

/* ---- Why-choose row: 4 columns, gold icon, thin dividers ---- */
.whyrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.whyrow .why { text-align: center; padding: 12px 26px; position: relative; }
.whyrow .why + .why::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: rgba(232,185,35,.22); }
.why__ic { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232,185,35,.1); border: 1px solid rgba(232,185,35,.3); color: var(--solar-light); }
.why__ic svg { width: 32px; height: 32px; }
.why h3 { font-family: var(--font-display); font-size: 1.18rem; color: #fff; margin-bottom: 8px; }
.why p { color: #c3b6d2; font-size: .9rem; line-height: 1.55; }

/* ---- About promo split: text + purple promo card ---- */
.about-promo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.about-promo__h { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin: 8px 0 16px; }
.about-promo__txt p { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 16px; }
.section--royal .about-promo__txt p { color: #c3b6d2; }
.promo-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 48px clamp(28px, 5vw, 54px); min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: linear-gradient(120deg, #2e1544 0%, #431f63 60%, #5a2a83 100%);
  border: 1px solid rgba(232,185,35,.28); color: #fff;
}
.promo-card::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,.16), transparent 70%); top: -120px; right: -90px; }
.promo-card__h { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; line-height: 1.25; position: relative; }
.promo-card .btn { align-self: flex-start; position: relative; }

/* gold "diamond" bullet accents reused in a few places */
.gold-hr { width: 90px; height: 1px; background: linear-gradient(90deg, var(--solar), transparent); margin: 18px 0; }

/* ---- Responsive for the reference components ----
   These MUST live after the base rules above so they win by source order
   (the earlier @media block at ~line 840 is overridden by the bases here). */
@media (max-width: 1024px) {
  .services-row { grid-template-columns: repeat(3, 1fr); }
  .about-promo { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .whyrow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  /* drop the vertical dividers when wrapped so they don't cut across rows */
  .whyrow .why + .why::before { display: none; }
}
@media (max-width: 520px) {
  .services-row { grid-template-columns: 1fr; }
  .whyrow { grid-template-columns: 1fr; }
}

/* =====================================================================
   INVESTMENT / BULLION — gold & silver savings sections
   (homepage "Invest" band + dedicated invest.html). Reuses brand tokens.
   ===================================================================== */

/* ---- Invest hero band: split copy + two bullion bars ---- */
.invest-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 80% 0%, #3a1c58 0%, #241238 45%, #150b22 100%); }
.invest-hero::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 30%, rgba(232,185,35,.14), transparent 42%),
                    radial-gradient(circle at 90% 80%, rgba(139,92,176,.24), transparent 50%); }
.invest-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 48px; }
.invest-hero__copy .eyebrow { color: var(--solar-light); }
.invest-hero__h { font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: 0; }
.invest-hero__h span { background: var(--grad-solar); -webkit-background-clip: text; background-clip: text; color: transparent; }
.invest-hero__copy .lead { margin: 20px 0 32px; color: #d9cee6; font-size: 1.08rem; max-width: 460px; }
.invest-hero__bars { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.invest-hero__bars img { border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,.55);
  border: 1px solid rgba(232,185,35,.28); width: 47%; height: auto; }
.invest-hero__bars img:first-child { transform: translateY(-16px) rotate(-3deg); }
.invest-hero__bars img:last-child { transform: translateY(16px) rotate(3deg); }
.invest-hero__bars::after { content: ""; position: absolute; inset: -6% -4%; z-index: -1;
  background: radial-gradient(circle, rgba(232,185,35,.22), transparent 62%); }

/* ---- "Why invest" trust strip (icon + text rows) ---- */
.invest-why { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 30px 40px; align-items: start; }
.invest-why__lead h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-bottom: 12px; }
.invest-why__lead p { color: var(--muted); }
.invest-point { display: flex; gap: 14px; }
.invest-point__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft-2); color: var(--brand); }
.invest-point__ic svg { width: 22px; height: 22px; }
.invest-point h4 { font-size: 1rem; margin-bottom: 4px; }
.invest-point p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---- Bullion product cards (gold / silver) ---- */
.bullion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bullion-card { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 42% 1fr; align-items: stretch;
  background: var(--grad-ink); border: 1px solid rgba(232,185,35,.24); color: #fff; }
.bullion-card--silver { border-color: rgba(200,205,215,.3); }
.bullion-card__media { position: relative; overflow: hidden; background: #0f0819; }
.bullion-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bullion-card__body { padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.bullion-card__body h3 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.bullion-card--gold .bullion-card__body h3 { color: var(--solar-light); }
.bullion-card__list { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; }
.bullion-card__list li { display: flex; align-items: center; gap: 9px; color: #cdbfdb; font-size: .93rem; }
.bullion-card__list svg { width: 17px; height: 17px; color: var(--solar); flex: none; }
.weight-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.weight-chips span { font-size: .82rem; font-weight: 700; padding: 6px 13px; border-radius: var(--radius-pill);
  background: rgba(232,185,35,.12); color: var(--solar-light); border: 1px solid rgba(232,185,35,.28); }
.bullion-card--silver .weight-chips span { background: rgba(210,214,222,.12); color: #e6e9ef; border-color: rgba(210,214,222,.3); }
.bullion-card .btn { margin-top: auto; align-self: flex-start; }

/* ---- How it works: numbered steps with connector ---- */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.howto__step { position: relative; text-align: center; padding: 0 22px; }
.howto__step + .howto__step::before { content: ""; position: absolute; left: 0; top: 30px; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(232,185,35,.5) 0 8px, transparent 8px 16px); transform: translateX(-50%); z-index: 0; }
.howto__num { position: relative; z-index: 1; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: #2e1a00; background: var(--grad-solar); box-shadow: var(--shadow-solar); }
.howto__step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.howto__step p { color: var(--muted); font-size: .92rem; }
.section--royal .howto__step h4 { color: #fff; }
.section--royal .howto__step p { color: #c3b6d2; }

/* ---- Authenticity block: image + assurance points ---- */
.auth-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.auth-block__img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,185,35,.24); }
.auth-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.auth-points .invest-point__ic { background: rgba(232,185,35,.12); color: var(--solar-dark); }

/* ---- Invest CTA banner ---- */
.invest-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #2e1544 0%, #431f63 55%, #5a2a83 120%);
  border: 1px solid rgba(232,185,35,.3); color: #fff;
  padding: clamp(30px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; }
.invest-cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,35,.18), transparent 70%); top: -140px; right: -80px; }
.invest-cta__txt { position: relative; }
.invest-cta__txt h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.invest-cta__txt p { color: #dccef0; margin-top: 6px; }
.invest-cta__acts { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .invest-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .invest-hero__bars { max-width: 420px; margin: 0 auto; }
  .invest-why { grid-template-columns: 1fr 1fr; }
  .invest-why__lead { grid-column: 1 / -1; }
  .bullion-grid { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .howto__step:nth-child(3)::before { display: none; }
  .auth-block { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .invest-why { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
  .howto__step + .howto__step::before { display: none; }
  .bullion-card { grid-template-columns: 1fr; }
  .bullion-card__media { min-height: 200px; }
  .auth-points { grid-template-columns: 1fr; }
}
