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

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/italic_latin.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/normal_latin.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Light Mode (Default) */
:root, [data-theme="light"] {
    --bento-bg: #f8fafc;
    --bento-bg-alt: #ffffff;
    --bento-card-bg: rgba(255, 255, 255, 0.9);
    --bento-glass: rgba(255, 255, 255, 0.85);
    --bento-border: rgba(0, 0, 0, 0.08);
    --bento-primary: #17a34a; /* Logo Green */
    --bento-secondary: #3454b4; /* Logo Blue */
    --bento-accent: #ed6c23; /* Logo Orange */
    --bento-text: #0f172a;
    --bento-text-muted: #64748b;
    --bento-placeholder: #475569;
    --bento-radius: 12px; /* More compact radius */
    --bento-gradient: linear-gradient(135deg, var(--bento-primary) 0%, var(--bento-secondary) 100%);
    
    /* Spacing variables for compact design */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Dark Mode */
[data-theme="dark"] {
    --bento-bg: #0b0f1a;
    --bento-bg-alt: #0f172a;
    --bento-card-bg: rgba(30, 41, 59, 0.5);
    --bento-glass: rgba(15, 23, 42, 0.8);
    --bento-border: rgba(255, 255, 255, 0.08);
    --bento-primary: #4b6bc6; /* Logo Blue (Lighter for Dark Mode) */
    --bento-secondary: #22c55e; /* Logo Green (Lighter) */
    --bento-accent: #fb923c; /* Logo Orange (Lighter) */
    --bento-text: #ffffff;
    --bento-text-muted: #cbd5e1;
    --bento-placeholder: #94a3b8;
    --bento-radius: 12px;
    --bento-gradient: linear-gradient(135deg, var(--bento-primary) 0%, var(--bento-secondary) 100%);
}

/* Overrides for Hardcoded Dark Mode Bootstrap Classes */
[data-theme="light"] body:not(:has(.bg-bento-dark)) .text-white:not(.btn):not(.btn *):not(.nav-link):not(.nav-link *),
[data-theme="light"] :not(.bg-bento-dark) > .text-white:not(.btn):not(.btn *):not(.nav-link):not(.nav-link *) {
    color: var(--bento-text) !important;
}

[data-theme="light"] .bg-bento-dark .text-white {
    color: #ffffff !important;
}

[data-theme="light"] .table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0,0,0,0.02);
    --bs-table-striped-color: var(--bento-text);
    --bs-table-active-bg: rgba(0,0,0,0.05);
    --bs-table-active-color: var(--bento-text);
    --bs-table-hover-bg: rgba(0,0,0,0.04);
    --bs-table-hover-color: var(--bento-text);
    color: var(--bento-text);
    border-color: var(--bento-border);
}

[data-theme="light"] .table-dark th,
[data-theme="light"] .table-dark td {
    color: var(--bento-text) !important;
    border-color: var(--bento-border) !important;
}

[data-theme="light"] .border-white {
    border-color: var(--bento-border) !important;
}

[data-theme="light"] .bg-white-5 {
    background-color: var(--bento-border) !important;
}

[data-theme="light"] .text-muted-bento {
    color: var(--bento-text-muted) !important;
}

body {
    background-color: var(--bento-bg) !important;
    color: var(--bento-text) !important;
    font-family: 'Outfit', sans-serif !important;
    overflow-x: hidden;
}

/* Scorched Earth Contrast Policy */
[class*="bento-section"], [class*="bento-item"], .v3-details, .forum-details-container, 
.section, section, .modal-content, .thread-card, .comment-card, .glass-card, .sidebar-card,
header.shop-header, header.contact-header, header.forum-header, header.cart-header {
    background-color: var(--bento-bg) !important;
    color: var(--bento-text) !important;
}

.bg-bento-dark {
    background-color: #050505 !important;
    color: #ffffff !important;
}

.bg-bento-dark * {
    color: inherit;
}

.bg-bento-dark .form-control {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
}

.bg-bento-dark .text-muted-bento {
    color: rgba(255,255,255,0.6) !important;
}

/* Force light text on all children unless specifically overridden */
[class*="bento-section"] *, [class*="bento-item"] *, .v3-details *, .forum-details-container *,
.glass-card *, .thread-card *, .comment-card *, .sidebar-card *, .modal-content *,
header.shop-header *, header.contact-header *, header.forum-header *, header.cart-header * {
    color: inherit;
    opacity: 1 !important; /* No more dimming */
}

/* Background Mesh Gradients - Restored & Refined */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

/* Deep Heading Reset */
h1, h2, h3, h4, h5, h6, .fw-800, .fw-bold, .fw-600, .display-3, .display-4, .display-5, .v3-title {
    color: var(--bento-text) !important;
    -webkit-text-fill-color: initial !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

/* Muted Text - Controlled Brightness */
.text-muted, .text-secondary, .opacity-75, .opacity-50, .small {
    color: var(--bento-text-muted) !important;
    opacity: 1 !important;
}

/* Placeholder Consistency */
::placeholder {
    color: var(--bento-placeholder) !important;
    opacity: 1 !important;
}
::-webkit-input-placeholder {
    color: var(--bento-placeholder) !important;
    opacity: 1 !important;
}
::-moz-placeholder {
    color: var(--bento-placeholder) !important;
    opacity: 1 !important;
}
:-ms-input-placeholder {
    color: var(--bento-placeholder) !important;
}
::-ms-input-placeholder {
    color: var(--bento-placeholder) !important;
}
.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--bento-placeholder) !important;
    opacity: 1 !important;
}

/* Link & Action Consistency */
a:not(.btn):not(.nav-link) {
    color: var(--bento-primary) !important;
}

a:not(.btn):not(.nav-link):hover {
    color: var(--bento-primary) !important;
}
.brand-text-group p {
    color: var(--bento-primary) !important;
}

/* Legacy Utility Overrides */
.text-dark, .text-slate-800, .text-slate-700, .text-black {
    color: var(--bento-text) !important;
}

/* Background overrides for nested elements */
.bg-light, .bg-white, .bg-light-soft, .bg-soft-primary, .bg-soft-indigo {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--bento-text) !important;
    border: 1px solid var(--bento-border) !important;
}

/* Bento Cards Refined */
.card, .product-card, .sidebar-card, .glass-card, .dashboard-sidebar, .review-card, .v3-details, .forum-header, .glass-sidebar, .bento-item, .thread-card, .comment-card, .accordion-item {
    background: var(--bento-card-bg) !important;
    border: 1px solid var(--bento-border) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: var(--bento-radius) !important;
    padding: 24px !important;
    color: var(--bento-text) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: none !important;
}

.card:hover, .product-card:hover, .bento-item:hover, .thread-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-5px) !important;
}

/* BS Accordion Specifics */
.accordion-button {
    background-color: transparent !important;
    color: var(--bento-text) !important;
    font-weight: 700 !important;
    padding: 6px 0px 25px 0px !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--bento-primary) !important;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Highlighting */
.highlight-text, .text-gradient {
    background: var(--bento-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

/* Universal Bento Utilities */
.bg-glass {
    background: rgba(255, 255, 255, 0.05) !important;
}

.text-muted-bento {
    color: var(--bento-text-muted) !important;
}

.hover-lift {
    transition: transform 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-5px) !important;
}

.bento-input {
    background: transparent !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 12px !important;
    color: var(--bento-text) !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.bento-input:focus {
    background: transparent !important;
    border-color: var(--bento-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.bento-input::placeholder {
    color: var(--bento-text-muted) !important;
}

/* Navbar: Floating Dock Style */
.navbar-custom {
    background: var(--bento-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--bento-border) !important;
    margin: 20px auto !important;
    border-radius: 16px !important;
    width: 95% !important;
    max-width: 1200px !important;
    padding: 10px 20px !important;
    top: 0 !important;
    position: sticky !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999;
}

.navbar-brand .brand-text-group {
    text-decoration: none !important;
}

.navbar-brand:hover {
    text-decoration: none !important;
}

/* Mobile Navbar: Standard full-width sticky header */
@media (max-width: 991px) {
    .navbar-custom {
        position: fixed !important;
        top: auto !important;
        bottom: 16px !important;
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        left: 16px !important;
        right: 16px !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        border-radius: 16px !important;
        border: 1px solid var(--bento-border) !important;
        background: var(--bento-glass) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    }

    body {
        padding-bottom: 0px !important;
    }
    
    .bento-footer {
        padding-bottom: 100px !important;
    }

    .navbar-custom.navbar > .container,
    .navbar-custom.navbar > .container-fluid {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .navbar-custom .navbar-brand {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .navbar-custom .navbar-brand .brand-meta {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    /* Smaller logo on mobile */
    .navbar-custom .navbar-brand .footer-logo-box img {
        width: 28px !important;
        height: 22px !important;
    }

    /* Smaller title, no overflow */
    .navbar-custom .navbar-brand .brand-text-group h5 {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hide slogan on mobile */
    .navbar-custom .navbar-brand .brand-text-group p {
        display: none !important;
    }

    /* Buttons: never shrink */
    .navbar-custom .d-flex.align-items-center.order-lg-3 {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        width: auto !important;
    }
}

/* ===== Mobile Menu: Premium Left Side Drawer ===== */
@media (max-width: 991px) {

    /* Drawer panel */
    .navbar-custom .navbar-collapse {
        position: absolute !important;
        bottom: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(85dvh - 80px) !important;
        margin-bottom: 16px !important;
        z-index: 9000 !important;
        background: var(--bento-bg-alt) !important;
        border: 1px solid var(--bento-border) !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 32px 24px 24px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateY(20px) scale(0.95) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0.3s !important;
    }

    /* Handle for bottom sheet */
    .navbar-custom .navbar-collapse::before {
        content: '' !important;
        position: absolute !important;
        top: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px !important;
        height: 5px !important;
        border-radius: 10px !important;
        background: var(--bento-border) !important;
    }

    /* Bootstrap collapsing override */
    .navbar-custom .navbar-collapse.collapsing {
        height: auto !important;
        max-height: 85dvh !important;
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    }

    .navbar-custom .navbar-collapse.show {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Section label */
    .mobile-menu-label {
        font-size: 0.6rem !important;
        font-weight: 800 !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        color: rgba(99, 102, 241, 0.7) !important;
        padding: 0 12px 14px !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid rgba(99, 102, 241, 0.12) !important;
        display: block !important;
    }

    /* Nav list */
    .navbar-custom .navbar-collapse .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2px !important;
        width: 100% !important;
    }

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

    /* Nav links — compact */
    .navbar-custom .navbar-collapse .nav-link {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        padding: 11px 16px 11px 13px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        color: rgba(148, 163, 184, 0.9) !important;
        border: none !important;
        border-left: 3px solid transparent !important;
        background: transparent !important;
        transition: all 0.22s ease !important;
        box-sizing: border-box !important;
    }

    .navbar-custom .navbar-collapse .nav-link:hover {
        background: rgba(99, 102, 241, 0.07) !important;
        color: #c7d2fe !important;
        padding-left: 22px !important;
    }

    .navbar-custom .navbar-collapse .nav-link.active {
        background: rgba(99, 102, 241, 0.12) !important;
        color: #a5b4fc !important;
        font-weight: 700 !important;
    }

    /* Dropdown inside drawer */
    .navbar-custom .navbar-collapse .dropdown-menu {
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        background: rgba(99, 102, 241, 0.04) !important;
        border-left: 2px solid rgba(99, 102, 241, 0.2) !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 4px 0 4px 8px !important;
        margin: 4px 0 4px 12px !important;
        backdrop-filter: none !important;
    }

    .navbar-custom .navbar-collapse .dropdown-item {
        border-radius: 8px !important;
        padding: 9px 14px !important;
        font-size: 0.88rem !important;
        color: rgba(148, 163, 184, 0.85) !important;
        transition: all 0.2s ease !important;
    }

    .navbar-custom .navbar-collapse .dropdown-item:hover {
        background: rgba(99, 102, 241, 0.1) !important;
        color: #a5b4fc !important;
        padding-left: 20px !important;
    }

    /* Action buttons — same size and alignment as nav links */
    .navbar-custom .navbar-collapse .nav-item.ms-lg-2:first-of-type {
        margin-top: 16px !important;
        padding-top: 16px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .navbar-custom .navbar-collapse .nav-item.ms-lg-2,
    .navbar-custom .navbar-collapse .nav-item.ms-2 {
        margin-top: 6px !important;
        display: block !important;
    }

    .navbar-custom .navbar-collapse .nav-item .btn,
    .navbar-custom .navbar-collapse .nav-item .dropdown > .btn {
        width: 100% !important;
        height: auto !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        padding: 11px 16px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        font-weight: 600 !important;
    }

    /* Cart button — warm orange accent, same layout as Login/Register */
    .navbar-custom .navbar-collapse .nav-item.ms-2 {
        margin-left: 0 !important;
        margin-top: 6px !important;
        display: block !important;
    }

    .navbar-custom .navbar-collapse .nav-item.ms-2 .btn {
        background: linear-gradient(135deg, #f59e0b 0%, #ed6c23 100%) !important;
        box-shadow: 0 4px 15px rgba(237, 108, 35, 0.25) !important;
        border-radius: 10px !important;
        padding: 11px 16px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
    }

    /* Close button — fixed at top-right of the drawer, never scrolls away */
    .mobile-menu-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        left: auto !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        background: rgba(99, 102, 241, 0.15) !important;
        border: 1px solid rgba(99, 102, 241, 0.35) !important;
        color: #a5b4fc !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 9001 !important;
        transition: all 0.25s ease !important;
    }

    .mobile-menu-close:hover {
        background: #6366f1 !important;
        border-color: #6366f1 !important;
        color: #fff !important;
        transform: rotate(90deg) scale(1.05) !important;
    }

    /* Backdrop */
    .mobile-menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 8999;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .mobile-menu-backdrop.active {
        display: block;
    }

    /* Toggler icon */
    .navbar-custom .navbar-toggler .navbar-toggler-icon {
        background-image: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
    }

    .navbar-custom .navbar-toggler .navbar-toggler-icon i {
        font-size: 1.2rem !important;
        pointer-events: none !important;
        color: var(--bento-text) !important;
    }
}

/* Modal always above navbar (z-index: 9999) and drawer (z-index: 9000) */
.modal-backdrop {
    z-index: 10000 !important;
}

/* ===== Mobile Drawer: Light Mode Color Overrides ===== */
@media (max-width: 991px) {

    /* Panel background */
    [data-theme="light"] .navbar-custom .navbar-collapse {
        background: var(--bento-bg-alt) !important;
        border: 1px solid var(--bento-border) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    }

    /* Section label */
    [data-theme="light"] .mobile-menu-label {
        color: rgba(52, 84, 180, 0.75) !important;
        border-bottom-color: rgba(52, 84, 180, 0.12) !important;
    }

    /* Nav links */
    [data-theme="light"] .navbar-custom .navbar-collapse .nav-link {
        color: #334155 !important;
    }

    [data-theme="light"] .navbar-custom .navbar-collapse .nav-link:hover {
        background: rgba(52, 84, 180, 0.07) !important;
        color: var(--bento-primary) !important;
    }

    [data-theme="light"] .navbar-custom .navbar-collapse .nav-link.active {
        background: rgba(52, 84, 180, 0.1) !important;
        color: var(--bento-primary) !important;
    }

    /* Dropdown */
    [data-theme="light"] .navbar-custom .navbar-collapse .dropdown-menu {
        background: rgba(52, 84, 180, 0.04) !important;
        border-left-color: rgba(52, 84, 180, 0.18) !important;
    }

    [data-theme="light"] .navbar-custom .navbar-collapse .dropdown-item {
        color: #475569 !important;
    }

    [data-theme="light"] .navbar-custom .navbar-collapse .dropdown-item:hover {
        background: rgba(52, 84, 180, 0.08) !important;
        color: #3454b4 !important;
    }

    /* Close button */
    [data-theme="light"] .mobile-menu-close {
        background: rgba(52, 84, 180, 0.1) !important;
        border-color: rgba(52, 84, 180, 0.3) !important;
        color: #3454b4 !important;
    }

    [data-theme="light"] .mobile-menu-close:hover {
        background: #3454b4 !important;
        border-color: #3454b4 !important;
        color: #fff !important;
    }

    /* Backdrop — lighter in light mode */
    [data-theme="light"] .mobile-menu-backdrop {
        background: rgba(15, 23, 42, 0.4) !important;
        backdrop-filter: blur(3px) !important;
    }
}


/* PWA Install button — mobile drawer override */
body.pwa-installable .navbar-collapse .pwa-install-btn {
    display: block !important;
}

body.pwa-installable .navbar-collapse .pwa-install-btn a {
    display: flex !important;
}

/* Force-hide mobile drawer install button on desktop (overrides pwa-installable !important) */
@media (min-width: 992px) {
    .navbar-nav li.pwa-install-btn,
    body.pwa-installable .navbar-nav li.pwa-install-btn {
        display: none !important;
    }
}

.modal {
    z-index: 10001 !important;
}



/* Navbar toggler: dark/light mode aware (overrides hardcoded inline style) */
.navbar-custom .navbar-toggler {
    border-radius: 8px !important;
    border: 1px solid var(--bento-border) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

[data-theme="dark"] .navbar-custom .navbar-toggler {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}



/* Dropdown Menu Refinements */
.dropdown-menu {
    background: var(--bento-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 20px !important;
    margin-top: 15px !important;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-top: 0 !important;
}

.dropdown-item {
    color: var(--bento-text-muted) !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: var(--bento-border) !important;
    color: var(--bento-primary) !important;
    transform: translateX(5px) !important;
}

.nav-link {
    color: var(--bento-text-muted) !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease !important;
}

.nav-link:hover {
    color: var(--bento-text) !important;
}
.nav-link.active {
    font-weight: 800 !important;
}

/* Buttons */
.btn, .btn-colorful, .v3-btn-primary {
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}

.btn-primary, .btn-colorful, .v3-btn-primary, .btn[style*="background: var(--bento-gradient)"] {
    background: var(--bento-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(52, 84, 180, 0.3) !important;
}

[data-theme="light"] .btn-primary, 
[data-theme="light"] .btn-colorful, 
[data-theme="light"] .v3-btn-primary,
[data-theme="light"] .btn[style*="background: var(--bento-gradient)"],
[data-theme="light"] .btn[style*="var(--bento-gradient)"] {
    background: var(--bento-gradient) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-colorful:hover {
    box-shadow: 0 8px 25px rgba(52, 84, 180, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Grid Layout for Components */
.bento-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
}

/* Dashboard Specific */
.dashboard-wrapper {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 24px !important;
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Theme Elements */
/* Theme Elements — Premium Section Badge */
.badge-soft {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--bento-card-bg) !important;
    color: var(--bento-primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 100px !important;
    padding: 6px 18px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    position: relative !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.06), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.badge-soft::before {
    content: '✦' !important;
    font-size: 0.65rem !important;
    color: var(--bento-primary) !important;
    opacity: 0.7 !important;
}

/* Form Controls */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 12px !important;
    color: var(--bento-text) !important;
    padding: 14px 16px !important;
    min-height: 54px !important;
}

.form-control::placeholder {
    color: var(--bento-placeholder) !important;
    opacity: 1 !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--bento-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.invalid-feedback {
    color: var(--bento-secondary) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bento-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bento-text-muted);
}

/* Bento Pagination Redesign */
.pagination {
    gap: 8px !important;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--bento-border) !important;
    color: var(--bento-text) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    transition: all 0.3s ease !important;
}

.page-item.active .page-link {
    background: var(--bento-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    color: #fff !important;
}

.page-item:not(.active) .page-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--bento-text-muted) !important;
    opacity: 0.5 !important;
}

/* --- Consolidated Component Styles --- */

/* Common Utilities */
.ls-1 { letter-spacing: 1px !important; }
.tiny { font-size: 0.65rem !important; }
.fw-800 { font-weight: 800 !important; }
.playfair-display { font-family: 'Playfair Display', serif !important; }

.highlight-text {
    background: var(--bento-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.description-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.hover-primary:hover {
    color: var(--bento-primary) !important;
}

/* Bento Dock Navigation */
.bento-dock {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--bento-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 100px !important;
    padding: 10px 25px !important;
    display: none !important;
    gap: 20px !important;
    z-index: 2000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 991px) {
    .bento-dock {
        display: flex !important;
    }
}

.bento-dock a {
    color: var(--bento-text-muted) !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease !important;
    padding: 8px !important;
    border-radius: 50% !important;
}

.bento-dock a.active {
    color: var(--bento-primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    transform: translateY(-5px) !important;
}

.bento-dock a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Cart & Checkout */
.cart-page-wrapper {
    background-color: var(--bento-bg) !important;
    min-height: 100vh !important;
    color: var(--bento-text) !important;
}

.cart-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cart-item-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.item-img-wrapper {
    width: 80px !important;
    height: 80px !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--bento-border) !important;
}

.qty-control {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 50px !important;
    padding: 4px !important;
    gap: 8px !important;
}

.qty-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid var(--bento-border) !important;
    background: transparent !important;
    color: var(--bento-text) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.qty-btn:hover {
    background: var(--bento-primary) !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.1) !important;
}

.qty-val {
    font-weight: 700 !important;
    min-width: 20px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--bento-text) !important;
}

.payment-option {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.payment-option.active {
    border-color: var(--bento-primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15) !important;
}

/* Shop Components */
.bento-category-list {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
}

.wishlist-trigger {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10 !important;
}

.custom-check .form-check-input:checked {
    background-color: var(--bento-primary) !important;
    border-color: var(--bento-primary) !important;
}

/* Forum Components */
.glass-toggle-group {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--bento-border) !important;
    display: inline-flex !important;
}

.btn-glass {
    color: var(--bento-text-muted) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-glass:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.vote-panel .hover-primary:hover {
    color: var(--bento-primary) !important;
    transform: translateY(-1px) !important;
}

/* Feature Cards */
.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--bento-primary) !important;
}

/* Footer & Social */

.social-link-item {
    width: 36px !important;
    height: 36px !important;
    background: rgba(128, 128, 128, 0.1) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--bento-primary) !important;
    transition: all 0.3s !important;
}

.social-link-item:hover {
    background: var(--bento-primary) !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
}

.footer-nav-link-bento:hover {
    color: var(--bento-primary) !important;
}

/* === Footer: Mobile Centering === */
@media (max-width: 991px) {

    /* Stack all footer columns and center them */
    .bento-footer .row.g-4 > [class*="col-lg-4"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Brand card: center logo + title row */
    .bento-footer .d-flex.align-items-center.gap-3.mb-4 {
        justify-content: center !important;
    }

    /* Center social icons */
    .bento-footer .social-links {
        justify-content: center !important;
    }

    /* Navigation links: center the cols */
    .bento-footer .row.g-2 {
        justify-content: center !important;
        text-align: center !important;
    }

    .bento-footer .footer-nav-link-bento {
        text-align: center !important;
    }

    /* Connectivity cards: center icon + text */
    .bento-footer .contact-card-bento {
        justify-content: center !important;
        text-align: left !important; /* keep text left inside the card */
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Section headings inside footer cards */
    .bento-footer h6 {
        text-align: center !important;
    }

    /* Footer bento-item cards: slightly tighter padding on mobile */
    .bento-footer .bento-item {
        padding: 1.25rem !important;
    }
}

.contact-card-bento {
    background: var(--bento-card-bg) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 16px !important;
    padding: 12px !important;
    transition: all 0.3s !important;
}

.contact-card-bento:hover {
    background: var(--bento-glass) !important;
    border-color: var(--bento-primary) !important;
    transform: translateY(-2px) !important;
}

.contact-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Dashboard Grid */
.bento-grid-dashboard {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

.bento-chart-container {
    grid-column: span 2 !important;
}

.bento-action-box {
    grid-column: span 1 !important;
}

@media (max-width: 768px) {
    .bento-grid-dashboard {
        grid-template-columns: 1fr !important;
    }
    .bento-chart-container, .bento-action-box {
        grid-column: span 1 !important;
    }
}

.bento-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
}

.bento-table tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
}

.bento-table td, .bento-table th {
    padding: 16px 12px !important;
    border: none !important;
}

.bg-white-5 {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Section Titles & Labels */
.section-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
}

.compact-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--bento-text-muted) !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
}

.empty-state-icon {
    font-size: 4rem !important;
    opacity: 0.2 !important;
}


.frosted-glass {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bento-nav-pills {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.bento-nav-pills .nav-link {
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 10px !important;
}

.bento-nav-pills .nav-link.active {
    background: var(--bento-primary) !important;
    color: #fff !important;
}

.bento-input {
    background: transparent !important;
    border: 1px solid var(--bento-border) !important;
    color: var(--bento-text) !important;
    border-radius: 12px !important;
}

.bento-input:focus {
    border-color: var(--bento-primary) !important;
    background: transparent !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Base Section Style */
.bento-section {
    background-color: var(--bento-bg) !important;
    position: relative !important;
}

/* Banner & Hero Components */
.hero-section {
    min-height: 90vh !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-mesh-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0, transparent 50%) !important;
    pointer-events: none !important;
}

.control-btn {
    width: 50px !important;
    height: 50px !important;
    background: var(--bento-card-bg) !important;
    border: 1px solid var(--bento-border) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.control-btn:hover {
    background: var(--bento-primary) !important;
    transform: scale(1.1) !important;
}

.bento-img-premium {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) !important;
}

/* Subscribe & Form Handling */
.glass-input-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.glass-field {
    position: relative;
}

.glass-field .form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 1.625rem 1.5rem 0.625rem 3.5rem !important; /* Adjusted for centering */
    height: calc(3.5rem + 2px) !important;
    line-height: 1.25 !important;
}

.glass-field .form-control:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--bento-primary) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15) !important;
}

.glass-field label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem !important;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, color .15s ease-in-out;
    color: rgba(255, 255, 255, 0.45) !important;
    display: flex;
    align-items: center;
    opacity: 1;
}

.glass-field label i {
    position: absolute;
    left: 1.5rem;
    font-size: 1.1rem;
    color: var(--bento-primary);
    transition: transform .15s ease-in-out, opacity .15s ease-in-out;
}

.glass-field .form-control:focus~label,
.glass-field .form-control:not(:placeholder-shown)~label {
    transform: scale(.85) translateY(-0.9rem) translateX(0.5rem) !important;
    color: var(--bento-primary) !important;
}

.glass-field .form-control:focus~label i,
.glass-field .form-control:not(:placeholder-shown)~label i {
    opacity: 0;
    transform: scale(0.5);
}

.transform-hover {
    transition: transform 0.3s ease !important;
}

.transform-hover:hover {
    transform: scale(1.02) !important;
}

/* Forum Details Specifics */
.vote-panel-vertical .up.hover-primary:hover,
.vote-btn-v2.up.active {
    color: #10b981 !important; /* Emerald 500 */
    transform: translateY(-2px) !important;
}

.vote-panel-vertical .down.hover-primary:hover,
.vote-btn-v2.down.active {
    color: #f43f5e !important; /* Rose 500 */
    transform: translateY(2px) !important;
}

.thread-body {
    color: var(--bento-text-muted) !important;
}

/* Extra Utility Mixins for Inline Style replacement */
.bento-max-h-500 { max-height: 500px !important; }
.bento-max-w-600 { max-width: 600px !important; }
.bento-max-w-650 { max-width: 650px !important; }
.bento-dashed-border { border: 1px dashed rgba(255,255,255,0.2) !important; }

.bento-divider {
    width: 80px !important;
    height: 4px !important;
    background: var(--bento-gradient) !important;
    border-radius: 2px !important;
}

.bg-soft-indigo {
    background: rgba(99, 102, 241, 0.1) !important;
}

.ls-2 { letter-spacing: 2px !important; }

.bento-w-15 { width: 15px !important; }
.bento-h-6 { height: 6px !important; }



/**
* NAVBAR DROPDOWN DESIGN
* -------------------------------------------
*/

.dropdown-menu {
    background: var(--bento-glass) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--bento-border) !important;
    padding: 0.75rem !important;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item {
    border-radius: var(--bento-radius);
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--bento-text) !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bento-border) !important;
    color: var(--bento-primary) !important;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: var(--bento-gradient) !important;
    color: white !important;
}

/* Animation */
.animate-slide-in {
    animation: dropIn 0.3s ease-out forwards;
    transform-origin: top center;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

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

/* Multi-level dropdown support */
@media (min-width: 992px) {
    .dropdown-menu .dropdown-menu {
        top: -10px;
        left: 100%;
        margin-left: 0.5rem;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }

    /* Hide the default BS arrow for nested items */
    .dropdown-item.dropdown-toggle::after {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        background: #fff !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1.5rem !important;
    }
}

/**
* PRODUCT CARD DESIGN
* -------------------------------------------
*/
.product-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}

.product-card .btn[data-wishlist-id],
.product-card .btn[data-cart-id] {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}
.product-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img {
    transform: scale(1.1);
}
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.wishlist-btn:hover,
.wishlist-btn.active {
    color: #f43f5e;
    transform: scale(1.1);
}
.badge-soft {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/**
* FOOTER DESIGN
* -------------------------------------------
*/

.compact-footer {
    background: #0f172a;
    /* Midnight Slate */
    color: #94a3b8;
    padding: 40px 0 25px;
    font-family: 'Plus Jakarta Display', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Brand Section - Unified & Tight */
.compact-footer .brand-meta {
    margin-bottom: 0;
}

.compact-footer .footer-logo-box {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Horizontal Nav Hub */
.compact-footer .footer-nav-header {
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.compact-footer .footer-nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.compact-footer .footer-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.compact-footer .footer-nav-link:hover {
    color: #6366f1;
}

/* Contact - Inline & Efficient */
.compact-footer .contact-compact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.compact-footer .contact-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.compact-footer .contact-mini-icon {
    color: #6366f1;
    font-size: 0.8rem;
    opacity: 0.8;
}

.compact-footer .contact-mini-val {
    color: #cbd5e1;
    text-decoration: none;
}

/* Bottom Bar - Ultra Thin */
.compact-footer .bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 30px;
    padding-top: 20px;
}

.compact-footer .social-mini-flex {
    display: flex;
    gap: 12px;
}

.compact-footer .social-mini-ico {
    color: #475569;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.compact-footer .social-mini-ico:hover {
    color: #fff;
    transform: translateY(-2px);
}

.compact-footer .copyright-tiny {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 991px) {
    .compact-footer {
        padding: 30px 0 20px;
    }

    .compact-footer .brand-meta {
        margin-bottom: 25px;
    }
}

/**
* SHOP DESIGN
* -------------------------------------------
*/
.shop-header {
    padding-top: 60px;
    padding-bottom: 60px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(99, 102, 241, 0.05));
}

/* Sidebar Styling */
.sidebar-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Product Card Premium (Shared in head, but ensuring local overrides) */
.product-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Product Header Section */
.product-header-section {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* Product Gallery */
.main-product-img {
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.main-product-img:hover {
    transform: scale(1.02);
}

.thumb-img {
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism Sections */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    margin-right: 1rem;
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 4px;
}

.rating-stars i {
    font-size: 1.2rem;
}

.star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 2rem;
}

.star-rating-input i {
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Rating Distribution */
.rating-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

/* Review Card */
.review-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-card.featured {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
}

.review-card.pinned {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.02);
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.v3-details {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #ffffff;
    color: #111827;
    padding-top: 4rem;
    padding-bottom: 8rem;
}

/* Modern Minimalist Breadcrumb */
.v3-breadcrumb {
    margin-bottom: 3rem;
}

.v3-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v3-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.v3-breadcrumb a:hover {
    color: #111827;
}

/* Gallery - Apple Style */
.v3-gallery-container {
    background: #f9fafb;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.carousel-v3 .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.v3-thumb-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.v3-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    object-fit: cover;
    background: #fff;
    padding: 4px;
}

.v3-thumb.active {
    border-color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Info Hero */
.v3-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1rem;
}

.v3-short-desc {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 90%;
}

.v3-meta-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #111827;
    background: var(--bento-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v3-price-block {
    margin-bottom: 3rem;
}

.v3-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bento-text);
}

.v3-price-old {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

/* Buttons */
.v3-btn-primary {
    background: #111827;
    color: #fff !important;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.125rem;
}

.v3-btn-primary:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.v3-btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151 !important;
    padding: 1.1rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.v3-btn-outline:hover {
    border-color: #111827;
    background: #f9fafb;
    color: #111827 !important;
}

/* Quantity */
.v3-qty {
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    max-width: 140px;
}

.v3-qty button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.2rem;
}

.v3-qty input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
}

/* Tabs */
.v3-tabs-nav {
    border: none;
    justify-content: start;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 6rem;
    margin-bottom: 3rem;
}

.v3-tabs-nav .nav-link {
    border: none;
    padding: 1rem 0;
    font-weight: 700;
    color: #6b7280;
    position: relative;
}

.v3-tabs-nav .nav-link.active {
    color: #111827;
    background: transparent;
}

.v3-tabs-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #111827;
    border-radius: 2px;
}

/* Specifications Table */
.v3-specs-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem 0;
}

.v3-specs-key {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
}

.v3-specs-val {
    font-weight: 700;
    color: #111827;
    text-align: right;
}

/* Reviews Styling */
.v3-review-card {
    border: 1px solid #f3f4f6;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.v3-user-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/**
* FORUM DESIGN
* -------------------------------------------
*/

/* Forum Header & search */
.forum-header {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(99, 102, 241, 0.05));
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: white;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    display: flex;
}

.search-input {
    border: none;
    background: transparent;
    padding-left: 25px;
    font-weight: 500;
    box-shadow: none !important;
}

.search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s;
}

/* Sidebar Content */
.glass-sidebar {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 15px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.category-item:hover,
.category-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.tag-pill {
    display: inline-block;
    padding: 6px 15px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Feed & Cards */
.thread-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.thread-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.vote-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 15px;
    min-width: 50px;
}

.vote-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.vote-btn:hover {
    color: #6366f1;
}

.vote-count {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
}

.forum-details-container {
    padding-top: 4rem;
}

.v3-breadcrumb {
    margin-bottom: 3rem;
}

.v3-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v3-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.v3-breadcrumb a:hover {
    color: #111827;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.vote-panel-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 15px;
    height: fit-content;
}

.vote-btn-v2 {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn-v2:hover,
.vote-btn-v2.active-up {
    color: #6366f1;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.vote-btn-v2:hover.down,
.vote-btn-v2.active-down {
    color: #f43f5e;
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.05);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
}

.comment-card {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.comment-card:last-child {
    border-bottom: none;
}

.trending-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.trending-item:hover .trending-title {
    color: #6366f1;
}

.trending-icon {
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

/*
* CONTACT FORM
* -------------------------------------------
*/

/* Contact Header */
.contact-header {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(99, 102, 241, 0.05));
}

/* Info Icons & Cards */
.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.glass-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.05);
}

.map-wrapper {
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* 
* 3RD LOGO COLOR INTEGRATION (ORANGE ACCENT)
* Override Bootstrap's default yellow warnings to map exactly to the brand's orange color!
*/
.text-warning {
    color: var(--bento-accent) !important;
}

.bg-warning {
    background-color: var(--bento-accent) !important;
    color: #fff !important;
}

.bg-soft-warning {
    background-color: rgba(251, 146, 60, 0.1) !important; 
    color: var(--bento-accent) !important;
}

.alert-warning {
    background-color: rgba(251, 146, 60, 0.1) !important;
    border-color: rgba(251, 146, 60, 0.2) !important;
    color: var(--bento-accent) !important;
}

.bento-stat-warning {
    border-left: 4px solid var(--bento-accent) !important;
}

/* Ensure buttons using warning map correctly too */
.btn-warning {
    background-color: var(--bento-accent) !important;
    border-color: var(--bento-accent) !important;
    color: #ffffff !important;
}
.btn-warning:hover {
    background-color: #f97316 !important;
    border-color: #f97316 !important;
}

/* 
* THEME ICON COLORING
* Automatically colorize major section icons (like features, services, dashboards)
* with the brand's primary gradient to match the logo scheme!
*/
.bento-item > i.fa-3x,
.bento-item > i.fa-4x,
.bento-item > i.fs-1,
.bento-item h3 i:not(.fa-star),
.bento-item h4 i:not(.fa-star),
.bento-item h5 i:not(.fa-star),
.glass-card i.fa-3x,
.glass-card i.fa-4x,
.glass-card .feature-icon i,
.icon-wrapper i,
.card-body > i.fa-3x,
.card-body > i.fa-4x,
.text-primary i,
.bento-section .bento-item i.fs-1,
.bento-section .bento-item i.fs-2,
.bento-section .bento-item i.fs-3,
.bento-section .bento-item i.fs-4 {
    background: var(--bento-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1 !important;
}

/* Fallback/Overrides for generic text-muted icons in bento containers */
.bento-item > i.text-muted.opacity-25 {
    background: var(--bento-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8 !important;
}

/* Let specific color classes override the text-fill */
.text-warning i,
i.text-warning {
    background: none !important;
    -webkit-text-fill-color: var(--bento-accent) !important;
    color: var(--bento-accent) !important;
}

.text-success i,
i.text-success {
    background: none !important;
    -webkit-text-fill-color: var(--bento-secondary) !important;
    color: var(--bento-secondary) !important;
}

/* Select2 Custom Bento Integration */
.select2-container--bootstrap-5 .select2-selection {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 12px !important;
    color: var(--bento-text) !important;
    padding: 14px 16px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bento-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

.select2-container--bootstrap-5 .select2-selection .select2-selection__rendered {
    color: inherit !important;
    padding: 0 !important;
    line-height: normal !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    background: var(--bento-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    margin-top: 5px;
}

.select2-container--bootstrap-5 .select2-results__option {
    color: var(--bento-text-muted) !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--bento-primary) !important;
}

.select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 8px !important;
    color: var(--bento-text) !important;
    padding: 8px 12px !important;
}


/* SweetAlert2 Theme Integration */
.swal2-popup {
    background-color: var(--bento-card-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--bento-border) !important;
    color: var(--bento-text) !important;
    border-radius: var(--bento-radius) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.swal2-title {
    color: var(--bento-text) !important;
}
.swal2-html-container {
    color: var(--bento-text-muted) !important;
}
.swal2-confirm {
    background: var(--bento-gradient) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}
.swal2-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--bento-text) !important;
    border: 1px solid var(--bento-border) !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
}
.swal2-icon.swal2-success { border-color: #10b981 !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #10b981 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(16, 185, 129, 0.3) !important; }
.swal2-icon.swal2-error { border-color: #ef4444 !important; }
.swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: #ef4444 !important; }
.swal2-icon.swal2-warning { border-color: #f59e0b !important; color: #f59e0b !important; }
.swal2-icon.swal2-info { border-color: #3b82f6 !important; color: #3b82f6 !important; }
.swal2-icon.swal2-question { border-color: #6366f1 !important; color: #6366f1 !important; }
/* Light Mode Overrides for SweetAlert2 */
[data-theme="light"] .swal2-popup,
[data-bs-theme="light"] .swal2-popup,
body.light-mode .swal2-popup {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .swal2-title,
[data-bs-theme="light"] .swal2-title,
body.light-mode .swal2-title {
    color: #0f172a !important;
}
[data-theme="light"] .swal2-html-container,
[data-bs-theme="light"] .swal2-html-container,
body.light-mode .swal2-html-container {
    color: #475569 !important;
}
[data-theme="light"] .swal2-cancel,
[data-bs-theme="light"] .swal2-cancel,
body.light-mode .swal2-cancel {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

/* =====================================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   Covers: hero, features, services, our story,
   product cards, testimonials, subscribe, faqs
   ===================================================== */
@media (max-width: 991px) {

    /* --- Global Section Spacing & Typography --- */
    section,
    .bento-section,
    header#heroCarousel {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Kill double-padding from inner container py-5 */
    section .container.py-5,
    section .container-fluid.py-5,
    .bento-section .container.py-5,
    .bento-section .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Tighten footer top margin */
    .bento-footer.mt-5 {
        margin-top: 1.5rem !important;
    }

    /* Reduce gap between cards within a row */
    .row.g-4 {
        --bs-gutter-y: 1rem !important;
        --bs-gutter-x: 0.75rem !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* --- Prevent horizontal overflow / scroll --- */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Clip any element wider than viewport */
    .container,
    .container-fluid,
    header#heroCarousel,
    section,
    .bento-section,
    footer {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* --- Slider: match border-radius to menu (16px) --- */
    #heroCarousel .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #heroCarousel .carousel-inner {
        border-radius: 16px !important;
    }

    /* Prev/Next buttons fully inside the card */
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 36px !important;
    }

    /* --- Our Story: card border-radius matches menu --- */
    .our-story-card,
    .bento-section .rounded-5 {
        border-radius: 16px !important;
    }

    /* Target the our_story inner card specifically */
    section .rounded-5.shadow-sm.overflow-hidden {
        border-radius: 16px !important;
    }

    /* Our story image — cap height on mobile */
    .col-lg-5.h-100 img {
        min-height: 180px !important;
        max-height: 220px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    /* --- Footer mobile: remove redundant overrides (layout handled in HTML) --- */
    .bento-footer .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .bento-footer .bento-item {
        padding: 1.25rem !important;
    }

    .display-3,
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .display-5 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h5 { font-size: 1rem !important; }

    .lead, .fs-5 {
        font-size: 0.95rem !important;
    }

    /* --- Hero / Banner Carousel --- */
    .carousel-item .row {
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }

    .carousel-item .row .col-12 {
        padding: 0.5rem 0 !important;
    }

    /* Carousel nav buttons compact */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
    }

    /* --- Feature Cards (col-lg-4 col-md-6) --- */
    .bento-section .row.g-4 > [class*="col-lg-4"],
    .bento-section .row.g-4 > [class*="col-md-6"],
    .bento-section .row.g-4 > [class*="col-md-4"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .bento-item {
        padding: 1.25rem !important;
    }



    /* --- Services Section (col-md-4) --- */
    .bento-section .row.g-4.pt-4 > [class*="col-md-4"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* --- Our Story (col-lg-5 / col-lg-7 stacked) --- */
    .col-lg-5.h-100 img {
        min-height: 220px !important;
        max-height: 260px !important;
    }

    .col-lg-7 .p-4.p-lg-5,
    .col-lg-7 > div {
        padding: 1.25rem !important;
        text-align: center !important;
    }

    .col-lg-7 .d-flex.align-items-center.gap-3.mb-4 {
        justify-content: center !important;
    }

    .col-lg-7 .d-flex.flex-wrap.gap-3 {
        flex-direction: column !important;
    }

    .col-lg-7 .d-flex.flex-wrap.gap-3 > div {
        flex: 1 1 auto !important;
    }

    /* --- Product Feature Cards (col-lg-3 col-md-6) --- */
    .row.g-4 > [class*="col-lg-3"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .product-card {
        padding: 0.75rem !important;
    }

    .product-img-wrapper {
        height: 180px !important;
    }

    /* Product card price + actions */
    .product-card .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .product-card .d-flex.gap-2.justify-content-end {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .product-card .btn {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .product-card .btn[data-wishlist-id],
    .product-card .btn[data-cart-id] {
        flex: 0 0 auto !important;
        width: 42px !important;
    }

    /* Section header row (title + Browse All btn) */
    .d-flex.flex-column.flex-md-row.justify-content-between {
        align-items: center !important;
        text-align: center !important;
    }

    .d-flex.flex-column.flex-md-row.justify-content-between > a.btn {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        margin-top: 0.5rem !important;
    }

    /* --- Testimonials --- */
    #testimonialCarousel .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
    }

    #testimonialCarousel .bento-item.p-5 {
        padding: 1.25rem !important;
    }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        width: 32px !important;
    }

    /* --- Subscribe Section --- */
    .bento-subscribe-form .d-flex.flex-column.gap-3 .btn {
        font-size: 0.9rem !important;
        padding: 12px 16px !important;
    }

    /* --- General Button Fixes --- */
    .btn.px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .btn.py-3 {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    /* Make side-by-side btn groups wrap properly */
    .d-flex.gap-3:has(.btn) {
        flex-wrap: wrap !important;
    }

    .d-flex.gap-3 > .btn {
        flex: 1 1 auto !important;
        min-width: 140px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* --- Forum Features --- */
    .row.g-4 > [class*="col-lg-4"]:has(.bento-item) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* --- FAQs --- */
    .accordion-button {
        font-size: 0.9rem !important;
    }

    /* --- General card / bento item inner padding --- */
    .p-4.p-md-5 {
        padding: 1.25rem !important;
    }

    .p-5 {
        padding: 1.25rem !important;
    }

    /* --- Section title centering & margin --- */
    .text-center.mb-6,
    .text-center.mb-5,
    .mb-5, .mb-6 {
        margin-bottom: 1rem !important;
    }

    .mt-4, .mt-5, .mt-6 {
        margin-top: 1rem !important;
    }

    /* --- Min height hero fix --- */
    .min-vh-50 {
        min-height: auto !important;
    }

    /* --- Our Story: infoboxes stack centered on mobile --- */
    .story-infobox {
        flex: 1 1 100% !important;
        justify-content: center !important;
    }
}

/* =====================================================
   FOOTER BRAND SECTION — Premium redesign
   ===================================================== */
.bento-footer .bento-icon-box {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15)) !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(99,102,241,0.15) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.bento-footer .bento-icon-box img,
.bento-footer .bento-icon-box i {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

@media (max-width: 991px) {
    .bento-footer .bento-icon-box {
        width: 72px !important;
        height: 72px !important;
    }
}


.bento-footer h5 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 2px !important;
}

.bento-footer small.ls-1 {
    display: inline-block !important;
    background: var(--bento-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 0.62rem !important;
    letter-spacing: 2px !important;
}

/* =====================================================
   NAVBAR TOGGLER — smooth bars → X transition
   ===================================================== */
.navbar-toggler-icon {
    transition: transform 0.25s ease !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg) !important;
}

.navbar-toggler .fa-times {
    color: var(--bento-primary) !important;
    font-size: 1.1rem !important;
}