/* =========================================================
   Microbyte — Global Styles
   Color system:
     --bg         #F8F9FA
     --navy       #0D1B3E (navbar, footer, headings)
     --accent     #00C2FF (CTAs, hover, icons — sparingly)
     --body-text  #1A1A2E
     --card       #FFFFFF
   ========================================================= */

:root {
    --bg:          #F8F9FA;
    --navy:        #0D1B3E;
    --navy-600:    #162a5a;
    --navy-400:    #30457a;
    --accent:      #00C2FF;
    --accent-600:  #00a4d8;
    --accent-soft: #e6f9ff;
    --body-text:   #1A1A2E;
    --muted:       #5a6275;
    --card:        #FFFFFF;
    --border:      #e5e8ef;
    --border-soft: #eef0f5;
    --success:     #1aa36a;
    --danger:      #d64545;
    --warning:     #e5a623;

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(13, 27, 62, 0.06);
    --shadow:    0 6px 20px rgba(13, 27, 62, 0.08);
    --shadow-lg: 0 18px 40px rgba(13, 27, 62, 0.12);

    --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    --container: 1200px;
    --header-h:  84px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; color: var(--body-text); }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 194, 255, 0.3); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--border-soft); color: var(--navy); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb055; color: #fff; }

.btn-block { display: flex; width: 100%; }

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: var(--header-h);
    display: flex; align-items: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    height: 100%;
}

.site-brand { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 44px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; }
.nav-list {
    display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-list a {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-list a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-list a.is-active {
    color: var(--accent);
    background: rgba(0, 194, 255, 0.08);
}

.site-header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none; background: transparent; border: 0; cursor: pointer;
    width: 40px; height: 40px; padding: 8px; border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle-bar {
    display: block; height: 2px; background: #fff; margin: 5px 0; transition: all 0.2s ease;
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav { position: static; }
    .nav-list {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--navy); flex-direction: column; gap: 0;
        padding: 12px 20px 20px; border-top: 1px solid rgba(255,255,255,0.08);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: all 0.2s ease;
    }
    .nav-list.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-list a { padding: 14px 12px; }
}
@media (max-width: 640px) {
    .site-header-cta { display: none; }
}

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 48px 0; }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-muted { background: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(0,194,255,0.12), transparent 60%),
        radial-gradient(900px 400px at 0% 110%, rgba(0,194,255,0.08), transparent 60%),
        linear-gradient(180deg, #0D1B3E 0%, #101f47 100%);
    color: #fff;
    padding: 96px 0 120px;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.6), transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,194,255,0.1);
    color: var(--accent);
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(0,194,255,0.25);
    margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(2.25rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(8px);
}
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 28px;
}
.hero-stat { padding: 0; }
.hero-stat .num {
    font-family: var(--font-display);
    font-size: 1.75rem; color: var(--accent); font-weight: 700;
}
.hero-stat .lbl { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(135deg, rgba(0,194,255,0.15), transparent 50%),
        #0a1530;
    display: grid; place-items: center;
}
.hero-visual svg { width: 72%; height: 72%; opacity: 0.9; }

@media (max-width: 860px) {
    .hero { padding: 64px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
}

/* ---------------- Feature cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,194,255,0.25); }

.feature-card .icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------------- Services list (2-col horizontal rows) ---------------- */
.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 860px) { .services-list { grid-template-columns: 1fr; } }

.service-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.22s ease;
}
.service-row:hover {
    border-color: rgba(0,194,255,0.35);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.service-row-icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
}
.service-row-body {
    flex: 1;
    min-width: 0;
}
.service-row-body h3 {
    font-size: 0.97rem;
    margin: 0 0 3px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-row-body p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-row-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
@media (max-width: 640px) {
    .service-row { flex-wrap: wrap; }
    .service-row-actions { flex-direction: row; width: 100%; }
}

/* ---------------- Service cards (bigger) ---------------- */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex; flex-direction: column;
    transition: all 0.25s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,194,255,0.3);
    box-shadow: var(--shadow);
}
.service-card .icon {
    width: 60px; height: 60px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
    margin-bottom: 22px;
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .service-cta { margin-top: 20px; display: flex; gap: 10px; }

/* ---------------- Catalog ---------------- */
.catalog-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start;
}

/* Filters button — hidden on desktop, shown on mobile inside the topbar */
.catalog-filters-toggle { display: none; }

.catalog-filters {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    position: sticky; top: calc(var(--header-h) + 16px);
}

/* Drawer header — only visible on mobile */
.filter-drawer-head { display: none; }

/* Overlay backdrop — only active on mobile */
.filter-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 498;
    background: rgba(5, 12, 30, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.filter-overlay.is-active { display: block; }

/* ── Catalog topbar (base — defined before mobile overrides to keep cascade clean) ── */
.catalog-topbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.catalog-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 4px 4px 4px 14px;
    flex: 1; min-width: 200px;
}
.catalog-search svg { color: var(--muted); flex-shrink: 0; }
.catalog-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    padding: 10px 6px; font: inherit; color: var(--body-text);
}
.catalog-search button { padding: 10px 18px; }
.catalog-sort {
    padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); background: #fff; font: inherit; color: var(--body-text);
    cursor: pointer;
}
.catalog-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }

/* ── Mobile: bottom-sheet drawer (860px covers phones + small tablets) ── */
@media (max-width: 860px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sidebar becomes a fixed bottom sheet */
    .catalog-layout > .catalog-filters {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 499;
        max-height: 82vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid var(--border);
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    }

    .catalog-filters.is-open {
        transform: translateY(0) !important;
    }

    /* Drag handle visual */
    .catalog-filters::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 12px auto 0;
    }

    /* Drawer header */
    .filter-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 20px 14px;
        border-bottom: 1px solid var(--border);
        font-weight: 700; font-size: 1rem; color: var(--navy);
        position: sticky; top: 0; background: var(--card); z-index: 1;
    }
    .filter-drawer-close {
        background: var(--border-soft); border: none; border-radius: 8px;
        width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
        cursor: pointer; color: var(--body-text);
        transition: background 0.15s;
    }
    .filter-drawer-close:hover { background: var(--border); }

    /* Pad all filter content inside drawer */
    .catalog-filters .filter-group {
        padding: 0 20px;
        margin-bottom: 20px;
    }
    .catalog-filters .filter-group:first-of-type { padding-top: 16px; }

    /* Bigger touch targets for category links */
    .catalog-filters li a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Bigger touch targets for spec checkboxes */
    .spec-check-label {
        padding: 10px 4px !important;
        min-height: 44px;
    }

    /* Filters toggle button — shown in topbar on mobile */
    .catalog-filters-toggle {
        display: inline-flex; align-items: center; gap: 7px;
        padding: 9px 14px; order: 1;
        background: var(--card); border: 1px solid var(--border);
        border-radius: 8px; font: inherit; font-size: 0.88rem;
        font-weight: 600; color: var(--navy); cursor: pointer;
        white-space: nowrap; flex-shrink: 0;
        transition: border-color 0.15s, background 0.15s;
    }
    .catalog-filters-toggle:hover { border-color: var(--navy); }
    .catalog-filters-toggle[aria-expanded="true"] {
        background: var(--navy); color: #fff; border-color: var(--navy);
    }

    /* Active filters dot */
    .filter-active-dot {
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--accent); flex-shrink: 0;
    }

    /* Topbar: Filters + Sort on row 1, Search full-width on row 2 */
    .catalog-topbar { gap: 8px; }
    .catalog-search { flex: 1 1 100%; min-width: 0; order: 3; }
    .catalog-sort   { flex: 1; min-width: 0; order: 2; }
}

/* Very small phones — shrink Search button to icon only */
@media (max-width: 420px) {
    .catalog-search button { padding: 10px 12px; font-size: 0; }
    .catalog-search button::after { content: '→'; font-size: 0.9rem; }
}

.catalog-filters h4 {
    margin: 0 0 12px; font-size: 0.85rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600;
}
.catalog-filters .filter-group { margin-bottom: 24px; }
.catalog-filters .filter-group:last-child { margin-bottom: 0; }
.catalog-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.catalog-filters li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 8px;
    color: var(--body-text); font-size: 0.92rem;
}
.catalog-filters li a:hover { background: var(--border-soft); }
.catalog-filters li a.is-active {
    background: var(--navy); color: #fff;
}
.catalog-filters li a.is-active .count { color: rgba(255,255,255,0.7); }
.catalog-filters .count { color: var(--muted); font-size: 0.82rem; }
.catalog-filters .sub { padding-left: 14px; }
.catalog-filters .sub a { font-size: 0.88rem; color: var(--muted); padding: 6px 12px; }
.catalog-filters .sub a.is-active { background: var(--accent-soft); color: var(--navy); }

/* --- Spec collapse toggle (sidebar) --- */
.spec-collapse-section { padding: 0; }
.spec-collapse-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; padding: 0 0 10px;
    cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    font-family: var(--font-body);
}
.spec-collapse-toggle:hover { color: var(--navy); }
.spec-collapse-arrow {
    flex-shrink: 0; transition: transform 0.22s ease;
}
.spec-collapse-toggle[aria-expanded="true"] .spec-collapse-arrow {
    transform: rotate(180deg);
}
.spec-collapse-body { padding-top: 2px; }
.spec-group { margin-bottom: 18px; }
.spec-group:last-child { margin-bottom: 0; }
.spec-group h5 {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--body-text);
    margin: 0 0 6px; font-family: var(--font-body);
}

/* --- Spec filter checklist (sidebar) --- */
.spec-checklist { list-style: none; padding: 0; margin: 0; }
.spec-checklist li { margin: 0; }
.spec-check-label {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 4px; cursor: pointer; font-size: 0.9rem;
    border-radius: 6px; transition: background 0.15s;
}
.spec-check-label:hover { background: var(--border-soft); }
.spec-check-label input[type="checkbox"] { margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.spec-check-label > span:nth-child(3) { flex: 1; }
.spec-check-label .count {
    font-size: 0.78rem; color: var(--muted); background: var(--border-soft);
    padding: 1px 7px; border-radius: 10px; flex-shrink: 0;
}

/* --- Catalog grid loading state --- */
#catalog-grid { position: relative; min-height: 80px; transition: opacity 0.2s; }
#catalog-grid.is-loading { opacity: 0.45; pointer-events: none; }
#catalog-grid.is-loading::after {
    content: ''; position: absolute; top: 60px; left: 50%;
    width: 30px; height: 30px; margin-left: -15px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: catalog-spin 0.65s linear infinite;
}
@keyframes catalog-spin { to { transform: rotate(360deg); } }

/* --- Admin spec row editor --- */
.spec-row { display: flex; gap: 8px; align-items: center; }
.spec-row input[type="text"] {
    padding: 8px 10px; border: 1px solid var(--border);
    border-radius: var(--radius); font: inherit; font-size: 0.9rem;
    background: var(--surface); color: var(--text); outline: 0;
}
.spec-row input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,194,255,0.12); }
.spec-row .spec-remove-btn { flex-shrink: 0; color: var(--danger, #e53e3e); }

.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.25s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,194,255,0.3);
    box-shadow: var(--shadow);
}
.product-card .product-image {
    aspect-ratio: 4/3; background: #f3f5f9;
    display: grid; place-items: center; overflow: hidden;
}
.product-card .product-image img {
    width: 84%; height: 84%; object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card .product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .product-category {
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); font-weight: 600;
}
.product-card h3 {
    font-size: 1rem; margin: 6px 0 10px;
    font-family: var(--font-body); font-weight: 600; color: var(--navy);
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .product-price {
    font-size: 1.15rem; font-weight: 700; color: var(--navy);
    margin: auto 0 14px;
}
.product-card .product-price.is-quote { color: var(--accent); font-size: 0.95rem; }
.product-card .product-card-link {
    display: flex; flex-direction: column; flex: 1;
    color: inherit; text-decoration: none;
}
.product-card .product-card-link:hover h3 { color: var(--accent); }
.product-card .product-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 0 18px 18px;
}

/* ---------------- Product detail page ---------------- */
.product-detail {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px; align-items: start;
}
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

.product-gallery .gallery-main {
    background: #f3f5f9; border-radius: var(--radius);
    aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.product-gallery .gallery-main img {
    width: 100%; height: 100%; object-fit: contain; padding: 6%;
}
.gallery-zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.gallery-zoomable:hover { transform: scale(1.03); }
.gallery-zoom-hint {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.45); color: #fff;
    border-radius: 6px; padding: 5px 7px;
    display: flex; align-items: center;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
}
.gallery-main:hover .gallery-zoom-hint { opacity: 1; }

/* (Lightbox styles live further down — the .is-open / .lightbox-stage system used by main.js) */
.product-gallery .gallery-thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
    margin-top: 14px;
}
@media (max-width: 480px) {
    .product-gallery .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
.product-gallery .gallery-thumbs button {
    background: #f3f5f9; border: 2px solid transparent; border-radius: 10px;
    padding: 0; aspect-ratio: 1/1; overflow: hidden; cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-gallery .gallery-thumbs button:hover { border-color: var(--accent); }
.product-gallery .gallery-thumbs button.is-active { border-color: var(--navy); }
.product-gallery .gallery-thumbs img {
    width: 100%; height: 100%; object-fit: contain; padding: 8%;
}

/* ---------- Lightbox (full-screen image viewer) ---------- */
body.no-scroll { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(13, 27, 62, 0.92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: lightboxFadeIn 0.18s ease-out;
}
.lightbox.is-open { display: flex; }
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-stage {
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img {
    max-width: 100%; max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    background: #fff;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    border-radius: 50%;
    display: grid; place-items: center;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    backdrop-filter: blur(4px);
}
.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}

.lightbox-close {
    top: 20px; right: 24px;
    width: 44px; height: 44px;
    font-size: 1.6rem; line-height: 1;
}
.lightbox-nav {
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 2rem; line-height: 1;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
    position: absolute;
    bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    max-width: 80vw;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    pointer-events: none;
}

@media (max-width: 600px) {
    .lightbox { padding: 12px; }
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-stage img { max-height: 80vh; }

    /* Product tabs — tighten padding and allow tab strip to scroll */
    .product-tab { padding: 11px 16px; font-size: 0.85rem; white-space: nowrap; }
    .product-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0; }
    .product-tab-panel { padding: 20px 18px; }

    /* Specs table — stack label above value on narrow screens */
    .specs-row { grid-template-columns: 1fr; }
    .specs-row dt {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 14px 5px;
        background: var(--border-soft);
    }
    .specs-row dd { padding: 6px 14px 10px; }
}

.product-info-cat {
    display: inline-block;
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); font-weight: 700; margin-bottom: 12px;
    text-decoration: none;
}
.product-info-cat:hover { color: var(--navy); }
.product-info h1 {
    font-size: 1.9rem; margin: 0 0 12px; line-height: 1.25;
}
.product-info-sku {
    color: var(--muted); font-size: 0.85rem; margin-bottom: 14px;
}
.product-info-price {
    font-size: 2rem; font-weight: 800; color: var(--navy);
    margin: 8px 0 18px;
}
.product-info-price.is-quote {
    color: var(--accent); font-size: 1.5rem;
}
.product-info-short {
    font-size: 1rem; color: var(--body-text); margin: 0 0 22px;
    line-height: 1.6;
}
.product-info-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px;
}
.product-info-actions .btn { flex: 1; min-width: 180px; }
.product-info-meta {
    list-style: none; margin: 0; padding: 18px 20px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.product-info-meta li {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
}
.product-info-meta li:last-child { border-bottom: 0; }
.product-info-meta span {
    color: var(--muted); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.product-info-meta strong {
    color: var(--navy); font-weight: 600; text-align: right;
}

.product-description {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.product-description h2 { font-size: 1.4rem; margin-bottom: 14px; }
.product-description .prose {
    color: var(--body-text); line-height: 1.7; max-width: 78ch;
}

.product-related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}
.product-related h2 {
    font-size: 1.35rem; margin-bottom: 6px;
}
.product-related .related-sub {
    font-size: 0.9rem; color: var(--muted); margin-bottom: 24px;
}

/* --- Product tabs section (specs + description) --- */
.product-tabs-section {
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Tab strip */
.product-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--border-soft);
}
.product-tab {
    padding: 13px 28px;
    font-size: 0.9rem; font-weight: 600;
    background: none; border: none; cursor: pointer;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.product-tab:hover { color: var(--navy); }
.product-tab.is-active {
    color: var(--navy);
    border-bottom-color: var(--accent);
    background: var(--card);
}

/* Tab panels */
.product-tab-panel {
    padding: 28px 32px;
    background: var(--card);
}
.product-tab-panel.is-hidden { display: none; }
.tab-panel-heading {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
    margin: 0 0 16px; font-family: var(--font-body);
}

/* Specs table inside panel */
.specs-table {
    margin: 0; padding: 0;
    border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden;
}
.specs-row {
    display: grid; grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--border);
}
.specs-row:last-child { border-bottom: none; }
.specs-row:nth-child(odd) { background: var(--surface, var(--border-soft)); }
.specs-row dt {
    padding: 10px 16px; font-size: 0.83rem; font-weight: 600;
    color: var(--muted); border-right: 1px solid var(--border);
    display: flex; align-items: center;
}
.specs-row dd {
    margin: 0; padding: 10px 16px; font-size: 0.88rem;
    color: var(--body-text); display: flex; align-items: center;
}

/* Description prose inside panel */
.product-tab-panel .prose {
    font-size: 0.84rem; line-height: 1.6; color: var(--body-text);
}
.product-tab-panel .prose p {
    margin: 0 0 10px;
}
.product-tab-panel .prose p:last-child { margin-bottom: 0; }

/* Bullet list from ">" lines in description */
.desc-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.desc-list:last-child { margin-bottom: 0; }
.desc-list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0 8px;
    align-items: baseline;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--body-text);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
}
.desc-list li:last-child { border-bottom: none; }
.desc-list li::before {
    content: '•';
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 700;
}

/* --- Digital product card badge --- */
.product-card-digital .product-image { position: relative; }
.card-digital-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--accent); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: .05em;
    padding: 3px 8px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.card-stock-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 0.7rem; font-weight: 700; letter-spacing: .03em;
    padding: 3px 8px; border-radius: 20px;
}
.card-stock-out { background: var(--danger); color: #fff; }
.card-stock-low { background: #fef3c7; color: #92400e; }

/* Light image protection — non-draggable (deters casual drag-to-save) */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* --- Buy page layout --- */
.buy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .buy-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Product summary card */
.buy-product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.buy-product-img {
    background: var(--border-soft);
    aspect-ratio: 4/3;
    display: grid;
    place-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.buy-product-img img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.buy-product-info { padding: 20px 22px 0; }
.buy-digital-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,194,255,.12); color: var(--accent);
    font-size: 0.72rem; font-weight: 700; letter-spacing: .06em;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.buy-product-info h2 { font-size: 1.15rem; margin: 0 0 8px; }
.buy-product-info p  { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; }
.buy-price {
    font-size: 1.5rem; font-weight: 800;
    color: var(--navy); margin: 6px 0 10px;
}
.buy-stock {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 600; margin-bottom: 16px;
}
.buy-stock-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.buy-stock.in-stock  { color: #16a34a; }
.buy-stock.in-stock  .buy-stock-dot { background: #16a34a; }
.buy-stock.out-stock { color: var(--danger); }
.buy-stock.out-stock .buy-stock-dot { background: var(--danger); }
.buy-includes {
    border-top: 1px solid var(--border);
    padding: 16px 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.buy-include-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.83rem; color: var(--muted);
}
.buy-include-item svg { color: #16a34a; flex-shrink: 0; }

/* Checkout form */
.buy-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
}
.buy-form-title { font-size: 1.2rem; margin: 0 0 6px; }
.buy-form-sub   { font-size: 0.88rem; color: var(--muted); margin: 0 0 20px; }
.buy-total-row  {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--border-soft);
    border-radius: 8px; padding: 12px 16px;
    font-size: 0.95rem; margin-bottom: 4px;
}
.buy-total-row strong { font-size: 1.1rem; color: var(--navy); }

/* Order confirmation icons */
.order-confirm-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.order-confirm-success { background: rgba(22,163,74,.12); color: #16a34a; }
.order-confirm-fail    { background: rgba(220,38,38,.1);  color: var(--danger); }

/* Admin stat colours for low stock */
.admin-stat.stat-warn   { border-left: 3px solid #f59e0b; }
.admin-stat.stat-danger { border-left: 3px solid var(--danger); }

/* --- 404 page --- */
.not-found-wrap {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 520px;
    margin: 0 auto;
}
.not-found-code {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    font-family: var(--font-head);
    opacity: 0.18;
    margin-bottom: -16px;
}
.not-found-wrap h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 12px; }
.not-found-wrap p  { color: var(--muted); font-size: 1rem; margin-bottom: 32px; }
.not-found-actions {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* --- Catalog pagination --- */
.catalog-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; margin-top: 32px; flex-wrap: wrap;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.88rem; color: var(--body-text);
    text-decoration: none; background: var(--card);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.is-active {
    background: var(--navy); color: #fff; border-color: var(--navy);
    font-weight: 600; pointer-events: none;
}
.page-ellipsis {
    display: inline-flex; align-items: center; padding: 0 6px;
    color: var(--muted); font-size: 0.88rem;
}

.page-head-sm { padding: 24px 0 0; background: transparent; color: var(--body-text); }
.page-head-sm .breadcrumb { color: var(--muted); }
.page-head-sm .breadcrumb a { color: var(--accent); }

.empty-state {
    text-align: center; padding: 60px 20px;
    background: var(--card); border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

/* ---------------- Breadcrumb / page head ---------------- */
.page-head {
    background: var(--navy);
    color: #fff;
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-head::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 80% 0%, rgba(0,194,255,0.16), transparent 60%);
    pointer-events: none;
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0; }
.breadcrumb {
    display: flex; gap: 8px; font-size: 0.85rem;
    color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--accent); }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 0.88rem; font-weight: 600; color: var(--navy);
}
.form-field input,
.form-field textarea,
.form-field select {
    font: inherit;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--body-text);
    transition: all 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,194,255,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.alert {
    padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #e6f7ef; color: #166c48; border: 1px solid #c6ebd9; }
.alert-error   { background: #fbe9e9; color: #8a2a2a; border: 1px solid #f2c3c3; }
.alert-info    { background: var(--accent-soft); color: var(--navy); border: 1px solid #c0ebfa; }

/* ---------------- Contact split ---------------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-info-card {
    background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 36px;
    position: relative; overflow: hidden;
}
.contact-info-card::after {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,194,255,0.25), transparent 70%);
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.75); }
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.contact-info-list li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list .ico {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(0,194,255,0.15); color: var(--accent);
    display: grid; place-items: center;
}
.contact-info-list .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-info-list .val { color: #fff; font-weight: 500; }
.contact-info-list a { color: #fff; }
.contact-info-list a:hover { color: var(--accent); }

/* ---------------- CTA strip ---------------- */
.cta-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
}
.cta-strip::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px 200px at 90% 50%, rgba(0,194,255,0.2), transparent 70%);
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 0; max-width: 560px; }
.cta-strip .btn { position: relative; z-index: 1; }
@media (max-width: 720px) { .cta-strip { flex-direction: column; align-items: flex-start; padding: 32px; } }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
    margin-top: 80px;
}
.site-footer-inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
    padding-bottom: 48px;
}
@media (max-width: 960px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer-inner { grid-template-columns: 1fr; } }

.site-footer h4 {
    color: #fff; font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600; margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--accent); }

.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 320px; }

.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: grid; place-items: center;
    color: rgba(255,255,255,0.85);
}
.footer-socials a:hover { background: var(--accent); color: var(--navy); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- WhatsApp floating button ---------------- */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 90;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: 14px;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.35);
    transition: all 0.25s ease;
    overflow: hidden;
}
.wa-float:hover { background: #1fb055; color: #fff; transform: translateY(-2px); }
.wa-float-icon { flex-shrink: 0; }
.wa-float-label {
    max-width: 0; opacity: 0; white-space: nowrap;
    font-weight: 600; transition: all 0.25s ease;
}
.wa-float:hover .wa-float-label { max-width: 180px; opacity: 1; margin-right: 4px; }

.wa-float-pulse {
    position: absolute; inset: 0; border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
    animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.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); }
}
@media (max-width: 520px) {
    .wa-float { bottom: 16px; right: 16px; padding: 12px; }
}

/* ---------------- About page ---------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-image {
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8eefb 0%, #f8f9fa 100%);
    display: grid; place-items: center;
    border: 1px solid var(--border);
}
.about-image svg { width: 60%; opacity: 0.9; }

.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values-list li { display: flex; gap: 14px; align-items: flex-start; }
.values-list .ico {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
}
.values-list h4 { margin: 0 0 4px; font-size: 1.05rem; }
.values-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

.badge {
    display: inline-block;
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--navy);
}

/* ---------------- Testimonials ---------------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(13,27,62,0.06);
    position: relative;
}
.testimonial-card::before {
    content: "\201C";
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: Georgia, serif;
}
.testimonial-card p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--body-text);
    padding-top: 24px;
}
.testimonial-card footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.testimonial-card footer strong {
    font-size: 0.95rem;
    color: var(--navy);
}
.testimonial-card footer span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------------- FAQ ---------------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}
.faq-item p {
    margin: 0;
    padding: 18px 22px;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}
.faq-item p a { color: var(--accent); }

/* ---------------- Feature card flex (for pricing cards) ---------------- */
.feature-card { display: flex; flex-direction: column; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--border-soft); color: var(--navy);
    padding: 4px 10px; border-radius: 6px; font-size: 0.8rem;
}

/* ---------------- Admin ---------------- */
.admin-body {
    background: #f4f6fb;
    min-height: 100vh;
}
.admin-login-wrap {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 20px;
    background:
        radial-gradient(800px 400px at 80% -10%, rgba(0,194,255,0.18), transparent 60%),
        radial-gradient(600px 300px at 0% 110%, rgba(0,194,255,0.1), transparent 60%),
        var(--navy);
}
.admin-login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.admin-login-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.admin-login-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }

.admin-layout {
    display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
}
.admin-sidebar {
    background: var(--navy); color: #fff;
    padding: 24px 16px;
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
}
.admin-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}
.admin-brand img { height: 36px; width: auto; }
.admin-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 8px;
    color: rgba(255,255,255,0.72); font-size: 0.94rem;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.is-active { background: var(--accent); color: var(--navy); font-weight: 600; }
.admin-nav a.is-active svg { color: var(--navy); }
.admin-nav svg { color: rgba(255,255,255,0.6); }

.admin-sidebar-foot {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.admin-sidebar-foot a { color: rgba(255,255,255,0.85); }

.admin-main { padding: 28px 36px; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }

.admin-image-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px; margin-bottom: 12px;
}
.admin-image-tile {
    position: relative; aspect-ratio: 1/1;
    background: #f3f5f9; border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden;
}
.admin-image-tile img {
    width: 100%; height: 100%; object-fit: contain; padding: 8%;
}
.admin-image-tile form { position: absolute; top: 6px; right: 6px; margin: 0; }
.admin-image-tile button {
    width: 26px; height: 26px; border-radius: 50%; border: 0;
    background: rgba(13, 27, 62, 0.85); color: #fff;
    font-size: 1.1rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.15s ease;
}
.admin-image-tile button:hover { background: #c0392b; }

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 960px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.admin-stat {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px;
}
.admin-stat .lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.admin-stat .val { font-size: 1.8rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }

.admin-table {
    width: 100%; border-collapse: collapse; font-size: 0.94rem;
}
.admin-table th, .admin-table td {
    padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-table tbody tr:hover { background: #fafbfd; }
.admin-table .thumb {
    width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #f3f5f9;
}
.admin-table .row-actions { display: flex; gap: 6px; }

.admin-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }

.status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
}
.status-on { background: #e6f7ef; color: #166c48; }
.status-off { background: #f3f4f7; color: #6b7284; }
.stat-warn-pill { background: #fef3c7; color: #92400e; }

/* Sidebar live badges */
.admin-nav-badge {
    margin-left: auto; min-width: 18px; height: 18px; line-height: 18px;
    padding: 0 5px; border-radius: 999px;
    background: var(--accent, #00C2FF); color: #04263a;
    font-size: 0.72rem; font-weight: 700; text-align: center;
}
.admin-nav-badge-warn { background: #f59e0b; color: #3a2700; }

/* Admin pagination */
.admin-pagination {
    display: flex; gap: 12px; align-items: center; justify-content: center;
    margin-top: 18px;
}

/* Expandable quote message */
.msg-details > summary {
    cursor: pointer; list-style: none; color: var(--muted);
}
.msg-details > summary::-webkit-details-marker { display: none; }
.msg-details[open] > summary { margin-bottom: 6px; }
.msg-full { font-size: 0.9rem; line-height: 1.5; }

/* Inline reset-password disclosure on the team table */
.reset-pw-details > summary { list-style: none; cursor: pointer; }
.reset-pw-details > summary::-webkit-details-marker { display: none; }

@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-main { padding: 20px; }
}

/* ── Image tiles (existing saved images) ────── */
.admin-image-tile { position: relative; }
.admin-image-tile.is-thumbnail { outline: 2px solid var(--primary); border-radius: 8px; }
.tile-thumb-badge {
    position: absolute; bottom: 28px; left: 0; right: 0;
    background: var(--primary); color: #fff;
    font-size: 0.7rem; font-weight: 700; text-align: center;
    padding: 3px 0; pointer-events: none;
}
.tile-set-thumb-btn {
    position: absolute; bottom: 28px; left: 0; right: 0;
    background: rgba(0,0,0,.55); color: #ffd700;
    font-size: 0.72rem; font-weight: 700; text-align: center;
    padding: 3px 0; border: 0; cursor: pointer; width: 100%;
    opacity: 0; transition: opacity .15s;
}
.admin-image-tile:hover .tile-set-thumb-btn { opacity: 1; }
.tile-delete-btn {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,.55); color: #fff;
    border: 0; border-radius: 50%; width: 22px; height: 22px;
    font-size: 14px; line-height: 22px; text-align: center;
    cursor: pointer; opacity: 0; transition: opacity .15s;
}
.admin-image-tile:hover .tile-delete-btn { opacity: 1; }

/* ── New upload preview tiles ────────────────── */
.preview-tile {
    position: relative; width: 110px;
    border: 2px solid #e2e8f0; border-radius: 8px;
    overflow: hidden; background: #f8f9fb;
    transition: border-color .15s;
}
.preview-tile.is-thumb { border-color: var(--primary); }
.preview-tile img { width: 110px; height: 90px; object-fit: cover; display: block; }
.preview-tile-actions {
    display: flex; flex-direction: column; gap: 3px;
    padding: 5px; background: #fff;
}
.preview-badge {
    font-size: 0.68rem; font-weight: 700; color: var(--primary);
    text-align: center; display: block;
}
.preview-set-thumb {
    font-size: 0.68rem; font-weight: 600; color: #5a6278;
    background: #f3f4f7; border: 1px solid #e2e8f0;
    border-radius: 4px; padding: 2px 6px; cursor: pointer;
    text-align: center; width: 100%;
    transition: background .15s, color .15s;
}
.preview-set-thumb:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.preview-remove {
    font-size: 0.68rem; color: #e53e3e; background: none;
    border: 1px solid #fed7d7; border-radius: 4px;
    padding: 2px 6px; cursor: pointer; text-align: center; width: 100%;
    transition: background .15s;
}
.preview-remove:hover { background: #fff5f5; }
.preview-name {
    display: block; font-size: 0.65rem; color: #8a93a8;
    padding: 3px 5px 5px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* ── Upload zone ─────────────────────────────── */
.upload-zone {
    border: 2px dashed #c8d0e0;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fafbfd;
    color: #5a6278;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: #f0f4ff;
    color: var(--primary);
}
.upload-zone svg { margin-bottom: 10px; opacity: .6; }
.upload-zone p { margin: 0; font-size: .93rem; }
.upload-zone.drag-over { border-color: var(--primary); background: #eef2ff; }

/* ── Styled checkboxes ───────────────────────── */
.checkbox-field { padding: 14px 16px; background: #fafbfd; border: 1px solid #e8ecf4; border-radius: 8px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-box {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border: 2px solid #c8d0e0;
    border-radius: 5px;
    margin-top: 2px;
    transition: background .15s, border-color .15s;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox-label span strong { display: block; font-size: .92rem; color: #1a2035; }
.checkbox-label span small { display: block; font-size: .8rem; color: #8a93a8; margin-top: 2px; }
