/* public/assets/css/app.css */

/* =========================
   RESET / BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: transparent;
    padding-top: 88px;
}

/* Fixed background layer for all devices */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.52)),
        url("/image.php?id=site_bg_desktop");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   THEME VARIABLES
   ========================= */
:root {
    --accent: #db1709;
    --accent-soft: rgba(150, 7, 11, 0.22);
    --accent-ring: rgba(150, 7, 11, 0.28);

    --brand-red: #96070b;
    --brand-red-hover: #7a0509;
    --brand-blue: #2563eb;
    --brand-glow: #e2f26b;

    --brand-deep: #0f172a;
    --brand-accent: var(--brand-red);

    --border: #e5e7eb;
    --muted: #475569;
    --bg: #f5f7fa;
    --card: #ffffff;
}

a {
    color: #93c5fd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Accent glow utility */
.glow-accent {
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(219, 23, 9, 0.16),
        0 14px 34px var(--accent-soft);
}

/* =========================
   LAYOUT: HEADER / MAIN / FOOTER
   ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: #0f172a;
    color: #f9fafb;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-logo__img {
    display: block;
    height: clamp(28px, 3.2vw, 52px);
    width: auto;
    max-width: 18vw;
    min-width: 42px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-header__user {
    font-size: 0.85rem;
    color: #9ca3af;
}

.site-header__cart {
    position: relative;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0.3rem 0.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.15s;
    flex-shrink: 0;
}
.site-header__cart:hover { color: #db1709; }
.site-header__cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #db1709;
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 8px;
    line-height: 1;
    flex-shrink: 0;
    transition: background .15s;
}
.site-nav-toggle:hover { background: rgba(255,255,255,.1); }
.site-nav-toggle svg { display: block; }

/* Mobile nav auth links — hidden on desktop, shown in dropdown */
.site-nav__mobile-auth { display: none; }

@media (max-width: 860px) {
    .site-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -1rem;
        right: -1rem;
        background: #0f172a;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-radius: 0 0 16px 16px;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 8px 24px rgba(0,0,0,.4);
        z-index: 10;
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav a {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        border-radius: 0;
    }
    .site-nav a:hover {
        background: rgba(255,255,255,.07);
    }
    .site-header__left {
        position: relative;
    }
    /* Show auth links in dropdown, hide desktop buttons */
    .site-nav__mobile-auth {
        display: block;
        border-top: 1px solid rgba(255,255,255,.06);
        margin-top: 0.4rem;
        padding-top: 0.4rem;
        color: #9ca3af !important;
    }
    .site-nav__mobile-auth--primary {
        color: #f87171 !important;
        font-weight: 600;
    }
    .site-header__right {
        display: none;
    }
    /* Larger logo on mobile */
    .site-logo__img {
        height: 36px;
        max-width: none;
    }
}

.site-main {
    flex: 1;
    padding: 1.5rem 2rem;
    width: 100%;
    margin: 0 auto;
    max-width: none;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.site-footer__col--brand .site-footer__brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.site-footer__col--brand .site-footer__brand-tag {
    color: #93c5fd;
    font-weight: 600;
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
}

.site-footer__col--brand .site-footer__brand-blurb {
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.55;
    margin: 0;
    font-size: 0.88rem;
}

.site-footer__heading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 0.85rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-footer__links li {
    margin: 0;
    line-height: 1.45;
}

.site-footer__links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__address {
    font-style: normal;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
}

.site-footer__links--contact li {
    color: #cbd5e1;
    font-size: 0.88rem;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.site-footer__reg {
    color: #94a3b8;
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-footer__platform {
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.74rem;
}

.site-footer__legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-footer__legal-links a {
    color: #94a3b8;
    text-decoration: none;
}

.site-footer__legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1.5rem;
        padding: 1.75rem 1.15rem 1.25rem;
    }
    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
    .site-footer__bottom {
        padding: 0.9rem 1.15rem;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CONTAINERS / TYPO
   ========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    color: #fff;
}

.muted,
.text-muted {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.text-dim { color: rgba(255, 255, 255, 0.72); }
.text-faint { color: rgba(255, 255, 255, 0.60); }

/* ── Flash messages (fulfillment queues, admin pages) ──────────────────────── */
.flash-ok  { background: #dcfce7; color: #166534; padding: .65rem 1rem; border-radius: 7px; margin-bottom: 1rem; font-size: .92rem; }
.flash-err { background: #fee2e2; color: #991b1b; padding: .65rem 1rem; border-radius: 7px; margin-bottom: 1rem; font-size: .92rem; }
.empty-queue { text-align: center; padding: 2.5rem; color: rgba(255,255,255,0.72); font-size: .95rem; }

/* ── Task/sub-task status badges (fulfillment queues) ─────────────────────── */
.task-badge { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; font-weight: 600; margin-left: .3rem; }
.ts-pending     { background: #dbeafe; color: #1e40af; }
.ts-in_progress { background: #fef9c3; color: #854d0e; }
.ts-blocked     { background: #fee2e2; color: #991b1b; }
.ts-escalated   { background: #f3e8ff; color: #6b21a8; }

.text-sm {
    font-size: 0.875rem;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--brand-red);
    color: #ffffff;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.3),
        0 0 0 1px rgba(150, 7, 11, 0.22),
        0 12px 30px var(--accent-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--brand-red-hover);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(150, 7, 11, 0.3),
        0 18px 44px var(--accent-ring);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(150, 7, 11, 0.22),
        0 10px 26px var(--accent-soft);
}

.btn-secondary {
    background-color: rgba(31, 33, 66, 0.42);
    color: #fff;
    border-color: #1f2142;
}

.btn-secondary:hover {
    background-color: rgba(31, 33, 66, 0.65);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

.btn-adv {
    height: 2.4rem;
    padding: 0 1rem;
    border-radius: 8px;
    border: 1px solid rgba(31, 33, 66, 0.50);
    background: rgba(31, 33, 66, 0.42);
    font-size: .8rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.btn-adv:hover,
.btn-adv[aria-expanded="true"] {
    background: rgba(31, 33, 66, 0.65);
    border-color: rgba(31, 33, 66, 0.70);
}

.adv-chev {
    font-size: .65rem;
    line-height: 1;
}

.btn-danger:hover {
    filter: brightness(0.95);
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--accent-ring),
        0 0 0 1px rgba(150, 7, 11, 0.25);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* =========================
   FORMS (GLOBAL)
   ========================= */
.field,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.field label,
.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="url"],
.form-field select,
.form-field textarea,
.input,
.textarea,
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"] {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 33, 66, 0.40);
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    background-color: rgba(255, 255, 255, 0.88);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"] {
    border-radius: 999px;
}

.field textarea,
.form-field textarea,
.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.input {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
}

/* Select dropdowns use dark navy theme; text inputs stay near-white */
select.input,
.field select,
.form-field select {
    background: rgba(15, 23, 42, 0.60);
    color: #fff;
    border-color: rgba(31, 33, 66, 0.50);
}

select.input option,
.field select option,
.form-field select option {
    background: #1a1f3a;
    color: #fff;
}

.eq-select, .sq-select {
    background: rgba(15, 23, 42, 0.60);
    color: #fff;
    border: 1px solid rgba(31, 33, 66, 0.50);
}

.eq-select option, .sq-select option {
    background: #1a1f3a;
    color: #fff;
}

.textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.input:focus,
.textarea:focus,
.auth-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    background-color: rgba(255, 255, 255, 0.95);
}

select.input:focus,
.field select:focus,
.form-field select:focus {
    background-color: rgba(15, 23, 42, 0.75);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form {
    padding: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-grid .span-2,
.field--span2 {
    grid-column: 1 / -1;
}

.field .help {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
}

.req {
    color: #b91c1c;
}

.actions {
    white-space: nowrap;
}

/* =========================
   ALERTS
   ========================= */
.alert {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    margin: 0.75rem 0;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

/* =========================
   CARDS / PRODUCTS
   ========================= */
.card {
    background: rgba(31, 33, 66, 0.85);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: none;
}

.card img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    max-height: 180px;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
}

.card-price {
    font-weight: 600;
    color: #16a34a;
    font-size: 0.95rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.img-preview {
    border: 1px solid #1f2142;
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.40);
}

.img-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    display: block;
}

/* =========================
   SHOP HEADER / FILTERS
   ========================= */
.shop-breadcrumb {
    font-size: 0.82rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Public store search toolbar */
.pub-shop-toolbar {
    margin: .75rem 0 1rem;
}
.pub-shop-toolbar__row {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}
.pub-shop-input {
    flex: 1 1 220px;
    min-width: 140px;
}
.pub-shop-adv {
    display: none;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding-top: .5rem;
}
.pub-shop-adv.is-open { display: flex; }
.pub-shop-adv .input { flex: 1 1 180px; min-width: 140px; }

@media (max-width: 600px) {
    /* Stack search inputs full-width on phones — partial wraps look ragged */
    .pub-shop-toolbar__row { gap: 0.5rem; }
    .pub-shop-toolbar__row > * { flex: 1 1 100%; }
    .pub-shop-toolbar__row .btn,
    .pub-shop-toolbar__row .btn-adv { width: 100%; justify-content: center; }
    .pub-shop-adv .input,
    .pub-shop-adv .btn { flex: 1 1 100%; width: 100%; }
}

/* Product cards in shop context */
.shop-cat-section .product-card,
.dash-cat-section .product-card {
    background: rgba(31, 33, 66, 0.85);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}
.shop-cat-section .product-card .product-card__image-wrap,
.dash-cat-section .product-card .product-card__image-wrap {
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: .65rem;
    padding: .75rem;
    min-height: 180px;
}
.shop-cat-section .product-card .product-card__image-wrap img,
.dash-cat-section .product-card .product-card__image-wrap img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 0;
}
.shop-cat-section .qty-stepper,
.dash-cat-section .qty-stepper,
.shop-results-grid .qty-stepper,
.dp-grid .qty-stepper {
    border-color: rgba(255, 255, 255, 0.12);
}
.shop-cat-section .qty-stepper__input,
.dash-cat-section .qty-stepper__input,
.shop-results-grid .qty-stepper__input,
.dp-grid .qty-stepper__input {
    background: rgba(31, 33, 66, 0.70);
    color: #fff;
    font-weight: 700;
    border-left: none;
    border-right: none;
}
.shop-cat-section .qty-stepper__btn,
.dash-cat-section .qty-stepper__btn,
.shop-results-grid .qty-stepper__btn,
.dp-grid .qty-stepper__btn {
    background: var(--brand-red);
    color: #fff;
}
.shop-cat-section .qty-stepper__btn:hover,
.dash-cat-section .qty-stepper__btn:hover,
.shop-results-grid .qty-stepper__btn:hover,
.dp-grid .qty-stepper__btn:hover { background: var(--brand-red-hover); }
.shop-cat-section .qty-stepper__btn:active,
.dash-cat-section .qty-stepper__btn:active,
.shop-results-grid .qty-stepper__btn:active,
.dp-grid .qty-stepper__btn:active { background: var(--brand-red-hover); }

/* White text on all themed containers */
.card,
.dash-panel-list,
.page-card,
.product-detail-card,
.pdp-tabs,
.blog-post-card,
.special-card {
    color: #fff;
}

/* Table rows inside themed cards — transparent so card bg shows through */
.card td,
.dash-panel-list td {
    background: transparent;
}
.card tr:hover td,
.dash-panel-list tr:hover td {
    background: rgba(31, 33, 66, 0.10);
}

/* Category-grouped store layout */
.shop-page-head {
    margin: .75rem 0 1rem;
}
.shop-page-head__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .15rem;
}
.shop-page-head__sub {
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.75);
}
.shop-cat-section {
    margin-top: 2rem;
}
.shop-cat-heading,
.dash-cat-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    padding: .4rem .75rem;
    background: transparent;
    border-left: 4px solid var(--brand-red, #db1709);
    border-radius: 0;
    margin-bottom: .75rem;
    letter-spacing: .01em;
}
.dash-cat-section {
    margin-top: 1.75rem;
}
.dash-cat-section:first-child {
    margin-top: .5rem;
}
.dash-panel-list.dash-panel-list--shop {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.dash-panel-list.dash-panel-list--shop .dash-panel-list__heading {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.15);
}
.dash-panel-list.dash-panel-list--shop .dash-shop-toolbar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: .25rem 0 .75rem;
}

.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-header__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 0.15rem;
    margin-bottom: 0.2rem;
}

.shop-header__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-accent), transparent);
    opacity: 0.9;
}

.shop-header p,
.shop-header .text-muted {
    color: #fff;
    font-weight: 600;
}

.shop-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-header__filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shop-header__filters input[type="text"],
.shop-header__filters select {
    height: 2.4rem;
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 220px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.shop-header__filters select {
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-header__filters input[type="text"]::placeholder {
    color: #9ca3af;
}

.shop-header__filters input[type="text"]:focus,
.shop-header__filters select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background-color: #ffffff;
}

.shop-header__filters .btn-primary {
    height: 2.4rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    /* Phone-width search filter row — full-width inputs/selects/buttons */
    .shop-header__filters { gap: 0.5rem; }
    .shop-header__filters input[type="text"],
    .shop-header__filters select {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .shop-header__filters .btn-primary,
    .shop-header__filters .shop-reset-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Store wrapper */
.store-shell {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* =========================
   BRAND STRIP (LONG LOGO)
   ========================= */
.brand-strip {
    width: 100%;
    padding: 0.9rem 0 0.4rem;
    display: flex;
    justify-content: center;
}

.brand-strip__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.brand-strip__logo {
    display: block;
    width: 100%;
    max-width: min(1100px, 92vw);
    height: clamp(44px, 7vw, 110px);
    object-fit: contain;
    filter: brightness(0.65);
}

/* =========================
   SPECIALS STRIP
   ========================= */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    margin: 0 0 1.5rem;
}

.special-card {
    border-radius: 0.9rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid #1f2142;
    background: rgba(31, 33, 66, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.special-card:hover {
    transform: translateY(-2px);
}

.special-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4rem;
    color: inherit;
}

.special-card__text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
    color: inherit;
    opacity: 0.95;
    max-width: 44ch;
}

.special-card__btn {
    align-self: flex-start;
    margin-top: auto;
}

.special-card--main {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(135deg, var(--brand-blue), #1d4ed8 42%, #0f172a 100%);
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(226, 242, 107, 0.14);
}

.special-card--main:hover {
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.58),
        0 0 0 1px rgba(226, 242, 107, 0.18);
}

.special-card--main .special-card__title,
.special-card--main .special-card__text {
    color: #ffffff;
}

.special-card--main .special-card__text {
    opacity: 0.92;
}

.special-card--daily {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 32%),
        linear-gradient(135deg, #5d0804 0%, var(--brand-red) 62%, #b10f07 100%);
    color: #ffffff;
    border-color: rgba(219, 23, 9, 0.85);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(219, 23, 9, 0.72),
        0 0 16px rgba(226, 242, 107, 0.18);
}

.special-card--daily:hover {
    box-shadow:
        0 20px 46px rgba(15, 23, 42, 0.54),
        0 0 0 1px rgba(219, 23, 9, 0.82),
        0 0 18px rgba(226, 242, 107, 0.22);
}

.special-card--daily .special-card__title,
.special-card--daily .special-card__text {
    color: #ffffff;
}

.special-card--daily .special-card__text {
    opacity: 0.94;
}

.special-card--prebuilt {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 28%, var(--brand-red) 100%);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.46),
        0 0 0 1px rgba(219, 23, 9, 0.55),
        0 0 14px rgba(226, 242, 107, 0.14);
}

.special-card--prebuilt:hover {
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(219, 23, 9, 0.65),
        0 0 16px rgba(226, 242, 107, 0.18);
}

.special-card--prebuilt .special-card__title,
.special-card--prebuilt .special-card__text {
    color: #ffffff;
}

.special-card--prebuilt .special-card__text {
    opacity: 0.93;
}

.special-card--daily .btn-secondary,
.special-card--prebuilt .btn-secondary {
    background-color: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(255, 255, 255, 0.75);
}

.special-card--daily .btn-secondary:hover,
.special-card--prebuilt .btn-secondary:hover {
    background-color: #ffffff;
    color: #111827;
    border-color: #ffffff;
    text-decoration: none;
}

.special-card--main .btn-primary {
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(37, 99, 235, 0.28);
}

/* =========================
   PRODUCT ROW CAROUSEL
   ========================= */
.product-section {
    margin-top: 1.75rem;
    background: transparent;
}

.product-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.product-section p,
.product-section .text-muted,
.product-section__subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.product-section__controls {
    display: none;
}

.product-row-carousel {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.product-row-carousel__track {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.product-row-carousel__track::-webkit-scrollbar {
    display: none;
}

.product-row-card {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
}

.product-row-card.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    min-height: 100%;
}

.product-row-card .mt-2 {
    margin-top: auto;
}

@media (max-width: 1400px) {
    .product-row-card {
        flex: 0 0 calc((100% - 3rem) / 4);
    }
}

@media (max-width: 1100px) {
    .product-row-card {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

/* =========================
   AUTH PAGES (LOGIN / REGISTER)
   ========================= */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem 4rem;
    background: rgba(15, 23, 42, 0.08);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin-top: 2rem;
    padding: 2.5rem 2.75rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.auth-title {
    margin: 0 0 1.75rem;
    font-size: 1.8rem;
    font-weight: 600;
    /* .auth-card is the one white-background card on the site: dark text, not the dark-theme white */
    color: var(--brand-deep);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--brand-deep);
    text-decoration: underline;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
    color: #b91c1c;
}

/* Confirmations (reset link sent, password changed, code sent): the templates used this class but it
   was never defined, so they showed in error red. The auth card is white: dark green on pale green. */
.auth-alert--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Embedded mode */
body[data-embedded="1"] .site-header,
body[data-embedded="1"] .site-footer {
    display: none !important;
}

body[data-embedded="1"] {
    background: transparent;
    padding-top: 0;
}

body[data-embedded="1"]::before {
    display: none;
}

/* =========================
   DASHBOARD (ADMIN / CLIENT)
   ========================= */
.dash-header {
    margin: 0.25rem 0 1rem;
}

.dash-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.dash-menu {
    position: sticky;
    top: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dash-menu .card {
    padding: 0.9rem;
}

.dash-menu h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.dash-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dash-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.dash-menu a:hover {
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dash-content .card {
    padding: 1.2rem;
}

.dash-content .card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* =========================
   TABLES (ADMIN)
   ========================= */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.92rem;
}

.table th,
.table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
}

.table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
}

.table tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ── Dashboard: .card inside admin context stays navy, not mauve ── */
.dash-main .card,
.dash-content .card,
.dash-menu .card {
    background: rgba(31, 33, 66, 0.55);
    border-color: #1f2142;
}

/* ── Dashboard shop product cards: mauve, overriding the navy above ── */
.dash-main .dash-cat-section .product-card {
    background: rgba(31, 33, 66, 0.85);
    border-color: rgba(255, 255, 255, 0.10);
}

/* ── Dashboard dark-theme overrides for .table ── */
.dash-main .table {
    background: rgba(31, 33, 66, 0.30);
    border-color: rgba(31, 33, 66, 0.35);
    color: rgba(255, 255, 255, 0.88);
}
.dash-main .table th {
    background: rgba(31, 33, 66, 0.52);
    color: rgba(255, 255, 255, 0.80);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(31, 33, 66, 0.30);
}
.dash-main .table td {
    border-bottom: 1px solid rgba(31, 33, 66, 0.18);
    color: rgba(255, 255, 255, 0.88);
}
.dash-main .table tr:last-child td {
    border-bottom: none;
}
.dash-main .table tr:hover td {
    background: rgba(31, 33, 66, 0.18);
}

/* ── Responsive table → cards on mobile ──────────────────────
   Usage: add class="table table--cards" and data-label="Col"
   on every <td>. thead is hidden; each row becomes a card.
   ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .table--cards thead           { display: none; }
    .table--cards,
    .table--cards tbody,
    .table--cards tr,
    .table--cards td              { display: block; width: 100%; }
    .table--cards tr {
        margin-bottom: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(15,23,42,.06);
    }
    .table--cards td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.55rem 0.9rem;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.88rem;
    }
    .table--cards td:last-child   { border-bottom: none; }
    .table--cards td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.60);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* odd/even row colours still work per-card */
    .table--cards tr:nth-child(odd)  td { background: rgba(31, 33, 66, 0.35); }
    .table--cards tr:nth-child(even) td { background: rgba(31, 33, 66, 0.52); }
    .table--cards tr:hover td          { background: rgba(31, 33, 66, 0.12); }
}

/* =========================
   ADMIN PAGES
   ========================= */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.page-head h1 {
    font-size: 1.6rem;
}

.page-head__actions {
    display: flex;
    gap: 0.5rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 0;
}

.toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* =========================
   MOBILE RESPONSIVE — DASH LAYOUT
   Ensures all staff/admin pages fit the viewport without horizontal scroll.
   ========================= */

/* ── Page header: stack title above action buttons on small screens ── */
@media (max-width: 640px) {
    .page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }
    .page-head h1 {
        font-size: 1.2rem;
    }
    .page-head__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        width: 100%;
    }
    .page-head__actions .btn,
    .page-head__actions a.btn {
        font-size: 0.76rem;
        padding: 0.32rem 0.65rem;
    }
}

/* ── Toolbar / filter bars ── */
@media (max-width: 640px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .toolbar__left {
        flex-wrap: wrap;
    }
    .toolbar .input,
    .toolbar select {
        font-size: 0.82rem;
    }
}

/* ── Tables: reduce density + allow scroll without requiring HTML changes ── */
@media (max-width: 640px) {
    .table-wrap {
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    .table {
        font-size: 0.78rem;
    }
    .table th,
    .table td {
        padding: 0.45rem 0.5rem;
        white-space: nowrap;
    }
    /* Tables that don't have a .table-wrap become self-scrolling */
    .container > .table,
    .dash-main > .container .table:not(.dash-cart-table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Global button shrink on small screens ── */
@media (max-width: 480px) {
    .btn {
        font-size: 0.82rem;
        padding: 0.38rem 0.8rem;
    }
    .btn.btn-sm {
        font-size: 0.72rem;
        padding: 0.24rem 0.52rem;
    }
}

/* ── Input / select: full width in narrow card rows ── */
@media (max-width: 480px) {
    .card .input[style],
    .card input[type="text"],
    .card input[type="search"],
    .card input[type="number"],
    .card select {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── Alert banners don't overflow ── */
@media (max-width: 640px) {
    .alert {
        font-size: 0.82rem;
        padding: 0.6rem 0.85rem;
    }
}

/* ── Fulfillment queue tab bars: wrap to multiple rows on mobile ── */
@media (max-width: 640px) {
    .fq-tabs,
    .wq-tabs,
    .sq-tabs {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .fq-tab,
    .wq-tab,
    .sq-tab {
        font-size: 0.76rem;
        padding: 0.35rem 0.65rem;
        flex: 1 1 auto;
        text-align: center;
    }
}

/* =========================
   CHAT FAB
   ========================= */
/* Chat FAB wrapper — fixed bottom-right on every page, every screen size */
.chat-fab-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

@media (max-width: 860px) {
    .chat-fab-wrap {
        bottom: 7.5rem;
    }
}

/* Colored envelope notification row — appears above the FAB */
.chat-fab-notifs {
    display: flex;
    gap: 5px;
    align-items: center;
}
.chat-fab-notif {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.45);
    transition: transform .15s, box-shadow .15s;
    flex-shrink: 0;
}
.chat-fab-notif:hover  { transform: scale(1.18); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.chat-fab-notif svg    { width: 13px; height: 13px; display: block; }
.cfn-sales    { background: #3b82f6; }
.cfn-internal { background: #f97316; }
.cfn-dm       { background: #ec4899; }
.cfn-ai       { background: #a855f7; }

/* Online/open status dot — sits in the flex column between notifs and logo */
.chat-fab-status {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 1px 5px rgba(0,0,0,.6);
    flex-shrink: 0;
}
.chat-fab-status--open   { background: #22c55e; }
.chat-fab-status--closed { background: #96070b; }

.chat-fab {
    position: relative;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-fab__icon img {
    height: 34px;
    width: auto;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

/* =========================
   CHAT MODAL
   ========================= */
/* ── Chat side panel (replaces modal) ── */
.chat-side-panel {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: min(440px, calc(100vw - 24px));
    height: min(620px, calc(100vh - 100px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15,23,42,.28);
    display: flex;
    flex-direction: column;
    z-index: 500;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    overflow: hidden;
}
.chat-side-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
@media (max-width: 480px) {
    .chat-side-panel {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 85vh;
        border-radius: 20px 20px 0 0;
    }
}
.chat-side-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e2d4a);
    color: #fff;
    flex: 0 0 auto;
}
.chat-side-panel__title {
    font-size: .92rem;
    font-weight: 700;
}
.chat-side-panel__close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}
.chat-side-panel__close:hover { color: #fff; }
.chat-side-panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.chat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.chat-modal-overlay.open .chat-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-modal {
    width: min(520px, 95vw);
    height: min(720px, 92vh);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.chat-modal__header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    background: #ffffff;
    flex: 0 0 auto;
}

.chat-modal__close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.chat-modal__body {
    flex: 1 1 auto;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.chat-embed,
.chat-frame {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    display: block;
    background: #ffffff;
}

/* =========================
   CHAT EMBEDDED NAV BAR
   ========================= */
.chat-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #1a2744;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.chat-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.15s;
}
.chat-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}
.chat-nav-btn.primary {
    background: #c0392b;
    color: #fff;
}
.chat-nav-btn.primary:hover {
    background: #a93226;
}
.chat-nav-bar .role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
.chat-nav-bar__spacer {
    flex: 1 1 auto;
}

/* Section-specific nav bar colours */
.chat-nav--hub      { background: #1a2744; }
.chat-nav--sales    { background: #b91c1c; }
.chat-nav--ai       { background: #6d28d9; }
.chat-nav--internal { background: #0369a1; }
.chat-nav--dm       { background: #065f46; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    body {
        padding-top: 70px;
    }

    body::before {
        background-image:
            linear-gradient(rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.48)),
            url("/image.php?id=site_bg_tablet");
    }

    .specials-grid {
        grid-template-columns: 1fr;
    }

    .special-card {
        min-height: auto;
    }

    .special-card__text {
        max-width: none;
    }
}

@media (max-width: 960px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--span2 {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .product-row-card {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 68px;
    }

    body::before {
        background-image:
            linear-gradient(rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.44)),
            url("/image.php?id=site_bg_mobile");
        background-position: center top;
    }

    .brand-strip__logo {
        height: 42px;
        max-width: 320px;
    }

    .site-main {
        padding: 0.75rem 0.75rem;
    }

}

@media (max-width: 520px) {
    .product-row-card {
        flex: 0 0 100%;
    }
}

/* =========================
   PRODUCT CARD UPGRADE
   ========================= */
.product-card {
    position: relative;
    gap: 0.75rem;
    padding: 0.85rem;
    min-height: 100%;
}

.product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    background: #db1709;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 0.25rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    pointer-events: none;
    max-width: calc(100% - 1.5rem);
}


.product-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.65rem;
    min-height: 210px;
    padding: 1rem;
    overflow: hidden;
}

.product-card__image-wrap:hover {
    text-decoration: none;
}

.product-card__image-wrap img {
    width: 100%;
    height: 180px;
    object-fit: scale-down;
    border-radius: 0;
}

.product-card__image-placeholder {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.9rem;
}

.product-card__title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    min-height: 2.7em;
}

.product-card__title a {
    color: #fff;
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--brand-red);
    text-decoration: none;
}

.product-card__meta {
    display: none;
}

.product-card__specs {
    display: none;
}

.product-card__stock {
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: auto;
}

.product-card__stock--ok {
    color: #74f53d;
}

.product-card__stock--low {
    color: #f91421;
    text-shadow: 0 0 8px rgba(249, 20, 33, 0.75);
}

.product-card__stock--out {
    color: #b91c1c;
}

.product-card__prices {
    display: grid;
    gap: 0.18rem;
}

.product-card__retail {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.product-card__old {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
    text-decoration: line-through;
}

.product-card__dealer {
    font-size: 0.82rem;
    color: #93c5fd;
    font-weight: 700;
}

.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.product-card__btn {
    width: 100%;
}

/* View button on product cards — dark navy to match image-wrap background */
.product-card__btn.btn-secondary {
    background: #1a2744;
    color: #fff;
    border-color: #1f2142;
}
.product-card__btn.btn-secondary:hover {
    background: #0f172a;
}

/* =========================
   PRODUCT DETAIL PAGE
   ========================= */
.product-detail-card {
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.product-detail__media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-detail__image {
    width: 100%;
    max-width: 320px;
    min-height: 200px;
    max-height: 320px;
    object-fit: scale-down;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid #1f2142;
    border-radius: 1rem;
    padding: 1rem;
    box-sizing: border-box;
}

.product-detail__image--placeholder {
    display: grid;
    place-items: center;
    min-height: 320px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid #1f2142;
    color: rgba(255, 255, 255, 0.60);
}

/* ── Product image zoom lightbox ── */
.pdp-zoom-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pdp-zoom-wrap::after {
    content: 'Zoom';
    position: absolute;
    bottom: .85rem;
    right: .85rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(31, 33, 66, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}
.pdp-zoom-wrap:hover::after { opacity: 1; }

.pdp-zoom-trigger {
    cursor: pointer;
    transition: opacity .15s;
}
.pdp-zoom-trigger:hover { opacity: 0.88; }

.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    touch-action: none;
    overflow: hidden;
}
.pdp-lightbox.is-open { opacity: 1; visibility: visible; }

.pdp-lightbox__img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.pdp-lightbox__img {
    max-width: min(92vw, 900px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    transform-origin: center center;
    transform: scale(1);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}
.pdp-lightbox__img.is-zoomed { cursor: pointer; }

.pdp-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: background .15s;
    touch-action: manipulation;
}
.pdp-lightbox__close:hover { background: rgba(255, 255, 255, 0.35); }

.pdp-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: background .15s;
    touch-action: manipulation;
    user-select: none;
}
.pdp-lightbox__nav:hover { background: rgba(255, 255, 255, 0.35); }
.pdp-lightbox__nav--prev { left: 1rem; }
.pdp-lightbox__nav--next { right: 1rem; }

.pdp-lightbox__counter {
    position: fixed;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(31, 33, 66, 0.35);
    color: rgba(255, 255, 255, 0.78);
    font-size: .78rem;
    font-weight: 600;
    padding: .28rem .75rem;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

.pdp-lightbox__hint {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(31, 33, 66, 0.35);
    color: rgba(255, 255, 255, 0.70);
    font-size: .74rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

/* Thumbnail strip */
.pdp-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: .25rem;
}
.pdp-thumb {
    padding: 0;
    border: 2px solid rgba(31, 33, 66, 0.50);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.30);
    cursor: pointer;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .15s, background .15s;
}
.pdp-thumb:hover { border-color: rgba(255, 255, 255, 0.50); background: rgba(15, 23, 42, 0.50); }
.pdp-thumb--active { border-color: #db1709; }
.pdp-thumb img { max-width: 56px; max-height: 56px; width: auto; height: auto; object-fit: scale-down; }

/* Colour variants (svc variant groups): chips linking to each sibling's own product page */
.pdp-variants { margin: 0 0 1rem; }
.pdp-variants__label { font-size: .85rem; color: rgba(255, 255, 255, 0.78); margin-bottom: .45rem; }
.pdp-variants__label strong { color: #fff; }
.pdp-variants__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdp-variant {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .7rem .3rem .3rem;
    border: 2px solid rgba(31, 33, 66, 0.50);
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.85);
    color: #fff; font-size: .8rem; font-weight: 700;
    text-decoration: none; max-width: 100%;
}
.pdp-variant:hover { border-color: rgba(255, 255, 255, 0.50); text-decoration: none; }
.pdp-variant--active { border-color: #db1709; cursor: default; }
.pdp-variant img, .pdp-variant__placeholder {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    object-fit: cover; background: rgba(15, 23, 42, 0.30);
}
.pdp-variant__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
    .pdp-variant { font-size: .76rem; padding-right: .55rem; }
    .pdp-variant img, .pdp-variant__placeholder { width: 26px; height: 26px; }
}

@media (max-width: 640px) {
    .pdp-lightbox__img { max-width: 96vw; max-height: 82vh; }
    .pdp-lightbox__hint { font-size: .68rem; }
    .pdp-lightbox__nav { width: 38px; height: 38px; font-size: 1.5rem; }
    .pdp-thumb { width: 52px; height: 52px; }
    .pdp-thumb img { max-width: 44px; max-height: 44px; }
}

.product-detail__title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(219, 23, 9, 0.18);
}

.product-detail__meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
    align-items: start;
}

.product-price-stack {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.product-price-stack__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: baseline;
}

.product-price-stack__label {
    font-weight: 700;
    color: #fff;
}

.product-price-stack__retail {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.product-price-stack__dealer {
    color: #93c5fd;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-price-stack__old {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: line-through;
}

.product-detail__line {
    margin-bottom: 0.45rem;
    color: #fff;
}

.product-detail__brand {
    /* Colour set inline by the template via BrandColors::for($brand) so the
       per-brand colour from /admin/products/edit propagates to the detail
       page Manufacturer label — keeping it identical to the colour on the
       product cards across the catalogue. Falls back to var(--brand-red)
       if a template forgets the inline style. */
    color: var(--brand-red);
    font-weight: 700;
}

.product-stock-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.9rem 0 1rem;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.30);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.stock-pill--ok {
    background: #dcfce7;
    color: #166534;
}

.stock-pill--low {
    background: #fee2e2;
    color: #991b1b;
}

.stock-pill--warn {
    background: #db1709;
    color: #fff;
}

.product-detail__short {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.65;
}

.product-detail__specs {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.5;
}

/* Qty stepper — shared by product page and product cards */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    width: 100%;
}
.qty-stepper__btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.qty-stepper__btn:hover { background: #e2e8f0; }
.qty-stepper__btn:active { background: #cbd5e1; }
.qty-stepper__input {
    flex: 1 1 auto;
    border: none;
    border-left: 1px solid rgba(31, 33, 66, 0.40);
    border-right: 1px solid rgba(31, 33, 66, 0.40);
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    width: 100%;
    min-width: 0;
    background: rgba(31, 33, 66, 0.55);
    color: #fff;
    outline: none;
    /* hide native number arrows */
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.product-card__stepper-form { margin-bottom: .5rem; }
.qty-stepper--card { height: 38px; }
.qty-stepper--card .qty-stepper__btn { flex: 0 0 38px; width: 38px; height: 38px; font-size: 1.1rem; }
.qty-stepper--card .qty-stepper__input { font-size: .875rem; }

.product-detail__buybox {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid #1f2142;
    border-radius: 1rem;
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
    color: #fff;
}
.product-detail__buybox .qty-stepper {
    border-color: #1f2142;
}
.product-detail__buybox .qty-stepper__btn {
    background: var(--brand-red);
    color: #fff;
}
.product-detail__buybox .qty-stepper__btn:hover { background: var(--brand-red-hover); }
.product-detail__buybox .qty-stepper__btn:active { background: var(--brand-red-hover); }
.product-detail__buybox .qty-stepper__input {
    background: rgba(31, 33, 66, 0.55);
    color: #fff;
    border-left-color: #1f2142;
    border-right-color: #1f2142;
}
/* .field input[type="number"] (specificity 0-2-1) overrides the stepper input —
   this rule (0-3-1) beats it to restore the dark theme background */
.field .qty-stepper input[type="number"] {
    background: rgba(31, 33, 66, 0.55);
    color: #fff;
    border-left: 1px solid #1f2142;
    border-right: 1px solid #1f2142;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    padding: 0;
}

.product-detail__cart-btn,
.product-detail__compare-btn {
    width: 100%;
}

.product-detail__back-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.product-detail__description {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 33, 66, 0.20);
}

.product-detail__description h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 960px) {
    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail__meta-grid {
        grid-template-columns: 1fr;
    }
}

/* On the dashboard, the 220px sidebar eats into the available width so the
   product-detail two-column layout starts to crush ~220px earlier than on
   the public site. Collapse to single column at the same effective content
   width by triggering at viewport ≤1180px when inside .dash-main. */
@media (max-width: 1180px) {
    .dash-main .product-detail-card {
        grid-template-columns: 1fr;
    }
    .dash-main .product-detail__meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .product-card__image-wrap {
        min-height: 180px;
    }

    .product-detail__title {
        font-size: 1.3rem;
    }
    .product-detail-card {
        padding: 1rem;
    }
    .product-detail__image {
        max-width: 100%;
    }
}

/* =========================
   PRODUCT DETAIL TABS
   ========================= */
.pdp-tabs {
    margin-top: 1.25rem;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    box-shadow: none;
    overflow: hidden;
}
.pdp-tabs__nav {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(31, 33, 66, 0.50);
    padding: 0 .5rem;
    overflow-x: auto;
    overflow-y: hidden; /* browsers promote overflow-y to auto when -x is auto — kills the thin vertical scrollbar artefact on the tabs row */
    scrollbar-width: thin;
}
.pdp-tabs__nav::-webkit-scrollbar { height: 4px; }
.pdp-tabs__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 2px; }
.pdp-tab-btn { flex-shrink: 0; white-space: nowrap; }
.pdp-tab-btn {
    padding: .75rem 1.4rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.60);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.pdp-tab-btn:hover { color: #fff; }
.pdp-tab-btn--active {
    color: var(--brand-red, #db1709);
    border-bottom-color: var(--brand-red, #db1709);
}
.pdp-tab-panel {
    display: none;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.65;
}
.pdp-tab-panel--active { display: block; }

/* =========================
   PRODUCT CAROUSEL CONTROLS
   ========================= */
.product-section__controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.product-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.product-carousel-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #ffffff;
    color: var(--brand-red);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.product-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
    .product-section__header {
        align-items: flex-start;
    }

    .product-section__controls {
        width: 100%;
        justify-content: flex-end;
    }

    .product-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
/* ── Auth: OTP input ─────────────────────────────────────── */
.otp-input {
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 0.75rem 1rem !important;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #4b5563; /* white .auth-card: dark-gray, not the dark-theme white */
    margin: -0.75rem 0 1.5rem;
    line-height: 1.6;
}

.auth-hint {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* ── mCaptcha widget wrapper ─────────────────────────────── */
#mcaptcha-widget {
    margin: 0.25rem 0;
}

/* ── Auth forms: compact layout on small phones ──────────── */
@media (max-width: 480px) {
    .auth-page {
        padding: 0.75rem 0.5rem 2rem;
    }
    .auth-card {
        padding: 1.25rem 1rem;
        margin-top: 0.5rem;
    }
    .auth-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    .auth-subtitle {
        font-size: 0.85rem;
    }
    .otp-input {
        font-size: 1.5rem !important;
        letter-spacing: 0.3em;
    }
    /* Shrink mCaptcha iframe — zoom affects layout unlike transform */
    #mcaptcha__widget-container {
        zoom: 0.75;
        /* Firefox fallback */
        transform: scale(0.75);
        transform-origin: top left;
        max-height: 175px;
        overflow: hidden;
    }
}

/* Password eye-toggle wrapper */
.pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pwd-wrap input {
    width: 100%;
    padding-right: 42px !important;
}
.pwd-eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .15s;
    flex-shrink: 0;
    line-height: 0;
}
.pwd-eye-toggle:hover { color: rgba(255, 255, 255, 0.90); }
.pwd-eye-toggle svg   { width: 18px; height: 18px; display: block; }

/* Remember me row */
.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563; /* inside the white .auth-card */
    cursor: pointer;
    user-select: none;
}
.auth-remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

/* =========================================================
   Rich content pages (Contact / Blog)
   ========================================================= */

.page-card {
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
    padding: 0;
    overflow: hidden;
    border-radius: 1.15rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.22);
    border: 1px solid #1f2142;
    background: rgba(31, 33, 66, 0.55);
    backdrop-filter: blur(4px);
}

.page-rich-content {
    padding: 2rem 2rem 2.25rem;
    color: #fff;
}

.page-rich-content h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.page-rich-content h2 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.page-rich-content h3 {
    margin: 1.15rem 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.page-rich-content p {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.88);
}

.page-rich-content .muted {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    font-weight: 600;
}

.page-rich-content ul,
.page-rich-content ol {
    margin: 0.5rem 0 1.15rem 1.25rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-rich-content li {
    margin: 0.35rem 0;
    line-height: 1.65;
}

.page-rich-content a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.page-rich-content a:hover {
    color: #bfdbfe;
    opacity: 0.92;
    text-decoration: underline;
}

.page-rich-content > p:first-of-type {
    font-size: 1.08rem;
}

.page-rich-content h2 + ul,
.page-rich-content h2 + ol {
    margin-top: 0.25rem;
}

/* highlighted intro strip */
.cms-content > p.muted:first-of-type {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(31, 33, 66, 0.50);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
}

/* Make social/channel sections feel more intentional */
.cms-content--blog ul li a,
.cms-content--contact ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.12rem 0;
}

/* Stronger list blocks under major headings */
.cms-content--blog h2 + ul,
.cms-content--contact h2 + ul {
    padding: 0.6rem 0 0.1rem 0.25rem;
    border-left: 3px solid rgba(99, 130, 230, 0.65);
    margin-left: 0;
    padding-left: 1rem;
}

/* Optional contact details emphasis */
.cms-content--contact p strong {
    color: #fff;
}

/* Better breathing room on smaller screens */
@media (max-width: 900px) {
    .page-card {
        margin: 1rem auto 1.5rem;
        border-radius: 1rem;
    }

    .page-rich-content {
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .page-rich-content h1 {
        font-size: 2rem;
    }

    .page-rich-content h2 {
        font-size: 1.35rem;
    }

    .page-rich-content p,
    .page-rich-content li {
        font-size: 0.98rem;
    }
}

/* =========================================================
   Blog system
   ========================================================= */

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.blog-post-card {
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid #1f2142;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none;
}

.blog-post-card__thumb-link { display: block; }
.blog-post-card__thumb-link .blog-post-card__thumb {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    border-radius: 0;
}

.blog-post-card__meta,
.blog-post-card__title,
.blog-post-card__author,
.blog-post-card__excerpt,
.blog-post-card__link { padding-left: 1rem; padding-right: 1rem; }
.blog-post-card__meta  { padding-top: 1rem; }
.blog-post-card__link  { padding-bottom: 1rem; }

.blog-post-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.75rem;
}

.blog-post-card__type {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.65);
    border: 1px solid rgba(31, 33, 66, 0.50);
    color: #fff;
    font-weight: 700;
    text-transform: capitalize;
}

.blog-post-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.blog-post-card__title a {
    color: #fff;
    text-decoration: none;
}

.blog-post-card__title a:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

.blog-post-card__author {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
}

.blog-post-card__excerpt {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.95rem;
    line-height: 1.65;
}

.blog-post-card__link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.blog-video-embed {
    margin: 1rem 0 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    background: #0f172a;
}

.blog-video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.blog-post-cover {
    margin: 0 0 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.blog-post-cover .blog-post-cover__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    border-radius: 0;
}

.blog-post-pdf {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    display: inline-block;
}
.blog-post-pdf__link {
    font-weight: 700;
    font-size: .95rem;
    color: #93c5fd;
    text-decoration: none;
}
.blog-post-pdf__link:hover { text-decoration: underline; }

.blog-post-body {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.blog-intro-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 900px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* =========================
   FLOATING SOCIAL STACK
   ========================= */
.floating-contact-stack {
    position: fixed;
    top: 70px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 400;
}

.floating-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.floating-socials__link {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
    text-decoration: none;
}

.floating-socials__link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.floating-socials__link--facebook:hover {
    background: #1877f2;
    box-shadow:
        0 16px 34px rgba(24, 119, 242, 0.40),
        0 0 0 1px rgba(24, 119, 242, 0.30);
}

.floating-socials__link--instagram:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%);
    box-shadow:
        0 16px 34px rgba(221, 42, 123, 0.40),
        0 0 0 1px rgba(221, 42, 123, 0.25);
}

.floating-socials__link--x:hover {
    background: #000000;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.18);
}

.floating-socials__link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.chat-modal--frame {
    width: min(520px, 95vw);
    height: min(720px, 92vh);
}

.chat-modal__body--frame {
    overflow: hidden;
}

.chat-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

body[data-embedded="1"] {
    overflow-y: auto;
    overflow-x: hidden;
}

body[data-embedded="1"] .site-main {
    padding: 0;
}

/* Auth forms in modal */
body[data-embedded="1"] .auth-page {
    min-height: auto;
    padding: 0.85rem;
    background: transparent;
}

body[data-embedded="1"] .auth-card {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 1.25rem;
    box-shadow: none;
    border-radius: 12px;
}

body[data-embedded="1"] .auth-field textarea,
body[data-embedded="1"] .auth-field input[type="text"],
body[data-embedded="1"] .auth-field input[type="password"],
body[data-embedded="1"] .auth-field input[type="email"] {
    font-size: 0.95rem;
}

/* Chat shells in modal — strip decorative framing, let content fill naturally */
body[data-embedded="1"] .sales-client-shell,
body[data-embedded="1"] .thread-shell,
body[data-embedded="1"] .ai-shell,
body[data-embedded="1"] .chat-hub-shell {
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

body[data-embedded="1"] .sales-client-window,
body[data-embedded="1"] .thread-window,
body[data-embedded="1"] .ai-window {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

/* Hub grid: always 2 columns inside modal (iframe ~540px, 2×220px fits) */
body[data-embedded="1"] .chat-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .floating-contact-stack {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        background: #0f172a;
    }

    .floating-socials {
        flex-direction: row;
        gap: 0.75rem;
    }

    .floating-socials__link {
        width: 42px;
        height: 42px;
    }

    .chat-modal,
    .chat-modal--frame {
        width: min(95vw, 520px);
        height: min(90vh, 680px);
    }
}

/* ── Mobile: hide social icons, centre logo, hamburger on left ── */
@media (max-width: 860px) {
    /* Social icons: in-flow below footer on mobile — no more fixed overlay */
    .floating-contact-stack {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        background: #0f172a;
    }
    .floating-socials {
        flex-direction: row;
        gap: 0.75rem;
    }
    .floating-socials__link {
        width: 42px;
        height: 42px;
    }

    /* [☰] [──logo centred──] [🛒] — login/signup in hamburger dropdown */
    .site-header {
        padding: 0.6rem 1rem;
    }
    .site-header__left {
        flex: 1;
        gap: 0;
    }
    .site-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .site-nav {
        left: 0;
        right: 0;
        top: 100%;
    }
    /* Show cart only — auth buttons are in hamburger dropdown */
    .site-header__right {
        display: flex;
        align-items: center;
        gap: 0;
    }
    .site-header__right .btn {
        display: none;
    }
}

/* =========================================================
   Shop search / results
   ========================================================= */

.shop-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
}

.shop-results-shell {
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.shop-results-card {
    padding: 1.25rem;
}

.shop-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shop-results-toolbar {
    margin-bottom: 1rem;
}

.shop-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-grid-card {
    min-height: 100%;
}

/* Search-results pager (templates/partials/pager.php) */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    background: rgba(31, 33, 66, 0.45);
    border: 1px solid rgba(31, 33, 66, 0.85);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}
.pager--top    { margin-bottom: 1rem; }
.pager--bottom { margin-top: 1rem; }

.pager__summary {
    flex: 1 1 auto;
    min-width: 200px;
}
.pager__range {
    color: rgba(255, 255, 255, 0.55);
    margin-left: 0.35rem;
}

.pager__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.pager__num,
.pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.45);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pager__num:hover,
.pager__btn:hover {
    background: rgba(219, 23, 9, 0.18);
    border-color: rgba(219, 23, 9, 0.55);
    color: #fff;
}
.pager__num--current {
    background: #db1709;
    border-color: #db1709;
    color: #fff;
    cursor: default;
}
.pager__btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}
.pager__ellipsis {
    padding: 0 0.35rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
    .pager { flex-direction: column; align-items: flex-start; }
    .pager__list { width: 100%; justify-content: center; }
}

.shop-empty-state {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.shop-empty-state h2 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.shop-empty-state__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .shop-results-card {
        padding: 1rem;
    }

    .shop-results-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   NEWSLETTER POPUP
   ========================= */
.nl-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nl-popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nl-popup {
    width: min(500px, 94vw);
    max-height: min(640px, 90vh);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.nl-popup-overlay.open .nl-popup {
    transform: translateY(0) scale(1);
}

.nl-popup__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.nl-popup__close {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0.2rem;
}

.nl-popup__close:hover {
    color: #0f172a;
}

.nl-popup__body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.nl-popup__intro {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.nl-popup__posts-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.65rem;
}

.nl-popup__posts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.nl-popup__post {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
}

.nl-popup__post-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

.nl-popup__post-title:hover {
    color: #db1709;
}

.nl-popup__post-excerpt {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.nl-popup__empty {
    padding: 0.5rem 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.nl-popup__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    background: #f8fafc;
    flex-wrap: wrap;
}

.nl-popup__dismiss {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.nl-popup__dismiss:hover {
    color: #0f172a;
}
/* ── Hero Carousel ─────────────────────────────────────────────────── */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: #0f172a;
}

/* Public shop + dashboard shop-panel hero: match actual 1920×600 banner
   proportions (16:5). object-fit: contain ensures the full banner is always
   visible — narrow viewports get letterboxed against the carousel's dark
   navy background rather than having the sides cropped off. */
.store-shell .hero-carousel,
.dash-panel-list--shop .hero-carousel {
    aspect-ratio: 16 / 5;
    height: auto;
    width: 100%;
}
.store-shell .hero-carousel img,
.dash-panel-list--shop .hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

/* picture/img slides — fill the slide container without cropping content */
.hero-slide picture { display: contents; }
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide {
    cursor: pointer;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0, 0, 0, 0.65);
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-dots {
    position: absolute;
    bottom: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s;
}

.hero-dot.active {
    background: #fff;
}

@media (max-width: 600px) {
    /* dashboard home hero keeps fixed height; public shop + dash shop panel use aspect-ratio */
    .client-hero-wrap .hero-carousel { height: 200px; }
    .hero-prev, .hero-next { font-size: 1.2rem; padding: 0.3rem 0.65rem; }
    /* mobile: portrait container matches 1080×1920 mobile banner format */
    .store-shell .hero-carousel,
    .dash-panel-list--shop .hero-carousel { aspect-ratio: 9 / 16; max-height: 80vh; }
    /* portrait mobile images — cover, anchored to top */
    .store-shell .hero-slide[data-has-mobile="1"] img,
    .dash-panel-list--shop .hero-slide[data-has-mobile="1"] img {
        object-fit: cover;
        object-position: top center;
    }
    /* landscape fallback (no mobile image uploaded) — contain with dark bg */
    .store-shell .hero-slide:not([data-has-mobile]),
    .dash-panel-list--shop .hero-slide:not([data-has-mobile]) {
        background-color: #0a0f1a;
    }
    .store-shell .hero-slide:not([data-has-mobile]) img,
    .dash-panel-list--shop .hero-slide:not([data-has-mobile]) img {
        object-fit: contain;
        object-position: center;
    }
}

/* ── Mobile product cards ≤ 600 px ───────────────────────────── */
@media (max-width: 600px) {

    /* override ≤900px single-column collapse for shop/search grids */
    .shop-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fix A – carousel: 2-column grid, arrows hidden */
    .product-row-carousel__track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .product-row-card {
        scroll-snap-align: none;
    }
    .product-carousel-btn {
        display: none;
    }

    /* Fix B – strip non-essential card content */
    .product-card__btn.btn-secondary { display: none; }
    .product-card__stock {
        font-size: 0.7rem;
    }

    /* Fix C – title: 2-line clamp, no reserved height */
    .product-card__title {
        font-size: 0.8rem;
        min-height: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Fix D – tighter card padding and aspect-ratio image */
    .product-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .product-card__image-wrap {
        min-height: 0;
        padding: 0.5rem;
    }
    .product-card__image-wrap img {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 140px;
        width: 100%;
        object-fit: contain;
    }

    /* Part 3 – proportional font reductions */
    .product-card__retail {
        font-size: 0.95rem;
    }
    .product-card__old {
        font-size: 0.7rem;
    }

    /* grid-item overflow protection — allow items to shrink below min-content */
    .product-card,
    .product-grid-card {
        min-width: 0;
    }
    .product-card__title,
    .product-card__prices,
    .product-card__retail {
        overflow-wrap: anywhere;
        min-width: 0;
    }
}

/* ── Dashboard panel cards ────────────────────────────────────── */
.dash-panel-list {
    background: rgba(31, 33, 66, 0.52);
    border: 1px solid #1f2142;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    margin-bottom: 1.5rem;
}
.dash-panel-list__heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.dash-mini-header {
    background: #0f172a;
    border-radius: 14px;
    padding: .75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
}
.dash-mini-header__role {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #db1709;
    display: block;
    margin-bottom: .15rem;
}
.dash-mini-header__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: block;
}
.dash-cart-table-wrap {
    overflow-x: auto;
    border: 1px solid #1f2142;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.dash-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.dash-cart-table th {
    background: rgba(31, 33, 66, 0.42);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, 0.78);
    padding: .55rem .75rem;
    text-align: left;
    border-bottom: 1px solid rgba(31, 33, 66, 0.25);
}
.dash-cart-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(31, 33, 66, 0.15);
    vertical-align: middle;
}
.dash-cart-table tr:last-child td { border-bottom: none; }
.dash-cart-totals {
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid #1f2142;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    max-width: 360px;
    margin-left: auto;
}
.dash-cart-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem;
    padding: .3rem 0;
    border-bottom: 1px solid rgba(31, 33, 66, 0.15);
    color: rgba(255, 255, 255, 0.78);
}
.dash-cart-totals__row--total {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    border-bottom: none;
    border-top: 1px solid rgba(31, 33, 66, 0.35);
    margin-top: .35rem;
    padding-top: .5rem;
}
@media (max-width: 600px) {
    .dash-cart-totals { max-width: 100%; margin-left: 0; }
    .dash-cart-table { font-size: .78rem; }
    .dash-cart-table th,
    .dash-cart-table td { padding: .45rem .5rem; }
}

/* ── Dashboard muted text — readable against mauve card backgrounds ─── */
.dash-panel-list p,
.dash-panel-list small,
.dash-panel-list .text-muted {
    color: rgba(255, 255, 255, 0.78);
}

/* ── Text that floats directly on the wallpaper inside .dash-main ─
   Page headings, section titles, and descriptions that are NOT
   inside a white card need to be white/light to stay readable.    */
.dash-main .page-head h1,
.dash-main .page-head h2 {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.dash-main .page-head p,
.dash-main .page-head .muted,
.dash-main .page-head small {
    color: rgba(255,255,255,.8);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* Section-level titles and descriptions between cards */
.dash-main .section-title,
.dash-main .rbac-section-title,
.dash-main .dp-cat-title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
    border-bottom-color: rgba(255,255,255,.2);
}
.dash-main .section-desc,
.dash-main .rbac-section-desc {
    color: rgba(255,255,255,.8);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Badge count — red pill used in nav items and topbar ──────────────────── */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #db1709;
    color: #fff;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .45rem;
    vertical-align: middle;
    line-height: 1;
}

/* ========================= DASHBOARD LAYOUT SHELL ========================= */
/* Moved from layout/topbar.php <style> block — Priority 3 CSS audit          */

.dash-topbar {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    flex-shrink: 0 !important;
    background: linear-gradient(180deg, #1e2d4a 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.4),
                0 4px 0 rgba(180,10,5,.5);
    position: sticky;
    top: 0;
    z-index: 200;
}
.dash-topbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-topbar__link {
    color: #94a3b8;
    font-size: .82rem;
    text-decoration: none;
    transition: color .15s;
}
.dash-topbar__link:hover { color: #fff; }
/* Prevent app.css img{height:auto} from overriding the logo size */
.dash-topbar img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

.dash-layout {
    display: flex;
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    overflow: hidden;
}
.dash-main {
    flex: 1 1 0;
    min-width: 0;
    padding: 1.5rem;
    overflow-x: auto;
    overflow-y: auto;
    background: transparent;
}
.dash-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.dash-nav {
    width: 220px;
    flex-shrink: 0;
    background: #1a2744;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.06);
}
.dash-nav__title {
    padding: .85rem 1.25rem .4rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
}
.dash-nav__list {
    list-style: none;
    margin: 0;
    padding: 0 0 1rem;
}
.dash-nav__list li a {
    display: block;
    padding: .5rem 1.25rem;
    color: #94a3b8;
    font-size: .875rem;
    text-decoration: none;
    transition: background .12s, color .12s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-nav__list li a:hover {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
}
.dash-nav__list li a.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-left-color: #db1709;
}
.dash-nav__list li a.nav-user-link {
    color: #21f914;
}
.dash-nav__list li a.nav-user-link:hover {
    color: #5ffc55;
}
.dash-nav__list li a.nav-user-link.active {
    color: #21f914;
}
.dash-nav__list li a.nav-staff-link {
    color: #fca5a5;
    font-weight: 600;
}
.dash-nav__list li a.nav-staff-link:hover {
    color: #fecaca;
}
.dash-nav__list li a.nav-staff-link.active {
    color: #fca5a5;
}
.dash-nav__list li a.nav-admin-link {
    color: #93c5fd;
}
.dash-nav__list li a.nav-admin-link:hover {
    color: #bfdbfe;
}
.dash-nav__list li a.nav-admin-link.active {
    color: #93c5fd;
}
.dash-nav__list li a.nav-content-link {
    color: #fbbf24;
}
.dash-nav__list li a.nav-content-link:hover {
    color: #fcd34d;
}
.dash-nav__list li a.nav-content-link.active {
    color: #fbbf24;
}
.dash-nav__list li a.nav-system-link {
    color: #a78bfa;
}
.dash-nav__list li a.nav-system-link:hover {
    color: #c4b5fd;
}
.dash-nav__list li a.nav-system-link.active {
    color: #a78bfa;
}
.nav-badge {
    display: inline-block;
    min-width: 1.35em;
    padding: .1em .38em;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    background: #f59e0b;
    color: #0f172a;
    margin-left: .35rem;
    vertical-align: middle;
    letter-spacing: 0;
    pointer-events: none;
}
.dash-nav__sep {
    height: 1px;
    background: #3fcdfc;
    margin: .5rem 1rem;
    opacity: .25;
}
/* A client has no staff sections, so their separators end up next to each other: show one. */
.dash-nav__sep + .dash-nav__sep { display: none; }

.dash-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 8px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.dash-nav-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.dash-nav-toggle svg { display: block; }

/* Dashboard sidebar: backdrop overlay shown alongside the slid-in sidebar */
.dash-backdrop {
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.dash-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .dash-nav {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        z-index: 190;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,.4);
    }
    .dash-nav.is-open {
        transform: translateX(0);
    }
    .dash-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dash-topbar__back { display: none; }
    .dash-main { padding-bottom: 5rem; }
}
@media (max-width: 480px) {
    .dash-main { padding: 1rem 1rem 5rem; }
    .dash-topbar { padding: 0 0.75rem; }
    .dash-nav { width: min(280px, 84vw); }
}

.dash-topbar__cart {
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.dash-topbar__cart:hover { color: #fff; }
.dash-topbar__cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #db1709;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ====================== DASHBOARD COMPONENT CLASSES ======================= */
/* Moved from dashboard.php <style> block — Priority 7 CSS audit              */

/* ── Product row cards inside dashboard: override public-site white theme ── */
.dash-main .product-row-card.card {
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: none;
    color: #fff;
}
.dash-main .product-row-card.card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}
.dash-main .product-row-card .product-card__title a { color: #fff; }
.dash-main .product-row-card .product-card__meta    { color: rgba(255, 255, 255, 0.72); }
.dash-main .product-row-card .product-card__prices  { color: #fff; }

/* ── Dashboard hero ── */
.dash-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; background: #0f172a; border-radius: 20px; padding: 1.75rem 2rem; margin-bottom: 1.5rem; color: #fff; box-shadow: 0 4px 0 rgba(180,10,5,.6), 0 12px 32px rgba(0,0,0,.5); }
.dash-hero__role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #db1709; margin-bottom: .4rem; }
.dash-hero__title { font-size: 1.9rem; font-weight: 800; margin: 0; line-height: 1.1; color: #fff; }
.dash-hero__details { display: grid; gap: .3rem; align-content: center; }
.dash-hero__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.dash-hero__row:last-child { border-bottom: none; }
.dash-hero__row span:first-child { color: #94a3b8; white-space: nowrap; }
.dash-hero__row span:last-child { color: #f1f5f9; text-align: right; }
.dash-status--active { color: #4ade80 !important; }
.dash-status--inactive { color: #f87171 !important; }
@media (max-width: 640px) { .dash-hero { grid-template-columns: 1fr; } }

/* ── Dealer card ── */
.dash-dealer-card { background: #0f172a; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; color: #fff; }
.dash-dealer-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-dealer-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #db1709; }
.dash-dealer-card__code { font-size: .95rem; font-weight: 700; color: #e2e8f0; font-family: monospace; }
.dash-dealer-card__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.dash-dealer-card__stat { display: flex; flex-direction: column; gap: .2rem; }
.dash-dealer-card__stat-label { font-size: .72rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dash-dealer-card__stat-value { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; }
.dash-dealer-card__discount-banner { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; padding: .75rem 1rem; background: rgba(219,23,9,.12); border-radius: 10px; border: 1px solid rgba(219,23,9,.25); }
.dash-dealer-card__discount-pct { font-size: 2rem; font-weight: 900; color: #fb7c72; line-height: 1; }
.dash-dealer-card__discount-label { font-size: .82rem; color: #94a3b8; font-weight: 500; }
.dash-dealer-card__tier--bronze { color: #cd7f32 !important; }
.dash-dealer-card__tier--silver { color: rgba(255,255,255,0.72) !important; }
.dash-dealer-card__tier--gold { color: #fbbf24 !important; }
.dash-dealer-card__tier--platinum { color: #e2e8f0 !important; }

/* ── Sales overview card ── */
.dash-sales-card { background: rgba(31,33,66,0.55); border: 1px solid #1f2142; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.dash-sales-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dash-sales-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #db1709; margin-right: .5rem; }
.dash-sales-card__count { font-size: .82rem; color: rgba(255,255,255,0.78); }
.dash-sales-card__link { font-size: .82rem; font-weight: 600; color: #db1709; text-decoration: none; }
.dash-sales-card__alert { display: flex; align-items: center; gap: .6rem; background: #fef3c7; border: 1px solid #fbbf24; border-radius: 8px; padding: .6rem .9rem; font-size: .82rem; color: #92400e; margin-bottom: 1rem; }
.dash-sales-table-wrap { overflow-x: auto; }
.dash-sales-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.dash-sales-table th { background: rgba(31,33,66,0.42); font-size: .72rem; font-weight: 700; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: .04em; padding: .5rem .75rem; text-align: left; border-bottom: 1px solid rgba(31,33,66,0.25); }
.dash-sales-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(31,33,66,0.15); }
.dash-sales-table tr:last-child td { border-bottom: none; }
.dash-sales-avatar { width: 28px; height: 28px; border-radius: 50%; background: #fee2e2; color: #db1709; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; flex-shrink: 0; }
.dash-sales-view-btn { font-size: .75rem; padding: .25rem .6rem; border: 1px solid rgba(31,33,66,0.25); border-radius: 6px; color: rgba(255,255,255,0.78); text-decoration: none; }
.dash-sales-view-btn:hover { background: rgba(31,33,66,0.65); }
.dash-online-dot { position: absolute; bottom: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; flex-shrink: 0; }
.dash-online-dot--on { background: #22c55e; }
.dash-online-dot--off { background: #ef4444; }
.dash-online-label { font-size: .7rem; padding: .1rem .4rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.dash-online-label--on { background: #dcfce7; color: #166534; }
.dash-online-label--off { background: #fee2e2; color: #991b1b; }

/* ── Newsletter ── */
.dash-newsletter { background: rgba(31,33,66,0.55); border-radius: 16px; padding: 1.25rem 1.5rem; border: 1px solid #1f2142; }
.dash-newsletter h2 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; }
.dash-newsletter p { margin: 0 0 .75rem; color: rgba(255,255,255,0.78); font-size: .88rem; }
.dash-newsletter__subscribed { color: #16a34a !important; }

/* ── Past Newsletters ── */
.dash-past-nl { background: rgba(31,33,66,0.55); border-radius: 16px; padding: 1.25rem 1.5rem; border: 1px solid #1f2142; margin-top: 1rem; }
.dash-past-nl h2 { margin: 0 0 .85rem; font-size: 1rem; font-weight: 800; }
.dash-past-nl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dash-past-nl__item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: 10px; border: 1px solid rgba(31,33,66,0.25); background: rgba(31,33,66,0.42); }
.dash-past-nl__info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dash-past-nl__subject { font-size: .88rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-past-nl__date { font-size: .78rem; color: rgba(255,255,255,0.78); }
.dash-past-nl__actions { flex-shrink: 0; }
.dash-past-nl__btn { display: inline-block; padding: .28rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; border: 1px solid #1f2142; color: #fff; background: rgba(31,33,66,0.52); transition: background .12s, border-color .12s; }
.dash-past-nl__btn:hover { background: rgba(31,33,66,0.80); border-color: #1f2142; color: #fff; text-decoration: none; }
.dash-past-nl__btn--pdf { background: rgba(15,23,42,0.55); border-color: rgba(99,130,230,0.60); color: #93c5fd; }
.dash-past-nl__btn--pdf:hover { background: rgba(15,23,42,0.80); border-color: rgba(99,130,230,0.80); color: #93c5fd; }
.dash-nl-latest { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-radius: 12px; border: 1px solid rgba(31,33,66,0.25); background: rgba(31,33,66,0.42); margin-bottom: .75rem; }
.dash-nl-latest__meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dash-nl-latest__subject { font-size: .92rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nl-latest__date { font-size: .78rem; color: rgba(255,255,255,0.78); }
.dash-nl-latest__actions { flex-shrink: 0; }
.dash-nl-archive { margin-top: .25rem; }
.dash-nl-archive summary { font-size: .82rem; color: rgba(255,255,255,0.78); cursor: pointer; user-select: none; padding: .2rem 0; }
.dash-nl-archive summary:hover { color: #fff; }

/* ── Shop toolbar ── */
.dash-shop-toolbar { padding: .75rem 1rem; margin-bottom: .75rem; }
.dash-shop-toolbar__row1 { display: flex; gap: .4rem; margin-bottom: .4rem; align-items: center; flex-wrap: wrap; }
.dash-shop-toolbar__row1 .dash-shop-q-wrap { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) { .dash-shop-toolbar__row1 .btn-adv { flex: 1 1 100%; } }
.dash-shop-q-wrap { flex: 1; min-width: 0; position: relative; }
.dash-shop-adv-panel { display: none; }
.dash-shop-adv-panel.is-open { display: block; }
.dash-shop-toolbar__filters { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .4rem; }
.dash-shop-toolbar__actions { display: flex; gap: .4rem; margin-top: .4rem; }
@media (min-width: 601px) { .dash-shop-toolbar__filters { grid-template-columns: repeat(4, 1fr); } }

/* ── Client hero wrapper ── */
.client-hero-wrap { margin-bottom: 1.25rem; }
.client-hero-wrap .hero-slide { background-color: #0a0f1a; overflow: hidden; }
.client-hero-wrap .hero-carousel { height: auto; aspect-ratio: 16/5; min-height: 200px; }
@media (max-width: 600px) {
    .client-hero-wrap .hero-carousel { aspect-ratio: 9/16; max-height: 80vh; min-height: 0; }
    .client-hero-wrap .hero-slide[data-has-mobile="1"] img { object-fit: cover; object-position: top center; }
    .client-hero-wrap .hero-slide:not([data-has-mobile]) img { object-fit: contain; object-position: center; }
}

/* ── Client recent orders ── */
.client-orders-card { background: rgba(31,33,66,0.55); border: 1px solid #1f2142; border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.client-orders-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.client-orders-card__head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.client-orders-card__all { font-size: .82rem; font-weight: 600; color: #db1709; text-decoration: none; }
.client-orders-table-wrap { overflow-x: auto; }
.client-orders-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.client-orders-table th { background: rgba(31,33,66,0.42); font-size: .72rem; font-weight: 700; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: .04em; padding: .5rem .75rem; text-align: left; border-bottom: 1px solid rgba(31,33,66,0.25); }
.client-orders-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(31,33,66,0.15); vertical-align: middle; }
.client-orders-table tr:last-child td { border-bottom: none; }
.client-order-badge { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.client-order-view-btn { font-size: .75rem; padding: .25rem .6rem; border: 1px solid rgba(31,33,66,0.25); border-radius: 6px; color: rgba(255,255,255,0.78); text-decoration: none; white-space: nowrap; }
.client-order-view-btn:hover { background: rgba(31,33,66,0.65); text-decoration: none; }
.client-track-link { color: #3fcdfc; text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .78rem; }
.client-track-link:hover { text-decoration: underline; color: #7dd3fc; }
@media (max-width: 560px) { .client-quick-actions { gap: .5rem; } .client-qa-btn { min-width: 72px; padding: .65rem .65rem; } }

/* My Orders (public /orders page) — dark-theme the desktop table so data cells are
   readable (base .table is white-bg + inherited white text). Mobile keeps .table--cards. */
.table.table--client-orders { background: transparent; border-color: #1f2142; }
.table.table--client-orders th { background: rgba(31,33,66,0.42); color: rgba(255,255,255,0.78); border-bottom-color: rgba(31,33,66,0.35); }
.table.table--client-orders td { color: rgba(255,255,255,0.90); border-bottom-color: rgba(31,33,66,0.20); }
.table.table--client-orders a { color: #93c5fd; }

/* ── Ops stats grid (staff / admin home panel) ── */
.ops-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.75rem; }
.ops-stat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(31,33,66,0.60); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1rem .75rem .85rem; text-decoration: none; color: inherit; transition: background .15s, border-color .15s, transform .15s; cursor: default; }
a.ops-stat-card { cursor: pointer; }
a.ops-stat-card:hover { background: rgba(31,33,66,0.85); border-color: rgba(255,255,255,0.14); transform: translateY(-2px); text-decoration: none; color: inherit; }
.ops-stat-card__value { font-size: 2rem; font-weight: 900; line-height: 1; color: #e2e8f0; display: block; margin-bottom: .3rem; }
.ops-stat-card__value--sm { font-size: 1.3rem; }
.ops-stat-card__label { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ops-stat-card--alert { border-color: rgba(219,23,9,.35); background: rgba(219,23,9,.10); }
.ops-stat-card--alert .ops-stat-card__value { color: #fb7c72; }
.ops-stat-card--warn { border-color: rgba(217,119,6,.35); background: rgba(217,119,6,.10); }
.ops-stat-card--warn .ops-stat-card__value { color: #fbbf24; }
.ops-stat-card--danger { border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.14); animation: ops-pulse 2s ease-in-out infinite; }
.ops-stat-card--danger .ops-stat-card__value { color: #f87171; }
.ops-stat-card--neutral { border-color: rgba(99,102,241,.2); background: rgba(99,102,241,.08); }
.ops-stat-card--neutral .ops-stat-card__value { color: #a5b4fc; }
@keyframes ops-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.18); } }
@media (max-width: 560px) { .ops-stats-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .ops-stat-card__value { font-size: 1.6rem; } }

/* ── Banner list (specials / promotions / security-specials) ── */
.dash-banner-list { display: flex; flex-direction: column; gap: 1rem; }
.dash-banner-card { display: flex; flex-direction: column; background: rgba(31,33,66,0.55); border: 1px solid #1f2142; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.dash-banner-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); transform: translateY(-1px); text-decoration: none; }
.dash-banner-card__img { width: 100%; aspect-ratio: 21/6; object-fit: cover; background: #0a0f1a; }
.dash-banner-card__img--empty { width: 100%; aspect-ratio: 21/6; background: #f1f5f9; }
@media (max-width: 600px) {
    .dash-banner-card__img, .dash-banner-card__img--empty { aspect-ratio: 16/9; }
    .dash-banner-card.has-mobile-img .dash-banner-card__img { aspect-ratio: 9/16; }
}
.dash-banner-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; }
.dash-banner-card__title { font-size: .95rem; font-weight: 700; color: #fff; }
.dash-banner-card__desc { font-size: .8rem; color: rgba(255,255,255,0.78); margin-top: .15rem; }
.dash-banner-card__price { font-size: 1.05rem; font-weight: 800; color: #db1709; white-space: nowrap; }

/* ── Product grid (shop) ── */
.dash-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.dash-product-card { display: flex; flex-direction: column; background: rgba(31,33,66,0.85); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.dash-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.dash-product-card--oos { opacity: .7; }
.dash-product-card__img-wrap { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: transparent; }
.dash-product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dash-product-card__no-img { width: 100%; height: 100%; background: #f1f5f9; }
.dash-product-card__oos { position: absolute; top: .4rem; right: .4rem; background: #dc2626; color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; }
.dash-product-card__body { padding: .75rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.dash-product-card__name { font-size: .85rem; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-product-card__name:hover { color: #db1709; text-decoration: none; }
.dash-product-card__desc { font-size: .75rem; color: rgba(255,255,255,0.78); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-product-card__price { font-size: .92rem; font-weight: 800; color: #db1709; margin-top: auto; padding-top: .25rem; }
.dash-product-card__atc { display: block; text-align: center; margin-top: .5rem; padding: .4rem .75rem; background: #db1709; color: #fff; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.dash-product-card__atc:hover { background: #b91c1c; text-decoration: none; color: #fff; }

/* ── Dashboard shop search dropdown ── */
.dash-shop-drop { position: absolute; top: calc(100% + 6px); left: 0; width: 360px; max-width: min(400px, calc(100vw - 2rem)); z-index: 300; background: rgba(31,33,66,0.97); border: 1px solid #1f2142; border-radius: 12px; box-shadow: 0 8px 32px rgba(15,23,42,.15); max-height: 400px; overflow-y: auto; }
.shop-drop-label { padding: .45rem .9rem .2rem; font-size: .68rem; font-weight: 800; color: rgba(255,255,255,0.78); text-transform: uppercase; letter-spacing: .09em; }
.shop-drop-item { display: flex; align-items: center; padding: .5rem .9rem; cursor: pointer; transition: background .1s; }
.shop-drop-item:hover, .shop-drop-item:focus { background: rgba(31,33,66,0.15); outline: none; }
.shop-drop-name { font-size: .875rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-drop-no { padding: 1rem; text-align: center; color: #94a3b8; font-size: .85rem; }

/* ── Wonder AI Recommendations ─────────────────────────────────────────────── */
.wonder-ai-recs__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:1rem; }
.wonder-ai-recs__card { display:flex; flex-direction:column; background:rgba(31,33,66,0.85); border:1px solid rgba(255,255,255,0.10); border-radius:0.75rem; overflow:hidden; text-decoration:none; transition:border-color .18s,transform .18s; }
.wonder-ai-recs__card:hover { border-color:rgba(255,255,255,0.25); transform:translateY(-2px); }
.wonder-ai-recs__img-wrap { display:flex; align-items:center; justify-content:center; aspect-ratio:4/3; overflow:hidden; background:rgba(15,23,42,0.30); border:1px solid rgba(31,33,66,0.50); border-radius:0.65rem; margin:.6rem .6rem 0; padding:.75rem; box-sizing:border-box; }
.wonder-ai-recs__img-wrap img { width:100%; height:100%; object-fit:scale-down; }
.wonder-ai-recs__body { padding:.75rem .85rem .85rem; display:flex; flex-direction:column; gap:.35rem; flex:1; }
.wonder-ai-recs__name { font-size:.9rem; font-weight:700; color:#fff; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.wonder-ai-recs__reason { font-size:.75rem; color:rgba(255,255,255,0.55); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.wonder-ai-recs__price { font-size:1.1rem; font-weight:800; color:#fff; margin-top:auto; padding-top:.3rem; }
@media(max-width:540px) { .wonder-ai-recs__grid { grid-template-columns:repeat(2,1fr); } }

/* ── Analytics Dashboard ───────────────────────────────────────────────────── */
.an-stat-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.85rem; margin-bottom:1.5rem; }
.an-stat-card { background:rgba(31,33,66,0.72); border:1px solid rgba(63,205,252,0.15); border-radius:8px; padding:1rem 1.25rem; text-align:center; }
.an-stat-val { font-size:1.6rem; font-weight:700; color:#e2e8f0; line-height:1.1; }
.an-stat-lbl { font-size:.72rem; color:rgba(255,255,255,0.52); margin-top:.3rem; text-transform:uppercase; letter-spacing:.05em; }
.an-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.an-card { background:rgba(31,33,66,0.72); border:1px solid rgba(255,255,255,0.07); border-radius:8px; overflow:hidden; }
.an-card--wide { grid-column:1/-1; }
.an-card__head { padding:.75rem 1.25rem; font-size:.82rem; font-weight:700; color:#93c5fd; text-transform:uppercase; letter-spacing:.06em; border-bottom:1px solid rgba(255,255,255,0.06); }
.an-empty { padding:1.25rem; color:rgba(255,255,255,0.40); font-size:.85rem; margin:0; }
.an-bar-chart { display:flex; align-items:flex-end; gap:4px; padding:1rem 1.25rem .75rem; min-height:120px; overflow-x:auto; }
.an-bar-col { display:flex; flex-direction:column; align-items:center; flex:1; min-width:24px; }
.an-bar-val { font-size:.62rem; color:rgba(255,255,255,0.5); margin-bottom:.2rem; }
.an-bar-wrap { width:100%; flex:1; display:flex; align-items:flex-end; min-height:80px; }
.an-bar { width:100%; border-radius:3px 3px 0 0; min-height:2px; }
.an-bar--cyan { background:#3fcdfc; }
.an-bar--red  { background:#db1709; }
.an-bar-lbl { font-size:.6rem; color:rgba(255,255,255,0.4); margin-top:.25rem; white-space:nowrap; }
.an-hbar-list { padding:.75rem 1.25rem; display:flex; flex-direction:column; gap:.6rem; }
.an-hbar-row { display:flex; align-items:center; gap:.6rem; }
.an-hbar-label { font-size:.75rem; color:#cbd5e1; width:140px; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.an-hbar-track { flex:1; background:rgba(15,23,42,0.6); border-radius:4px; height:8px; overflow:hidden; }
.an-hbar-fill { height:100%; border-radius:4px; }
.an-hbar-fill--cyan { background:#3fcdfc; }
.an-hbar-fill--violet { background:#a78bfa; }
.an-hbar-count { font-size:.72rem; font-weight:700; color:rgba(255,255,255,0.6); width:28px; text-align:right; flex-shrink:0; }
.an-ai-stat { display:flex; align-items:baseline; gap:.6rem; }
.an-ai-stat__val { font-size:1.4rem; font-weight:700; }
.an-ai-stat__lbl { font-size:.78rem; color:rgba(255,255,255,0.52); }
@media(max-width:700px) { .an-grid { grid-template-columns:1fr; } .an-card--wide { grid-column:1; } .an-hbar-label { width:90px; } }

/* =========================================================
   CORPORATE PAGES (home, solutions, why-choose-us, supplier,
   about, contact) — added with Phase 1/2 brief upgrade
   ========================================================= */

/* ── shared section scaffolding ── */
.home-section,
.solution-block,
.why-section,
.supplier-grid,
.supplier-intro,
.solutions-overview {
    padding: clamp(2rem, 4vw, 3.25rem) 1.5rem;
}
@media (max-width: 600px) {
    .home-section,
    .solution-block,
    .why-section,
    .supplier-grid,
    .supplier-intro,
    .solutions-overview,
    .home-hero,
    .corp-hero { padding-left: 1rem; padding-right: 1rem; }
    .page-rich-content { padding: 1.25rem 1rem 1.5rem; }
    .home-supplier__inner { flex-direction: column; align-items: flex-start; }
    .home-supplier__cta { width: 100%; }
    .home-supplier__cta .btn { flex: 1 1 100%; text-align: center; }
}
.home-section__inner,
.solution-block__inner,
.why-section__inner,
.supplier-grid__inner,
.supplier-intro__inner,
.solutions-overview__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.home-section__eyebrow,
.corp-hero__kicker {
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.55rem;
}
.home-section__eyebrow--inverse {
    color: rgba(255, 255, 255, 0.85);
}
.home-section__title,
.corp-hero__title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

/* ── home: top promos (Go-to-Shop banner + promo carousel) ── */
.home-top-promos {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1.5rem 0;
}
.home-shop-banner {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-red, #96070b);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 0 rgba(150, 7, 11, .55), 0 12px 30px rgba(0, 0, 0, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.home-shop-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(150, 7, 11, .55), 0 16px 38px rgba(0, 0, 0, .45);
    text-decoration: none;
}
.home-shop-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    padding: 1.75rem 1.5rem;
}
.home-shop-banner--image .home-shop-banner__inner { padding: 3.25rem 1.5rem; }
.home-shop-banner__label {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.05;
}
.home-shop-banner__sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
/* Landing promo carousel — match the shop 16:5 contain treatment */
.home-carousel-wrap { margin-top: 1.25rem; }
.home-carousel-wrap .hero-carousel { aspect-ratio: 16 / 5; height: auto; width: 100%; margin-bottom: 0; }
.home-carousel-wrap .hero-carousel img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 600px) {
    .home-carousel-wrap .hero-carousel { aspect-ratio: 9 / 16; max-height: 80vh; }
    .home-carousel-wrap .hero-slide[data-has-mobile="1"] img { object-fit: cover; object-position: top center; }
    .home-carousel-wrap .hero-slide:not([data-has-mobile]) img { object-fit: contain; }
}

/* ── home: hero ── */
.home-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2.5rem;
}
.home-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.home-hero__kicker {
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}
.home-hero__title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 1rem;
}
.home-hero__lede {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 1.6rem;
}
.home-hero__cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── home: company intro ── */
.home-intro {
    background: rgba(15, 23, 42, 0.35);
}
.home-intro__lede {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 1rem;
    max-width: 900px;
}

/* ── home: solutions grid ── */
.home-solutions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.home-solution-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.home-solution-card:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(31, 33, 66, 0.75);
    text-decoration: none;
}
.home-solution-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(147, 197, 253, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    margin-bottom: 0.85rem;
}
.home-solution-card__icon svg { width: 24px; height: 24px; }
.home-solution-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    font-weight: 700;
}
.home-solution-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── home: trust bar ── */
.home-trustbar {
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-trustbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2.25rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
}
.home-trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.home-trustbar__icon {
    color: #93c5fd;
    font-weight: 800;
}

/* ── home: why-choose-us preview ── */
.home-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.home-why__card {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(31, 33, 66, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.home-why__card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: #fff;
}
.home-why__card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Icon chip on why-choose-us cards — mirrors .home-solution-card__icon */
.home-why__card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(147, 197, 253, 0.12);
    display: inline-flex; align-items: center; justify-content: center;
    color: #93c5fd;
    margin-bottom: 0.85rem;
}
.home-why__card__icon svg { width: 24px; height: 24px; }
.home-why__more {
    margin-top: 1.5rem;
    text-align: center;
}

/* ── home: supplier CTA ── */
.home-supplier {
    padding: clamp(2.5rem, 4vw, 3.5rem) 1.5rem;
    background: rgba(31, 33, 66, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-supplier__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.home-supplier__copy { max-width: 720px; }
.home-supplier__title {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.55rem;
}
.home-supplier__lede {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.55;
}
.home-supplier__cta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* ── corp hero (used by solutions / why / supplier) ── */
.corp-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(1.75rem, 4vw, 2.5rem);
    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.corp-hero--supplier {
    background: rgba(15, 23, 42, 0.55);
}
.corp-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.corp-hero__lede {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.4rem;
    max-width: 800px;
}
.corp-hero__cta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* ── solutions overview pill list ── */
.solutions-overview {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.solutions-overview__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.solutions-overview__list a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.solutions-overview__list a:hover {
    background: rgba(31, 33, 66, 0.85);
    border-color: rgba(147, 197, 253, 0.45);
    color: #fff;
}

/* ── solution block (per-system section) ── */
.solution-block { scroll-margin-top: 110px; }
.solution-block--alt {
    background: rgba(15, 23, 42, 0.4);
}
.solution-block__head { max-width: 900px; margin-bottom: 1.5rem; }
.solution-block__head h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin: 0 0 0.5rem;
    font-weight: 800;
}
.solution-block__lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0;
}
.solution-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.solution-block__panel {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.solution-block__panel h3 {
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.65rem;
}
.solution-block__panel p,
.solution-block__panel li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    font-size: 0.95rem;
}
.solution-block__panel ul {
    margin: 0;
    padding-left: 1.15rem;
}
.solution-block__panel li { margin: 0.25rem 0; }
.solution-block__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* ── why-choose-us cards ── */
.why-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.why-card {
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.why-card__num {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: rgba(147, 197, 253, 0.25);
    line-height: 1;
}
.why-card h3 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 1.05rem;
    padding-right: 2.2rem;
}
.why-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ── supplier page ── */
.supplier-intro {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.supplier-intro__inner {
    max-width: 900px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.65;
}
.supplier-intro__inner p { margin: 0; }
.supplier-grid__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.supplier-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.supplier-card__num {
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
}
.supplier-card h3 {
    color: #fff;
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
}
.supplier-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── full-width CTA bands ── */
.corp-cta-band {
    padding: clamp(2.5rem, 4vw, 3.5rem) 1.5rem;
    background: rgba(31, 33, 66, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.corp-cta-band--alt {
    background: rgba(31, 33, 66, 0.55);
}
.corp-cta-band__inner {
    max-width: 800px;
    margin: 0 auto;
}
.corp-cta-band h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.55rem;
}
.corp-cta-band p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
}
.corp-cta-band__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* ── contact page (form + sidebar layout) ── */
.contact-page { padding: 1rem 0 2rem; }
.contact-page__intro { margin-bottom: 1rem; }
.contact-page__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
}
.contact-page__form-card,
.contact-page__details {
    margin: 0;
}
.contact-page__details {
    display: flex;
    flex-direction: column;
}
.contact-page__phone a {
    color: #93c5fd;
    font-weight: 700;
}
.contact-page__flash {
    max-width: 1100px;
    margin: 0 auto 1rem;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
}
.contact-page__flash--ok {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
}
.contact-page__flash--err {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.contact-form { position: relative; display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }
.contact-form__row { display: flex; gap: 1rem; }
.contact-form__row--two > .contact-form__field { flex: 1 1 0; min-width: 0; }
.contact-form__field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.contact-form__field > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #93c5fd;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.15);
}
.contact-form select option { background: #0f172a; color: #fff; }
.contact-form__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.contact-form__note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.contact-map {
    margin: 0;
    border-radius: 0 0 1.15rem 1.15rem;
    overflow: hidden;
}

@media (max-width: 900px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .contact-form__row { flex-direction: column; gap: 1rem; }
}

/* =========================================================
   SHOP MEGA-CATEGORIES (Phase 3a)
   ========================================================= */
.shop-page-head__crumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem;
}
.shop-page-head__crumbs a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}
.shop-page-head__crumbs a:hover { text-decoration: underline; }
.shop-page-head__crumbs span { margin: 0 0.35rem; opacity: 0.6; }

.shop-mega-back {
    margin: 0.5rem 0 1.25rem;
}
.shop-mega-back a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}
.shop-mega-back a:hover { text-decoration: underline; }

.mega-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 2rem;
}
.mega-cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.mega-cat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(31, 33, 66, 0.78);
    text-decoration: none;
}
.mega-cat-card--empty {
    opacity: 0.7;
}
.mega-cat-card--empty:hover {
    opacity: 0.92;
}
.mega-cat-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(147, 197, 253, 0.12);
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}
.mega-cat-card__icon svg { width: 22px; height: 22px; }
.mega-cat-card__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}
.mega-cat-card__blurb {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0 0 0.75rem;
}
.mega-cat-card__meta {
    margin-top: auto;
}
.mega-cat-card__count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}
.mega-cat-card__empty {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

/* Image-download deterrents — block drag-to-desktop / text-select on
   customer-facing product and content images. JS handles right-click. */
.product-card__image-wrap img,
.product-detail__image,
.pdp-zoom-trigger,
.pdp-thumb img,
.pdp-lightbox__img,
.cart-item img,
.cart__product-image,
.blog-card img,
.blog-post img,
.special-card img,
.promo-card img,
.dash-rec-card img,
.dash-product-card img,
img.no-save {
    -webkit-user-drag: none; /* the only prefix any browser implements; no standard property exists */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ── Dashboard licence panel (under welcome banner, licence.view perm) ── */
.lic-panel {
    background: rgba(31, 33, 66, 0.55);
    border: 1px solid rgba(31, 33, 66, 0.85);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
}
.lic-panel__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem 1.25rem;
    align-items: start;
}
.lic-panel__col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.lic-panel__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.lic-panel__value {
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lic-panel__value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.lic-panel__sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}
.lic-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
}
.lic-pill--ok   { background: rgba(33, 249, 20, 0.14); color: #21f914; border: 1px solid rgba(33, 249, 20, 0.32); }
.lic-pill--warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.lic-pill--bad  { background: rgba(219, 23, 9, 0.16);   color: #f87171; border: 1px solid rgba(219, 23, 9, 0.45); }

/* ── Manage features (licence.manage permission only) ── */
.lic-features {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lic-features > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
}
.lic-features > summary::-webkit-details-marker { display: none; }
.lic-features > summary::before {
    content: '\25B8'; /* ▸ */
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.35rem;
    transition: transform .15s;
    display: inline-block;
}
.lic-features[open] > summary::before { transform: rotate(90deg); }
.lic-features__count {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-left: auto;
}
.lic-features__hint {
    margin: 0.65rem 0 0.85rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
}
.lic-features__hint code {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
}
.lic-features__flash {
    margin: 0.5rem 0;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
}
.lic-features__flash--ok  { background: rgba(33, 249, 20, 0.10); color: #6ee76b; border: 1px solid rgba(33, 249, 20, 0.25); }
.lic-features__flash--err { background: rgba(219, 23, 9, 0.10);  color: #f87171; border: 1px solid rgba(219, 23, 9, 0.30); }

.lic-features__group {
    margin-top: 0.6rem;
}
.lic-features__group-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.85);
    margin: 0 0 0.35rem;
}
.lic-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem 0.75rem;
}

.lic-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lic-feature__name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lic-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem 0.18rem 0.18rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.lic-toggle__knob {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background .15s, transform .15s;
}
.lic-toggle--on {
    background: rgba(33, 249, 20, 0.16);
    border-color: rgba(33, 249, 20, 0.45);
    color: #21f914;
    padding: 0.18rem 0.18rem 0.18rem 0.55rem;
    flex-direction: row-reverse;
}
.lic-toggle--on .lic-toggle__knob { background: #21f914; }
.lic-toggle--off:hover { border-color: rgba(33, 249, 20, 0.4); color: rgba(33, 249, 20, 0.8); }
.lic-toggle--on:hover  { background: rgba(219, 23, 9, 0.16); border-color: rgba(219, 23, 9, 0.45); color: #f87171; }
.lic-toggle--on:hover .lic-toggle__knob { background: #f87171; }

/* ── Product edit: Additional images thumbs + AJAX upload queue ── */
.extra-images-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}
.extra-images-thumbs:empty { display: none; }

.extra-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.40);
}
.extra-thumb img {
    max-width: 82px;
    max-height: 82px;
    width: auto;
    height: auto;
    object-fit: scale-down;
}
.extra-thumb__del {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
}
.extra-thumb__del button {
    background: #db1709;
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.extra-images-queue {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.extra-queue-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.65rem;
    background: rgba(15, 23, 42, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}
.extra-queue-name {
    flex: 0 1 220px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.extra-queue-bar {
    flex: 1 1 auto;
    height: 6px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}
.extra-queue-fill {
    width: 0%;
    height: 100%;
    background: #21f914;
    transition: width 0.15s linear;
}
.extra-queue-pct {
    flex: 0 0 56px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}
.extra-queue-row--fail .extra-queue-fill { background: #db1709; }
.extra-queue-row--fail .extra-queue-pct  { color: #f87171; }

/* ── Quick-add popup (in-place add-to-cart) ─────────────────────────── */
.qa-overlay{
  position:fixed;inset:0;z-index:1000;display:none;
  align-items:center;justify-content:center;padding:1rem;
  background:rgba(6,8,20,.72);backdrop-filter:blur(3px);
}
.qa-overlay.open{display:flex}
body.qa-noscroll{overflow:hidden}
.qa-card{
  position:relative;width:100%;max-width:420px;
  background:rgba(31,33,66,0.96);border:1px solid rgba(255,255,255,0.10);border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden;
  animation:qa-pop .16s ease-out;
}
@keyframes qa-pop{from{transform:translateY(8px);opacity:.6}to{transform:none;opacity:1}}
.qa-close{
  position:absolute;top:.5rem;right:.6rem;z-index:2;
  width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;
  background:rgba(0,0,0,.35);color:#fff;font-size:1.4rem;line-height:1;
}
.qa-close:hover{background:rgba(0,0,0,.55)}
.qa-media{background:#fff;display:flex;align-items:center;justify-content:center;padding:1rem;min-height:170px}
.qa-media img{max-width:100%;max-height:200px;object-fit:contain}
.qa-body{padding:1.1rem 1.25rem 1.35rem}
.qa-name{font-size:1.05rem;font-weight:800;color:#fff;margin:0 0 .4rem}
.qa-desc{font-size:.85rem;color:rgba(255,255,255,.72);margin:0 0 .7rem;line-height:1.4}
.qa-price{font-size:1.15rem;font-weight:800;color:#fff}
.qa-dealer{font-size:.82rem;color:#93c5fd;margin-top:.2rem;min-height:1em}
.qa-dealer a{color:rgba(255,255,255,.6);text-decoration:none}
.qa-qty{display:flex;align-items:center;gap:.6rem;margin:.9rem 0}
.qa-qty-label{font-size:.82rem;font-weight:700;color:rgba(255,255,255,.72)}
/* Match the shop-card stepper: navy input + red +/- buttons */
.qa-qty .qty-stepper{border-color:rgba(255,255,255,0.12)}
.qa-qty .qty-stepper__input{background:rgba(31,33,66,0.70);color:#fff;font-weight:700;border-left:none;border-right:none}
.qa-qty .qty-stepper__btn{background:var(--brand-red);color:#fff}
.qa-qty .qty-stepper__btn:hover,.qa-qty .qty-stepper__btn:active{background:var(--brand-red-hover)}
.qa-actions{display:flex;gap:.6rem}
.qa-actions .btn{flex:1;text-align:center}
.qa-view{display:flex;align-items:center;justify-content:center}
@media(max-width:480px){.qa-card{max-width:100%}}

/* Toast confirmation */
.qa-toast{
  position:fixed;left:50%;bottom:1.4rem;transform:translate(-50%,140%);
  z-index:1100;max-width:90vw;
  background:#15803d;color:#fff;font-size:.9rem;font-weight:600;
  padding:.7rem 1.15rem;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.35);
  transition:transform .25s ease,opacity .25s ease;opacity:0;pointer-events:none;
}
.qa-toast.show{transform:translate(-50%,0);opacity:1}
.qa-toast--error{background:#b91c1c}

/* =====================================================================
   PUBLIC STOREFRONT (2026-10-18) — header + mega-menu, Shop by category
   tiles, deal rows, product cards, product page. Layout follows the
   reference screenshots; colours are the theme's existing tokens only:
   panels #0f172a / rgba(31,33,66,.85), image wells rgba(15,23,42,.30),
   off tag #db1709, buttons .btn-primary brand red, links/badges #93c5fd,
   hairlines rgba(255,255,255,.06–.12). No gradients.
   ===================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

body.store-body { padding-top: 0; }
body.store-noscroll { overflow: hidden; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header.store-header {
    position: sticky;
    top: 0;
    display: block;
    padding: 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.store-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.store-header__util {
    background: rgba(31, 33, 66, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}
.store-header__util .store-header__inner { min-height: 36px; justify-content: space-between; }
.store-util__links, .store-util__right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.store-util__links a, .store-util__right a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.store-util__links a:hover, .store-util__right a:hover { color: #fff; }
.store-util__right a.store-util__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    padding: 0.22rem 0.85rem;
    border-radius: 999px;
}
.store-util__right a.store-util__phone:hover { background: var(--brand-red-hover); }
.store-util__phone svg { width: 15px; height: 15px; }

.store-header__main .store-header__inner { min-height: 68px; }
.store-header__main .site-logo__img { height: 44px; max-width: 220px; }
.store-search {
    flex: 1 1 auto;
    display: flex;
    max-width: 640px;
    margin: 0 auto;
}
.store-search__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 999px 0 0 999px;
    background: rgba(15, 23, 42, 0.60);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}
.store-search__input::placeholder { color: rgba(255, 255, 255, 0.55); }
.store-search__input:focus { border-color: #93c5fd; }
.store-search__btn {
    width: 52px;
    height: 42px;
    border: none;
    border-radius: 0 999px 999px 0;
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.store-search__btn:hover { background: var(--brand-red-hover); }
.store-search__btn svg { width: 20px; height: 20px; }
.store-header__account { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.store-header__account .btn { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.store-header__textlink { color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; text-decoration: none; }
.store-header__textlink:hover { color: #fff; }
.store-drawer-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    padding: 0.35rem;
    border-radius: 8px;
    cursor: pointer;
}
.store-drawer-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* ── Category bar + mega-menu ───────────────────────────────────────── */
.store-catbar { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.store-catbar__inner { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.store-catbar__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0.25rem; flex-wrap: wrap; }
.store-catbar__item { position: static; }
.store-catbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 44px;
    padding: 0 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #f1f5f9;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.store-catbar__link:hover,
.store-catbar__item.is-open > .store-catbar__link,
.store-catbar__link.is-current { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.store-catbar__link--deal { color: #fbbf24; }
.store-catbar__link--deal:hover { color: #fbbf24; border-bottom-color: #fbbf24; }
.store-catbar__chev { width: 14px; height: 14px; transition: transform 0.15s; }
.store-catbar__item.is-open .store-catbar__chev { transform: rotate(180deg); }

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 320;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 1.75rem max(1.5rem, calc((100% - 1400px) / 2 + 1.5rem)) 2rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
.mega-menu[hidden] { display: none; }
.mega-menu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.mega-menu__heading {
    margin: 0 0 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 700;
}
.mega-menu__heading a { color: #fff; text-decoration: none; }
.mega-menu__heading a:hover { color: #93c5fd; }
.mega-menu__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.mega-menu__links--cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem 2.5rem; }
.mega-menu__links a { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; text-decoration: none; }
.mega-menu__links a:hover { color: #fff; text-decoration: underline; }
.mega-menu__more { color: #93c5fd !important; font-weight: 600; }
.mega-menu__badge,
.store-tile__badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(31, 33, 66, 0.60);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
}
.mega-menu__empty { margin: 0; color: rgba(255, 255, 255, 0.75); }
.store-drawer-extra[hidden] { display: none; }
.store-drawer-backdrop { display: none; }

/* ── Page furniture ─────────────────────────────────────────────────── */
.store-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); margin: 0.25rem 0 1rem; }
.store-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.store-crumbs a:hover { color: #93c5fd; }
.store-crumbs [aria-current] { color: rgba(255, 255, 255, 0.65); }
.store-pagehead { margin-bottom: 1.25rem; }
.store-pagehead__title { margin: 0; font-size: 1.6rem; color: #fff; }
.store-pagehead__sub { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.72); }
.store-section {
    margin: 0 0 2.25rem;
    padding: 1.5rem;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
}
.store-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.store-section__title { margin: 0 0 1.1rem; font-size: 1.35rem; font-weight: 600; color: #fff; }
.store-section__head .store-section__title { margin: 0; }
.store-section__all { color: #fff; text-decoration: underline; font-size: 0.92rem; }
.store-section__all:hover { color: #93c5fd; }
.store-empty {
    padding: 2rem;
    text-align: center;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.80);
}
.store-empty h3 { margin: 0 0 0.5rem; color: #fff; }
.store-empty a { color: #93c5fd; }

/* Shop by category tiles */
.store-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.store-tile { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.store-tile:hover { text-decoration: none; }
.store-tile__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.65rem;
    overflow: hidden;
    color: #93c5fd;
    transition: border-color 0.15s, transform 0.15s;
}
.store-tile:hover .store-tile__media { border-color: rgba(147, 197, 253, 0.45); transform: translateY(-2px); }
.store-tile__media img { width: 82%; height: 82%; object-fit: contain; }
.store-tile__media svg { width: 42%; height: 42%; }
.store-tile__media .store-tile__badge { position: absolute; top: 0.5rem; left: 0.5rem; margin: 0; }
.store-tile__title { font-size: 0.95rem; text-align: center; }
.store-tile__count { margin-top: -0.4rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.60); }
.store-tile__deals {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    border: 3px solid #db1709;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    transform: rotate(-6deg);
}

/* Product grid + deal rows */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.deal-row__wrap { position: relative; }
.deal-row__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 1.5rem) / 5);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}
.deal-row__track > .store-card { scroll-snap-align: start; }
.deal-row__nav {
    position: absolute;
    top: 30%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.deal-row__nav:hover { background: var(--brand-red); }
.deal-row__nav--prev { left: -0.75rem; }
.deal-row__nav--next { right: -0.75rem; }

/* Product card */
.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    color: #fff;
}
.store-card__off,
.store-card__off--inline {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: #db1709;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    pointer-events: none;
}
.store-card__off--inline { position: static; display: inline-block; align-self: flex-start; margin-bottom: 0.25rem; }
.store-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.25rem;
    padding: 1rem;
    overflow: hidden;
}
.store-card__media img { width: 100%; height: 100%; object-fit: contain; }
.store-card__noimg { color: rgba(255, 255, 255, 0.60); font-size: 0.9rem; }
.store-card__brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.store-card__title { margin: 0; font-size: 0.98rem; line-height: 1.4; font-weight: 700; }
.store-card__title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-card__title a:hover { color: #93c5fd; }
.store-card__specs { margin: 0.1rem 0 0; padding-left: 1.1rem; list-style: circle; display: grid; gap: 0.3rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); }
.store-card__specs strong { color: #fff; font-weight: 700; }
.store-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.55rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.store-card__foot .product-card__stock { font-size: 0.8rem; margin: 0; }
.store-card__form { margin: 0; }
.store-card__cta { width: 100%; padding: 0.75rem 1rem; }
.store-card__cta:disabled { opacity: 0.5; cursor: not-allowed; }

/* Price: R 11,999⁰⁰ with the was-price struck through */
.store-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.store-price sup { font-size: 0.55em; vertical-align: super; margin-left: 0.05em; }
.store-price__now { font-size: 1.3rem; font-weight: 800; color: #fff; white-space: nowrap; }
.store-price__was { font-size: 0.85rem; color: rgba(255, 255, 255, 0.60); text-decoration: line-through; white-space: nowrap; }
.store-price__tag { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.60); }
.store-price__note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.store-price__note a { color: #93c5fd; }
.store-price--lg .store-price__now { font-size: 1.9rem; }
.store-price--lg .store-price__was { font-size: 1.05rem; }
.store-price--sm .store-price__now { font-size: 1.05rem; }

/* Listing toolbar */
.store-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
}
.store-toolbar__field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 150px; }
.store-toolbar__field--grow { flex: 1 1 260px; }
.store-toolbar__field > span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.70); }
.store-toolbar__field .input { max-width: 100%; }
.store-toolbar__field input.input { background: rgba(15, 23, 42, 0.60); color: #fff; border-color: rgba(31, 33, 66, 0.50); }
.store-toolbar select.input option { background: #1a1f3a; color: #fff; }
.store-toolbar__toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; align-items: center; }
.store-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(31, 33, 66, 0.60);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.store-chip:hover { color: #fff; border-color: rgba(147, 197, 253, 0.45); text-decoration: none; }
.store-chip.is-on { color: #93c5fd; border-color: #93c5fd; }
.store-chip--clear { color: #93c5fd; }

/* ── Product page ───────────────────────────────────────────────────── */
.pdp-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.pdp-topline .store-crumbs { margin: 0; }
.pdp-back { color: #93c5fd; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.pdp-back:hover { text-decoration: underline; }
.pdp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
}
.pdp-main { padding: 1.5rem 2rem 2rem; border-right: 1px solid rgba(255, 255, 255, 0.10); min-width: 0; }
.pdp-buy { padding: 1.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }

.pdp-gallery { display: flex; flex-direction: column; gap: 0.85rem; }
.pdp-gallery__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 640px;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.25rem;
    overflow: hidden;
}
.pdp-gallery__stage .product-detail__image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    background: none;
    border-radius: 0;
    padding: 1.5rem;
}
.pdp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.pdp-gallery__nav:hover { background: var(--brand-red); }
.pdp-gallery__nav--prev { left: 1rem; }
.pdp-gallery__nav--next { right: 1rem; }
.pdp-gallery__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    z-index: 2;
}
.pdp-gallery .pdp-thumb-strip { justify-content: flex-start; }
.pdp-gallery .pdp-thumb { width: 80px; height: 80px; border-radius: 0.25rem; }
.pdp-gallery .pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.3rem; }
.pdp-gallery .pdp-zoom-wrap { display: flex; }

.pdp-accordions { margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pdp-accordions--side { margin-top: 0.5rem; }
.pdp-acc { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.pdp-acc > summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}
.pdp-accordions--side .pdp-acc > summary { font-size: 0.95rem; }
.pdp-acc > summary::-webkit-details-marker { display: none; }
.pdp-acc > summary::after {
    content: "";
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s;
}
.pdp-acc[open] > summary::after { transform: rotate(-135deg); }
.pdp-acc > summary svg { width: 22px; height: 22px; flex-shrink: 0; }
.pdp-acc__body { padding: 0 0 1.1rem; color: rgba(255, 255, 255, 0.88); line-height: 1.6; font-size: 0.92rem; }
.pdp-acc__body a { color: #93c5fd; }
.pdp-acc__body .alert { margin-bottom: 1rem; }

.pdp-moreinfo { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pdp-moreinfo th { text-align: left; width: 180px; padding: 0.4rem 0.6rem; color: rgba(255, 255, 255, 0.70); font-weight: 600; vertical-align: top; }
.pdp-moreinfo td { padding: 0.4rem 0.6rem; color: #fff; }
.pdp-moreinfo tr + tr { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pdp-moreinfo__btn { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.pdp-stars { color: #fbbf24; letter-spacing: 2px; }
.pdp-review-sum { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.pdp-review-sum strong { color: #fff; }
.pdp-review { border-top: 1px solid rgba(255, 255, 255, 0.10); padding: 0.85rem 0; }
.pdp-review__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pdp-review__head strong { color: #fff; margin-left: 0.4rem; }
.pdp-review p { margin: 0.4rem 0 0; }
.pdp-review-form { margin-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; max-width: 520px; display: flex; flex-direction: column; gap: 0.75rem; }
.pdp-review-form h4 { margin: 0; color: #fff; }
.pdp-review-form__field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.80); }
.pdp-review-form__field .input { max-width: 100%; }
.pdp-review-form .btn { align-self: flex-start; }

.pdp-buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.pdp-buy__brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-buy__sep { color: rgba(255, 255, 255, 0.35); }
.pdp-buy__title { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 600; color: #fff; }
.pdp-stock { display: flex; flex-direction: column; gap: 0.5rem; }
.pdp-stock .stock-pill { align-self: flex-start; }
.pdp-stock .stock-pill--ok   { background: rgba(22, 101, 52, 0.85);  color: #86efac; }
.pdp-stock .stock-pill--warn { background: rgba(146, 64, 14, 0.85);  color: #fbbf24; }
.pdp-stock .stock-pill--low  { background: rgba(153, 27, 27, 0.85);  color: #fca5a5; }
.pdp-stockbar { display: block; height: 4px; border-radius: 999px; }
.pdp-stockbar--ok  { background: #74f53d; }
.pdp-stockbar--low { background: #fbbf24; }
.pdp-stockbar--out { background: #b91c1c; }
.pdp-keyspecs { margin: 0; padding: 0 0 0.85rem 1.2rem; list-style: circle; display: grid; gap: 0.35rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.pdp-keyspecs strong { color: #fff; }

.pdp-buy__actions { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.25rem; }
.pdp-buy__form { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; }
.pdp-buy__row { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1fr; gap: 0.75rem; }
.pdp-qty.qty-stepper { height: 46px; border-radius: 999px; border-color: rgba(255, 255, 255, 0.25); }
.pdp-qty .qty-stepper__btn { height: 46px; flex-basis: 46px; width: 46px; background: transparent; color: #fff; }
.pdp-qty .qty-stepper__btn:hover { background: rgba(255, 255, 255, 0.08); }
.pdp-qty .qty-stepper__input { background: transparent; border: none; color: #fff; font-weight: 700; }
.pdp-buy__add { height: 46px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; }
.pdp-buy__now { width: 100%; height: 48px; font-size: 1rem; }
.pdp-buy__now:disabled { opacity: 0.5; cursor: not-allowed; }
.pdp-buy__quote { text-align: center; }

.pdp-share { display: flex; align-items: center; gap: 1rem; font-weight: 600; color: #fff; padding-top: 0.5rem; }
.pdp-share a { color: #fff; display: inline-flex; }
.pdp-share a:hover { color: #93c5fd; }
.pdp-share svg { width: 22px; height: 22px; }

.pdp-addons { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.5rem; }
.pdp-addons__title { margin: 0; font-size: 1.1rem; font-weight: 600; color: #fff; }
.pdp-addon {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.25rem;
}
.pdp-addon__media { display: flex; align-items: center; justify-content: center; height: 80px; }
.pdp-addon__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-addon__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.pdp-addon__body form { margin: 0; }
.pdp-addon__name { color: #fff; font-size: 0.9rem; text-decoration: none; }
.pdp-addon__name:hover { color: #93c5fd; }
.pdp-addon__btn { padding: 0.4rem 1rem; font-size: 0.85rem; border: 1px solid rgba(255, 255, 255, 0.35); }

/* Dashboard-context product page keeps the dashboard chrome. */
.dash-main .pdp-layout { margin-top: 0.5rem; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .store-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .deal-row__track { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); }
    .mega-menu__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mega-menu__links--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .store-util__links { display: none; }
    .store-header__util .store-header__inner { justify-content: flex-end; }
    .pdp-layout { grid-template-columns: 1fr; }
    .pdp-main { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
    .deal-row__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
}
@media (max-width: 860px) {
    .store-header__util { display: none; }
    .store-header__main .store-header__inner { flex-wrap: wrap; padding: 0.5rem 1rem; gap: 0.6rem; min-height: 0; }
    .store-drawer-toggle { display: inline-flex; }
    .store-header__main .site-logo__img { height: 34px; }
    .store-header__account { margin-left: auto; }
    .store-header__account .btn, .store-header__textlink { display: none; }
    .store-search { order: 5; flex-basis: 100%; max-width: none; }
    .store-catbar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 340px);
        z-index: 400;
        background: #0f172a;
        border-right: 1px solid rgba(255, 255, 255, 0.10);
        overflow-y: auto;
        transform: translateX(-102%);
        transition: transform 0.22s ease;
    }
    .store-catbar.is-drawer-open { transform: none; }
    .store-catbar__inner { padding: 1rem 0; }
    .store-catbar__list { flex-direction: column; gap: 0; }
    .store-catbar__link { width: 100%; justify-content: space-between; height: 48px; padding: 0 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .store-catbar__link:hover, .store-catbar__link.is-current, .store-catbar__item.is-open > .store-catbar__link { border-bottom-color: rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.05); }
    .mega-menu { position: static; box-shadow: none; border-top: none; padding: 0.75rem 1.25rem 1rem; max-height: none; background: rgba(31, 33, 66, 0.85); }
    .mega-menu__grid, .mega-menu__links--cols { grid-template-columns: 1fr; gap: 1.25rem; }
    .store-drawer-extra { display: flex; flex-direction: column; padding: 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.10); }
    .store-drawer-extra a { padding: 0.65rem 1.25rem; color: rgba(255, 255, 255, 0.82); text-decoration: none; }
    .store-drawer-extra a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
    .store-drawer-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 390; background: rgba(0, 0, 0, 0.55); }
    .store-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .store-section { padding: 1rem; }
    .deal-row__track { grid-auto-columns: 70%; gap: 1rem; }
    .deal-row__nav { display: none; }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .pdp-main, .pdp-buy { padding: 1rem; }
    .store-toolbar__toggles { margin-left: 0; }
}
@media (max-width: 480px) {
    .store-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-grid { grid-template-columns: 1fr; }
    .pdp-buy__row { grid-template-columns: 1fr; }
    .pdp-addon { grid-template-columns: 72px 1fr; }
}

/* ── Store inside the dashboard (Shop panel) ──────────────────────────
   Same partials as the public /shop; the category bar sits inside the panel
   (not the sticky public header) and never becomes the mobile drawer — the
   dashboard owns its own hamburger. */
.dash-store .store-catbar {
    position: relative;
    margin: 0 0 1.25rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    z-index: 20;
}
.dash-store .store-catbar__inner { padding: 0 0.75rem; }
.dash-store .mega-menu {
    padding: 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 70vh;
}
.dash-store .store-shell { max-width: none; }
.store-price__note--staff { color: #93c5fd; font-weight: 700; }

/* Cart actions are POST forms (CSRF) styled as the old links. */
.cart-remove,
.dash-cart-remove__btn {
    background: none;
    border: none;
    padding: 0.2rem 0.4rem;
    color: #fca5a5;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}
.cart-remove:hover,
.dash-cart-remove__btn:hover { color: #fff; }
.dash-cart-remove { margin: 0; }
.sc-name-display {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.btn-danger-soft {
    background: rgba(153, 27, 27, 0.85);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.45);
}
.btn-danger-soft:hover { background: rgba(153, 27, 27, 1); color: #fff; }

@media (max-width: 860px) {
    .dash-store .store-catbar {
        position: relative;
        top: auto; bottom: auto; left: auto;
        width: auto;
        transform: none;
        overflow-x: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.10);
    }
    .dash-store .store-catbar__inner { padding: 0; }
    .dash-store .store-catbar__list { flex-direction: row; flex-wrap: nowrap; }
    .dash-store .store-catbar__link { width: auto; height: 44px; white-space: nowrap; border-bottom: 2px solid transparent; }
    .dash-store .mega-menu { position: fixed; left: 0.75rem; right: 0.75rem; top: 120px; max-height: 70vh; overflow-y: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
    /* Moved into the dashboard ☰ side menu by app.js: a plain accordion list there. */
    .dash-nav .store-catbar--in-nav {
        position: static; top: auto; bottom: auto; left: auto; width: auto; z-index: auto;
        transform: none; transition: none; overflow: visible;
        margin: 0 0 0.5rem; background: transparent; border: none; border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }
    .dash-nav .store-catbar--in-nav .store-catbar__inner { padding: 0; }
    .dash-nav .store-catbar--in-nav .store-catbar__list { flex-direction: column; gap: 0; }
    .dash-nav .store-catbar--in-nav .store-catbar__link { width: 100%; height: 44px; padding: 0 1.25rem; justify-content: space-between; white-space: normal; }
    .dash-nav .store-catbar--in-nav .mega-menu { position: static; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; padding: 0.5rem 1.25rem 0.75rem; }
}

/* ── Category picture tiles: Supplier Catalogue, Category Pictures page ──
   Same tile as "Shop by category" (.store-tile); moved from hub_switches.php's
   <style> block (2026-10-18). */
.hs-progress { color:#a5b4fc; font-size:.82rem; font-weight:700; white-space:nowrap }
.hs-form { margin:0 }
.hs-toggle { display:inline-flex; align-items:center; gap:.45rem; min-width:84px; padding:.3rem .55rem .3rem .3rem; border-radius:999px; border:1px solid #334155; background:#1e293b; color:#cbd5e1; font-weight:800; font-size:.78rem; cursor:pointer }
.hs-toggle__knob { width:20px; height:20px; border-radius:50%; background:#64748b; transition:transform .15s }
.hs-toggle.is-on { background:#166534; border-color:#22c55e; color:#fff; flex-direction:row-reverse; padding:.3rem .3rem .3rem .65rem }
.hs-toggle.is-on .hs-toggle__knob { background:#fff }
.hs-toggle:disabled { opacity:.6; cursor:wait }
.hs-pill { display:inline-block; padding:.25rem .65rem; border-radius:999px; font-size:.75rem; font-weight:800; background:#1e293b; color:#cbd5e1 }
.hs-pill--on { background:#166534; color:#fff }
.hs-muted { color:rgba(255,255,255,.65); font-size:.82rem }
.hub-hint, .catpic-hint { margin: 0 0 1rem; }
.hub-tiles, .catpic-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.5rem; }
.hub-tile,
.catpic-tile {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem;
    background: rgba(31, 33, 66, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    min-width: 0;
}
.hub-tile .store-tile__title { font-weight: 700; }
.hub-tile__counts { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); text-align: center; }
.hub-tile__counts strong { color: #fff; }
.hub-tile .hs-progress { text-align: center; white-space: normal; min-height: 1em; }
.hub-tile__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-top: auto; }
.hub-tile__pic { font-size: 0.78rem; color: #93c5fd; }
.hub-tile:target { border-color: #93c5fd; }

/* An uploaded category picture fills the image well; product-photo fallbacks keep padding. */
.store-tile__media--picture img { width: 100%; height: 100%; object-fit: contain; }

.catpic-state { font-size: 0.78rem; text-align: center; color: rgba(255, 255, 255, 0.60); }
.catpic-state--ok { color: #86efac; font-weight: 700; }
.catpic-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.catpic-actions form { margin: 0; }
.catpic-actions .btn { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.catpic-actions__pick { position: relative; overflow: hidden; cursor: pointer; }
.catpic-actions__pick input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}

/* Home page Core Solutions card with an uploaded picture. Square and never cropped —
   the same square, whole-picture view as on /admin/category-pictures (uploads are
   asked for square; a 16:10 cover crop cut the top and bottom off, 2026-10-19). */
.home-solution-card__media {
    display: block;
    aspect-ratio: 1;
    margin: -0.25rem -0.25rem 0.85rem;
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 0.6rem;
    overflow: hidden;
}
.home-solution-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Supplier Hub shared furniture (tab bar, pills, panels, tables) ──
   Moved from templates/admin/_hub_nav.php <style> (2026-10-18); violet → theme tokens. */
.hub-tabs { display:flex; gap:.4rem; flex-wrap:wrap; margin:0 0 1.1rem; border-bottom:1px solid #1f2142; padding-bottom:.6rem }
.hub-tabs a { padding:.45rem .9rem; border-radius:8px; font-size:.86rem; font-weight:600; color:rgba(255,255,255,.78); text-decoration:none; border:1px solid transparent }
.hub-tabs a:hover { border-color:#1f2142; color:#fff }
.hub-tabs a.active, .hub-more > summary.active { background:rgba(31,33,66,0.60); border-color:#93c5fd; color:#93c5fd }
.hub-more { position:relative }
.hub-more > summary { list-style:none; cursor:pointer; padding:.45rem .9rem; border-radius:8px; font-size:.86rem; font-weight:600; color:rgba(255,255,255,.78); border:1px solid transparent }
.hub-more > summary::-webkit-details-marker { display:none }
.hub-more[open] > div { position:absolute; z-index:30; top:110%; left:0; min-width:240px; background:#1e293b; border:1px solid #334155; border-radius:10px; padding:.35rem; box-shadow:0 8px 24px rgba(0,0,0,.35) }
.hub-more > div a { display:block; padding:.45rem .7rem; border-radius:6px }
.hub-pill { display:inline-block; font-size:.72rem; font-weight:700; padding:.12rem .5rem; border-radius:999px; background:rgba(255,255,255,.12); margin:.1rem .15rem .1rem 0; white-space:nowrap }
.hub-pill--ok { background:rgba(34,197,94,.22) } .hub-pill--warn { background:rgba(234,179,8,.25) } .hub-pill--bad { background:rgba(239,68,68,.25) } .hub-pill--info { background:rgba(31,33,66,0.60); color:#93c5fd }
.hub-muted { color:rgba(255,255,255,.65); font-size:.82rem }
.hub-panel { background:rgba(31,33,66,0.42); border:1px solid #1f2142; border-radius:12px; padding:1rem 1.1rem; margin-bottom:1rem }
.hub-bar { height:10px; background:rgba(255,255,255,.08); border-radius:999px; overflow:hidden }
.hub-bar > span { display:block; height:100%; background:#93c5fd; transition:width .4s ease }
.hub-form-row { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center }
.hub-form-row .input, .hub-form-row select { width:auto; max-width:100% }
.hub-table { width:100%; border-collapse:collapse; font-size:.85rem }
.hub-table th { text-align:left; font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color:rgba(255,255,255,.6); padding:.45rem .5rem; border-bottom:1px solid #1f2142 }
.hub-table td { padding:.45rem .5rem; border-bottom:1px solid rgba(31,33,66,.6); vertical-align:middle }
.hub-table tr:hover td { background:rgba(255,255,255,.04) }
@media(max-width:700px){ .hub-table-wrap { overflow-x:auto } }

/* ── Category mapping (/admin/category-mapping) — tiles and cards like the Supplier Catalogue ── */
.hubm-heading { margin: 1.25rem 0 0.75rem; font-size: 1.1rem; font-weight: 700; color: #fff; }
.hubm-subheading { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 700; color: #fff; }
.hubm-tile { text-decoration: none; color: inherit; }
.hubm-tile:hover { border-color: rgba(147, 197, 253, 0.45); text-decoration: none; }
.hubm-tile .store-tile__media { color: #93c5fd; }
.hubm-tile--warn { border-color: rgba(251, 191, 36, 0.65); }
.hubm-tile--warn .store-tile__media { color: #fbbf24; }
.hubm-allgood { padding: 0.75rem 1rem; border-radius: 0.75rem; background: rgba(22, 101, 52, 0.85); color: #86efac; font-weight: 700; }
.hubm-allgood a { color: #fff; font-weight: 600; }
.hubm-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
/* The search box gets the free width, so a long search stays readable (2026-10-29). */
.hubm-filters input[type=search] { flex: 1 1 280px; min-width: 0; }
.hubm-find { max-width: 720px; }
.hubm-filters select, .hubm-filters input, .hubm-row select, .hubm-bulk select {
    background: rgba(15, 23, 42, 0.60); color: #fff; border: 1px solid rgba(31, 33, 66, 0.50);
    border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.82rem; max-width: 100%;
}
.hubm-filters select option, .hubm-row select option, .hubm-bulk select option { background: #1a1f3a; color: #fff; }
.hubm-row form { display: flex; gap: 0.35rem; align-items: center; margin: 0; }
.hubm-row select { max-width: 260px; }
.hubm-bulk {
    position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
    margin-top: 0.75rem; padding: 0.75rem 1rem; background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.hubm-bulk[hidden] { display: none; }
/* Supplier category + product cards (2026-10-24: cards instead of tables). */
.hubm-card__open { display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; }
.hubm-card__open:hover { text-decoration: none; }
.hubm-card__open:hover .hubb-card__name { color: #93c5fd; }
.hubm-card__cb { position: absolute; top: .55rem; left: .55rem; z-index: 2; width: 1.15rem; height: 1.15rem; accent-color: #93c5fd; }
.hubm-examples { margin: 0; padding-left: 1rem; color: rgba(255,255,255,.7); font-size: .76rem; }
.hubm-move { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; }
.hubm-move select {
    flex: 1 1 160px; min-width: 0; max-width: 100%; background: rgba(15, 23, 42, 0.60); color: #fff;
    border: 1px solid rgba(31, 33, 66, 0.50); border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.82rem;
}
.hubm-move select option { background: #1a1f3a; color: #fff; }
.hubb-card__action .hubm-move .btn { width: auto; }
.hubm-labelbar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hubm-labelbar strong { color: #fff; }
.hubm-selectall { display: inline-flex; gap: .4rem; align-items: center; margin: 0 0 .6rem; }
.hubm-card { padding-top: .7rem; }
/* Long place names ("Security › Cameras (split IP / analogue / 4G by model)") wrap inside the card. */
.hubb-card .hub-pill { white-space: normal; max-width: 100%; }

/* ── Supplier Catalogue products page (/admin/supplier-catalog/browse) ──
   Moved from hub_browse.php <style> (2026-10-18); violet → theme tokens. */
.hubb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 1rem; }
.hubb-chips a { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); text-decoration: none; background: rgba(31,33,66,.60); }
.hubb-chips a.active, .hubb-chips a:hover { border-color: #93c5fd; color: #93c5fd; text-decoration: none; }
.hubb-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.hubb-filters select, .hubb-filters input[type=search] { background: rgba(15,23,42,0.60); color: #fff; border: 1px solid rgba(31,33,66,0.50); border-radius: 8px; padding: .45rem .7rem; font-size: .85rem; max-width: 100%; }
.hubb-filters select option { background: #1a1f3a; color: #fff; }
.hubb-filters input[type=search] { flex: 1 1 220px; }
.hubb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
@media (max-width: 520px) { .hubb-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }
@media (max-width: 380px) { .hubb-grid { grid-template-columns: 1fr; } }
.hubb-card { position: relative; background: rgba(31,33,66,0.85); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; overflow-wrap: anywhere; font-size: .83rem; }
.hubb-card__img { height: 130px; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.30); border: 1px solid rgba(31,33,66,.50); border-radius: .6rem; overflow: hidden; }
.hubb-card__img img { max-width: 100%; max-height: 122px; object-fit: contain; }
.hubb-card__img span { font-size: .75rem; color: rgba(255,255,255,.5); }
.hubb-card__brand { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.hubb-card__name { font-weight: 700; color: #fff; line-height: 1.3; }
.hubb-card__action { margin-top: auto; padding-top: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.hubb-card__action form { margin: 0; }
.hubb-card__action .btn { width: 100%; }
.hubb-card__action .btn:disabled { opacity: .6; cursor: not-allowed; }
.hubb-pager { display: flex; gap: .5rem; align-items: center; margin: 1.1rem 0; }

/* ── Store browse: filter sidebar + results (2026-10-19, reference store layout) ── */
.store-browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.store-filters {
    position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto;
    padding: 1rem; background: rgba(31, 33, 66, 0.85); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 0.75rem;
}
.store-filters__head { display: flex; align-items: center; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.10); }
.store-filters__head strong { color: #fff; font-size: 1rem; }
.store-filters__head a { color: #93c5fd; font-size: .82rem; margin-left: auto; }
.store-filters__close { display: none; margin-left: .5rem; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.store-filters__apply { display: none; }
.store-filter { border-bottom: 1px solid rgba(255,255,255,.10); padding: .7rem 0; }
.store-filter > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; color: #fff; font-size: .92rem;
}
.store-filter > summary::-webkit-details-marker { display: none; }
.store-filter > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform .15s; }
.store-filter:not([open]) > summary::after { transform: rotate(45deg); }
.store-filter__hint { font-weight: 400; font-size: .75rem; color: rgba(255,255,255,.6); margin-left: .35rem; margin-right: auto; }
.store-filter__list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.store-filter__list li { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: rgba(255,255,255,.88); }
.store-filter__list li.is-extra { display: none; }
.store-filter__list.is-expanded li.is-extra { display: flex; }
.store-filter__list input[type=checkbox] { width: 17px; height: 17px; accent-color: #93c5fd; flex-shrink: 0; margin: 0; }
.store-filter__list input[disabled] + label { color: rgba(255,255,255,.4); }
.store-filter__list label { cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.store-filter__count { margin-left: auto; color: rgba(255,255,255,.55); font-size: .78rem; }
.store-filter__more { margin-top: .5rem; background: none; border: 0; padding: 0; color: #93c5fd; text-decoration: underline; font-size: .82rem; cursor: pointer; }
.store-price-range { display: grid; gap: .65rem; margin-top: .6rem; }
.store-price-range__inputs { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.75); font-size: .85rem; }
.store-price-range__inputs label { display: flex; align-items: center; gap: .3rem; flex: 1; min-width: 0; }
.store-price-range__inputs input {
    width: 100%; min-width: 0; padding: .4rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(15, 23, 42, 0.60); color: #fff; font-size: .85rem;
}
.store-price-range__slider { position: relative; height: 22px; }
.store-price-range__slider input[type=range] {
    position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.store-price-range__slider input[type=range]::-webkit-slider-runnable-track { height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; }
.store-price-range__slider input[type=range]::-moz-range-track { height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; }
.store-price-range__slider input[type=range]::-webkit-slider-thumb {
    pointer-events: auto; -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8px;
    border-radius: 50%; background: #0f172a; border: 2px solid #93c5fd; cursor: pointer;
}
.store-price-range__slider input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #0f172a; border: 2px solid #93c5fd; cursor: pointer;
}
.store-price-range__apply { justify-self: start; padding: .35rem 1rem; font-size: .82rem; }

.store-topbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; padding: .7rem 1rem;
    background: rgba(31, 33, 66, 0.85); border: 1px solid rgba(255,255,255,.10); border-radius: .75rem;
}
.store-topbar__filters { display: none; padding: .4rem .9rem; font-size: .85rem; }
.store-topbar__count { color: rgba(255,255,255,.75); font-size: .88rem; }
.store-topbar__sort, .store-topbar__compare { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: #fff; font-weight: 600; }
.store-topbar__sort { margin-left: auto; }
.store-topbar__sort select { width: auto; max-width: 220px; }
.store-topbar__sort select option { background: #1a1f3a; color: #fff; }
.store-topbar__view { display: flex; align-items: center; gap: .25rem; }
.store-topbar__view-label { font-size: .88rem; font-weight: 600; color: #fff; margin-right: .25rem; }
.store-view-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 8px; color: rgba(255,255,255,.65); cursor: pointer; }
.store-view-btn svg { width: 20px; height: 20px; }
.store-view-btn.is-on, .store-view-btn:hover { color: #93c5fd; border-color: rgba(147,197,253,.45); }
.store-switch { -webkit-appearance: none; appearance: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.store-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.store-switch:checked { background: #93c5fd; }
.store-switch:checked::after { transform: translateX(18px); background: #0f172a; }

.store-searchbar { display: flex; max-width: 720px; margin: 0 0 1.25rem; }
.dash-store__search { max-width: none; margin: 0 0 1rem; }

/* Compare ticks show only while Compare is switched on. */
.store-card__compare { display: none; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.85); cursor: pointer; }
.store-card__compare input { width: 16px; height: 16px; accent-color: #93c5fd; margin: 0; }
.store-results.is-comparing .store-card__compare { display: flex; }
.store-results.is-comparing .store-card__off { top: 1.6rem; }
.store-compare-bar {
    position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin-top: 1rem; padding: .75rem 1rem; background: #0f172a; border: 1px solid rgba(147,197,253,.45);
    border-radius: .75rem; box-shadow: 0 -8px 24px rgba(0,0,0,.35); color: #fff;
}
.store-compare-bar[hidden] { display: none; }
.store-compare-bar span { margin-right: auto; }

/* List view: one product per row — picture | name + specs | price + button. */
.store-grid.store-grid--list { grid-template-columns: 1fr; }
.store-grid--list .store-card {
    display: grid; grid-template-columns: 160px minmax(0, 1fr) 240px; column-gap: 1.25rem; row-gap: .35rem; align-items: start;
    padding: .9rem; background: rgba(31, 33, 66, 0.85); border: 1px solid rgba(255,255,255,.10); border-radius: .75rem;
}
.store-grid--list .store-card__media { grid-column: 1; grid-row: 1 / span 5; }
.store-grid--list .store-card__compare, .store-grid--list .store-card__brand,
.store-grid--list .store-card__title, .store-grid--list .store-card__specs { grid-column: 2; }
.store-grid--list .store-card__foot { grid-column: 3; grid-row: 1 / span 5; border-top: 0; padding-top: 0; }
.store-grid--list .store-card__off { left: .9rem; top: .9rem; }

/* Compare page */
.store-compare__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.store-compare__wrap { overflow-x: auto; background: rgba(31, 33, 66, 0.85); border: 1px solid rgba(255,255,255,.10); border-radius: .75rem; }
.store-compare__table { width: 100%; min-width: 640px; border-collapse: collapse; color: rgba(255,255,255,.9); font-size: .88rem; }
.store-compare__table th, .store-compare__table td { padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; text-align: left; }
.store-compare__table tbody th { width: 170px; color: rgba(255,255,255,.65); font-weight: 600; }
.store-compare__table thead th { vertical-align: bottom; }
.store-compare__media { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: .5rem; background: rgba(15,23,42,.30); border: 1px solid rgba(31,33,66,.50); border-radius: .5rem; }
.store-compare__media img { max-width: 90%; max-height: 135px; object-fit: contain; }
.store-compare__name { display: block; color: #fff; font-weight: 700; text-decoration: none; }
.store-compare__name:hover { color: #93c5fd; }
.store-compare__remove { display: inline-block; margin-top: .35rem; font-size: .78rem; color: #fca5a5; }

@media (max-width: 1100px) {
    .store-grid--list .store-card { grid-template-columns: 120px minmax(0, 1fr); }
    .store-grid--list .store-card__foot { grid-column: 2; grid-row: auto; }
}
@media (max-width: 860px) {
    .store-browse { grid-template-columns: 1fr; }
    .store-filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 420; width: min(88vw, 340px); max-height: none; border-radius: 0;
        transform: translateX(-104%); transition: transform .22s ease;
    }
    .store-filters.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
    .store-filters { background: #1a1d3a; padding-bottom: 0; }
    .store-filters__close { display: block; }
    .store-filters__apply {
        display: block; position: sticky; bottom: 0; margin: 1rem -1rem 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
        background: #1a1d3a; border-top: 1px solid rgba(255,255,255,.10);
    }
    .store-filters__apply .btn { width: 100%; }
    .store-filters__apply .btn.is-dirty { box-shadow: 0 0 0 3px rgba(147,197,253,.45); }
    .store-topbar__filters { display: inline-flex; }
    .store-topbar__sort { margin-left: 0; }
    .store-topbar__view-label { display: none; }
}

/* =========================
   BLOG / NEWSLETTER FIRST-VISIT POPUP (public/footer.php)
   Dark navy like every other panel — the old white card left the
   inherited white headings invisible.
   ========================= */
.site-popup-overlay {
    position: fixed; inset: 0; z-index: 650;
    display: none; align-items: center; justify-content: center;
    padding: 1.25rem;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(6px);
}
.site-popup-overlay.is-open { display: flex; }
.site-popup-card {
    position: relative;
    width: min(1040px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    border-radius: 24px;
    background: rgba(31, 33, 66, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 1.35rem;
    color: #e2e8f0;
}
.site-popup-close {
    position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 1.6rem; line-height: 1;
    cursor: pointer;
}
.site-popup-close:hover { background: rgba(15, 23, 42, 1); }
.site-popup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.9fr);
    gap: 1.2rem;
}
.site-popup-kicker {
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #fca5a5; font-weight: 800;
    margin-bottom: 0.45rem;
}
.site-popup-content h2 { color: #fff; margin: 0; }
.site-popup-copy { color: rgba(255, 255, 255, 0.78); margin: 0.2rem 0 1rem; }
.site-popup-post-list { display: grid; gap: 0.85rem; }
.site-popup-post,
.site-popup-panel {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    background: rgba(15, 23, 42, 0.60);
}
.site-popup-post__meta {
    display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 0.45rem;
}
.site-popup-post h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.site-popup-post h3 a { color: #93c5fd; }
.site-popup-post h3 a:hover { color: #bfdbfe; }
.site-popup-panel h3 { color: #fff; margin: 0 0 0.5rem; padding-right: 2.5rem; }
.site-popup-post p,
.site-popup-panel p { margin: 0; color: rgba(255, 255, 255, 0.78); line-height: 1.55; }
.site-popup-post--empty strong { color: #fff; }
.site-popup-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 820px) {
    .site-popup-grid { grid-template-columns: 1fr; }
    .site-popup-card { padding: 1rem; }
}

/* =========================
   COOKIE CONSENT (assets/js/consent.js — only when a GA4 ID is set in /settings)
   ========================= */
.wt-consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
    max-width: 720px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
    padding: .9rem 1.1rem;
    background: rgba(31, 33, 66, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.88);
    font-size: .85rem; line-height: 1.5;
}
.wt-consent p { margin: 0; flex: 1 1 320px; }
.wt-consent a { color: #93c5fd; }
.wt-consent__actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* Admin offer lists (Specials / Promotions / Security Specials) as tiles, 2026-10-30. */
.offer-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.offer-tile { display: flex; flex-direction: column; background: rgba(31, 33, 66, 0.85); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 0.75rem; overflow: hidden; color: #fff; }
.offer-tile__media { position: relative; aspect-ratio: 16 / 7; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.offer-tile__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.offer-tile__noimg { color: rgba(255, 255, 255, 0.6); font-size: .82rem; padding: 1rem; text-align: center; }
.offer-tile__state { position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: #166534; color: #dcfce7; }
.offer-tile--scheduled .offer-tile__state { background: #92400e; color: #fef3c7; }
.offer-tile--expired .offer-tile__state, .offer-tile--off .offer-tile__state { background: #7f1d1d; color: #fee2e2; }
.offer-tile--expired, .offer-tile--off { opacity: .75; }
.offer-tile__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; flex: 1; }
.offer-tile__brand { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.offer-tile__title { margin: 0; font-size: 1rem; line-height: 1.3; color: #fff; }
.offer-tile__desc { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, 0.72); }
.offer-tile__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.offer-tile__price strong { font-size: 1.25rem; }
.offer-tile__price s { color: rgba(255, 255, 255, 0.55); font-size: .9rem; }
.offer-tile__price span { color: rgba(255, 255, 255, 0.65); font-size: .78rem; }
.offer-tile__meta { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: rgba(255, 255, 255, 0.6); margin-top: auto; }
.offer-tile__when { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.offer-tile__actions { display: flex; gap: .5rem; align-items: center; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 480px) { .offer-tiles { grid-template-columns: 1fr; } }
.sp-result-item:hover { background: rgba(147, 197, 253, 0.15); }
/* "Accept orders" switched off (App\Services\ShopOrders): note in place of the checkout button. */
.orders-paused { margin: 0; padding: .75rem 1rem; border-radius: .6rem; background: rgba(146, 64, 14, 0.35); border: 1px solid rgba(251, 191, 36, 0.55); color: #fef3c7; font-size: .9rem; line-height: 1.45; }
