/* ═══════════════════════════════════════════════════════════════════════════
   SIANOR ECOSYSTEM MASTER DESIGN SYSTEM — v7 (2026 Enterprise)
   Author: SIANOR UI/UX Architecture & Design Systems Team
   Covers: Public Storefront • Vendor Merchant OS • Admin & Backoffice Suite
   Typography: Space Grotesk (Display/Numbers) + Plus Jakarta Sans (UI/Body)
   A11y: WCAG 2.1 AA compliant contrast • Mobile-first • 100%–200% Zoom Safe
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL DESIGN TOKENS ── */
:root {
    /* ── Brand Primary: SIANOR Navy ── */
    --sianor-navy: #0f172a;
    --sianor-navy-dark: #0a0f1d;
    --sianor-navy-mid: #1e293b;
    --sianor-navy-light: #f1f5f9;
    --sianor-navy-xlight: #f8fafc;

    /* ── Brand Action & Accent: Sunset Amber ── */
    --sianor-amber: #f97316;
    --sianor-amber-hover: #ea580c;
    --sianor-amber-active: #c2410c;
    --sianor-amber-light: #fff7ed;
    --sianor-amber-border: #fed7aa;
    --sianor-amber-glow: rgba(249, 115, 22, 0.28);

    /* ── Brand Secondary: Vita Malagasy Emerald ── */
    --sianor-green: #10b981;
    --sianor-green-dark: #059669;
    --sianor-green-light: #ecfdf5;
    --sianor-green-border: #a7f3d0;

    /* ── Semantic: Danger ── */
    --sianor-red: #ef4444;
    --sianor-red-dark: #dc2626;
    --sianor-red-light: #fef2f2;
    --sianor-red-border: #fecaca;

    /* ── Semantic: Info ── */
    --sianor-blue: #3b82f6;
    --sianor-blue-dark: #2563eb;
    --sianor-blue-light: #eff6ff;
    --sianor-blue-border: #bfdbfe;

    /* ── Semantic: Warning ── */
    --sianor-yellow: #f59e0b;
    --sianor-yellow-dark: #d97706;
    --sianor-yellow-light: #fffbeb;
    --sianor-yellow-border: #fde68a;

    /* ── Semantic: Purple / Premium ── */
    --sianor-purple: #8b5cf6;
    --sianor-purple-dark: #7c3aed;
    --sianor-purple-light: #f5f3ff;
    --sianor-purple-border: #ddd6fe;

    /* ── Neutrals & Surfaces ── */
    --sianor-bg: #f8fafc;
    --sianor-bg-alt: #f1f5f9;
    --sianor-surface: #ffffff;
    --sianor-surface-hover: #f8fafc;
    --sianor-card-bg: #ffffff;

    --sianor-text: #0f172a;
    --sianor-text-secondary: #334155;
    --sianor-text-muted: #64748b;
    --sianor-text-subtle: #94a3b8;

    --sianor-border: #e2e8f0;
    --sianor-border-light: #f1f5f9;
    --sianor-border-focus: #f97316;

    /* ── Radii Scale ── */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* ── Elevation & Shadows ── */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 36px -6px rgba(15, 23, 42, 0.16);

    /* ── Transitions & Motion ── */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Typography ── */
    --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

    /* ── Spacing Scale (4px base) ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* ── Layout: Shared Sidebar Widths ── */
    --sidebar-width: 252px;
    --sidebar-collapsed-width: 68px;
    --topbar-height: 60px;

    /* ════════════════════════════════════════════════
       CANONICAL CROSS-SYSTEM ALIASES
       Map all legacy/module-specific token names to
       the canonical sianor-* tokens above.
       Prevents fragmentation across admin / cms / erp.
       ════════════════════════════════════════════════ */

    /* Admin module aliases (admin.css uses --admin-*) */
    --admin-orange: var(--sianor-amber);
    --admin-orange-dark: var(--sianor-amber-hover);
    --admin-navy: var(--sianor-navy);
    --admin-navy-2: var(--sianor-navy-mid);
    --admin-slate: #334155;
    --admin-muted: var(--sianor-text-muted);
    --admin-border: var(--sianor-border);
    --admin-bg: var(--sianor-bg);
    --admin-white: var(--sianor-surface);
    --admin-green: var(--sianor-green);
    --admin-red: var(--sianor-red);
    --admin-blue: var(--sianor-blue);
    --sidebar-w: var(--sidebar-width);
    --sidebar-collapsed-w: var(--sidebar-collapsed-width);
    --topbar-h: var(--topbar-height);
    --radius: var(--radius-md);
    --radius-lg-admin: var(--radius-lg);
    --transition: var(--transition-base);

    /* Backoffice/SaaS module aliases (backoffice-enterprise.css uses --saas-*) */
    --saas-primary: var(--sianor-amber);
    --saas-primary-hover: var(--sianor-amber-hover);
    --saas-primary-active: var(--sianor-amber-active);
    --saas-primary-light: var(--sianor-amber-light);
    --saas-primary-border: var(--sianor-amber-border);
    --saas-navy: var(--sianor-navy);
    --saas-navy-dark: var(--sianor-navy-dark);
    --saas-navy-light: var(--sianor-navy-mid);
    --saas-slate: #334155;
    --saas-muted: var(--sianor-text-muted);
    --saas-subtle: var(--sianor-text-subtle);
    --saas-border: var(--sianor-border);
    --saas-border-subtle: var(--sianor-border-light);
    --saas-bg: var(--sianor-bg);
    --saas-surface: var(--sianor-surface);
    --saas-surface-hover: var(--sianor-surface-hover);
    --saas-emerald: var(--sianor-green);
    --saas-emerald-dark: var(--sianor-green-dark);
    --saas-emerald-light: var(--sianor-green-light);
    --saas-emerald-border: var(--sianor-green-border);
    --saas-blue: var(--sianor-blue);
    --saas-blue-dark: var(--sianor-blue-dark);
    --saas-blue-light: var(--sianor-blue-light);
    --saas-blue-border: var(--sianor-blue-border);
    --saas-amber: var(--sianor-yellow);
    --saas-amber-dark: var(--sianor-yellow-dark);
    --saas-amber-light: var(--sianor-yellow-light);
    --saas-amber-border: var(--sianor-yellow-border);
    --saas-red: var(--sianor-red);
    --saas-red-dark: var(--sianor-red-dark);
    --saas-red-light: var(--sianor-red-light);
    --saas-red-border: var(--sianor-red-border);
    --saas-purple: var(--sianor-purple);
    --saas-purple-dark: var(--sianor-purple-dark);
    --saas-purple-light: var(--sianor-purple-light);
    --saas-purple-border: var(--sianor-purple-border);

    /* Storefront shorthand aliases (app.blade.php uses --amber, --navy, etc.) */
    --navy: var(--sianor-navy);
    --navy-mid: var(--sianor-navy-mid);
    --navy-light: var(--sianor-navy-light);
    --navy-xlight: var(--sianor-navy-xlight);
    --amber: var(--sianor-amber);
    --amber-dark: var(--sianor-amber-hover);
    --amber-light: var(--sianor-amber-light);
    --green: var(--sianor-green);
    --green-dark: var(--sianor-green-dark);
    --green-light: var(--sianor-green-light);
    --red: var(--sianor-red);
    --red-light: var(--sianor-red-light);
    --blue: var(--sianor-blue);
    --bg: var(--sianor-bg);
    --bg-alt: var(--sianor-bg-alt);
    --white: var(--sianor-surface);
    --text: var(--sianor-text);
    --text-secondary: var(--sianor-text-secondary);
    --text-muted: var(--sianor-text-muted);
    --text-light: var(--sianor-text-subtle);
    --border: var(--sianor-border);
    --border-light: var(--sianor-border-light);
}


/* ── 2. GLOBAL RESET & FOUNDATIONS ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    background-color: var(--sianor-bg);
    color: var(--sianor-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: clip;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--sianor-text);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ── 3. BUTTONS DESIGN SYSTEM ── */
.btn, .sianor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
}

.btn:active, .sianor-btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:focus-visible, .sianor-btn:focus-visible {
    outline: 2px solid var(--sianor-amber);
    outline-offset: 2px;
}

/* Primary Amber Button */
.btn-primary, .btn-amber {
    background: var(--sianor-amber);
    color: #ffffff !important;
    border-color: var(--sianor-amber);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
}
.btn-primary:hover, .btn-amber:hover {
    background: var(--sianor-amber-hover);
    border-color: var(--sianor-amber-hover);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38);
}

/* Navy Button */
.btn-navy, .btn-dark {
    background: var(--sianor-navy);
    color: #ffffff !important;
    border-color: var(--sianor-navy);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.btn-navy:hover, .btn-dark:hover {
    background: var(--sianor-navy-mid);
    border-color: var(--sianor-navy-mid);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

/* Emerald Green (Vita Malagasy / Success) */
.btn-emerald, .btn-green, .btn-success {
    background: var(--sianor-green);
    color: #ffffff !important;
    border-color: var(--sianor-green);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.24);
}
.btn-emerald:hover, .btn-green:hover, .btn-success:hover {
    background: var(--sianor-green-dark);
    border-color: var(--sianor-green-dark);
    color: #ffffff !important;
}

/* Secondary / White Button */
.btn-secondary, .btn-white {
    background: #ffffff;
    color: var(--sianor-text);
    border-color: var(--sianor-border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn-white:hover {
    background: var(--sianor-navy-light);
    border-color: #cbd5e1;
    color: var(--sianor-navy);
}

/* Outline Buttons */
.btn-outline-amber {
    background: transparent;
    color: var(--sianor-amber);
    border-color: var(--sianor-amber);
}
.btn-outline-amber:hover {
    background: var(--sianor-amber-light);
    color: var(--sianor-amber-hover);
}

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

.btn-outline-red {
    background: transparent;
    color: var(--sianor-red);
    border-color: var(--sianor-red-border);
}
.btn-outline-red:hover {
    background: var(--sianor-red-light);
    border-color: var(--sianor-red);
}

/* Danger Button */
.btn-red, .btn-danger {
    background: var(--sianor-red);
    color: #ffffff !important;
    border-color: var(--sianor-red);
}
.btn-red:hover, .btn-danger:hover {
    background: var(--sianor-red-dark);
    border-color: var(--sianor-red-dark);
    color: #ffffff !important;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--sianor-text-secondary);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--sianor-navy-light);
    color: var(--sianor-navy);
}

/* Button Sizing */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 24px;
    font-size: 0.98rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
}

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

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── 4. BADGES & STATUS PILLS ── */
.badge, .sianor-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-amber { background: var(--sianor-amber-light); color: var(--sianor-amber-hover); border: 1px solid var(--sianor-amber-border); }
.badge-emerald, .badge-success { background: var(--sianor-green-light); color: var(--sianor-green-dark); border: 1px solid var(--sianor-green-border); }
.badge-navy { background: var(--sianor-navy-light); color: var(--sianor-navy); border: 1px solid var(--sianor-border); }
.badge-blue, .badge-info { background: var(--sianor-blue-light); color: var(--sianor-blue-dark); border: 1px solid var(--sianor-blue-border); }
.badge-red, .badge-danger { background: var(--sianor-red-light); color: var(--sianor-red-dark); border: 1px solid var(--sianor-red-border); }
.badge-purple { background: var(--sianor-purple-light); color: var(--sianor-purple-dark); border: 1px solid var(--sianor-purple-border); }
.badge-gray, .badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ── 5. CARDS & CONTAINERS ── */
.card, .sianor-card {
    background: var(--sianor-surface);
    border: 1px solid var(--sianor-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
    overflow: hidden;
}

.card:hover, .sianor-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sianor-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sianor-text);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--sianor-border);
    background: var(--sianor-bg-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── 6. FORMS & CONTROLS ── */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sianor-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label .required {
    color: var(--sianor-red);
}

.form-control, .form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--sianor-text);
    background: #ffffff;
    border: 1.5px solid var(--sianor-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--sianor-amber);
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.16);
}

.form-control::placeholder {
    color: var(--sianor-text-subtle);
}

.form-hint {
    font-size: 0.74rem;
    color: var(--sianor-text-muted);
}

.form-error {
    font-size: 0.74rem;
    color: var(--sianor-red);
    font-weight: 600;
}

/* ── 7. DATA TABLES & DATA GRIDS ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--sianor-border);
    background: #ffffff;
}

.sianor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.sianor-table th {
    background: var(--sianor-bg);
    color: var(--sianor-text-muted);
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sianor-border);
    white-space: nowrap;
}

.sianor-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sianor-border-light);
    color: var(--sianor-text-secondary);
    vertical-align: middle;
}

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

.sianor-table tr:hover td {
    background: var(--sianor-navy-light);
}

/* ── 8. TOAST NOTIFICATIONS & ALERTS ── */
.alerts-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-success { background: #ffffff; color: var(--sianor-green-dark); border: 1.5px solid var(--sianor-green); }
.alert-danger { background: #ffffff; color: var(--sianor-red-dark); border: 1.5px solid var(--sianor-red); }
.alert-info { background: #ffffff; color: var(--sianor-blue-dark); border: 1.5px solid var(--sianor-blue); }
.alert-warning { background: #ffffff; color: var(--sianor-amber-hover); border: 1.5px solid var(--sianor-amber); }

/* ── 9. EMPTY & LOADING STATES ── */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sianor-amber-light);
    color: var(--sianor-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sianor-text);
}

.empty-state-desc {
    font-size: 0.86rem;
    color: var(--sianor-text-muted);
    max-width: 380px;
    line-height: 1.5;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── 10. SKELETON VARIANTS ── */
.skeleton-card {
    background: var(--sianor-surface);
    border: 1px solid var(--sianor-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-line {
    height: 10px;
    border-radius: var(--radius-xs);
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-line.w-full  { width: 100%; }
.skeleton-line.w-3-4   { width: 75%; }
.skeleton-line.w-1-2   { width: 50%; }
.skeleton-line.w-1-3   { width: 33%; }
.skeleton-line.h-sm    { height: 8px; }
.skeleton-line.h-md    { height: 12px; }
.skeleton-line.h-lg    { height: 18px; }
.skeleton-line.h-xl    { height: 32px; }

.skeleton-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 80px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sianor-border-light);
}

/* ── 11. KPI METRIC CARDS ── */
.kpi-card {
    background: var(--sianor-surface);
    border: 1px solid var(--sianor-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    overflow: hidden;
}
.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--sianor-amber), var(--sianor-green));
    opacity: 0;
    transition: opacity var(--transition-base);
}
.kpi-card:hover::before { opacity: 1; }

.kpi-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sianor-text-muted);
}
.kpi-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--sianor-text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.kpi-value .kpi-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sianor-text-muted);
}
.kpi-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}
.kpi-change.up   { background: var(--sianor-green-light); color: var(--sianor-green-dark); }
.kpi-change.down { background: var(--sianor-red-light);   color: var(--sianor-red-dark);   }
.kpi-change.flat { background: var(--sianor-bg-alt);      color: var(--sianor-text-muted); }

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.kpi-icon.amber  { background: var(--sianor-amber-light); color: var(--sianor-amber); }
.kpi-icon.green  { background: var(--sianor-green-light); color: var(--sianor-green-dark); }
.kpi-icon.blue   { background: var(--sianor-blue-light);  color: var(--sianor-blue-dark); }
.kpi-icon.red    { background: var(--sianor-red-light);   color: var(--sianor-red-dark); }
.kpi-icon.purple { background: var(--sianor-purple-light);color: var(--sianor-purple-dark); }
.kpi-icon.navy   { background: var(--sianor-navy-light);  color: var(--sianor-navy); }

.kpi-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* ── 12. TABS COMPONENT ── */
.sianor-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--sianor-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.sianor-tabs::-webkit-scrollbar { display: none; }
.sianor-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sianor-text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.sianor-tab:hover { color: var(--sianor-text); }
.sianor-tab.active {
    color: var(--sianor-amber);
    border-bottom-color: var(--sianor-amber);
    font-weight: 700;
}
.sianor-tab-badge {
    background: var(--sianor-amber-light);
    color: var(--sianor-amber-hover);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}
.sianor-tab-panel { display: none; }
.sianor-tab-panel.active { display: block; }

/* ── 13. INPUT GROUPS ── */
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group .form-control {
    border-radius: 0;
    flex: 1;
    min-width: 0;
}
.input-group .form-control:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .form-control:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--sianor-bg-alt);
    border: 1.5px solid var(--sianor-border);
    color: var(--sianor-text-muted);
    font-size: 0.86rem;
    white-space: nowrap;
}
.input-group-addon:first-child {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group-addon:last-child {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.input-group .btn {
    border-radius: 0;
}
.input-group .btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ── 14. RESPONSIVE TABLE → CARD (Mobile ≤ 640px) ── */
@media (max-width: 640px) {
    .table-responsive-cards .sianor-table,
    .table-responsive-cards thead,
    .table-responsive-cards tbody,
    .table-responsive-cards th,
    .table-responsive-cards td,
    .table-responsive-cards tr {
        display: block;
    }
    .table-responsive-cards thead { display: none; }
    .table-responsive-cards tr {
        background: var(--sianor-surface);
        border: 1px solid var(--sianor-border);
        border-radius: var(--radius-lg);
        margin-bottom: 10px;
        padding: 14px;
        box-shadow: var(--shadow-xs);
    }
    .table-responsive-cards tr:hover { box-shadow: var(--shadow-md); }
    .table-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 0.84rem;
        gap: 8px;
    }
    .table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--sianor-text-muted);
        flex-shrink: 0;
    }
    .table-responsive-cards td:not(:last-child) {
        border-bottom: 1px solid var(--sianor-border-light);
        padding-bottom: 6px;
        margin-bottom: 2px;
    }
}

/* ── 15. BACKOFFICE SHELL — Shared Sidebar Layout ── */
.bo-shell {
    display: flex;
    min-height: 100vh;
    background: var(--sianor-bg);
}
.bo-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sianor-navy);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-smooth);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.bo-sidebar::-webkit-scrollbar { width: 4px; }
.bo-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.bo-sidebar.collapsed { width: var(--sidebar-collapsed-width); min-width: var(--sidebar-collapsed-width); }
.bo-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.bo-sidebar-brand img { height: 32px; object-fit: contain; flex-shrink: 0; }
.bo-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.bo-sidebar-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: -0.3px;
}
.bo-sidebar-brand-module {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sianor-amber);
}
.bo-sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bo-sidebar-group-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    padding: 12px 10px 4px;
}
.bo-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.bo-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}
.bo-nav-item.active {
    background: rgba(249,115,22,0.18);
    color: #ffffff;
    font-weight: 700;
}
.bo-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--sianor-amber);
}
.bo-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition-fast);
}
.bo-nav-item:hover .bo-nav-icon,
.bo-nav-item.active .bo-nav-icon {
    color: var(--sianor-amber);
}
.bo-nav-badge {
    margin-left: auto;
    background: var(--sianor-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.bo-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left var(--transition-smooth);
}
.bo-topbar {
    height: var(--topbar-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sianor-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    box-shadow: var(--shadow-xs);
}
.bo-page {
    padding: 28px 24px;
    flex: 1;
}
.bo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.bo-page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sianor-text);
    letter-spacing: -0.02em;
}
.bo-page-subtitle {
    font-size: 0.84rem;
    color: var(--sianor-text-muted);
    margin-top: 2px;
}
.bo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--sianor-text-muted);
    margin-bottom: 4px;
}
.bo-breadcrumb a {
    color: var(--sianor-text-muted);
    transition: color var(--transition-fast);
}
.bo-breadcrumb a:hover { color: var(--sianor-amber); }
.bo-breadcrumb span { color: var(--sianor-text-muted); font-size: 0.65rem; }

/* Backoffice mobile sidebar overlay */
.bo-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(3px);
    z-index: 190;
}
@media (max-width: 1024px) {
    .bo-sidebar { transform: translateX(-100%); }
    .bo-sidebar.open { transform: translateX(0); }
    .bo-sidebar-overlay.active { display: block; }
    .bo-main { margin-left: 0; }
    .bo-topbar { padding: 0 16px; }
    .bo-page { padding: 20px 16px; }
}

/* ── 16. NOTIFICATION DOT ── */
.notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sianor-red);
    border: 2px solid var(--sianor-surface);
}
.notif-dot.green  { background: var(--sianor-green); }
.notif-dot.amber  { background: var(--sianor-amber); }
.notif-dot.pulse  { animation: notif-pulse 1.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite; }
@keyframes notif-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.8; }
}

/* ── 17. DIVIDERS ── */
.divider {
    height: 1px;
    background: var(--sianor-border);
    margin: var(--space-5) 0;
}
.divider-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--sianor-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    margin: var(--space-5) 0;
}
.divider-label::before,
.divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sianor-border);
}

/* ── 18. SCROLLBAR UTILITIES ── */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--sianor-border) transparent;
}
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--sianor-border); border-radius: 3px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* ── 19. UTILITY CLASSES ── */
.text-display   { font-family: var(--font-display) !important; }
.text-amber     { color: var(--sianor-amber) !important; }
.text-navy      { color: var(--sianor-navy) !important; }
.text-green     { color: var(--sianor-green-dark) !important; }
.text-red       { color: var(--sianor-red-dark) !important; }
.text-muted     { color: var(--sianor-text-muted) !important; }
.text-subtle    { color: var(--sianor-text-subtle) !important; }
.bg-amber-light { background-color: var(--sianor-amber-light) !important; }
.bg-navy        { background-color: var(--sianor-navy) !important; }
.bg-surface     { background-color: var(--sianor-surface) !important; }
.border-amber   { border-color: var(--sianor-amber-border) !important; }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1   { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3   { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 20. RICH TEXT TYPOGRAPHY (QUILL & CMS OUTPUT) ── */
.product-rich-text, .sianor-rich-text, .ql-editor-content {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--sianor-text, #1e293b);
    word-break: break-word;
}
.product-rich-text p, .sianor-rich-text p {
    margin: 0 0 14px;
}
.product-rich-text p:last-child, .sianor-rich-text p:last-child {
    margin-bottom: 0;
}
.product-rich-text h1, .product-rich-text h2, .product-rich-text h3, .product-rich-text h4,
.sianor-rich-text h1, .sianor-rich-text h2, .sianor-rich-text h3, .sianor-rich-text h4 {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 800;
    color: var(--sianor-navy, #0f172a);
    margin: 22px 0 10px;
    line-height: 1.3;
}
.product-rich-text h1, .sianor-rich-text h1 { font-size: 1.5rem; }
.product-rich-text h2, .sianor-rich-text h2 { font-size: 1.3rem; }
.product-rich-text h3, .sianor-rich-text h3 { font-size: 1.15rem; }
.product-rich-text h4, .sianor-rich-text h4 { font-size: 1.02rem; }
.product-rich-text strong, .product-rich-text b,
.sianor-rich-text strong, .sianor-rich-text b {
    font-weight: 700;
    color: var(--sianor-navy, #0f172a);
}
.product-rich-text em, .product-rich-text i,
.sianor-rich-text em, .sianor-rich-text i {
    font-style: italic;
}
.product-rich-text ul, .product-rich-text ol,
.sianor-rich-text ul, .sianor-rich-text ol {
    margin: 10px 0 16px 20px;
    padding: 0;
}
.product-rich-text ul, .sianor-rich-text ul { list-style-type: disc; }
.product-rich-text ol, .sianor-rich-text ol { list-style-type: decimal; }
.product-rich-text li, .sianor-rich-text li {
    margin-bottom: 6px;
    line-height: 1.6;
    color: var(--sianor-text, #334155);
}
.product-rich-text a, .sianor-rich-text a {
    color: var(--sianor-amber, #f97316);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s;
}
.product-rich-text a:hover, .sianor-rich-text a:hover {
    color: var(--sianor-amber-hover, #ea580c);
}
.product-rich-text blockquote, .sianor-rich-text blockquote {
    border-left: 4px solid var(--sianor-amber, #f97316);
    background: var(--sianor-amber-light, #fff7ed);
    padding: 12px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0;
    font-style: italic;
    color: var(--sianor-text-secondary, #475569);
}
.product-rich-text table, .sianor-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    border: 1px solid var(--sianor-border, #e2e8f0);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.product-rich-text th, .product-rich-text td,
.sianor-rich-text th, .sianor-rich-text td {
    padding: 10px 14px;
    border: 1px solid var(--sianor-border, #e2e8f0);
    font-size: 0.88rem;
}
.product-rich-text th, .sianor-rich-text th {
    background: var(--sianor-bg, #f8fafc);
    font-weight: 700;
    color: var(--sianor-navy, #0f172a);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 21. AUTHORITATIVE SIANOR PRODUCT CARD FAMILY ──
   Stabilized dimensions, touch-first actions, strict 1:1 image aspect ratio
   ═══════════════════════════════════════════════════════════════════════════ */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* 1:1 Strict Image Wrap */
.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    text-decoration: none;
    box-sizing: border-box;
}
.product-img-link img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img-link img {
    transform: scale(1.05);
}

/* Badge Stack (Top-Left) */
.pc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.pc-badge-promo {
    background: #ef4444;
    color: #ffffff;
}
.pc-badge-vita {
    background: #059669;
    color: #ffffff;
    font-weight: 800;
}
.pc-badge-b2b {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.pc-badge-sponsored {
    background: rgba(15, 23, 42, 0.88);
    color: #fbbf24;
}

/* Floating Touch-Accessible Wishlist Button (Top-Right) */
.pc-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    padding: 0;
}
.pc-wishlist i {
    font-size: 0.95rem;
    pointer-events: none;
}
.pc-wishlist:hover {
    background: #ffffff;
    color: #ef4444;
    border-color: #fca5a5;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.pc-wishlist.active {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fca5a5;
}
.pc-wishlist.active i {
    font-weight: 900;
}

/* Stock Status Badges (Bottom-Left) */
.pc-stock-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    z-index: 3;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.2;
}
.pc-stock-out {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.pc-stock-low {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

/* Card Content Body (Stabilized vertical layout) */
.product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
}

/* Category + Vendor Meta Row (Fixed height: 18px) */
.pc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: #64748b;
    height: 18px;
    min-width: 0;
}
.product-cat {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
}
.pc-vendor-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
}
.pc-vendor-link:hover {
    color: #f97316;
}
.pc-vendor-icon {
    font-size: 0.7rem;
    color: #f97316;
}

/* Product Title: Strict 2-Line Height for Grid Uniformity */
.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
    height: 2.7em;
    min-height: 2.7em;
    max-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.product-name:hover {
    color: #f97316;
}

/* Rating Row: Fixed Height 20px */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    height: 20px;
    flex-shrink: 0;
}
.pc-stars {
    color: #f59e0b;
    font-size: 0.72rem;
    display: flex;
    gap: 2px;
}
.pc-star-empty {
    color: #e2e8f0;
}
.pc-rating-score {
    font-weight: 800;
    color: #0f172a;
}
.pc-rating-count {
    color: #64748b;
    font-size: 0.7rem;
}
.pc-rating-new {
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

/* Pricing Row: Fixed Height 28px */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    height: 28px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.price-now {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.price-now.price-promo {
    color: #ea580c;
}
.price-unit {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}
.price-unit-promo {
    color: #ea580c;
}
.price-old {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}
.pc-badge-gros {
    font-size: 0.65rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* Primary Action CTA (Touch-Friendly 42-44px Height) */
.product-actions {
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
}
.pc-add-btn, .product-actions .pc-add {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
}
.pc-add-btn:hover, .product-actions .pc-add:hover {
    background: #f97316;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}
.pc-add-btn:active, .product-actions .pc-add:active {
    transform: translateY(0);
}
.pc-add-notify {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}
.pc-add-notify:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }
    .pc-wishlist {
        width: 42px;
        height: 42px;
    }
    .pc-add-btn:active {
        background: #ea580c;
    }
}

/* Container Grid Stabilization Rules */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.commerce-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 640px) {
    .commerce-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.rail-scroll-track .product-card {
    flex: 0 0 230px;
    width: 230px;
    height: auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 640px) {
    .rail-scroll-track .product-card {
        flex: 0 0 190px;
        width: 190px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. UNIFIED BACKOFFICE & SAAS ECOSYSTEM UTILITIES
   Standardizes components across Admin, CMS, CRM, ERP, BI & Support
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Unified SaaS Buttons ── */
.btn-saas-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    min-height: 40px;
    border-radius: var(--radius-md, 10px);
    background: var(--sianor-amber, #f97316);
    color: #ffffff !important;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s);
    white-space: nowrap;
}
.btn-saas-primary:hover {
    background: var(--sianor-amber-hover, #ea580c);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38);
}
.btn-saas-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.2);
}

.btn-saas-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: var(--radius-md, 10px);
    background: #ffffff;
    color: var(--sianor-text-secondary, #334155) !important;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--sianor-border, #e2e8f0);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s);
    white-space: nowrap;
}
.btn-saas-secondary:hover {
    background: var(--sianor-navy-xlight, #f8fafc);
    border-color: #cbd5e1;
    color: var(--sianor-text, #0f172a) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-saas-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    min-height: 38px;
    border-radius: var(--radius-md, 10px);
    background: transparent;
    color: var(--sianor-amber, #f97316) !important;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--sianor-amber, #f97316);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s);
    white-space: nowrap;
}
.btn-saas-outline:hover {
    background: var(--sianor-amber-light, #fff7ed);
    border-color: var(--sianor-amber-hover, #ea580c);
    color: var(--sianor-amber-hover, #ea580c) !important;
}

.btn-saas-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: var(--radius-md, 10px);
    background: var(--sianor-red-light, #fef2f2);
    color: var(--sianor-red-dark, #dc2626) !important;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--sianor-red-border, #fecaca);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s);
    white-space: nowrap;
}
.btn-saas-danger:hover {
    background: var(--sianor-red, #ef4444);
    color: #ffffff !important;
    border-color: var(--sianor-red, #ef4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.btn-saas-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md, 10px);
    background: transparent;
    color: var(--sianor-text-muted, #64748b);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-saas-ghost:hover {
    background: var(--sianor-navy-light, #f1f5f9);
    color: var(--sianor-text, #0f172a);
}

/* ── Unified SaaS Status Badges ── */
.badge-saas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge-saas-active, .badge-saas-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.badge-saas-pending, .badge-saas-warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.badge-saas-danger, .badge-saas-out {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.badge-saas-info, .badge-saas-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.badge-saas-orange, .badge-saas-promo {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}
.badge-saas-purple, .badge-saas-b2b {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}
.badge-saas-neutral {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

/* ── Unified SaaS Cards & Containers ── */
.saas-card-elevated {
    background: #ffffff;
    border: 1px solid var(--sianor-border, #e2e8f0);
    border-radius: var(--radius-xl, 20px);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.saas-card-elevated:hover {
    box-shadow: var(--shadow-md);
}

.saas-table-container {
    background: #ffffff;
    border: 1px solid var(--sianor-border, #e2e8f0);
    border-radius: var(--radius-xl, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

/* ── Unified SaaS KPI Widget ── */
.saas-kpi-widget {
    background: #ffffff;
    border-radius: var(--radius-xl, 20px);
    padding: 20px 22px;
    border: 1px solid var(--sianor-border, #e2e8f0);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.saas-kpi-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Unified SaaS Empty State ── */
.saas-empty-state {
    padding: 56px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border-radius: var(--radius-xl, 20px);
    border: 1px solid var(--sianor-border, #e2e8f0);
}
.saas-empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sianor-amber-light, #fff7ed);
    color: var(--sianor-amber, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 4px;
}
.saas-empty-state-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sianor-text, #0f172a);
    margin: 0;
}
.saas-empty-state-text {
    font-size: 0.85rem;
    color: var(--sianor-text-muted, #64748b);
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 15. AUTHORITATIVE PUBLIC STOREFRONT ARCHITECTURE & COMPONENTS ──
   Light, minimal, premium, mobile-first, zoom-safe (100%–200%)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Loader ── */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader img {
    height: 48px;
    width: auto;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
.loader-bar-track {
    width: 140px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 4px;
    animation: loaderSlide 1.2s infinite ease-in-out;
}
@keyframes loaderSlide {
    0% { left: -40%; width: 40%; }
    50% { left: 30%; width: 50%; }
    100% { left: 100%; width: 40%; }
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ── Layout & Viewport Containers ── */
@media (min-width: 1025px) {
    body.has-cat-rail {
        padding-left: 64px;
    }
}
@media (max-width: 1024px) {
    body {
        padding-bottom: 64px;
    }
}

.container, #spaContainer {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
@media (max-width: 768px) {
    .container, #spaContainer {
        padding: 0 14px;
    }
}

/* ── Top Announcement Bar ── */
.sianor-top-announcement {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    position: relative;
    z-index: 185;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sianor-announcement-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sianor-announcement-badge {
    background: #f97316;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sianor-announcement-link {
    color: #fed7aa;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sianor-announcement-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    line-height: 1;
}
.sianor-announcement-close:hover {
    color: #ffffff;
}

/* ── Sleek Informative Topbar ── */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
    color: #64748b;
    padding: 5px 0;
}
.topbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.topbar-item i {
    color: #f97316;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-right a {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.topbar-right a:hover {
    color: #f97316;
}
.topbar-sep {
    width: 1px;
    height: 12px;
    background: #e2e8f0;
}
@media (max-width: 900px) {
    .topbar { display: none; }
}

/* ── Main Site Header (Marketplace-Grade, Search-Dominant) ── */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    position: sticky;
    top: 0;
    z-index: 180;
}
.header-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.site-logo:hover {
    transform: scale(1.02);
}
.site-logo img {
    height: 38px;
    width: auto;
}
.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-name {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 0.64rem;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Central Dominant Marketplace Search Bar (Anchor #1) ── */
.header-search {
    flex: 1;
    max-width: 740px;
    position: relative;
    margin: 0 10px;
}
.search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s ease;
    height: 44px;
}
.search-form:focus-within {
    background: #ffffff;
    border-color: #f97316;
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.15);
}
.search-cat {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    padding: 0 10px 0 14px;
    border-right: 1.5px solid #e2e8f0;
    outline: none;
    cursor: pointer;
    max-width: 155px;
    height: 100%;
    transition: color 0.15s;
}
.search-cat:focus {
    color: #f97316;
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 0.9rem;
    color: #0f172a;
    outline: none;
    height: 100%;
    min-width: 0;
}
.search-input::placeholder {
    color: #94a3b8;
    font-size: 0.86rem;
}
.search-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    margin-right: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.search-btn:hover {
    background: #f97316;
}
.search-btn:active {
    transform: scale(0.95);
}

/* ── Header Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.hdr-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    position: relative;
    user-select: none;
}
.hdr-btn:hover {
    background: #f1f5f9;
}
.hdr-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.hdr-btn-icon {
    font-size: 1.2rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hdr-btn-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.hdr-btn-top {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
}
.hdr-btn-main {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.cart-badge {
    position: absolute;
    top: 4px;
    left: 22px;
    background: #f97316;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(249, 115, 22, 0.4);
}
.has-dropdown {
    position: relative;
}
.hdr-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 250;
    margin-top: 6px;
}
.has-dropdown:hover .hdr-dropdown,
.has-dropdown:focus-within .hdr-dropdown {
    display: block;
}
.hdr-dropdown a, .hdr-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.hdr-dropdown a:hover, .hdr-dropdown button:hover {
    background: #f8fafc;
    color: #f97316;
}
.hdr-dropdown-sep {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* ── Secondary Sub-Navigation (Compact & High-Value) ── */
.site-nav {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    height: 40px;
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
    height: 100%;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
    color: #0f172a;
    background: #f8fafc;
}
.nav-links a.active {
    color: #ea580c;
    background: #fff7ed;
    font-weight: 700;
}

/* ── Responsive Header & Search Behavior ── */
@media (max-width: 1024px) {
    .site-nav { display: none; }
    .hdr-btn-col { display: none; }
    .search-cat { display: none; }
    .header-search { max-width: none; margin: 0 6px; }
}
@media (max-width: 640px) {
    .header-row {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .header-search {
        order: 3;
        width: 100%;
        margin: 4px 0 0;
        flex-basis: 100%;
    }
    .search-form {
        height: 40px;
    }
    .search-btn {
        width: 34px;
        height: 34px;
    }
    .logo-name {
        font-size: 1.25rem;
    }
    .site-logo img {
        height: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 16. VERTICAL CATEGORY RAIL & MULTI-LEVEL FLYOUT (SIGNATURE SIANOR COMPONENT) ──
   ═══════════════════════════════════════════════════════════════════════════ */
.sianor-cat-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 66px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 1px 0 10px rgba(15, 23, 42, 0.03);
    z-index: 190;
    display: flex;
    flex-direction: column;
    user-select: none;
}
@media (max-width: 1024px) {
    .sianor-cat-rail { display: none !important; }
}

/* Scroll Fade Indicators */
.rail-scroll-indicator-top {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    height: 18px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent);
}
.sianor-cat-rail.has-scroll-top .rail-scroll-indicator-top {
    opacity: 1;
}
.rail-scroll-indicator-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
}
.sianor-cat-rail.has-scroll-bottom .rail-scroll-indicator-bottom {
    opacity: 1;
}

/* Internal Scroll Container */
.sianor-cat-rail-inner {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 90px 4px;
    padding-top: 86px;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.5) transparent;
}
.sianor-cat-rail-inner::-webkit-scrollbar {
    width: 3px;
}
.sianor-cat-rail-inner::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.6);
    border-radius: 4px;
    transition: background 0.2s ease;
}
.sianor-cat-rail-inner:hover::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.85);
}

/* Category Item Wrapper */
.cat-rail-item-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Category Navigation Item */
.cat-rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 58px;
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #475569;
    background: transparent;
    transition: background 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.cat-rail-item:hover {
    background: var(--cat-accent-bg, rgba(249, 115, 22, 0.06));
    color: #0f172a;
}
.cat-rail-item.active {
    background: var(--cat-accent-bg, rgba(249, 115, 22, 0.1));
    color: var(--cat-accent, #ea580c);
}

/* Signature Left Indicator Pill */
.cat-rail-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3.5px;
    height: 26px;
    border-radius: 0 4px 4px 0;
    background: var(--cat-accent, #f97316);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    opacity: 0;
}
.cat-rail-item:hover::before {
    transform: translateY(-50%) scaleY(0.5);
    opacity: 0.5;
}
.cat-rail-item.active::before {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
    box-shadow: 0 0 8px var(--cat-accent, #f97316);
}

/* Focus Visible State (WCAG 2.1 AA) */
.cat-rail-item:focus-visible {
    outline: 2px solid var(--cat-accent, #f97316);
    outline-offset: 2px;
}

/* Category Icon Box */
.cat-rail-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--cat-accent, #475569);
    background: var(--cat-accent-bg, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    flex-shrink: 0;
    overflow: hidden;
}
.cat-rail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.cat-rail-item:hover .cat-rail-icon {
    transform: translateY(-1px) scale(1.06);
    border-color: var(--cat-accent, #f97316);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: var(--cat-accent, #f97316);
}
.cat-rail-item.active .cat-rail-icon {
    border-color: var(--cat-accent, #f97316);
    box-shadow: 0 0 0 1px var(--cat-accent, #f97316);
    color: var(--cat-accent, #f97316);
}

/* Category Micro-Label */
.cat-rail-label {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    max-width: 54px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #64748b;
    transition: color 0.15s ease;
    letter-spacing: -0.1px;
}
.cat-rail-item:hover .cat-rail-label {
    color: #0f172a;
    font-weight: 700;
}
.cat-rail-item.active .cat-rail-label {
    color: var(--cat-accent, #ea580c);
    font-weight: 700;
}

/* Category Divider Line */
.cat-rail-divider {
    width: 32px;
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

/* Multi-Level Category Flyout Hidden in Rail (Moved via Portal) */
.cat-rail-flyout {
    display: none;
}

/* ── Multi-Level Category Flyout Portal (Unclipped, Hardware-Accelerated 2-Stage Cascading) ── */
.cat-rail-flyout-portal {
    position: fixed;
    left: 66px;
    width: 700px;
    max-width: calc(100vw - 84px);
    background: #ffffff;
    border-radius: 0 16px 16px 0;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--cat-portal-color, #f97316);
    box-shadow: 20px 25px 50px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    max-height: calc(100vh - 96px);
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .cat-rail-flyout-portal {
        transition: none !important;
        transform: none !important;
    }
}
.cat-rail-flyout-portal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
/* Safe hover bridge preventing accidental closing on diagonal pointer travel */
.cat-rail-flyout-portal::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: auto;
}

/* Two-Panel Cascading Container */
.cr-portal-panes {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 96px);
}

/* Panel 1: Subcategories List (Level 2) */
.cr-stage-subcats {
    width: 320px;
    min-width: 280px;
    padding: 20px 18px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.cr-stage-subcats::-webkit-scrollbar {
    width: 4px;
}
.cr-stage-subcats::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.cr-stage-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}
.cr-stage-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cr-stage-title {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}
.cr-stage-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f97316;
    background: #fff7ed;
    padding: 2px 7px;
    border-radius: 8px;
    display: inline-block;
}
.cr-subcats-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}
.cr-subcats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: auto;
}
.cr-subcat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.14s ease;
}
.cr-subcat-row:hover,
.cr-subcat-row.active {
    background: #fff7ed;
    color: #ea580c;
    border-left-color: var(--cat-portal-color, #f97316);
    transform: translateX(2px);
}
.cr-subcat-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cr-subcat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: color 0.14s ease;
}
.cr-subcat-row:hover .cr-subcat-badge,
.cr-subcat-row.active .cr-subcat-badge {
    color: #ea580c;
    background: #ffffff;
    border-color: rgba(234, 88, 12, 0.3);
}
.cr-subcat-arrow {
    font-size: 0.65rem;
    color: #cbd5e1;
    transition: transform 0.14s ease, color 0.14s ease;
}
.cr-subcat-row:hover .cr-subcat-arrow,
.cr-subcat-row.active .cr-subcat-arrow {
    color: #ea580c;
    transform: translateX(2px);
}
.cr-stage-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 14px;
    transition: background 0.18s;
}
.cr-stage-all-btn:hover {
    background: #f97316;
}

/* Panel 2: Subcategory Child Categories (Level 3) & Real Products */
.cr-stage-details {
    flex: 1;
    min-width: 320px;
    padding: 20px 20px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    transition: opacity 0.15s ease;
}
.cr-stage-details::-webkit-scrollbar {
    width: 4px;
}
.cr-stage-details::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.cr-details-breadcrumb {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cr-details-title {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}
.cr-details-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f97316;
    background: #fff7ed;
    padding: 1px 7px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Micro-Categories (Level 3 Children) Chips */
.cr-child-chips-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
}
.cr-child-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.cr-child-chip {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: all 0.14s ease;
}
.cr-child-chip:hover {
    background: #fff7ed;
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.4);
    transform: translateY(-1px);
}

/* Products in Flyout Panel 2 */
.cr-details-prods-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}
.cr-details-prods-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: auto;
}
.cr-flyout-prod-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.14s ease;
}
.cr-flyout-prod-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: translateX(2px);
}
.cr-flyout-prod-thumb {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}
.cr-flyout-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cr-flyout-prod-info {
    flex: 1;
    min-width: 0;
}
.cr-flyout-prod-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cr-flyout-prod-price {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #ea580c;
}
.cr-details-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f97316;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 12px;
    transition: background 0.18s;
}
.cr-details-all-btn:hover {
    background: #ea580c;
}

/* Horizontal Space Detection & Responsive Stacked Mode */
@media (max-width: 1240px) {
    .cat-rail-flyout-portal {
        width: 600px;
    }
    .cr-stage-subcats {
        width: 270px;
        min-width: 250px;
    }
    .cr-stage-details {
        min-width: 270px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 16.1 MOBILE TOUCH-FIRST HIERARCHICAL DRILL-DOWN CATEGORIES NAVIGATOR ──
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-cat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-cat-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-cat-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.2);
}
@media (prefers-reduced-motion: reduce) {
    .mobile-cat-drawer {
        transition: none !important;
    }
    .mobile-cat-track {
        transition: none !important;
    }
}
.mobile-cat-drawer.active {
    transform: translateX(0);
}

.mobile-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    min-height: 56px;
}
.mobile-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.mobile-cat-title {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-cat-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #f97316;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
.mobile-cat-back-btn:hover {
    color: #ea580c;
}
.mobile-cat-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.mobile-cat-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sliding Viewport Container */
.mobile-cat-viewport {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.mobile-cat-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Level Panes (1: Roots, 2: Subcategories, 3: Children & Products) */
.mobile-cat-level {
    width: 33.3333%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

/* Row Items */
.mob-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 10px;
    border-radius: 10px;
    border-bottom: 1px solid #f8fafc;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.15s ease;
}
.mob-cat-row:hover,
.mob-cat-row:active {
    background: #fff7ed;
    color: #ea580c;
}
.mob-cat-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.mob-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.mob-cat-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-cat-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.mob-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 10px;
}
.mob-cat-chevron {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Level Context Bar */
.mob-level-context {
    padding: 10px 12px;
    background: #fff7ed;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mob-level-context-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #c2410c;
}
.mob-level-all-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ea580c;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 17. PRODUCT CARD FAMILY REFERENCE ──
   Consolidated authoritatively in Section 21 above.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   ── 18. SERVICE REASSURANCE STRIP (4 TRUST PILLARS) ──
   ═══════════════════════════════════════════════════════════════════════════ */
.trust-strip, .pre-footer-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 32px 0;
    padding: 22px 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.trust-item, .trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trust-icon, .trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #fff7ed;
    color: #f97316;
}
.trust-icon-green { background: #ecfdf5; color: #10b981; }
.trust-icon-blue { background: #eff6ff; color: #3b82f6; }
.trust-icon-amber { background: #fef3c7; color: #d97706; }
.trust-text h4, .trust-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}
.trust-text p, .trust-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}
@media (max-width: 992px) {
    .trust-strip, .pre-footer-trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 580px) {
    .trust-strip, .pre-footer-trust {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 19. MOBILE BOTTOM TAB NAVIGATION BAR (SINGLE AUTHORITATIVE) ──
   ═══════════════════════════════════════════════════════════════════════════ */
.sianor-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.07);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 1025px) {
    .sianor-mobile-bottom-bar { display: none !important; }
}
.mob-bar-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    border: none;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.mob-bar-tab:hover,
.mob-bar-tab.active {
    color: #f97316;
}
.mob-bar-tab-icon {
    font-size: 1.15rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mob-bar-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #f97316;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.mob-bar-center {
    color: #f97316;
}
.mob-bar-center .mob-bar-tab-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff7ed;
    color: #f97316;
    border: 1px solid #fed7aa;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 20. SMART FLOATING WIDGETS OFFSET (NO COLLISION ON MOBILE) ──
   ═══════════════════════════════════════════════════════════════════════════ */
/* Desktop */
.sianor-floating-ad {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 170;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    transition: all 0.25s ease;
}
.sianor-floating-ad.minimized {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    background: #f97316;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}
.sianor-floating-ad.minimized .sianor-float-min-icon {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
}
.sianor-floating-ad.minimized .sianor-float-head,
.sianor-floating-ad.minimized .sianor-float-img-wrap,
.sianor-floating-ad.minimized .sianor-float-body {
    display: none;
}
.sianor-float-min-icon {
    display: none;
}

/* Mobile Offset Protection: Float cleanly 74px above the 60px bottom bar and stay minimized by default */
@media (max-width: 1024px) {
    .sianor-floating-ad:not(.expanded) {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35) !important;
        background: #f97316 !important;
        color: #ffffff !important;
        cursor: pointer;
        overflow: hidden !important;
        padding: 0 !important;
        bottom: 74px !important;
        right: 14px !important;
    }
    .sianor-floating-ad:not(.expanded) .sianor-float-min-icon {
        display: flex !important;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #ffffff;
    }
    .sianor-floating-ad:not(.expanded) .sianor-float-head,
    .sianor-floating-ad:not(.expanded) > div:nth-child(2),
    .sianor-floating-ad:not(.expanded) > div:last-child {
        display: none !important;
    }
    .sianor-floating-ad.expanded {
        bottom: 74px !important;
        right: 14px !important;
        max-width: calc(100vw - 28px) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ── 21. MODERN CLEAN FOOTER ──
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 36px;
    margin-bottom: 44px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-brand-name {
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.footer-brand-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f97316;
}
.footer-brand p {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover {
    background: #f97316;
    border-color: #f97316;
    transform: translateY(-2px);
}
.footer-col h4 {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col ul a {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul a:hover {
    color: #ffffff;
    transform: translateX(3px);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #64748b;
}
.footer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pay-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 19: UNIFIED EXPANDABLE COMMUNICATION HUB & FLOATING LAUNCHER
   ══════════════════════════════════════════════════════════════════════════════ */
.comm-hub-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s;
}
.comm-hub-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sianor-comm-hub-wrapper {
    position: fixed;
    z-index: 1050;
    bottom: 24px;
    left: 82px; /* Clears 66px vertical category rail with 16px comfort gap */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .sianor-comm-hub-wrapper {
        left: 16px;
        /* Position cleanly above mobile bottom bar (60px) + safe area inset */
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── Floating Launcher Trigger Button ── */
.comm-hub-trigger-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25), 0 2px 6px rgba(15, 23, 42, 0.15);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.comm-hub-trigger-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.comm-hub-trigger-btn:active {
    transform: translateY(0) scale(0.96);
}
.comm-hub-trigger-btn:focus-visible {
    outline: 2.5px solid #f97316;
    outline-offset: 3px;
}

/* Icons Inside Trigger Button */
.comm-hub-ico-open,
.comm-hub-ico-close {
    font-size: 1.25rem;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}
.comm-hub-ico-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}
.comm-hub-trigger-btn[aria-expanded="true"] .comm-hub-ico-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}
.comm-hub-trigger-btn[aria-expanded="true"] .comm-hub-ico-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f97316;
}

/* Online Pulse Dot Indicator */
.comm-hub-pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
    animation: commPulse 2s infinite ease-in-out;
}
.comm-hub-trigger-btn[aria-expanded="true"] .comm-hub-pulse-dot {
    display: none;
}
@keyframes commPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.82; }
}

/* Desktop Tooltip */
.comm-hub-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.comm-hub-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #0f172a transparent transparent;
}
@media (hover: hover) {
    .comm-hub-trigger-btn:hover .comm-hub-tooltip,
    .comm-hub-trigger-btn:focus-visible .comm-hub-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}
.comm-hub-trigger-btn[aria-expanded="true"] .comm-hub-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ── Expandable Floating Popover Card ── */
.comm-hub-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 0;
    width: 330px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 0 1px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom left;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s;
}
.comm-hub-popover.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Popover Header */
.comm-hub-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.comm-hub-head-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.comm-hub-head-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.16);
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.comm-hub-head-title {
    font-size: 0.92rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    line-height: 1.2;
}
.comm-hub-head-status {
    font-size: 0.72rem;
    color: #86efac;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.comm-hub-head-status i {
    font-size: 0.45rem;
}
.comm-hub-head-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}
.comm-hub-head-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Popover Body Actions */
.comm-hub-actions {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.comm-hub-actions::-webkit-scrollbar {
    width: 4px;
}
.comm-hub-actions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.comm-hub-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid transparent;
    background: #ffffff;
    transition: all 0.16s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
}
.comm-hub-action:hover,
.comm-hub-action:focus-visible {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(3px);
}
.comm-hub-action:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 1px;
}

.comm-hub-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.comm-hub-action:hover .comm-hub-action-icon {
    transform: scale(1.08);
}
.comm-hub-icon-wa {
    background: #dcfce7;
    color: #16a34a;
}
.comm-hub-icon-tawk {
    background: #eff6ff;
    color: #2563eb;
}
.comm-hub-icon-phone {
    background: #e0f2fe;
    color: #0284c7;
}
.comm-hub-icon-track {
    background: #fff7ed;
    color: #ea580c;
}
.comm-hub-icon-share {
    background: #f5f3ff;
    color: #7c3aed;
}

.comm-hub-action-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.comm-hub-action-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comm-hub-action-sub {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.comm-hub-chevron {
    font-size: 0.72rem;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}
.comm-hub-action:hover .comm-hub-chevron {
    color: #f97316;
    transform: translateX(2px);
}

/* Popover Footer Social Media & Brand Bar */
.comm-hub-footer {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.comm-hub-footer-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comm-hub-social-list {
    display: flex;
    align-items: center;
    gap: 6px;
}
.comm-hub-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.comm-hub-social-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .comm-hub-trigger-btn,
    .comm-hub-popover,
    .comm-hub-pulse-dot,
    .comm-hub-action,
    .comm-hub-ico-open,
    .comm-hub-ico-close {
        animation: none !important;
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION 20: HOMEPAGE COMMERCE-FIRST MARKETPLACE ARCHITECTURE (SIANOR SIGNATURE)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero Slider (Compact, High-Converting) ── */
.sianor-home-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.18);
    height: 400px;
    min-height: 360px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .sianor-home-hero { height: 340px; min-height: 320px; }
}
@media (max-width: 640px) {
    .sianor-home-hero { height: 280px; min-height: 260px; border-radius: 16px; margin-bottom: 16px; }
}
.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 36px 48px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 55%, transparent 100%);
    pointer-events: none;
}
@media (max-width: 640px) {
    .hero-slide {
        padding: 24px 20px;
    }
    .hero-slide::after {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    }
}
.hero-slide-body {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: #ffffff;
}
.hero-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fed7aa;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.hero-slide-title {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 12px;
}
@media (max-width: 640px) {
    .hero-slide-title { font-size: 1.45rem; margin-bottom: 8px; }
}
.hero-slide-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.48;
    margin: 0 0 20px;
}
@media (max-width: 640px) {
    .hero-slide-desc { font-size: 0.8rem; margin-bottom: 14px; line-height: 1.35; }
}
.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: background 0.18s, transform 0.12s;
}
.hero-slide-cta:hover {
    background: #ea580c;
    transform: translateY(-1px);
    color: #ffffff;
}
.hero-dots-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}
.hero-dot-btn.active {
    width: 24px;
    background: #f97316;
}

/* ── Trust & Reassurance Badges ── */
.sianor-trust-reassurance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 1024px) {
    .sianor-trust-reassurance { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sianor-trust-reassurance { grid-template-columns: 1fr; gap: 8px; }
}
.trust-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s, border-color 0.15s;
}
.trust-item-card:hover {
    transform: translateY(-1px);
    border-color: #e2e8f0;
}
.trust-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.trust-item-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.trust-item-sub {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
    margin-top: 2px;
}

/* ── Quick Categories Discovery Strip ── */
.sianor-quick-cats-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-bottom: 24px;
}
.sianor-quick-cats-strip::-webkit-scrollbar { display: none; }
.quick-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 68px;
    flex-shrink: 0;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.15s;
}
.quick-cat-chip:hover {
    transform: translateY(-2px);
}
.quick-cat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.quick-cat-chip:hover .quick-cat-avatar {
    border-color: #f97316;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
}
.quick-cat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.quick-cat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Commerce Rails & Streams ── */
.commerce-rail-section {
    margin-bottom: 34px;
}
.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rail-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rail-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.rail-title {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-display), 'Space Grotesk', sans-serif;
    color: #0f172a;
    margin: 0;
}
@media (max-width: 640px) {
    .rail-title { font-size: 1.1rem; }
}
.rail-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.rail-subtext {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 1px;
}
.rail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rail-view-all-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f97316;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.rail-view-all-btn:hover {
    background: #fff7ed;
    color: #ea580c;
}

/* Flash Sales Dark Accent Box */
.flash-commerce-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 22px 24px;
    color: #ffffff;
    margin-bottom: 34px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
@media (max-width: 640px) {
    .flash-commerce-section { padding: 16px 14px; border-radius: 16px; }
}
.flash-commerce-section .rail-title {
    color: #ffffff;
}
.flash-commerce-section .rail-subtext {
    color: #94a3b8;
}
.flash-countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 12px;
}
.flash-cd-digit {
    font-family: var(--font-mono), monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fbbf24;
}
.flash-cd-sep {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* Horizontal Scroll Track with Mobile Peek */
.rail-scroll-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.rail-scroll-track::-webkit-scrollbar { display: none; }
.rail-scroll-track .product-card {
    flex: 0 0 220px;
    max-width: 230px;
    scroll-snap-align: start;
}
@media (max-width: 640px) {
    .rail-scroll-track .product-card {
        flex: 0 0 68vw;
        max-width: 210px;
    }
}

/* Grid Mode for Commerce Highlights */
.commerce-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) {
    .commerce-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .commerce-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .commerce-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 360px) {
    .commerce-grid-5 { grid-template-columns: 1fr; }
}

/* Vita Malagasy Signature Accent Section */
.vm-signature-section {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 34px;
}
@media (max-width: 640px) {
    .vm-signature-section { padding: 16px 14px; border-radius: 16px; }
}

