/* assets/css/public.css - Public website (navy and gold, from the original Tailwind theme) */

:root {
    --navy: #0c1b3a;
    --navy-2: #13284f;
    --navy-deep: #08142c;
    --gold: #d6a733;
    --gold-2: #e7bf55;
    --gold-soft: #f8ebc6;
    --bg: #fbfaf6;
    --card: #ffffff;
    --text: #0c1b3a;
    --muted: #57627a;
    --border: #dbe0ea;
    --secondary: #eff2f7;
    --danger: #dc2626;
    --success: #15803d;
    --radius: 10px;
    --shadow-card: 0 4px 20px -8px rgba(12, 27, 58, .12);
    --shadow-elegant: 0 20px 50px -20px rgba(12, 27, 58, .25);
    --shadow-gold: 0 10px 30px -10px rgba(214, 167, 51, .45);
    --gradient-gold: linear-gradient(135deg, #e9bf4d, #c08a22);
    --gradient-navy: linear-gradient(180deg, #0c1b3a, #08142c);
    --gradient-hero: linear-gradient(135deg, rgba(8, 20, 44, .92), rgba(19, 40, 79, .78));
    --font-display: "Playfair Display", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ink: #0c1b3a;
    --ink-soft: rgba(12, 27, 58, .8);
    --text-body: #33405a;
    --header-bg: rgba(251, 250, 246, .9);
    --input-bg: #ffffff;
    color-scheme: light;
}

/* Dark mode: the floating moon button sets <html data-theme="dark"> (saved in localStorage) */
:root[data-theme="dark"] {
    --bg: #0a1224;
    --card: #111c33;
    --text: #e4e8f1;
    --ink: #f3f5fa;
    --ink-soft: rgba(228, 232, 241, .82);
    --text-body: #c3cad8;
    --muted: #9aa5bb;
    --border: #25324f;
    --secondary: #16223c;
    --gold-soft: rgba(214, 167, 51, .18);
    --header-bg: rgba(10, 18, 36, .9);
    --input-bg: #0d1730;
    --shadow-card: 0 4px 20px -8px rgba(0, 0, 0, .5);
    --shadow-elegant: 0 20px 50px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
:root[data-theme="dark"] .btn-primary { background: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--gold-2); }
:root[data-theme="dark"] .chip.active, :root[data-theme="dark"] .chip:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
:root[data-theme="dark"] .alert-success { background: #0f2a1b; border-color: #1f5c39; color: #b7f0cd; }
:root[data-theme="dark"] .alert-error { background: #2c1214; border-color: #6b2228; color: #fecaca; }
:root[data-theme="dark"] .alert-info { background: #0f1f3d; border-color: #24467f; color: #c7dafe; }
:root[data-theme="dark"] .alert-warning { background: #2b220c; border-color: #6b5316; color: #fde68a; }
:root[data-theme="dark"] .team-photo, :root[data-theme="dark"] .product-img { color: #3a4866; }
:root[data-theme="dark"] .stock-tag { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .page-banner, :root[data-theme="dark"] .cta-band,
:root[data-theme="dark"] .office-card, :root[data-theme="dark"] .auth-side, :root[data-theme="dark"] .promo-banner { background: linear-gradient(180deg, #0d1a36, #060d1d); }
:root[data-theme="dark"] .hero h1, :root[data-theme="dark"] .page-banner h1, :root[data-theme="dark"] .cta-band h2,
:root[data-theme="dark"] .office-card h3, :root[data-theme="dark"] .auth-side h2 { color: #fff; }
:root[data-theme="dark"] img.logo-invert, :root[data-theme="dark"] .site-header .logo img, :root[data-theme="dark"] .drawer-head .logo img { background: #fff; border-radius: 8px; padding: 2px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; font-family: var(--font-sans); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-title-sm { font-size: 1.6rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.text-gold { color: var(--gold); }
.gradient-text { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.grid-split { grid-template-columns: 3fr 2fr; align-items: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: all .25s ease; white-space: nowrap; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gradient-gold); color: var(--navy); box-shadow: var(--shadow-gold); }
.btn-gold:hover { opacity: .92; }
.btn-outline { border-color: var(--border); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--secondary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.logo-text small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.logo-light .logo-text strong { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav > a { font-size: .88rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.main-nav > a:hover { color: var(--ink); }
.main-nav > a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; color: var(--ink-soft); padding: 6px; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--gold); color: var(--navy); font-size: .65rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .66rem; font-weight: 700; vertical-align: 1px; }
.nav-count[hidden] { display: none; }
.range-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.range-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.range-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--secondary); border-bottom: 1px solid var(--border); }
.range-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.range-card:hover .range-img img { transform: scale(1.06); }
.range-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.range-body h3 { font-size: 1.1rem; }
.range-body ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; display: grid; align-content: start; gap: 6px; font-size: .88rem; color: var(--muted); }
.range-body li::before { content: "\2022"; color: var(--gold); margin-right: 8px; }
.nav-toggle { background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; padding: 8px; }
.header-mobile { display: none; align-items: center; gap: 6px; }

/* Mobile menu: drawer sliding in from the left */
.drawer-overlay { position: fixed; inset: 0; background: rgba(8, 20, 44, .55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.mobile-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--card); border-right: 1px solid var(--border); box-shadow: var(--shadow-elegant); transform: translateX(-100%); visibility: hidden; transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s; z-index: 100; display: flex; flex-direction: column; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-close { background: var(--secondary); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px; display: grid; align-content: start; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.drawer-nav a i { width: 20px; text-align: center; color: var(--gold); }
.drawer-nav a:hover { background: var(--secondary); color: var(--ink); }
.drawer-nav a.active { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

/* Flash messages */
.flash-stack { margin-top: 16px; }
.alert { position: relative; padding: 12px 40px 12px 16px; border-radius: 8px; margin-bottom: 10px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #a6e9c0; color: #14532d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .6; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content { position: relative; padding: 140px 20px 150px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.5rem); max-width: 900px; line-height: 1.05; }
.hero .lead { color: rgba(255, 255, 255, .82); font-size: 1.15rem; margin-top: 24px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.animate-up { animation: fadeUp .8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.value-strip { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-strip div > div { padding: 30px 20px; text-align: center; border-left: 1px solid var(--border); }
.value-strip div > div:first-child { border-left: 0; }
.value-strip strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.value-strip span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.service-card { padding: 28px; transition: transform .4s, box-shadow .4s; display: block; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.icon-box { width: 48px; height: 48px; border-radius: 8px; background: var(--gold-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; transition: background .3s; }
.service-card:hover .icon-box { background: var(--gradient-gold); color: var(--navy); }
.service-card .num { font-size: .75rem; letter-spacing: .15em; color: var(--gold); margin-bottom: 6px; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { font-size: .9rem; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; color: var(--ink); }
.link-arrow:hover { color: var(--gold); }

.why { position: relative; }
.why-bg { position: absolute; inset: 0; opacity: .07; }
.why-bg img { width: 100%; height: 100%; object-fit: cover; }
.why .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 16px; padding: 20px; }
.check-list i { color: var(--gold); font-size: 1.3rem; margin-top: 3px; }
.check-list h4 { font-size: 1.1rem; margin: 0; }
.check-list p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.pillars { background: var(--secondary); }
.pillar-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar-images img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-card); }
.pillar-images img:last-child { margin-top: 40px; }
.pillar { padding: 24px; }
.pillar ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); display: grid; gap: 6px; }
.pillar li::before { content: "•"; color: var(--gold); margin-right: 8px; }

/* Team */
.team-card { overflow: hidden; display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 4/5; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: #b6bfd0; font-size: 3.5rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px; }
.team-body .role { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }
.team-body h3 { font-size: 1.25rem; margin: 4px 0 10px; }
.team-body p { font-size: .9rem; color: var(--muted); }
.team-contact { display: grid; gap: 4px; font-size: .85rem; }
.team-contact a:hover { color: var(--gold); }

/* Testimonials and regulators marquee */
.testimonials { background: var(--secondary); overflow: hidden; }
.marquee { position: relative; overflow: hidden; margin-top: 40px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--marquee-bg, var(--card)), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--marquee-bg, var(--card)), transparent); }
.testimonials .marquee { --marquee-bg: var(--secondary); }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.quote-card { width: 380px; padding: 28px; flex-shrink: 0; }
.quote-card i { color: rgba(214, 167, 51, .6); font-size: 1.6rem; }
.quote-card blockquote { margin: 14px 0 18px; font-size: .95rem; line-height: 1.7; }
.quote-card strong { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.quote-card small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.case-card { padding: 28px; }
.case-metric { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metric .icon-box { margin: 0; width: 40px; height: 40px; font-size: 1rem; }
.case-metric strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.case-metric span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.regulators { background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 48px; margin-top: 64px; }
.regulator { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); min-width: 260px; transition: border-color .2s, box-shadow .2s; }
.regulator:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.regulator-logo { width: 48px; height: 48px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 4px; flex-shrink: 0; }
.regulator-logo img { max-height: 100%; object-fit: contain; }
.regulator strong { display: block; font-family: var(--font-display); color: var(--ink); }
.regulator small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }

/* Blog */
.post-card { display: block; }
.post-cover { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-card); aspect-ratio: 4/3; margin-bottom: 18px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.post-card h3 { font-size: 1.25rem; transition: color .2s; }
.post-card:hover h3 { color: var(--gold); }
.post-card p { color: var(--muted); font-size: .9rem; }
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-elegant); aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { font-size: 1.08rem; line-height: 1.85; color: var(--text-body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { font-size: .75rem; padding: 4px 10px; background: var(--secondary); border-radius: 999px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 36px; }
.chip { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; background: var(--card); color: var(--muted); cursor: pointer; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--ink); }
.search-input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }

/* Page banner */
.page-banner { background: var(--gradient-navy); color: #fff; padding: 88px 0 72px; position: relative; overflow: hidden; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 860px; }
.page-banner .lead { color: rgba(255, 255, 255, .75); }
.gold-rule { width: 64px; height: 3px; background: var(--gradient-gold); margin-top: 24px; border-radius: 2px; }

/* CTA band */
.cta-band { background: var(--gradient-navy); color: #fff; text-align: center; padding: 80px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); max-width: 760px; margin: 0 auto; }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 560px; margin: 16px auto 32px; }

/* Services page */
.service-row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--border); }
.service-row:nth-child(even) > :first-child { order: 2; }
.service-row .num { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; }
.service-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-items li { display: flex; gap: 10px; padding: 14px; font-size: .9rem; }
.service-items .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: .65rem; flex-shrink: 0; }

/* About / Vision */
.prose p { color: var(--text-body); line-height: 1.8; }
.prose h3 { font-size: 1.5rem; margin-top: 1.5em; }
.office-card { padding: 30px; background: var(--gradient-navy); color: #fff; border: 0; }
.office-card h3 { color: #fff; }
.office-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.office-card i { color: var(--gold); width: 20px; }
.vision-card { padding: 32px; }
.ceo { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: center; }
.ceo-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-elegant); aspect-ratio: 4/5; }
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo blockquote { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin: 8px 0 20px; line-height: 1.35; }

/* Forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { text-overflow: ellipsis; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 167, 51, .2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Send Order: one column form */
.order-form { max-width: 920px; }
.order-submit { display: flex; justify-content: flex-end; margin-top: 8px; }
.list-note { display: block; line-height: 1.6; font-size: .85rem; color: var(--muted); background: var(--gold-soft); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; }
.list-note i { color: var(--gold); margin-right: 4px; }
.list-note[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; font-size: .88rem; line-height: 1.35; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: var(--gold); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { width: 22px; height: 22px; flex-shrink: 0; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; transition: all .2s; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.choice input:checked + .choice-box { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 3px rgba(214, 167, 51, .3); }
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px dashed var(--border); border-radius: 8px; background: var(--input-bg); color: var(--muted); cursor: pointer; font-size: .9rem; transition: border-color .2s, color .2s; }
.file-pick:hover, .file-pick.has-file { border-color: var(--gold); color: var(--ink); }
.file-pick i { color: var(--gold); }
.file-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.checkbox input { margin-top: 4px; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--gradient-navy); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2.3rem; }
.auth-side p { color: rgba(255, 255, 255, .75); }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: rgba(255, 255, 255, .85); }
.auth-side li i { color: var(--gold); margin-right: 10px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-links { display: flex; justify-content: space-between; font-size: .85rem; margin: -4px 0 18px; }
.auth-links a, .link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { text-align: center; font-size: .9rem; margin-top: 20px; color: var(--muted); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.segmented label { border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; font-size: .85rem; }
.segmented label strong { display: block; color: var(--ink); }
.segmented input { display: none; }
.segmented label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* Catalog and order */
.catalog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.product-img { aspect-ratio: 4/3; background: var(--secondary); position: relative; display: flex; align-items: center; justify-content: center; color: #b6bfd0; font-size: 2.5rem; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.promo-tag { position: absolute; top: 10px; left: 10px; background: var(--gradient-gold); color: var(--navy); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.off-tag { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.stock-tag { position: absolute; top: 10px; right: 10px; background: rgba(12, 27, 58, .8); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 999px; }
.product-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-body .cat { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.product-body h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; margin: 4px 0 6px; line-height: 1.35; }
.product-body h3 a:hover { color: var(--gold); }
.product-headline { font-size: .84rem; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; display: grid; gap: 8px; }
.product-foot .unit { font-size: .78rem; font-weight: 500; color: var(--muted); }
.product-foot .price del { display: block; margin: 2px 0 0; }
.stock { font-size: .74rem; font-weight: 600; }
.stock.in { color: var(--success); }
.stock.out { color: #b45309; }
:root[data-theme="dark"] .stock.in { color: #4ade80; }
:root[data-theme="dark"] .stock.out { color: #fbbf24; }
.product-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 4px; }
.price { font-weight: 700; color: var(--ink); }
.price del { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 6px; }
.cart-panel { position: sticky; top: 92px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.cart-head h3 i { color: var(--gold); font-size: 1rem; }
.cart-badge { background: var(--gradient-gold); color: var(--navy); font-size: .75rem; font-weight: 700; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.cart-badge[hidden] { display: none; }
.cart-head .cart-badge { margin-left: auto; }
.cart-mini-total { display: none; font-weight: 700; font-size: .85rem; color: var(--ink); white-space: nowrap; }
.cart-toggle { display: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-toggle i { transition: transform .2s; }
.cart-items { list-style: none; padding: 0 4px 0 0; margin: 0; max-height: 380px; overflow: auto; display: grid; gap: 10px; scrollbar-width: thin; }
.cart-line { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.cart-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: #b6bfd0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; display: grid; gap: 2px; }
.cart-name { font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-unit { font-size: .75rem; color: var(--muted); }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cart-line-total { margin-left: auto; font-size: .84rem; color: var(--ink); white-space: nowrap; }
.cart-remove { background: none; border: 0; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.cart-remove:hover { color: var(--danger); background: rgba(220, 38, 38, .08); }
.cart-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 12px; font-size: .86rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }
.cart-empty span { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.cart-summary { background: var(--secondary); border-radius: 10px; padding: 14px 16px; }
.cart-total { display: grid; gap: 2px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.cart-total strong { font-size: 1.45rem; font-family: var(--font-display); color: var(--ink); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.cart-note { margin: 6px 0 0; font-size: .75rem; color: var(--muted); }
.cart-note i { color: var(--gold); margin-right: 4px; }
.cart-clear { background: none; border: 0; color: var(--muted); font-size: .82rem; cursor: pointer; padding: 4px; justify-self: center; }
.cart-clear:hover { color: var(--danger); }
.cart-clear:disabled { opacity: .4; cursor: default; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--card); }
.qty button { background: none; border: 0; width: 26px; height: 26px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: .85rem; }
.qty-sm button { width: 28px; height: 28px; font-size: .62rem; color: var(--muted); border-radius: 6px; }
.qty-sm button:hover { color: var(--ink); background: var(--secondary); }
.qty-sm span { min-width: 30px; font-size: .82rem; color: var(--ink); }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.icon-btn:hover { color: var(--danger); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 2rem; margin-bottom: 10px; color: #c3cad8; }
.banner-strip { display: grid; gap: 14px; margin-bottom: 28px; }
.promo-banner { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--gradient-navy); color: #fff; border-radius: var(--radius); }
.promo-banner img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.promo-banner strong { color: var(--gold-2); font-family: var(--font-display); font-size: 1.15rem; display: block; }
.order-summary td, .order-summary th { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.order-summary { width: 100%; border-collapse: collapse; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; }

/* Product page (product.php) */
.product-page { padding-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .6rem; opacity: .6; }
.breadcrumb span { color: var(--ink); font-weight: 500; }
.product-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #b6bfd0; font-size: 4rem; box-shadow: var(--shadow-card); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main img.fading { opacity: .2; }
.gallery-main .promo-tag { top: 14px; left: 14px; font-size: .78rem; }
.gallery-main .off-tag { top: 14px; right: 14px; font-size: .8rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); opacity: 0; transition: opacity .2s; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--secondary); aspect-ratio: 1; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.product-info .lead { font-size: 1.05rem; margin-bottom: 18px; }
.product-facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-facts li { font-size: .84rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.product-facts span { color: var(--muted); margin-right: 6px; }
.buy-box { padding: 22px; display: grid; gap: 14px; }
.buy-price strong { font-size: 1.9rem; font-family: var(--font-display); color: var(--ink); }
.buy-price .unit { color: var(--muted); font-size: .95rem; }
.buy-price .was { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.buy-price .save { color: var(--danger); font-weight: 600; margin-left: 8px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.qty-lg { height: 52px; border-radius: 8px; }
.qty-lg button { width: 40px; height: 100%; font-size: 1.2rem; }
.qty-lg input { width: 64px; height: 100%; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-weight: 700; background: var(--input-bg); color: var(--text); -moz-appearance: textfield; }
.qty-lg input::-webkit-outer-spin-button, .qty-lg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-links { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.trust-list i { color: var(--gold); width: 22px; }
.product-details { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border); }
.product-details .flex-gap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; font-weight: 600; color: var(--muted); background: var(--secondary); }
.related { margin-top: 72px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li a, .contact-list li > div { display: flex; gap: 14px; align-items: center; padding: 18px; }
.contact-list .icon-box { margin: 0; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Dialog */
.dialog { border: 0; border-radius: 14px; padding: 0; background: var(--card); color: var(--text); width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-elegant); }
.dialog::backdrop { background: rgba(8, 20, 44, .55); backdrop-filter: blur(2px); }
.dialog-body { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h3 { margin: 0; }
.dialog-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* Footer */
.site-footer { background: var(--gradient-navy); color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 40px; padding: 64px 70px 64px 20px; }
.footer-grid:not(:has(.footer-qr)) { grid-template-columns: 2fr 1fr 1fr; }
.footer-qr { max-width: 230px; }
.footer-qr p { max-width: 200px; }
.footer-qr p { font-size: .82rem; color: rgba(255, 255, 255, .7); margin: 12px 0 10px; line-height: 1.5; }
.footer-qr-box { position: relative; display: inline-block; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: transform .25s; }
.footer-qr-box:hover { transform: translateY(-3px); }
.footer-qr-code { display: block; width: 132px; height: 132px; }
.footer-qr-code img, .footer-qr-code canvas { width: 132px !important; height: 132px !important; }
.footer-qr-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 3px solid #fff; }
.footer-qr-link { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.footer-qr-link:hover { background: #25d366; border-color: #25d366; color: #fff !important; }
:root[data-theme="dark"] .footer-qr-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.footer-brand p { font-size: .9rem; max-width: 420px; margin-top: 16px; color: rgba(255, 255, 255, .7); }
.footer-brand .reg { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 167, 51, .85); }
.site-footer h4 { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--gold); margin-top: 4px; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; padding: 22px 20px; font-size: .78rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }

/* Footer social links */
.follow-label { font-size: .72rem !important; letter-spacing: .2em; text-transform: uppercase; color: var(--gold) !important; margin: 22px 0 10px !important; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social { --brand: var(--gold); width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: transform .25s, background .25s, color .25s, box-shadow .25s, border-color .25s; }
.social-facebook { --brand: #1877f2; }
.social-instagram { --brand: #e1306c; }
.social-tiktok { --brand: #111111; }
.social-x { --brand: #111111; }
.social-linkedin { --brand: #0a66c2; }
.social-whatsapp { --brand: #25d366; }
/* Light mode: white discs with the brand colour; hover fills with the brand colour */
.social { background: #fff; color: var(--brand); border: 1px solid #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45); }
a.social:hover, a.social:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 20px -8px var(--brand); outline: none; }
a.social-instagram:hover, a.social-instagram:focus-visible { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
a.social:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
/* Dark mode: glass discs with white icons; hover fills with the brand colour and glows */
:root[data-theme="dark"] .social { background: rgba(255, 255, 255, .06); color: #e4e8f1; border-color: rgba(255, 255, 255, .16); box-shadow: none; }
:root[data-theme="dark"] a.social:hover, :root[data-theme="dark"] a.social:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 10px 24px -6px var(--brand); }
:root[data-theme="dark"] a.social-tiktok:hover, :root[data-theme="dark"] a.social-x:hover { background: #fff; color: #000; border-color: #fff; }
/* Not set yet (only when the admin chose to show them) */
.social.is-unset { background: transparent; color: rgba(255, 255, 255, .45); border: 1px dashed rgba(255, 255, 255, .3); box-shadow: none; cursor: not-allowed; }
:root[data-theme="dark"] .social.is-unset { background: transparent; color: rgba(255, 255, 255, .35); border-color: rgba(255, 255, 255, .2); }

/* Floating buttons (bottom right) */
.fab-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 80; }
.fab-item { position: relative; display: flex; justify-content: flex-end; }
.fab-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(12, 27, 58, .35); display: flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s, background .25s, opacity .3s; }
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 10px 24px -8px rgba(12, 27, 58, .45); }
/* every floating button is the same size (48px; 44px on phones) - only the colours differ */
.fab-btn-gold { background: var(--gradient-gold); color: var(--navy); border-color: transparent; box-shadow: var(--shadow-gold); }
.fab-btn-navy { background: var(--navy); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .fab-btn-navy { background: var(--gold); color: var(--navy); }
.fab-top { opacity: 0; transform: scale(.7); pointer-events: none; }
.fab-top.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab-top.visible:hover { transform: scale(1.1); }
.fab-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: .76rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-tip::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--navy); }
.fab-btn:hover .fab-tip { opacity: 1; }
.fab-popup { position: absolute; right: calc(100% + 12px); bottom: 0; min-width: 190px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-elegant); padding: 6px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.fab-popup.open { opacity: 1; visibility: visible; transform: none; }
.fab-item:has(.fab-popup.open) .fab-tip { display: none; }
.fab-popup a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.fab-popup a:hover { background: var(--secondary); }
.fab-popup a.active { font-weight: 600; }
.fab-popup a .fa-check { margin-left: auto; color: var(--gold); }
.fab-popup .flag { font-size: .68rem; font-weight: 700; background: var(--navy); color: #fff; border-radius: 4px; padding: 2px 5px; }

/* Assistant chat */
.chat-panel { position: fixed; right: 88px; bottom: 24px; width: 390px; height: min(640px, calc(100vh - 48px)); height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(8, 20, 44, .5); overflow: hidden; z-index: 85; animation: fadeUp .25s ease both; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--gradient-navy); color: #fff; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: rgba(255, 255, 255, .7); }
.chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-gold); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-icon { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.chat-icon:hover { background: rgba(255, 255, 255, .2); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); min-height: 0; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.chat-msg.bot { background: var(--card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
:root[data-theme="dark"] .chat-msg.user { background: var(--gold); color: var(--navy); }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.chat-links a { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); }
.chat-links a:hover { background: var(--gold); color: var(--navy); }
.chat-feedback { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .74rem; color: var(--muted); white-space: normal; }
.chat-feedback button { background: none; border: 0; padding: 2px 5px; color: inherit; cursor: pointer; font-size: .85rem; border-radius: 6px; }
.chat-feedback button:hover, .chat-feedback button:focus-visible { color: var(--ink); background: var(--gold-soft); }
.chat-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--card); scrollbar-width: thin; }
.chat-suggest:empty { display: none; }
.chat-suggest button { flex-shrink: 0; border: 1px solid var(--border); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--input-bg); color: var(--text); }
.chat-form input:focus { outline: none; border-color: var(--gold); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gradient-gold); color: var(--navy); cursor: pointer; flex-shrink: 0; }

/* Search dialog */
.search-dialog { width: min(620px, calc(100% - 32px)); }
.search-box { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 167, 51, .2); }
.search-box i { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; padding: 13px 0; color: var(--text); outline: none; }
.search-results { max-height: 55vh; overflow-y: auto; display: grid; gap: 4px; }
.search-result { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; }
.search-result:hover, .search-result:focus { background: var(--secondary); outline: none; }
.search-result .icon-box { width: 34px; height: 34px; font-size: .85rem; margin: 0; flex-shrink: 0; }
.search-result strong { display: block; color: var(--ink); font-size: .93rem; }
.search-result small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }

/* Password boxes: eye button to show / hide (assets/js/password-toggle.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px !important; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: color .15s, background .15s; }
.pw-toggle:hover { color: var(--ink, var(--text)); background: var(--secondary); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--gold); }

/* Document verification (verify.php) */
.verify-wrap { max-width: 680px; display: grid; gap: 20px; }
.verify-card { padding: 26px; border-width: 1px; border-top: 5px solid var(--success); }
.verify-card.is-warning { border-top-color: #d97706; }
.verify-card.is-invalid { border-top-color: var(--danger); }
.verify-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.verify-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.verify-head p { margin: 0; color: var(--muted); }
.verify-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; background: #dcfce7; color: var(--success); }
.is-warning .verify-icon { background: #fef3c7; color: #d97706; }
.is-invalid .verify-icon { background: #fee2e2; color: var(--danger); }
.verify-facts { margin: 0 0 16px; display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.verify-facts > div { display: grid; grid-template-columns: 40% 1fr; border-bottom: 1px solid var(--border); }
.verify-facts > div:last-child { border-bottom: 0; }
.verify-facts dt { padding: 10px 14px; background: var(--secondary); color: var(--muted); font-size: .85rem; }
.verify-facts dd { margin: 0; padding: 10px 14px; color: var(--ink); }
.verify-status { font-weight: 700; text-transform: capitalize; }
.verify-status.st-paid, .verify-status.st-accepted, .verify-status.st-issued, .verify-status.st-converted { color: var(--success); }
.verify-status.st-cancelled, .verify-status.st-overdue { color: var(--danger); }
.verify-form { padding: 22px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.verify-form .field { flex: 1; min-width: 220px; margin: 0; }
.verify-form input { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }

/* Error pages */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 20px; }
.error-page .code { font-family: var(--font-display); font-size: 6rem; color: var(--gold); line-height: 1; }

/* Responsive */
@media (max-width: 1100px) {
    .main-nav { display: none; }
    .header-mobile { display: flex; }
}
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .product-main, .product-details { grid-template-columns: 1fr; gap: 32px; }
    .gallery { position: static; }
    .cart-panel { position: static; }
    /* Catalog: the list comes first on phones and tablets */
    .cart-panel-top { order: -1; scroll-margin-top: 84px; padding: 16px; gap: 12px; }
    .cart-panel-top .cart-head { padding-bottom: 10px; }
    .cart-panel-top .cart-head h3 { font-size: 1.1rem; }
    .cart-panel-top .cart-items { max-height: 236px; }
    .cart-panel-top .cart-empty { padding: 12px; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; font-size: .82rem; }
    .cart-panel-top .cart-empty span { width: 36px; height: 36px; font-size: .95rem; }
    .cart-panel-top .cart-summary { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
    .cart-panel-top .cart-total strong { font-size: 1.2rem; }
    .cart-panel-top .cart-note { margin: 0; }
    .cart-panel-top .cart-toggle { display: inline-flex; }
    .cart-panel-top.collapsed { gap: 0; }
    .cart-panel-top.collapsed .cart-head { padding-bottom: 0; border-bottom: 0; cursor: pointer; }
    .cart-panel-top.collapsed .cart-mini-total { display: inline; }
    .cart-panel-top.collapsed:has(.cart-badge[hidden]) .cart-mini-total { display: none; }
    .cart-panel-top.collapsed .cart-toggle i { transform: rotate(180deg); }
    .cart-panel-top.collapsed > :not(.cart-head) { display: none; }
}
@media (max-width: 820px) {
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-split, .why .container, .ceo, .contact-grid, .service-row, .auth-wrap, .footer-grid { grid-template-columns: 1fr; }
    .service-row:nth-child(even) > :first-child { order: 0; }
    .value-strip .container { grid-template-columns: repeat(2, 1fr); }
    .value-strip div > div:nth-child(3) { border-left: 0; }
    .auth-side { display: none; }
    .hero-content { padding: 96px 20px 100px; }
    .pillar-images img:last-child { margin-top: 0; }
}
.fab-more-item { display: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(12px) scale(.7); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
    .fab-more-item { display: flex; }
    .fab-more { background: var(--navy) !important; color: #fff !important; border-color: transparent !important; }
    :root[data-theme="dark"] .fab-more { background: var(--gold) !important; color: var(--navy) !important; }
    .fab-stack .fab-extra { display: none; }
    .fab-stack.expanded .fab-extra { display: flex; animation: fabIn .22s ease both; }
    .footer-bottom .container { padding-right: 72px; }
    .fab-stack { right: 14px; bottom: 14px; gap: 8px; }
    .fab-btn { width: 44px; height: 44px; font-size: 1rem; }
    .fab-tip { display: none; }
    .chat-panel { left: 10px; right: 10px; bottom: 10px; width: auto; height: min(640px, calc(100vh - 20px)); height: min(640px, calc(100dvh - 20px)); z-index: 95; }
    .grid-4, .service-items, .field-row, .checkbox-grid, .choice-grid { grid-template-columns: 1fr; }
    .order-submit .btn { width: 100%; }
    .quote-card { width: 300px; }
    .footer-bottom .container { flex-direction: column; }
    .auth-card { padding: 24px; }
}

/* ============================================================
   SIGN IN / SIGN UP - one box: photo with a Kiswahili proverb on the left, the form on the right
   ============================================================ */
.auth-body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-box { width: min(1180px, 100%); min-height: min(820px, calc(100vh - 48px)); display: grid; grid-template-columns: 5fr 6fr; background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-elegant); }
.auth-photo { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px; color: #fff; background-size: cover; background-position: center; isolation: isolate; }
.auth-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 27, 58, .55) 0%, rgba(11, 27, 58, .15) 40%, rgba(11, 27, 58, .88) 100%); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.auth-brand span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.auth-brand small { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.auth-quote p { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.auth-quote small { font-size: .92rem; color: rgba(255, 255, 255, .85); }
.auth-panel { display: flex; flex-direction: column; padding: 40px 56px 28px; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back { color: var(--muted); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: 10px; }
.auth-back:hover { color: var(--ink); }
.auth-tools { display: flex; gap: 10px; }
.auth-tool { position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.auth-tool:hover { border-color: var(--gold); background: var(--gold-soft); }
.auth-lang { position: absolute; top: -9px; right: -7px; min-width: 24px; padding: 2px 5px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .62rem; font-weight: 700; line-height: 1.3; text-align: center; }
.auth-content { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 500px; margin: 0 auto; padding: 32px 0; }
.auth-content .flash-stack { width: auto; max-width: none; padding: 0; margin: 0 0 16px; }
.auth-form h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0 0 10px; color: var(--ink); }
.auth-lead { color: var(--muted); margin: 0 0 30px; font-size: 1.02rem; }
.auth-field { display: block; margin-bottom: 20px; }
.auth-field > span:first-child, .auth-label-row label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row a, .auth-switch a { color: #a07a12; font-weight: 600; text-decoration: none; }
.auth-label-row a { font-size: .88rem; }
.auth-label-row a:hover, .auth-switch a:hover { text-decoration: underline; }
:root[data-theme="dark"] .auth-label-row a, :root[data-theme="dark"] .auth-switch a { color: var(--gold); }
.auth-input { position: relative; display: block; }
.auth-input > i, .auth-input .pw-wrap ~ i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; z-index: 1; }
.auth-input input { width: 100%; box-sizing: border-box; padding: 15px 16px 15px 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg, var(--secondary)); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.auth-input input::placeholder { color: var(--muted); }
.auth-input input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.auth-input .pw-toggle { right: 10px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-check { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 26px; color: var(--muted); cursor: pointer; font-size: .95rem; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.auth-submit { width: 100%; padding: 16px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-gold); transition: filter .15s, transform .1s; }
.auth-submit:hover { filter: brightness(.95); }
.auth-submit:active { transform: translateY(1px); }
.auth-form > .auth-submit { margin-top: 6px; }
.auth-switch { text-align: center; color: var(--muted); margin: 26px 0 0; }
.auth-copy { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }

@media (max-width: 960px) {
    .auth-box { grid-template-columns: 1fr; min-height: 0; }
    .auth-photo { min-height: 220px; padding: 26px 28px; }
    .auth-quote p { font-size: 1.6rem; }
    .auth-panel { padding: 28px 36px 24px; }
}
@media (max-width: 560px) {
    .auth-body { padding: 0; align-items: stretch; }
    .auth-box { border-radius: 0; border: 0; min-height: 100vh; }
    .auth-photo { min-height: 170px; padding: 20px 18px; }
    .auth-brand img { width: 38px; height: 38px; }
    .auth-brand span { font-size: 1.25rem; }
    .auth-quote p { font-size: 1.3rem; margin-bottom: 6px; }
    .auth-quote small { font-size: .8rem; }
    .auth-panel { padding: 18px 16px 20px; }
    .auth-content { padding: 22px 0; }
    .auth-row { grid-template-columns: 1fr; }
    .auth-tool { width: 42px; height: 42px; }
}
/* Forgot / reset password: icon above the title, wide code box, button links */
.auth-badge { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--gold-soft); color: #a07a12; font-size: 1.3rem; margin-bottom: 18px; }
.auth-badge.is-warn { background: rgba(220, 38, 38, .1); color: var(--danger); }
:root[data-theme="dark"] .auth-badge:not(.is-warn) { color: var(--gold); }
.auth-input input.auth-code { letter-spacing: .5em; font-size: 1.25rem; font-weight: 600; }
a.auth-submit { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.auth-switch i { font-size: .85em; margin-right: 4px; }

/* PDF download of the order summary: no buttons in the file */
.pdf-capture .no-print { display: none !important; }
@media print { .no-print { display: none !important; } }
