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

:root, html[data-theme="dark"] {
    --bg-darker: #090d16;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Semantic Variables */
    --navbar-bg: rgba(9, 13, 22, 0.75);
    --footer-bg: rgba(9, 13, 22, 0.9);
    --footer-heading-color: #ffffff;
    --footer-text-color: #94a3b8;
    --footer-link-color: #94a3b8;
    --footer-link-hover: #8b5cf6;
    --footer-icon-color: #94a3b8;
    --footer-border-color: rgba(255, 255, 255, 0.08);
    --sidebar-bg: rgba(9, 13, 22, 0.95);
    --sidebar-footer-bg: rgba(9, 13, 22, 0.98);
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-focus-bg: rgba(15, 23, 42, 0.8);
    --input-disabled-bg: rgba(15, 23, 42, 0.3);
    --image-bg: #1e293b;
    --stepper-bg: #1e293b;
    --dropdown-bg: #0f172a;
    --table-header-bg: rgba(15, 23, 42, 0.8);
    --table-cell-bg: rgba(30, 41, 59, 0.2);
    --scrollbar-track-bg: rgba(15, 23, 42, 0.4);
    --panel-bg: rgba(15, 23, 42, 0.5);
    --card-bg-dark: rgba(30, 41, 59, 0.4);
    --custom-text-white: #ffffff;
    --custom-text-light: #f8fafc;

    /* Hero Variables — always white, hero sits on a dark background image */
    --hero-title-color: #ffffff;
    --hero-subtitle-color: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] {
    --bg-darker: #f8fafc;
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.12);
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #d97706;
    --danger-color: #dc2626;

    /* Semantic Variables */
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #f8fafc;
    --footer-heading-color: #0f172a;
    --footer-text-color: #475569;
    --footer-link-color: #334155;
    --footer-link-hover: #8b5cf6;
    --footer-icon-color: #475569;
    --footer-border-color: rgba(15, 23, 42, 0.12);
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --sidebar-footer-bg: rgba(248, 250, 252, 0.98);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-focus-bg: #ffffff;
    --input-disabled-bg: rgba(241, 245, 249, 0.5);
    --image-bg: #f1f5f9;
    --stepper-bg: #e2e8f0;
    --dropdown-bg: #ffffff;
    --table-header-bg: #f1f5f9;
    --table-cell-bg: #ffffff;
    --scrollbar-track-bg: #f1f5f9;
    --panel-bg: rgba(241, 245, 249, 0.75);
    --card-bg-dark: rgba(241, 245, 249, 0.6);
    --custom-text-white: #0f172a;
    --custom-text-light: #475569;

    /* Hero Variables — always white, hero background image remains dark in light mode */
    --hero-title-color: #ffffff;
    --hero-subtitle-color: rgba(255, 255, 255, 0.95);
}

/* Custom Theme-Aware Utilities */
.theme-text-white {
    color: var(--custom-text-white) !important;
}
.theme-text-light {
    color: var(--custom-text-light) !important;
}
.theme-bg-dark {
    background-color: var(--bg-dark) !important;
}
.theme-bg-dark-opacity-25 {
    background-color: var(--card-bg-dark) !important;
}
.theme-bg-dark-opacity-50 {
    background-color: var(--panel-bg) !important;
}
.theme-border-secondary {
    border-color: var(--border-color) !important;
}
.theme-border-secondary-opacity-25 {
    border-color: var(--border-color) !important;
}
.theme-border-secondary-opacity-10 {
    border-color: var(--border-color) !important;
}
.theme-dropdown-menu {
    background-color: var(--dropdown-bg) !important;
    border-color: var(--border-color) !important;
}
.theme-dropdown-item {
    color: var(--text-primary) !important;
}
.theme-dropdown-item:hover, .theme-dropdown-item:focus {
    background-color: var(--primary-glow) !important;
    color: var(--primary-color) !important;
}
.no-caret::after {
    display: none !important;
}

/* Input/Form remappings for light theme when pages use Bootstrap utility colors directly on controls */
html[data-theme="light"] input.bg-black,
html[data-theme="light"] textarea.bg-black,
html[data-theme="light"] select.bg-black,
html[data-theme="light"] .input-group-text.bg-black,
html[data-theme="light"] .form-control-color.bg-black {
    background-color: var(--input-bg) !important;
    border-color: var(--border-color) !important;
}
html[data-theme="light"] input.text-white,
html[data-theme="light"] textarea.text-white,
html[data-theme="light"] select.text-white {
    color: var(--text-primary) !important;
}

/* Scoped Light Theme remappings for Bootstrap color classes in cards, tables, forms, and headings */
html[data-theme="light"] .card.bg-dark {
    background-color: var(--bg-dark) !important;
    border-color: var(--border-color) !important;
}
html[data-theme="light"] .card-header {
    border-bottom: 1px solid var(--border-color) !important;
}
html[data-theme="light"] .card-footer {
    border-top: 1px solid var(--border-color) !important;
}
html[data-theme="light"] .modal-content.bg-dark {
    background-color: var(--bg-dark) !important;
    border-color: var(--border-color) !important;
}
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-footer {
    border-color: var(--border-color) !important;
}
html[data-theme="light"] .list-group-item.bg-dark {
    background-color: var(--bg-dark) !important;
    border-color: var(--border-color) !important;
}
html[data-theme="light"] .border-secondary,
html[data-theme="light"] .border-secondary-opacity-25,
html[data-theme="light"] .border-secondary-opacity-10,
html[data-theme="light"] .border-secondary.border-opacity-25,
html[data-theme="light"] .border-secondary.border-opacity-10 {
    border-color: var(--border-color) !important;
}
html[data-theme="light"] .bg-dark.bg-opacity-25,
html[data-theme="light"] .bg-dark.bg-opacity-50,
html[data-theme="light"] .bg-dark.bg-opacity-40,
html[data-theme="light"] .bg-dark.bg-opacity-20 {
    background-color: var(--card-bg-dark) !important;
}

/* Scoped text remappings */
html[data-theme="light"] .card-header .text-white,
html[data-theme="light"] .card-body .text-white,
html[data-theme="light"] .modal-header .text-white,
html[data-theme="light"] .modal-body .text-white,
html[data-theme="light"] .modal-body .text-light,
html[data-theme="light"] .glass-panel h1.text-white,
html[data-theme="light"] .glass-panel h2.text-white,
html[data-theme="light"] .glass-panel h3.text-white,
html[data-theme="light"] .glass-panel h4.text-white,
html[data-theme="light"] .glass-panel h5.text-white,
html[data-theme="light"] .glass-panel h6.text-white,
html[data-theme="light"] .glass-panel strong.text-white,
html[data-theme="light"] .glass-panel label.text-white,
html[data-theme="light"] .glass-panel span.text-white,
html[data-theme="light"] .table-custom td strong.text-white,
html[data-theme="light"] .table-custom td span.text-white,
html[data-theme="light"] .checkout-payment-box label.text-white,
html[data-theme="light"] .card-history strong.text-white,
html[data-theme="light"] .card-history .fw-bold,
html[data-theme="light"] label.text-white:not(.hero-slide-content *),
html[data-theme="light"] h1.text-white:not(.hero-slide-content *),
html[data-theme="light"] h2.text-white:not(.hero-slide-content *),
html[data-theme="light"] h3.text-white:not(.hero-slide-content *),
html[data-theme="light"] h4.text-white:not(.hero-slide-content *),
html[data-theme="light"] h5.text-white:not(.hero-slide-content *),
html[data-theme="light"] h6.text-white:not(.hero-slide-content *),
html[data-theme="light"] strong.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] a.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] span.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] p.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] div.text-white:not(.btn *):not(.badge *):not(.alert *):not(.hero-slide-content *),
html[data-theme="light"] td.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] th.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] li.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] .brand-font.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] .logo-text.text-white:not(.btn *):not(.badge *):not(.hero-slide-content *),
html[data-theme="light"] .text-white-50:not(.hero-slide-content *),
html[data-theme="light"] .text-light:not(.hero-slide-content *) {
    color: var(--text-primary) !important;
}

/* =============================================
   FOOTER — Semantic Variable Application
   ============================================= */
footer {
    background: var(--footer-bg) !important;
    border-top: 1px solid var(--footer-border-color) !important;
}

footer h5.brand-font,
footer h6.brand-font {
    color: var(--footer-heading-color) !important;
}

footer .text-secondary {
    color: var(--footer-text-color) !important;
}

footer a.text-secondary,
footer a.hover-primary {
    color: var(--footer-link-color) !important;
    transition: color 0.2s ease;
}

footer a.text-secondary:hover,
footer a.hover-primary:hover {
    color: var(--footer-link-hover) !important;
}

footer .fa-brands,
footer .fa-solid {
    color: var(--footer-icon-color);
}

/* Accent icons (envelope, phone, location) keep primary purple */
footer .text-primary.fa-solid {
    color: var(--primary-color) !important;
}

footer hr {
    border-color: var(--footer-border-color) !important;
    opacity: 1 !important;
}


/* Price text override for light theme */
html[data-theme="light"] .price-text {
    color: var(--text-primary) !important;
}

/* =============================================
   BOOTSTRAP PAGINATION — Theme-Aware Styles
   Ensures pagination::bootstrap-5 renders
   correctly in Dark, Light, and System modes.
   Also guards against any SVG size blowout.
   ============================================= */
.pagination {
    --bs-pagination-bg: transparent;
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px !important;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    opacity: 0.4;
}

/* Constrain any SVG inside pagination (guards against Tailwind pagination leaking in) */
.pagination svg {
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* Navbar toggler and header icons in light theme */
html[data-theme="light"] .navbar-toggler-icon {
    filter: invert(1) !important;
}

/* Admin mobile header outline-light buttons in light theme */
html[data-theme="light"] header.d-md-none span.text-white {
    color: var(--text-primary) !important;
}
html[data-theme="light"] header.d-md-none .btn-outline-light {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
html[data-theme="light"] header.d-md-none .btn-outline-light:hover {
    background-color: var(--primary-glow) !important;
    color: var(--primary-color) !important;
}

/* Dropdown menu dark overrides in light theme */
html[data-theme="light"] .dropdown-menu-dark {
    background-color: var(--dropdown-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .dropdown-menu-dark .dropdown-item {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .dropdown-menu-dark .dropdown-item:hover,
html[data-theme="light"] .dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--primary-glow) !important;
    color: var(--primary-color) !important;
}

html[data-theme="light"] .dropdown-menu-dark .dropdown-divider {
    border-color: var(--border-color) !important;
}

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 30px 0 rgba(139, 92, 246, 0.15);
}

/* Custom Navigation */
.navbar-custom {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.navbar-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-color) !important;
}

/* Inputs and Forms */
.form-control-custom {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease-in-out;
}

.form-control-custom:focus {
    background: var(--input-focus-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-control-custom:disabled,
.form-control-custom[readonly] {
    background: var(--input-disabled-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.form-label-custom {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-premium-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Badge tags */
.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-primary-custom {
    background: var(--primary-glow);
    color: #c084fc;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Product list specifics */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 320px;
    background: var(--image-bg);
}

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

.glass-card:hover .product-image {
    transform: scale(1.08);
}

.price-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.price-discounted {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 8px;
}

.price-active {
    color: #10b981;
    font-weight: 700;
}

/* Cart dropdown/list */
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--image-bg);
}

/* Reviews styles */
.review-card {
    background: var(--card-bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
}

/* Stepper tracking */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stepper-bg);
    z-index: 1;
}

.stepper-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-item .step-counter {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--stepper-bg);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px;
    border: 3px solid var(--bg-darker);
    transition: all 0.3s;
}

.stepper-item.completed .step-counter {
    background: var(--success-color);
    color: white;
}

.stepper-item.active .step-counter {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-color);
}

.stepper-item .step-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stepper-item.active .step-name {
    color: var(--text-primary);
    font-weight: 700;
}

/* Admin Dashboard Cards */
.admin-metric-card {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid var(--border-color);
}

/* ===== ADMIN SIDEBAR — SCROLLABLE FIXED PANEL ===== */
.sidebar-admin {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    /* Full viewport height, fixed to the left edge */
    height: 100vh;
    min-height: 100vh;
    position: fixed !important;
    top: 0;
    left: 0;
    /* Flex column: header | scrollable nav | footer */
    display: flex !important;
    flex-direction: column;
    overflow: hidden; /* outer container never scrolls */
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

/* Scrollable middle nav area */
.sidebar-scrollable {
    flex: 1 1 0;
    min-height: 0; /* critical — allows flex child to shrink below content size */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
}

/* Firefox custom scrollbar */
.sidebar-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 var(--scrollbar-track-bg);
}

/* Webkit (Chrome, Edge, Safari) custom scrollbar */
.sidebar-scrollable::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scrollable::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
    border-radius: 10px;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #60a5fa 100%);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.7);
}

/* Pinned bottom area (View Storefront + Sign Out) */
.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border-color);
    background: var(--sidebar-footer-bg);
}

/* ===== SIDEBAR LINKS ===== */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary-glow);
    color: var(--primary-color);
}

.sidebar-link i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Alerts custom styling */
.alert-custom-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-custom-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* custom table */
.table-custom {
    color: var(--text-primary) !important;
}
.table-custom th {
    background: var(--table-header-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-family: 'Outfit', sans-serif;
}
.table-custom td {
    background: var(--table-cell-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    vertical-align: middle;
}

/* Hero Banner Slider Custom Styles */
.hero-slider-container {
    width: 100%;
    min-height: 450px;
    height: 450px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    background: var(--bg-card);
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(9, 13, 22, 0.85) 0%, rgba(9, 13, 22, 0.5) 50%, rgba(9, 13, 22, 0.2) 100%);
    z-index: 2;
}

.hero-slide-content {
    color: var(--hero-title-color) !important;
    width: 100%;
    z-index: 3;
}

/* High-specificity hero text overrides — beats any global text-white/text-light remapping.
   The hero always sits on a dark background image, so titles must stay white in ALL themes. */

html[data-theme="dark"] .hero-slide-content h1,
html[data-theme="light"] .hero-slide-content h1,
html[data-theme="dark"] .hero-slide-content h1.text-white,
html[data-theme="light"] .hero-slide-content h1.text-white,
html[data-theme="dark"] .hero-slide-content .brand-font,
html[data-theme="light"] .hero-slide-content .brand-font {
    color: var(--hero-title-color) !important;
}

html[data-theme="dark"] .hero-slide-content p,
html[data-theme="light"] .hero-slide-content p,
html[data-theme="dark"] .hero-slide-content .text-secondary,
html[data-theme="light"] .hero-slide-content .text-secondary {
    color: var(--hero-subtitle-color) !important;
}


.hero-slider-container .slider-arrow {
    color: #ffffff !important;
}

.max-width-600 {
    max-width: 600px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    color: white;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--primary-color);
}

/* Slide Text animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide .animate-fade-in-down,
.hero-slide .animate-fade-in-left,
.hero-slide .animate-fade-in-left-delay,
.hero-slide .animate-fade-in-up {
    opacity: 0;
}

.hero-slide.active .animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.hero-slide.active .animate-fade-in-left {
    animation: fadeInLeft 0.6s ease 0.2s forwards;
}

.hero-slide.active .animate-fade-in-left-delay {
    animation: fadeInLeft 0.6s ease 0.4s forwards;
}

.hero-slide.active .animate-fade-in-up {
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

/* Scrollable Category Filter section with Dark Neon Theme scrollbar */
.category-filter-scroll-container {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--primary-color) var(--scrollbar-track-bg); /* For Firefox */
    padding-right: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* smooth mobile scroll */
    
    /* Subtle inner fade effect at top and bottom */
    mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Edge, Safari) */
.category-filter-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.category-filter-scroll-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
    border-radius: 10px;
}

.category-filter-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 5px var(--primary-glow);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-filter-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a78bfa; /* lighter neon purple */
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}


/* ===== ADMIN MAIN CONTENT RESPONSIVE MARGINS ===== */
/* md: sidebar is col-md-3 = 25% */
@media (min-width: 768px) and (max-width: 991.98px) {
    .admin-main-content {
        margin-left: 25% !important;
    }
}
/* lg+: sidebar is col-lg-2 = 16.67% */
@media (min-width: 992px) {
    .admin-main-content {
        margin-left: 16.6667% !important;
    }
}
@media (max-width: 767.98px) {
    .admin-main-content {
        margin-left: 0 !important;
    }
}

/* ===== ADMIN SIDEBAR — MOBILE RESPONSIVE OVERLAY ===== */
@media (max-width: 767.98px) {
    .sidebar-admin {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 1050;
        background: var(--sidebar-bg);
        border-right: 1px solid var(--border-color);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    /* Collapsed state */
    .sidebar-admin.collapse:not(.show) {
        display: block !important;
        transform: translateX(-100%);
        visibility: hidden;
    }

    /* Collapsing state */
    .sidebar-admin.collapsing {
        height: 100vh !important;
        transform: translateX(-100%);
        visibility: visible;
        transition: transform 0.3s ease, visibility 0.3s ease !important;
    }

    /* Expanded state */
    .sidebar-admin.show {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar-scrollable {
        max-height: calc(100vh - 180px);
    }
}

/* ===== SIDEBAR BACKDROP ===== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sidebarMenu.show ~ .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
}

/* ===== ADMIN GLOBAL RESPONSIVE UTILITIES ===== */

/* ── Page header rows (title + action button) ── */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ── All admin "d-flex justify-content-between" page headers ── */
@media (max-width: 575.98px) {

    /* Make page header rows wrap so button drops below title */
    .admin-main-content > div.d-flex.justify-content-between,
    .admin-main-content > div > div.d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Filter forms: stack to full width on xs */
    .admin-main-content .row.g-3.mb-4.align-items-end > [class*="col-md-"] {
        min-width: 100%;
    }

    /* Dashboard metric cards: force 2-per-row on xs */
    .admin-main-content .admin-metric-card {
        min-width: 0;
    }

    /* Promotion card header stacking */
    .admin-main-content .card-body .row.align-items-center > [class*="col-md-"] {
        min-width: 0;
    }

    /* Shipping settings visibility toggles: allow text to wrap */
    .admin-main-content .d-flex.align-items-center.justify-content-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Banner/product thumbnail images in tables: constrain size */
    .table-responsive img {
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

@media (max-width: 425px) {

    /* Coupon filter: ms-auto col breaks layout on 320-425px */
    .col-md-3.d-flex.gap-2.ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Orders filter buttons row */
    .col-md-2.d-flex.gap-2 {
        width: 100%;
    }

    /* Promotions index card action buttons wrapping */
    .col-md-2.col-12 .d-flex.gap-2.flex-wrap {
        justify-content: flex-start !important;
    }

    /* Returns/show proof image: don't overflow */
    .img-thumbnail {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Order show – totals summary column: full width */
    .row.justify-content-end .col-md-5 {
        min-width: 100%;
    }

    /* Coupon show KPI cards: stack to 1 per row */
    .row.g-4.mb-4 > .col-md-4 {
        min-width: 100%;
    }
}

/* ── Tablet (768px–991px) – Sidebar takes 3-col, content 9-col ── */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Promotions dates & order columns hidden on md are already d-none d-md-block */
    /* Give info column more breathing room */
    .col-md-6.col-10 {
        flex: 0 0 auto;
        width: calc(100% - 80px);
    }

    /* Dashboard filter range selector: don't clip */
    #rangeForm select {
        max-width: 160px;
    }
}

/* ── Prevent horizontal overflow on all admin panels ── */
.glass-panel {
    min-width: 0;
    overflow-x: clip;
}

/* Prevent inline code & long URLs in banner table from overflowing */
.table-responsive code,
.table-responsive a.text-decoration-none {
    word-break: break-all;
}

/* ── Dashboard report filter form ── */
@media (max-width: 575.98px) {
    #rangeForm {
        flex-wrap: wrap;
    }

    #rangeForm select {
        width: 100% !important;
    }
}

/* ── Close button theme override ── */
html[data-theme="light"] .btn-close-white {
    filter: invert(1) grayscale(1) brightness(0) !important;
}


/* =============================================
   STOREFRONT NAVBAR — Mobile Responsive Fixes
   Applies to ALL themes (dark / light / system)
   ============================================= */

/* ── Prevent brand from squeezing toggler off-screen ── */
.navbar-custom .navbar-brand {
    min-width: 0;
    flex-shrink: 1;
    max-width: calc(100% - 60px);
}

.navbar-custom .navbar-brand .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

/* ── Collapsed menu: full-width, no horizontal overflow ── */
@media (max-width: 991.98px) {
    /* Collapse area must not overflow the container */
    .navbar-custom .navbar-collapse {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Nav links list: full-width, left-aligned */
    .navbar-custom .navbar-nav {
        width: 100%;
        padding: 0.5rem 0;
    }

    .navbar-custom .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 0.6rem 0;
        width: 100%;
        display: block;
    }

    /* Controls row (cart + theme + user) — wrap, full-width */
    .navbar-custom .navbar-collapse > div.d-flex {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start !important;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0 0.5rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.25rem;
    }

    /* Remove excessive right-margins on mobile */
    .navbar-custom .navbar-collapse > div.d-flex .me-4,
    .navbar-custom .navbar-collapse > div.d-flex .me-3,
    .navbar-custom .navbar-collapse > div.d-flex .me-2 {
        margin-right: 0 !important;
    }

    /* User dropdown: anchor to left so it doesn't spill right */
    .navbar-custom .dropdown-menu.dropdown-menu-end {
        right: auto !important;
        left: 0 !important;
    }

    /* Auth buttons tighten on mobile */
    .navbar-custom .btn-premium-outline,
    .navbar-custom .btn-premium {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* ── Small phones (≤ 425px) ── */
@media (max-width: 425px) {
    .navbar-custom .navbar-brand .logo-text {
        max-width: 110px;
        font-size: 1.1rem;
    }

    .navbar-custom .navbar-collapse > div.d-flex {
        gap: 0.5rem;
    }

    /* All dropdowns: clamp to viewport width */
    .navbar-custom .dropdown-menu {
        max-width: calc(100vw - 2rem);
        min-width: 0;
    }
}

/* ── Narrowest phones (≤ 320px) ── */
@media (max-width: 320px) {
    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-custom .navbar-brand .logo-text {
        max-width: 80px;
        font-size: 1rem;
    }

    .navbar-custom .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

}

/* =============================================
   MOBILE SLIDE-OUT DRAWER
   Slides in from the left on mobile (< 992px).
   Always hidden at desktop via media query.
   Uses CSS variables → works in all themes.
   ============================================= */

/* ── Drawer panel ── */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 272px;
    height: 100%;
    max-height: 100dvh;
    /* Solid opaque background — uses the same variable as the admin sidebar */
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    border-radius: 0 22px 22px 0;
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.45);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
    will-change: transform;
    /* Isolation prevents hero/banner z-index from bleeding into drawer */
    isolation: isolate;
}

/* Open state */
.mobile-drawer.is-open {
    transform: translateX(0);
}

/* ── Backdrop ── */
.mobile-drawer__backdrop {
    position: fixed;
    inset: 0;
    /* Dark mode default: 60% black overlay */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1054;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
    /* No backdrop-filter here — drawer itself must be fully opaque */
}

/* Light mode: lighter overlay */
html[data-theme="light"] .mobile-drawer__backdrop {
    background: rgba(0, 0, 0, 0.25);
}

.mobile-drawer__backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Hide completely at desktop ── */
@media (min-width: 992px) {
    .mobile-drawer,
    .mobile-drawer__backdrop {
        display: none !important;
    }
}

/* ── Drawer header ── */
.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-drawer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mobile-drawer__brand .logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-drawer__close {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.mobile-drawer__close:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

/* ── Nav links ── */
.mobile-drawer__nav {
    padding: 0.75rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* ── Individual link / button ── */
.mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
    /* button reset */
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
}

.mobile-drawer__link:hover {
    background: var(--primary-glow);
    color: var(--primary-color);
}

.mobile-drawer__link.active {
    background: var(--primary-glow);
    color: var(--primary-color);
    font-weight: 600;
}

/* ── Divider ── */
.mobile-drawer__divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1rem;
    flex-shrink: 0;
}

/* ── Auth/footer section ── */
.mobile-drawer__footer {
    padding: 0.25rem 0.625rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: auto;            /* push to bottom of drawer */
    flex-shrink: 0;
}

/* Logged-in user's name label */
.mobile-drawer__user-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sign-out link */
.mobile-drawer__logout {
    color: #ef4444 !important;
}

.mobile-drawer__logout:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
}

/* ── Light theme: solid white drawer ── */
html[data-theme="light"] .mobile-drawer {
    background: #ffffff;
    border-right-color: rgba(15, 23, 42, 0.10);
    box-shadow: 6px 0 32px rgba(15, 23, 42, 0.18);
}

/* ── Scrollbar styling inside drawer ── */
.mobile-drawer::-webkit-scrollbar {
    width: 4px;
}
.mobile-drawer::-webkit-scrollbar-track {
    background: transparent;
}
.mobile-drawer::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* ── Mobile 2-Column Product Grid ── */
@media (max-width: 575.98px) {
    /* Reduce product image height for 2-column layout */
    .product-image-container {
        height: 180px !important;
    }

    /* Reduce title font size slightly & allow multi-line wrapping */
    .glass-card h5 {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure prices fit cleanly */
    .price-text {
        font-size: 1rem !important;
    }
    .price-active {
        font-size: 1rem !important;
    }
    .price-discounted {
        font-size: 0.8rem !important;
        margin-right: 6px !important;
    }

    /* Keep buttons fully visible and touch-friendly */
    .glass-card .btn-premium-outline.btn-sm {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
    }

    /* Align layout and prevent overflow inside card footers */
    .glass-card .mt-auto.d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .glass-card .mt-auto.d-flex > div {
        text-align: left !important;
    }

    .glass-card .mt-auto.d-flex > a {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
}

/* Category Image Upload Support */
.category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===================== */
/* MOBILE FILTER BOTTOM SHEET (offcanvas-bottom) */
/* ===================== */
.filter-offcanvas-bottom {
    background: var(--bg-dark) !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--border-color) !important;
    height: 100vh;
    border-radius: 16px 16px 0 0;
}

.filter-offcanvas-bottom .offcanvas-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
}

.filter-offcanvas-bottom .offcanvas-header .offcanvas-title {
    color: var(--text-primary);
}

.filter-offcanvas-bottom .offcanvas-body {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 1.25rem;
}

.filter-offcanvas-bottom .btn-close {
    filter: invert(1) brightness(1.5);
    opacity: 0.8;
}

.filter-offcanvas-bottom .form-label-custom {
    color: var(--text-secondary);
}

.filter-offcanvas-bottom .form-control-custom,
.filter-offcanvas-bottom .form-select {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.filter-offcanvas-bottom .form-control-custom::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.filter-offcanvas-bottom a.text-secondary {
    color: var(--text-secondary) !important;
}

.filter-offcanvas-bottom a.text-primary {
    color: var(--primary-color) !important;
}

/* Mobile filter row: search + filter button */
.mobile-filter-row .form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    height: 38px;
}

.mobile-filter-row .form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.mobile-filter-row .form-control::-webkit-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.mobile-filter-row .form-control::-moz-placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.mobile-filter-row .form-control:-ms-input-placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.mobile-filter-row .input-group .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 0 8px 8px 0;
}

.mobile-filter-row > form > .btn {
    height: 38px;
    display: flex;
    align-items: center;
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 1050;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.2s;
    min-width: 50px;
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item.active {
    color: var(--premium-gold);
}

.bottom-nav-item:hover {
    color: var(--premium-gold);
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
}


