@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary: #f9f9fb;
    --bg-tertiary: #f1f1f2;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #eeeeee;
    --border-hover: #dddddd;
    --accent: #000000;
    --white: #ffffff;
    --input-bg: #ffffff;
    --card-bg: #ffffff;
    --hover-bg: #f5f5f5;
    --btn-solid-hover: #333333;
    --container-width: 1200px;

    --success-bg: #eefdf5;
    --success-text: #15803d;
    --danger-bg: #fdf2f2;
    --danger-text: #b91c1c;
    --warning-bg: #fffbeb;
    --warning-text: #a16207;
    --info-bg: #f0f7ff;
    --info-text: #0369a1;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* ==========================================================================
       Typography System (10 Streamlined Styles)
       ========================================================================== */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: var(--font-main);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* 1. Display (Hero Banner) */
    --type-display-size: 36px;
    --type-display-weight: 800;
    --type-display-line: 1.15;
    --type-display-spacing: -0.03em;

    /* 2. H1 (Page Title) */
    --type-h1-size: 26px;
    --type-h1-weight: 800;
    --type-h1-line: 1.2;
    --type-h1-spacing: -0.025em;

    /* 3. H2 (Section Title) */
    --type-h2-size: 20px;
    --type-h2-weight: 700;
    --type-h2-line: 1.25;
    --type-h2-spacing: -0.02em;

    /* 4. H3 (Card / Block Header) */
    --type-h3-size: 16px;
    --type-h3-weight: 700;
    --type-h3-line: 1.35;
    --type-h3-spacing: -0.015em;

    /* 5. H4 (Component Subheading) */
    --type-h4-size: 14px;
    --type-h4-weight: 700;
    --type-h4-line: 1.4;
    --type-h4-spacing: -0.01em;

    /* 6. H5 (Eyebrow / Overline) */
    --type-h5-size: 11px;
    --type-h5-weight: 800;
    --type-h5-line: 1.2;
    --type-h5-spacing: 0.1em;

    /* 7. H6 (Tiny Text / Status Badge) */
    --type-h6-size: 10px;
    --type-h6-weight: 800;
    --type-h6-line: 1.2;
    --type-h6-spacing: 0.05em;

    /* 8. Body (Standard Paragraph / Prose) */
    --type-body-size: 14px;
    --type-body-weight: 400;
    --type-body-line: 1.6;

    /* 9. UI Small (Buttons, Forms, Captions) */
    --type-ui-size: 12px;
    --type-ui-weight: 600;
    --type-ui-line: 1.4;

    /* 10. Code & Technical (Monospace / IDs / SKU) */
    --type-mono-size: 12px;
    --type-mono-weight: 600;
    --type-mono-line: 1.5;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Storefront Themes (Color-focused)
   ========================================================================== */

/* Default / Minimal Clean */
body.theme-default,
body.theme-minimal-clean {
    --bg-primary: #ffffff;
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --accent: #000000;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f8fafc;
    --white: #ffffff;
}

/* Amber Gold */
body.theme-amber-gold {
    --bg-primary: #faf8f5;
    --bg-primary-rgb: 250, 248, 245;
    --bg-secondary: #f4eee6;
    --bg-tertiary: #ebdccb;
    --text-primary: #2a241e;
    --text-secondary: #6e6256;
    --border-color: #e5dacd;
    --border-hover: #d4af37;
    --accent: #d4af37;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f7f1e8;
    --white: #ffffff;
}

/* Emerald Luxe */
body.theme-emerald-luxe {
    --bg-primary: #0a1c14;
    --bg-primary-rgb: 10, 28, 20;
    --bg-secondary: #122e22;
    --bg-tertiary: #1b4030;
    --text-primary: #e8f5e9;
    --text-secondary: #90c6a2;
    --border-color: #1e4d39;
    --border-hover: #50c878;
    --accent: #50c878;
    --card-bg: #122e22;
    --input-bg: #163628;
    --hover-bg: #1e4d39;
    --white: #0a1c14;
}

/* Rose Gold */
body.theme-rose-gold {
    --bg-primary: #faf5f5;
    --bg-primary-rgb: 250, 245, 245;
    --bg-secondary: #f3e9e9;
    --bg-tertiary: #e9d7d7;
    --text-primary: #2d1f23;
    --text-secondary: #70555c;
    --border-color: #e4cfcf;
    --border-hover: #e0a96d;
    --accent: #e0a96d;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f8efef;
    --white: #ffffff;
}

/* Royal Sapphire */
body.theme-royal-sapphire {
    --bg-primary: #0b132b;
    --bg-primary-rgb: 11, 19, 43;
    --bg-secondary: #1c2541;
    --bg-tertiary: #273459;
    --text-primary: #edf2f4;
    --text-secondary: #8d99ae;
    --border-color: #2b3a67;
    --border-hover: #3a86ff;
    --accent: #3a86ff;
    --card-bg: #1c2541;
    --input-bg: #222d4f;
    --hover-bg: #2b3a67;
    --white: #0b132b;
}

/* Velvet Plum */
body.theme-velvet-plum {
    --bg-primary: #1a0b1e;
    --bg-primary-rgb: 26, 11, 30;
    --bg-secondary: #2a1432;
    --bg-tertiary: #3c1d47;
    --text-primary: #f4e8f7;
    --text-secondary: #b590c2;
    --border-color: #482354;
    --border-hover: #c084fc;
    --accent: #c084fc;
    --card-bg: #2a1432;
    --input-bg: #33193d;
    --hover-bg: #482354;
    --white: #1a0b1e;
}

/* Warm Sand */
body.theme-warm-sand {
    --bg-primary: #faf8f5;
    --bg-primary-rgb: 250, 248, 245;
    --bg-secondary: #f2ece4;
    --bg-tertiary: #e6dbcd;
    --text-primary: #2d2825;
    --text-secondary: #6e645e;
    --border-color: #e0d5c8;
    --border-hover: #c68b59;
    --accent: #c68b59;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f6f0e8;
    --white: #ffffff;
}

/* Nordic Frost */
body.theme-nordic-frost {
    --bg-primary: #f4f7f6;
    --bg-primary-rgb: 244, 247, 246;
    --bg-secondary: #e7ecea;
    --bg-tertiary: #d7e0dd;
    --text-primary: #1a2e35;
    --text-secondary: #4a626a;
    --border-color: #cfdad6;
    --border-hover: #4a7c59;
    --accent: #4a7c59;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #ebf0ee;
    --white: #ffffff;
}

/* Terracotta */
body.theme-terracotta-sun {
    --bg-primary: #faf6f0;
    --bg-primary-rgb: 250, 246, 240;
    --bg-secondary: #f2e8dc;
    --bg-tertiary: #e6d5c3;
    --text-primary: #36221a;
    --text-secondary: #705246;
    --border-color: #e0cebb;
    --border-hover: #c85a32;
    --accent: #c85a32;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f7ede1;
    --white: #ffffff;
}

/* Lavender Mist */
body.theme-lavender-mist {
    --bg-primary: #f7f5fa;
    --bg-primary-rgb: 247, 245, 250;
    --bg-secondary: #eee9f5;
    --bg-tertiary: #e1d6ed;
    --text-primary: #231b30;
    --text-secondary: #5d4e73;
    --border-color: #decfe8;
    --border-hover: #7c3aed;
    --accent: #7c3aed;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f2ecf8;
    --white: #ffffff;
}

/* Sage Linen */
body.theme-sage-linen {
    --bg-primary: #f5f7f4;
    --bg-primary-rgb: 245, 247, 244;
    --bg-secondary: #e8ebe5;
    --bg-tertiary: #d8ded3;
    --text-primary: #1c2920;
    --text-secondary: #4a5c50;
    --border-color: #cfd6ca;
    --border-hover: #3b6e4c;
    --accent: #3b6e4c;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #edf0eb;
    --white: #ffffff;
}

/* Champagne Silk */
body.theme-champagne-silk {
    --bg-primary: #fdfbf7;
    --bg-primary-rgb: 253, 251, 247;
    --bg-secondary: #f5efe4;
    --bg-tertiary: #eae0cf;
    --text-primary: #2b261f;
    --text-secondary: #695e50;
    --border-color: #e2d7c5;
    --border-hover: #b8860b;
    --accent: #b8860b;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f8f3ea;
    --white: #ffffff;
}

/* Midnight Obsidian */
body.theme-midnight-obsidian,
body.theme-obsidian {
    --bg-primary: #0f0f12;
    --bg-primary-rgb: 15, 15, 18;
    --bg-secondary: #18181d;
    --bg-tertiary: #23232a;
    --text-primary: #f1f1f5;
    --text-secondary: #9292a0;
    --border-color: #2b2b36;
    --border-hover: #6366f1;
    --accent: #6366f1;
    --card-bg: #18181d;
    --input-bg: #1e1e24;
    --hover-bg: #2b2b36;
    --white: #0f0f12;
}

/* ==========================================================================
   Admin Panel Appearance
   ========================================================================== */

/* Admin Dark Mode Toggle Class */
body.admin-dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1f1f1f;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --border-color: #262626;
    --border-hover: #404040;
    --white: #000000;
    --card-bg: #121212;
    --input-bg: #1a1a1a;
    --hover-bg: #1f1f1f;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

body.admin-dark .admin-layout,
body.admin-dark .admin-content {
    background: #121212;
}

body.admin-dark .sidebar {
    background: #0a0a0a;
}

body.admin-dark .sidebar-brand {
    color: #fff;
}

body.admin-dark .card,
body.admin-dark .metric-card,
body.admin-dark .quick-action-btn {
    background: #121212 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: #262626 !important;
    color: #f5f5f5 !important;
}

body.admin-dark h1,
body.admin-dark h2,
body.admin-dark h3,
body.admin-dark h4,
body.admin-dark h5,
body.admin-dark h6,
body.admin-dark strong,
body.admin-dark b,
body.admin-dark .content-wrapper,
body.admin-dark .setting-info h4,
body.admin-dark .info-value {
    color: #f5f5f5 !important;
}

body.admin-dark p,
body.admin-dark label,
body.admin-dark .setting-info p,
body.admin-dark .breadcrumbs li,
body.admin-dark .breadcrumbs a,
body.admin-dark .info-label,
body.admin-dark small {
    color: #a3a3a3 !important;
}

body.admin-dark table td,
body.admin-dark table td span:not(.type-pill):not(.badge):not(.status-badge) {
    color: #e5e5e5;
}

body.admin-dark table tr:hover td {
    background: #1a1a1a;
}

body.admin-dark .table-container {
    background: #121212;
}

body.admin-dark th {
    background: #1a1a1a;
    color: #a3a3a3;
}

body.admin-dark .btn {
    background: #1a1a1a;
    color: #fff;
    border-color: #333;
}

body.admin-dark .btn:hover {
    background: #262626;
    color: #fff;
    border-color: #555;
}

body.admin-dark .btn-solid {
    background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
    color: #111827;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.admin-dark .btn-solid:hover {
    background: linear-gradient(180deg, #f3f4f6 0%, #d1d5db 100%);
}

/* Dark Mode Form Inputs & Search Fields */
body.admin-dark .input-field,
body.admin-dark input,
body.admin-dark input[type="text"],
body.admin-dark input[type="email"],
body.admin-dark input[type="password"],
body.admin-dark input[type="number"],
body.admin-dark input[type="tel"],
body.admin-dark input[type="url"],
body.admin-dark input[type="search"],
body.admin-dark select,
body.admin-dark textarea,
body.admin-dark .search-input,
body.admin-dark .search-container,
body.admin-dark .search-container input {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
    border-color: #333333 !important;
}

body.admin-dark .input-field:focus,
body.admin-dark input:focus,
body.admin-dark select:focus,
body.admin-dark textarea:focus,
body.admin-dark .search-input:focus,
body.admin-dark .search-container input:focus {
    border-color: #666666 !important;
    background-color: #222222 !important;
}

/* Dark Mode Dropdowns & Search Results Boxes */
body.admin-dark .search-results,
body.admin-dark #searchResults,
body.admin-dark .dropdown-menu,
body.admin-dark .dropdown-trigger,
body.admin-dark .collections-dropdown .dropdown-trigger,
body.admin-dark .collections-dropdown .dropdown-menu {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
    border-color: #333333 !important;
}

body.admin-dark .search-item,
body.admin-dark #searchResults>div {
    border-bottom-color: #262626 !important;
    color: #f5f5f5 !important;
}

body.admin-dark .search-item:hover,
body.admin-dark #searchResults>div:hover {
    background-color: #262626 !important;
    background: #262626 !important;
}

/* Dark Mode Toggle Switches — scoped to exclude .switch containers */
body.admin-dark :not(.switch):not(.switch-sm) > .slider {
    background-color: #333333 !important;
    border: 1px solid #444444 !important;
}

body.admin-dark :not(.switch):not(.switch-sm) > .slider:before {
    background-color: #cccccc !important;
}

body.admin-dark :not(.switch):not(.switch-sm) > input:checked + .slider {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

body.admin-dark :not(.switch):not(.switch-sm) > input:checked + .slider:before {
    background-color: #ffffff !important;
}

/* Dark mode for actual toggle switches */
body.admin-dark .switch .slider,
body.admin-dark .switch-sm .slider {
    background-color: #374151;
    border: none !important;
}

body.admin-dark .switch .slider:before,
body.admin-dark .switch-sm .slider:before {
    background-color: #ffffff !important;
}

body.admin-dark .switch input:checked + .slider,
body.admin-dark .switch-sm input:checked + .slider {
    background-color: #10b981;
}

/* Dark Mode Checkboxes (Native & Custom .checkmark) */
body.admin-dark input[type="checkbox"] {
    accent-color: #2563eb !important;
    filter: none;
}

body.admin-dark .checkmark {
    background-color: #1a1a1a !important;
    border: 2px solid #555555 !important;
    border-radius: 4px;
}

body.admin-dark .checkbox-container:hover input~.checkmark {
    border-color: #ffffff !important;
}

body.admin-dark .checkbox-container input:checked~.checkmark {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

body.admin-dark .checkmark:after {
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
}

/* Dark Mode Sync Status Badges */
body.admin-dark .sync-badge.online {
    background: #064e3b !important;
    color: #a7f3d0 !important;
    border-color: #047857 !important;
}

body.admin-dark .sync-badge.offline {
    background: #78350f !important;
    color: #fde68a !important;
    border-color: #b45309 !important;
}

body.admin-dark .sync-badge.pending {
    background: #7c2d12 !important;
    color: #fed7aa !important;
    border-color: #c2410c !important;
}

body.admin-dark .sync-badge.syncing {
    background: #1e3a8a !important;
    color: #bfdbfe !important;
    border-color: #1d4ed8 !important;
}

/* Dark Mode Modal Overlay & Card */
body.admin-dark .modal-card {
    background: #18181b !important;
    color: #f4f4f5 !important;
    border: 1px solid #27272a !important;
}

body.admin-dark .modal-header,
body.admin-dark .modal-footer {
    background: #121212 !important;
    border-color: #27272a !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    touch-action: pan-x pan-y;
}

body {
    font-family: var(--font-main);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--type-body-line);
    -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   Typography Hierarchy (10-Style Design System)
   ========================================================================== */

/* 1. Display (Hero Banner / Splash) */
.type-display, .display-hero, .hero-split-heading {
    font-family: var(--type-display-font, var(--font-main));
    font-size: var(--type-display-size);
    font-weight: var(--type-display-weight);
    font-style: var(--type-display-style, normal);
    line-height: var(--type-display-line);
    letter-spacing: var(--type-display-spacing);
    color: var(--text-primary);
}

/* 2. H1 (Page Title) */
h1, .type-h1 {
    font-family: var(--type-h1-font, var(--font-main));
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    font-style: var(--type-h1-style, normal);
    line-height: var(--type-h1-line);
    letter-spacing: var(--type-h1-spacing);
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* 3. H2 (Section Title / Modal Title) */
h2, .type-h2 {
    font-family: var(--type-h2-font, var(--font-main));
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    font-style: var(--type-h2-style, normal);
    line-height: var(--type-h2-line);
    letter-spacing: var(--type-h2-spacing);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* 4. H3 (Card / Block Header) */
h3, .type-h3 {
    font-family: var(--type-h3-font, var(--font-main));
    font-size: var(--type-h3-size);
    font-weight: var(--type-h3-weight);
    font-style: var(--type-h3-style, normal);
    line-height: var(--type-h3-line);
    letter-spacing: var(--type-h3-spacing);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* 5. H4 (Component Subheading / Fieldset Header) */
h4, .type-h4 {
    font-family: var(--type-h4-font, var(--font-main));
    font-size: var(--type-h4-size);
    font-weight: var(--type-h4-weight);
    font-style: var(--type-h4-style, normal);
    line-height: var(--type-h4-line);
    letter-spacing: var(--type-h4-spacing);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* 6. H5 (Eyebrow / Overline / Micro-Header) */
h5, .type-h5, .type-eyebrow, .eyebrow {
    font-family: var(--type-h5-font, var(--font-main));
    font-size: var(--type-h5-size);
    font-weight: var(--type-h5-weight);
    font-style: var(--type-h5-style, normal);
    line-height: var(--type-h5-line);
    letter-spacing: var(--type-h5-spacing);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    display: inline-block;
}

/* 7. H6 (Tiny Text / Status Pill / Micro-Label) */
h6, .type-h6, .type-tiny {
    font-family: var(--type-h6-font, var(--font-main));
    font-size: var(--type-h6-size);
    font-weight: var(--type-h6-weight);
    font-style: var(--type-h6-style, normal);
    line-height: var(--type-h6-line);
    letter-spacing: var(--type-h6-spacing);
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* 8. Body (Standard Paragraph / Prose) */
p, .type-body {
    font-family: var(--type-body-font, var(--font-main));
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    font-style: var(--type-body-style, normal);
    line-height: var(--type-body-line);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* 9. UI Small (Buttons, Form Controls, Captions, Helpers) */
small, .type-ui, .type-small, .caption, .field-hint {
    font-family: var(--type-ui-font, var(--font-main));
    font-size: var(--type-ui-size);
    font-weight: var(--type-ui-weight);
    font-style: var(--type-ui-style, normal);
    line-height: var(--type-ui-line);
}

/* 10. Code & Technical (Monospace / Transaction IDs / SKU / Webhooks) */
code, pre, kbd, samp, .type-mono, .font-mono {
    font-family: var(--type-mono-font, var(--font-mono));
    font-size: var(--type-mono-size);
    font-weight: var(--type-mono-weight);
    font-style: var(--type-mono-style, normal);
    line-height: var(--type-mono-line);
}

code {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Base Components */
.container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.page-wrap {
    padding-top: 60px;
    padding-bottom: 100px;
}

.mobile-toggle {

    display: none;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    margin-right: 16px;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* ==========================================================================
   App Promotion Banner
   ========================================================================== */
.app-promo-banner {
    background: linear-gradient(90deg, #111111 0%, #333333 100%);
    color: #fff;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 1001;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.promo-text {
    opacity: 0.8;
    letter-spacing: -0.01em;
}

.app-promo-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.app-promo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-promo-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-promo-btn svg {
    width: 16px;
    height: 16px;
}

.close-promo:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .app-promo-banner .container {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px !important;
    }

    .promo-text {
        font-size: 11px;
        max-width: 80%;
    }

    .app-promo-links {
        width: 100%;
        justify-content: center;
    }

    .close-promo {
        top: 12px;
        right: 12px !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}

.btn:hover {
    border-color: var(--border-hover);
    background: var(--hover-bg);
}

.btn-solid {
    background: linear-gradient(180deg, #2b3545 0%, #111827 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.btn-solid:hover {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.btn-solid:active {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(1px);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

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

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    max-width: 100vw;
    overflow-x: hidden;
}

.admin-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: #f8fafc;
    padding: 40px 60px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .admin-content {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px 16px;
    }
}

.content-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}

input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select,
.field-input,
.field-textarea,
.field-select {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .content-wrapper {
        margin: 0 auto;
        /* Centered within the main area */
    }
}

/* ==========================================================================
   Storefront Layout Width Selector (Global Component)
   ========================================================================== */
.layout-width-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}
.layout-width-card {
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-md, 10px);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}
.layout-width-card:hover {
    border-color: var(--border-hover, #cbd5e1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.layout-width-card.active {
    border-color: #0f172a;
    background: var(--bg-secondary, #f8fafc);
    box-shadow: 0 0 0 1px #0f172a, 0 4px 12px rgba(15, 23, 42, 0.08);
}
.layout-monitor-icon {
    width: 62px;
    height: 38px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 3px;
    box-sizing: border-box;
}
.layout-width-card.active .layout-monitor-icon {
    border-color: #0f172a;
    background: #ffffff;
}
.layout-screen-bar {
    height: 18px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.layout-width-card.active .layout-screen-bar {
    background: #0f172a;
}
.layout-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 2px;
}
.layout-card-desc {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono, monospace);
}
.layout-check-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
}
.layout-width-card.active .layout-check-badge {
    display: flex;
}
body.admin-dark .layout-width-card.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 0 1px #38bdf8;
}
body.admin-dark .layout-width-card.active .layout-monitor-icon {
    border-color: #38bdf8;
    background: #0f172a;
}
body.admin-dark .layout-width-card.active .layout-screen-bar {
    background: #38bdf8;
}
body.admin-dark .layout-width-card.active .layout-check-badge {
    background: #38bdf8;
    color: #0f172a;
}

/* Admin Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover, rgba(0, 0, 0, 0.15)) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 2px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-hover, rgba(0, 0, 0, 0.15));
    border-radius: 2px;
}

.sidebar.collapsed {
    width: 80px;
    padding: var(--spacing-lg) 0;
}

.sidebar.collapsed:hover {
    width: 240px;
    padding: 16px 12px;
}

.sidebar-brand {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 8px;
    border-bottom: none !important;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
    gap: 0;
}

.sidebar.collapsed:not(:hover) .sidebar-brand-text {
    display: none;
}

.sidebar-nav {
    list-style: none;
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    transition: var(--transition);
}

.sidebar.collapsed:not(:hover) .sidebar-nav a {
    justify-content: center;
    padding: 0;
    height: 40px;
    width: 40px;
    margin: 0 auto 6px auto;
}

.sidebar.collapsed:not(:hover) .nav-label {
    display: none;
}

.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Sub-menu groups inside gray box container */
.sidebar-nav-group {
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: background 0.2s ease;
}

.sidebar-nav-group.open {
    background: var(--hover-bg);
}

.sidebar-nav-group .nav-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.sidebar-nav-group .nav-main-link:hover,
.sidebar-nav-group .nav-main-link.active {
    color: var(--text-primary);
}

.sidebar-nav-group.open .nav-main-link {
    color: var(--text-primary);
    font-weight: 700;
}

.sidebar-nav-group .chevron-icon {
    transition: transform 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.sidebar-nav-group.open .chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-sub-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 8px 0 36px;
    gap: 2px;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out, padding 0.25s ease-in-out;
}

.sidebar-nav-group.open .nav-sub-list {
    max-height: 350px;
    opacity: 1;
    padding: 2px 8px 8px 36px;
}

.nav-sub-list a {
    font-size: 12px;
    padding: 6px 10px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
    display: block;
    margin-bottom: 0 !important;
}

.nav-sub-list a:hover {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.06) !important;
}

.nav-sub-list a.active {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.08) !important;
    font-weight: 700;
}

body.admin-dark .nav-sub-list a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.admin-dark .nav-sub-list a.active {
    background: rgba(255, 255, 255, 0.15) !important;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #000;
    color: #fff;
    font-size: var(--type-h6-size);
    font-weight: var(--type-h6-weight);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    transition: var(--transition);
}

.sidebar-nav a:hover .nav-badge {
    border-color: var(--white);
}

.sidebar.collapsed .nav-badge {
    top: -2px;
    right: -2px;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar.collapsed .nav-label {
    display: none;
}

.sidebar.collapsed:hover {
    width: 260px;
    padding: var(--spacing-lg);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed:hover .sidebar-brand {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 var(--spacing-lg);
}

.sidebar.collapsed:hover .sidebar-brand-text,
.sidebar.collapsed:hover .nav-label {
    display: block;
}

.sidebar.collapsed:hover .sidebar-nav a {
    justify-content: flex-start;
    padding: 12px 16px;
    width: 100%;
}

.sidebar.collapsed:hover .nav-icon {
    margin-right: 12px;
}

.sidebar-nav>li>a:hover,
.sidebar-nav>li>a.active {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-group-active {
    background: var(--white);
    border-radius: var(--radius-md);
    padding-bottom: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 4px;
}

.nav-group-active>a:first-child {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 700;
}

.sidebar.collapsed .nav-group-active {
    background: transparent;
    padding-bottom: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.sidebar.collapsed .nav-group-active>a:first-child {
    background: var(--white) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md);
    margin: 0 auto 8px auto !important;
    display: flex !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
    color: var(--text-primary) !important;
}

.nav-sub {
    display: none;
    flex-direction: column;
    padding-left: 48px;
    margin: 0;
}

.nav-sub.active {
    display: flex;
}

.nav-sub a {
    padding: 4px 0 !important;
    font-size: 11px !important;
    color: #888 !important;
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
}

.nav-sub a:hover,
.nav-sub a.sub-active {
    color: var(--text-primary) !important;
    background: transparent !important;
    font-weight: 600;
}

.sidebar.collapsed:not(:hover) .nav-sub {
    display: none !important;
}

.sidebar-toggle {
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    white-space: nowrap;
    border: 1px solid transparent;
    gap: 6px;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.product-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-badges-row .badge {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge svg {
    flex-shrink: 0;
}

.badge-success {
    background: rgba(21, 128, 61, 0.08);
    color: var(--success-text);
    border-color: rgba(21, 128, 61, 0.15);
}

.badge-danger {
    background: rgba(185, 28, 28, 0.08);
    color: var(--danger-text);
    border-color: rgba(185, 28, 28, 0.15);
}

.badge-info {
    background: rgba(3, 105, 161, 0.08);
    color: var(--info-text);
    border-color: rgba(3, 105, 161, 0.15);
}

.badge-warning {
    background: rgba(161, 98, 7, 0.08);
    color: var(--warning-text);
    border-color: rgba(161, 98, 7, 0.15);
}

.badge-dark {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.badge-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
    font-weight: 700;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Catalogify Luxury Notification Toasters System
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
    max-width: 440px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    animation: toastSlideUpIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.toast:hover {
    box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.45);
}

.toast.toast-hiding {
    opacity: 0 !important;
    transform: translateY(12px) scale(0.96) !important;
}

.toast-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    word-break: break-word;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.toast-message {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.toast-action-wrapper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px auto;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}
.toast-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Progress bar timer */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

/* Toast Variants */
.toast.toast-success,
.toast.success {
    border-left: 3.5px solid #10b981;
}
.toast.toast-success .toast-icon-badge,
.toast.success .toast-icon-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}
.toast.toast-success .toast-progress-bar,
.toast.success .toast-progress-bar {
    background: #10b981;
}

.toast.toast-error,
.toast.error {
    border-left: 3.5px solid #ef4444;
}
.toast.toast-error .toast-icon-badge,
.toast.error .toast-icon-badge {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}
.toast.toast-error .toast-progress-bar,
.toast.error .toast-progress-bar {
    background: #ef4444;
}

.toast.toast-warning,
.toast.warning {
    border-left: 3.5px solid #f59e0b;
}
.toast.toast-warning .toast-icon-badge,
.toast.warning .toast-icon-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}
.toast.toast-warning .toast-progress-bar,
.toast.warning .toast-progress-bar {
    background: #f59e0b;
}

.toast.toast-info,
.toast.info {
    border-left: 3.5px solid #6366f1;
}
.toast.toast-info .toast-icon-badge,
.toast.info .toast-icon-badge {
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
}
.toast.toast-info .toast-progress-bar,
.toast.info .toast-progress-bar {
    background: #6366f1;
}

@keyframes toastSlideUpIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .toast-container {
        left: 14px;
        right: 14px;
        bottom: 16px;
        max-width: none;
    }
    .toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.close-modal {
    padding: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Storefront Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1023px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card > a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
}

.product-card:hover .wishlist-btn,
.product-card .wishlist-btn.active {
    opacity: 1;
    transform: translateY(0);
}

.product-card .wishlist-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* Product Page Action Buttons Container */
.product-actions {
    margin-top: 0px !important;
}

/* Product Page Buy Box Wishlist Button */
.product-buybox-wishlist-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    flex: 0 0 46px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-primary, #ffffff) !important;
    border: 1.5px solid var(--border-color, #e2e8f0) !important;
    border-radius: var(--radius-sm, 8px) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none !important;
    color: var(--text-primary, #1e293b) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.product-buybox-wishlist-btn:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    transform: scale(1.04) !important;
}

.product-buybox-wishlist-btn.active {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.product-buybox-wishlist-btn.active svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* Product Gallery Floating Wishlist Button */
.gallery-wishlist-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none !important;
    color: #1e293b !important;
    z-index: 10 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-wishlist-btn:hover {
    transform: scale(1.08) !important;
    color: #ef4444 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18) !important;
}

.gallery-wishlist-btn.active {
    color: #ef4444 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2) !important;
}

.gallery-wishlist-btn.active svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* Product Technical Specifications Table */
.specs-table-container {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    border: none;
    margin: 0;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

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

.specs-table td {
    padding: 14px 20px;
    vertical-align: middle;
    box-sizing: border-box;
}

.specs-table td.spec-label {
    width: 35%;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-primary, #ffffff);
    border-right: 1px solid var(--border-color, #e2e8f0);
}

.specs-table td.spec-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.add-to-cart {
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin-top: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.add-to-cart:hover {
    background: var(--hover-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info,
.product-info {
    padding: 16px 18px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category,
.product-category {
    font-family: var(--type-h5-font, var(--font-main));
    font-size: var(--type-h5-size, 11px);
    font-weight: var(--type-h5-weight, 600);
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-card .product-title,
.product-title {
    font-family: var(--type-h4-font, var(--font-main));
    font-size: var(--type-h4-size, 14px);
    font-weight: var(--type-h4-weight, 700);
    font-style: var(--type-h4-style, normal);
    letter-spacing: var(--type-h4-spacing, -0.01em);
    line-height: var(--type-h4-line, 1.4);
    margin-bottom: 6px;
    color: var(--text-primary);
}

.product-card .product-sku {
    font-family: var(--type-mono-font, var(--font-mono));
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.product-card .product-price,
.product-price {
    font-family: var(--type-h4-font, var(--font-main));
    font-size: var(--type-h4-size, 15px);
    font-weight: var(--type-h4-weight, 700);
    font-style: var(--type-h4-style, normal);
    letter-spacing: var(--type-h4-spacing, -0.01em);
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.2;
}

.product-card .product-actual-price,
.product-actual-price {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #888);
    text-decoration: line-through;
    opacity: 0.85;
}

/* Module Header Standard */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.module-header-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    flex-wrap: wrap;
}

.module-title-pill,
.title-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 9999px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-secondary, #666666);
    border: 1px solid var(--border-color, #e5e7eb);
    letter-spacing: 0;
    font-family: var(--font-sans);
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.admin-dark .module-title-pill,
body.admin-dark .title-count-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #a3a3a3;
    border-color: rgba(255, 255, 255, 0.12);
}

.module-header-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: #ddd;
    font-size: 10px;
    font-weight: 400;
}

.breadcrumbs a {
    text-decoration: none;
    color: #888;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs li:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Module Navigation & Filter Tabs (Identical to Media Library Tabs)
   ========================================================================== */
.folder-nav-container,
.page-tabs,
.theme-filter-tabs,
.module-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 14px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.folder-pill,
.page-tab-link,
.theme-tab-btn,
.module-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: normal;
    box-sizing: border-box;
}

.folder-pill svg,
.page-tab-link svg,
.theme-tab-btn svg,
.module-tab svg {
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

.folder-pill:hover,
.page-tab-link:hover,
.theme-tab-btn:hover,
.module-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.folder-pill.active,
.page-tab-link.active,
.theme-tab-btn.active,
.module-tab.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}

.folder-pill.active svg,
.page-tab-link.active svg,
.theme-tab-btn.active svg,
.module-tab.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.folder-badge-count,
.tab-badge-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.folder-pill.active .folder-badge-count,
.folder-pill.active .tab-badge-count,
.page-tab-link.active .folder-badge-count,
.page-tab-link.active .tab-badge-count,
.theme-tab-btn.active .folder-badge-count,
.theme-tab-btn.active .tab-badge-count,
.module-tab.active .folder-badge-count,
.module-tab.active .tab-badge-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Dark Mode Overrides for Tabs */
body.admin-dark .folder-nav-container,
body.admin-dark .page-tabs,
body.admin-dark .theme-filter-tabs,
body.admin-dark .module-tabs {
    border-bottom-color: #262626;
}

body.admin-dark .folder-pill,
body.admin-dark .page-tab-link,
body.admin-dark .theme-tab-btn,
body.admin-dark .module-tab {
    background: #171717;
    border-color: #2d2d2d;
    color: #d4d4d4;
}

body.admin-dark .folder-pill:hover,
body.admin-dark .page-tab-link:hover,
body.admin-dark .theme-tab-btn:hover,
body.admin-dark .module-tab:hover {
    background: #222222;
    border-color: #ffffff;
    color: #ffffff;
}

body.admin-dark .folder-pill.active,
body.admin-dark .page-tab-link.active,
body.admin-dark .theme-tab-btn.active,
body.admin-dark .module-tab.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

body.admin-dark .folder-pill.active svg,
body.admin-dark .page-tab-link.active svg,
body.admin-dark .theme-tab-btn.active svg,
body.admin-dark .module-tab.active svg {
    stroke: #000000 !important;
    color: #000000 !important;
}

body.admin-dark .folder-badge-count,
body.admin-dark .tab-badge-count {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

body.admin-dark .folder-pill.active .folder-badge-count,
body.admin-dark .folder-pill.active .tab-badge-count,
body.admin-dark .page-tab-link.active .folder-badge-count,
body.admin-dark .page-tab-link.active .tab-badge-count,
body.admin-dark .theme-tab-btn.active .folder-badge-count,
body.admin-dark .theme-tab-btn.active .tab-badge-count,
body.admin-dark .module-tab.active .folder-badge-count,
body.admin-dark .module-tab.active .tab-badge-count {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #000000 !important;
}

/* Checkboxes */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--border-hover);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Bulk Action Bar */
.bulk-actions {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease-out;
}

.bulk-actions.active {
    display: flex;
}

.bulk-actions .count {
    font-size: 12px;
    font-weight: 700;
    padding-right: 16px;
    border-right: 1px solid #333;
}

.bulk-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.bulk-btn:hover {
    opacity: 0.7;
}

/* Table Controls Header & Toolbar */
.table-header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.table-header .input-field,
.table-header select.input-field,
.table-header select,
.table-header .btn {
    height: 38px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

.table-header .btn-solid {
    border: 1px solid transparent !important;
}

.btn-icon {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Expandable Search Component */
.search-expand-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle-btn:hover {
    border-color: var(--border-hover);
    background: var(--hover-bg);
}

.search-expanded-box {
    display: none;
    position: relative;
    width: 100%;
}

.search-expand-wrapper.active {
    flex: 1;
    width: 100%;
}

.search-expand-wrapper.active .search-toggle-btn {
    display: none;
}

.search-expand-wrapper.active .search-expanded-box {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
}

.search-close-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.table-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: nowrap;
    transition: opacity 0.2s ease;
}

.table-actions-group.search-active {
    display: none !important;
}

.search-input {
    width: 100%;
    padding: 0 34px 0 34px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.search-icon svg {
    width: 14px;
    height: 14px;
}


/* Two-Column Module Layout */
.module-two-col {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap;
}

/* Status & Visibility Icons */
.status-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.status-icon-circle.success {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.status-icon-circle.warning {
    background: #fefce8;
    color: #a16207;
    border-color: #fef08a;
}

.status-icon-circle.danger {
    background: #fdf2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-icon-circle.info {
    background: #f0f7ff;
    color: #0369a1;
    border-color: #e0f2fe;
}

/* Link Buttons */
.btn-link-danger {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.btn-link-danger:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Unified Delete & Action Icon Buttons */
.btn-icon-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
}

.btn-icon-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-icon-delete:active {
    transform: scale(0.95);
}

.btn-icon-delete svg {
    display: block;
    width: 14px;
    height: 14px;
    pointer-events: none;
    stroke: currentColor;
}

.btn-icon-delete.sm {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.btn-icon-delete.sm svg {
    width: 12px;
    height: 12px;
}

.btn-icon-delete.lg {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.btn-icon-delete.lg svg {
    width: 16px;
    height: 16px;
}

.btn-icon-delete.bordered {
    border-color: #fee2e2;
    background: #ffffff;
}

.btn-icon-delete.bordered:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

body.admin-dark .btn-icon-delete {
    color: #f87171;
}

body.admin-dark .btn-icon-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

body.admin-dark .btn-icon-delete.bordered {
    border-color: rgba(239, 68, 68, 0.25);
    background: #1e293b;
}

body.admin-dark .btn-icon-delete.bordered:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
}

.module-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.module-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
    min-width: 0;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-field {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-primary);
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.input-field:focus {
    border-color: var(--border-hover);
}

textarea.input-field {
    height: auto;
    padding: 12px;
    font-family: var(--font-main);
    line-height: 1.6;
    resize: vertical;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {

    /* Enforce 16px minimum for mobile/tablet to prevent iOS zoom and improve readability */
    html {
        font-size: 16px;
    }

    .input-field,
    .search-input,
    .qty-val,
    select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px !important;
    }

    .input-label,
    .product-category,
    .add-to-cart,
    .btn,
    .breadcrumbs,
    .footer-links a,
    .footer-desc,
    .count,
    .bulk-btn,
    .status-icon-circle,
    .btn-link-danger {
        font-size: 16px !important;
    }

    .footer-bottom p,
    .footer-copyright-text {
        font-size: 11.5px !important;
        font-weight: 500 !important;
        color: var(--text-secondary) !important;
        letter-spacing: 0.02em;
        line-height: 1.5;
    }

    #couponInput.cart-promo-input {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        font-size: 11.5px !important;
    }

    #applyCouponBtn.cart-promo-btn {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        font-size: 11px !important;
        padding: 0 12px !important;
    }

    .product-title {
        font-size: 18px !important;
    }

    /* Adjust padding to accommodate larger text */
    .btn,
    .input-field {
        height: 44px !important;
    }

    .add-to-cart {
        padding: 16px !important;
    }

    .auth-card {
        padding: 30px 20px !important;
        margin: 20px !important;
        width: calc(100% - 40px) !important;
    }
}

.auth-page {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Locked / Readonly input fields (Double-click to unlock) */
.editable-on-dblclick[readonly] {
    background-color: #e5e7eb !important;
    color: #4b5563 !important;
    border-color: #d1d5db !important;
    cursor: pointer !important;
    user-select: none !important;
}

body.admin-dark .editable-on-dblclick[readonly] {
    background-color: #121212 !important;
    color: #9ca3af !important;
    border-color: #262626 !important;
}

/* Administrative Two-Column Grid Layout */
.settings-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Toggle Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: background-color 0.25s ease, box-shadow 0.2s ease;
    border-radius: 24px;
    border: none;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    transition: transform 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.switch input:checked + .slider { background-color: #10b981; }
.switch input:checked + .slider:before { transform: translateY(-50%) translateX(20px); }

/* Small Toggle Switch */
.switch-sm {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}
.switch-sm input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-sm .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: background-color 0.25s ease;
    border-radius: 18px;
    border: none;
}
.switch-sm .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    transition: transform 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch-sm input:checked + .slider { background-color: #10b981; }
.switch-sm input:checked + .slider:before { transform: translateY(-50%) translateX(16px); }