/**
 * Teesside Peptides - Custom Styles
 *
 * Custom CSS ONLY for:
 * - Colours
 * - Hover effects
 * - Button styles
 * - Branding
 *
 * Bootstrap handles all layout, spacing, and responsiveness.
 */

/* == Colour Variables == */
:root {
    --navy: #0B1F45;
    --navy-light: #16305A;
    --navy-dark: #071530;
    --accent: #D4AF37;
    --white: #FFFFFF;
    --light-grey: #F8F9FA;
    --text-muted: #6C757D;
}

/* Apply the classy Serif font globally */
body, h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', Arial, sans-serif !important;
}


/* Keep buttons and input fields crisp and readable */
button, input, select, textarea, .btn, .badge {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
/* == Background Colours == */
.bg-navy {
    background-color: var(--navy) !important;
}

.bg-navy-light {
    background-color: var(--navy-light) !important;
}

/* == Text Colours == */
.text-navy {
    color: var(--navy) !important;
}

.text-brand-accent {
    color: var(--accent) !important;
}

/* == Buttons == */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
}

.btn-primary:active,
.btn-primary:focus {
    background-color: var(--navy-dark) !important;
    border-color: var(--navy-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 69, 0.25) !important;
}

.btn-outline-primary {
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

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

/* Touch-friendly button effect */
.btn:active {
    transform: scale(0.98);
}



/* == Navigation == */
.custom-navbar {
    background-color: #ffffff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.custom-navbar.sticky-top {
    /* Elevates the navbar layer explicitly over competing .sticky-top columns */
    z-index: 1030 !important; 
}

/* Logo Sizing */
.custom-navbar .nav-logo {
    height: 50px; /* Adjust height scale cleanly relative to your layout requirements */
    width: 100%;
    object-fit: contain;
}

/* Stacked Brand Identity Placement */
.custom-navbar .brand-text-group {
    margin-left: 6px; /* Delivers precise 3px - 8px spacing requirement from the logo graphic */
    line-height: 1.1;
}

.custom-navbar .brand-top {
    font-size: 1.25rem;
    color: #000000;
}

.custom-navbar .brand-bottom {
    font-size: 0.9rem; /* Delivers a slightly smaller typography footprint as requested */
    color: var(--text-brand-accent, #6c757d); /* Will fall back gracefully if layout var is missing */
}

/* Nav Links Base Typography & Colors */
.custom-navbar .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    transition: color 0.2s ease;
    padding-left: 1rem;
    padding-right: 1rem;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link:focus {
    color: #000000;
}

.custom-navbar .navbar-nav .nav-link.active {
    color: #000000;
    font-weight: 600;
}

/* Nav Cart Button Style */
.btn-cart-nav {
    color: #000000;
    border: 1px solid #000000;
    background-color: transparent;
    transition: all 0.2s ease;
}

.btn-cart-nav:hover {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
}

/* Desktop Cart Balancing Layout rules */
@media (min-width: 992px) {
    .nav-cart-wrapper {
        min-width: 165px; /* Matches layout scale width of branding side to keep menu dead center */
        justify-content: flex-end;
    }
}

/* == Hero Section Adjustments == */
.hero-section {
    background: linear-gradient(rgba(11, 31, 69, 0.85), rgba(11, 31, 69, 0.95)),
    url('../img/Background.jpeg');
    background-size: cover;
    background-blend-mode: multiply;
    background-position: center;
    min-height: 40vh; /* Reduced by roughly 50% from the previous vh layout scale */
    display: flex;
    align-items: center;
    /* overflow: hidden; */
}

/* Custom Uniform Padding Grid Container */
.custom-hero-container {
    padding: 30px; /* Securely hits your 20px - 40px layout requirement on all axes */
}

/* Hero Image Responsiveness & Desktop Alignment Polish */
.hero-product-img {
    max-height: 380px; /* Increased from 280px to make the asset larger on desktop views */
    width: auto;
    object-fit: contain;
    margin-left: 30px; /* Pulls the product asset further to the left, closer to your text column */
    filter: drop-shadow(0 1rem 3rem rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.hero-product-img:hover {
    transform: translateY(-5px);
}

/* Streamlined Call To Action Button Styling */
.btn-hero-streamlined {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    font-weight: 500;
    font-size: 0.85rem; /* Slightly smaller typography layout footprint for minimalist polish */
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    padding: 0.6rem 3rem; /* Elongates the button horizontally while keeping vertical thickness slim */
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.btn-hero-streamlined:hover {
    color: #ffffff;
    background-color: transparent;
    border-color: #ffffff;
    box-shadow: 0 0.5rem 1.5rem rgba(255, 255, 255, 0.15);
}

/* == Banner Section == */
.banner-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 31, 69, 0.8), rgba(11, 31, 69, 0.4));
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-1 {
    background-image: url('https://images.pexels.com/photos/4226921/pexels-photo-4226921.jpeg?auto=compress&cs=tinysrgb&w=600');
}

.banner-2 {
    background-image: url('https://images.pexels.com/photos/3757376/pexels-photo-3757376.jpeg?auto=compress&cs=tinysrgb&w=600');
}

.banner-3 {
    background-image: url('https://images.pexels.com/photos/3820731/pexels-photo-3820731.jpeg?auto=compress&cs=tinysrgb&w=600');
}

/* == Product Cards == */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-image-placeholder {
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

/* == Category Filters == */
.category-filter {
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    color: #ffffff !important; /* Forces base text to remain white */
    opacity: 0.8; /* Slightly softens unselected categories */
}

.category-filter:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.1) !important; /* Adds a clean, subtle hover highlight */
}

.category-filter.active {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2) !important; /* Distinct background highlight for the active filter */
}


/* == Cart == */
.cart-item {
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-count-hidden {
    display: none;
}

.cart-count-visible {
    display: block;
}

/* == Footer == */
.footer-link:hover {
    color: var(--white) !important;
}

/* == Quantity Selector == */
.input-group .btn {
    min-width: 40px;
}

#quantity-input::-webkit-inner-spin-button,
#quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#quantity-input {
    -moz-appearance: textfield;
}

/* == Modal == */
.modal-fullscreen .modal-body {
    overflow-y: hidden;
}

/* == Form Focus States == */
.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 69, 0.25);
}

.form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 69, 0.25);
}

.form-check-input:checked {
    background-color: var(--navy);
    border-color: var(--navy);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 69, 0.25);
}

/* == Stock Status Badges == */
.badge-stock-out {
    background-color: #dc3545 !important;
}

/* == Accordion == */
.accordion-button:not(.collapsed) {
    background-color: var(--light-grey);
    color: var(--navy);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 69, 0.25);
}

/* == Clinical Product Card & Carousel Architecture == */
.featured-products-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #ffffff;
}

.section-header-row {
    margin-bottom: 3rem;
}

.section-header-lead {
    max-width: 600px;
}

.section-action-row {
    margin-top: 3rem;
}

/* ==========================================================================
   CAROUSEL CONTAINER & SLIDE CLIPPING
   ========================================================================== */
.custom-carousel-container-outer {
    max-width: 1240px;
    padding-left: 55px; /* Desktop workspace safe zone buffer */
    padding-right: 55px;
    position: relative;
}

/* Ensure absolute safety clipping on slide items during sliding translations */
.custom-carousel-container-outer .carousel-item {
    overflow: hidden !important;
}

/* Enforce rigid layout boundaries for the inner container grid track */
.custom-carousel-container-outer .carousel-item .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 16px !important;    /* Creates safe top layout buffer space for hover scales */
    padding-bottom: 16px !important; /* Matches balance below the card layout frame */
    margin-top: -16px !important;    /* Pulls grid offsets back in line seamlessly */
}


/* == Responsive Grid Tracks == */
@media (max-width: 767.98px) {
    /* Force exactly one single card to monopolize 100% width space on mobile screens */
    .custom-carousel-container-outer .carousel-item .col-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) {
    .custom-carousel-container-outer .carousel-item .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}

@media (min-width: 992px) {
    .custom-carousel-container-outer .carousel-item .col-lg-4 {
        width: 33.3333% !important;
        flex: 0 0 33.3333% !important;
    }
}

/* FIX: Changed selector to match your active JavaScript class name (.product-card) */
/* .custom-carousel-container-outer .product-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1 !important; 
    outline: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
} */

/* Unified Hover State: Activates your brand navy border color and a clean shadow effect */
.custom-carousel-container-outer .card-link-wrapper:hover .product-card {
    border-color: #0b1f45 !important;
    outline: 1px solid #0b1f45;
    box-shadow: 0 12px 24px rgba(11, 31, 69, 0.05) !important;
}

/* Image containment stage rules */
.card-img-wrapper {
    background-color: #fafafa; 
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.product-carousel-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
}

/* Handles colors for both shop and carousel text sections */
/* .custom-carousel-container-outer .product-card .card-body,
.product-card .card-body.d-flex.flex-column {
    background-color: #0B1F45 !important;
} */

/* Forces all text elements inside the text sections to white */
/* .product-card .card-body *,
.custom-carousel-container-outer .product-card .card-body * {
    color: #ffffff !important;
} */



/* Forces the background of the carousel text area to deep blue */
.custom-carousel-container-outer .product-card .card-body {
    background-color: #0B1F45 !important;
}

/* Forces the carousel title to white */
.custom-carousel-container-outer .product-card .card-title {
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: #ffffff !important;
}

/* Forces the carousel description text to white */
.custom-carousel-container-outer .product-card .card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

/* Catch-all for any other links or spans inside the carousel text area */
.custom-carousel-container-outer .product-card .card-body * {
    color: #ffffff !important;
}



.card-action-group {
    margin-top: auto; 
    width: 100%;
}

/* Base Clinical Interactive Action Button Tokens */
.btn-clinical-action {
    color: #ffffff;
    background-color: #0b1f45; 
    border: 1px solid #0b1f45;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.6rem 2.5rem;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

/* Elongated Version Modifier for Section Footer Baseline */
.btn-clinical-wide {
    padding: 0.75rem 3.5rem;
}

/* Desktop Hover Integration Matrix */
@media (min-width: 992px) {
    .btn-clinical-action:hover {
        color: #0b1f45 !important;       
        background-color: #ffffff !important; 
        border-color: #0b1f45 !important;     
    }
}

/* Tap/Click Micro-Interaction Response Matrix Across All Viewports */
.btn-clinical-action:active {
    color: #0b1f45 !important;
    background-color: #ffffff !important;
    border-color: #0b1f45 !important;
    transform: scale(0.98); 
}

/* ==========================================================================
   NAVIGATION CONTROLS PLACEMENT ARCHITECTURE
   ========================================================================== */
.custom-control-outer {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.95;
    transition: all 0.2s ease;
    z-index: 10;
}

.custom-control-outer:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0b1f45 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 1.25rem;
    background-size: 55%;
    box-shadow: 0 4px 12px rgba(11, 31, 69, 0.15);
}

@media (min-width: 768px) {
    .custom-control-outer.carousel-control-prev { left: -15px !important; }
    .custom-control-outer.carousel-control-next { right: -15px !important; }
}

@media (min-width: 1200px) {
    .custom-control-outer.carousel-control-prev { left: -45px !important; }
    .custom-control-outer.carousel-control-next { right: -45px !important; }
}

/* ==========================================================================
   ADAPTIVE MOBILE INTERACTION OVERRIDES
   ========================================================================== */
@media (max-width: 767.98px) {
    .custom-carousel-container-outer {
        padding-left: 0; 
        padding-right: 0;
    }

    .custom-control-outer {
        width: 36px;
        height: 36px;
    }

    /* Pull navigation arrows out slightly over mobile margins */
    .custom-control-outer.carousel-control-prev { left: -10px !important; }
    .custom-control-outer.carousel-control-next { right: -10px !important; }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 34px;
        height: 34px;
        background-size: 45%;
    }
}






/* == Media Queries == */
@media (max-width: 767.98px) {
    .banner-item {
        height: 200px;
    }

    .hero-section {
        min-height: auto; /* Content layouts dictate height parameters cleanly */
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .custom-hero-container {
        padding: 20px; /* Adapts to lower bound spacing guidelines */
    }

    .banner-text {
        padding: 1rem !important;
    }

    .banner-text h3 {
        font-size: 1rem;
    }

    .banner-text p {
        display: none;
    }
}

/* == Loading Spinner == */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* == Smooth Scrolling == */
html {
    scroll-behavior: smooth;
}

/* == Selection Colour == */
::selection {
    background-color: var(--navy);
    color: var(--white);
}
/* ==========================================================================
   1. FLEX MODAL STRUCTURAL CONSTRAINTS
   ========================================================================= */
/* Strict lock to keep the underlying shop page from moving on mobile overscroll */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

#productModal .modal-content {
    font-family: 'Poppins', Arial, sans-serif;
    border-radius: 0;
    height: 100dvh !important; 
    max-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    
    /* FIX: Adds a safe top margin layout zone strictly for small phone screen sizes */
    padding-top: env(safe-area-inset-top, 24px) !important;
}

#productModal .modal-body {
    overflow-y: auto !important; /* Forces scroll capabilities on mobile so CTA button is never missing */
    display: flex;
    align-items: flex-start;
    padding: 1rem !important;
    height: calc(100dvh - 56px - env(safe-area-inset-top, 24px)); /* FIX: Keeps heights accurately aligned */
    -webkit-overflow-scrolling: touch; /* Smooth iOS kinetic scrolling match */
    overscroll-behavior: contain; /* Stops scroll bleeding to the shop page on mobile */
}

#modal-product-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02rem;
    color: #0F172A !important;
    font-weight: 800 !important;
}

/* Clear out mobile padding offsets when expanding onto large desktop monitor sizes */
@media (min-width: 768px) {
    #productModal .modal-content {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   2. RE-ENGINEERED SCANNABLE TYPOGRAPHY (HIGH BREATHING ROOM)
   ========================================================================= */
#productModal #modal-product-description {
    display: block !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem; 
    line-height: 1.5;   
    color: #334155; 
}

#modal-product-description h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06rem !important;
    color: #0F172A !important; 
    margin-top: 1rem !important;      
    margin-bottom: 0.5rem !important;  
    border-bottom: 2px solid #E2E8F0;  
    padding-bottom: 0.25rem;
}

#modal-product-description p {
    display: block !important;
    margin-bottom: 0.75rem !important; 
}

#modal-product-description ul {
    margin-top: 0.4rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 1rem !important;
}

#modal-product-description li {
    display: list-item !important; 
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.3rem !important; 
}

#modal-product-description li strong {
    color: #0F172A !important; 
    font-weight: 700;
}

#modal-product-description .text-danger {
    line-height: 1.4;
    margin-top: 1rem !important;
    padding: 0.5rem !important;
    font-size: 0.775rem;
    background-color: #FEF2F2 !important; 
}

/* ==========================================================================
   3. RESPONSIVE GRID CONFIGURATIONS (MOBILE-FIRST SYSTEM)
   ========================================================================= */
/* Mobile Display Rules (Default Layout) */
.modal-img-container {
    max-height: 25vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.modal-img-container img {
    max-height: 25vh !important;
    object-fit: contain;
}

/* Desktop Fix Rules (Locks screen layout structure at 768px+) */
@media (min-width: 768px) {
    #productModal .modal-body {
        padding: 2rem !important;
        overflow-y: hidden !important; /* Completely locks outer window scrolling context on monitor screens */
        align-items: center;
    }
    
    .modal-img-container {
        max-height: 65vh !important;
        height: 100%;
    }
    
    .modal-img-container img {
        max-height: 60vh !important;
    }
    
    /* Adds safety scroll context inside description panel block on massive product strings */
    #productModal #modal-product-description {
        max-height: 35vh;
        overflow-y: auto !important;
        padding-right: 8px;
    }
}

/* ==========================================================================
   4. PRODUCT GRID UTILITY FILTERS
   ========================================================================= */
.product-card .text-muted,
.product-card p,
.product-card-body p,
.product-card-body #modal-product-description,
.product-card #modal-product-description,
.product-card .text-muted:not(#modal-product-description) {
    display: none !important;
}

/* ==========================================================================
   UNIFIED HEADER & SIDEBAR NAVIGATION SYSTEM
   ========================================================================== */

/* --- Main Desktop Navbar Layout --- */
.navbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 70px;
}

.header.site-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
}


.brand-top {
    font-size: 1.1rem;
    color: #0a192f;
    line-height: 1.2;
}

.brand-bottom {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Desktop Nav Links Arrangement --- */
.topbar {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.topbar .nav-link {
    color: #0a192f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.topbar .nav-link:hover {
    color: #007bff; /* Hover accent colour */
}

/* --- Isolated Off-Canvas Trigger Button & Animation --- */
.mobile-toggle-anchor {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.menuButton {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2010 !important;
}

.hamburger-line {
    width: 24px !important;
    height: 3px !important;
    background-color: #0a192f !important; /* Signature brand Navy tone */
    margin: 2.5px 0 !important;
    display: block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 2px !important;
}

/* --- Transform Toggle to Close Icon ('X') State --- */
.menuButton.active {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
}

.menuButton.active .hamburger-line {
    background-color: #ffffff !important; /* White icon visibility inside dark panel backdrop */
}

.menuButton.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px) !important;
}

.menuButton.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

.menuButton.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px) !important;
}

/* --- Mobile Sidebar Panel Shell Layout --- */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: #0a192f !important; /* Deep Navy theme palette */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 2000 !important;
    /* overflow-y: auto !important; */
    padding-top: 75px !important;
}

.sidebar.active {
    right: 0 !important;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.sidebar-link {
    display: block !important;
    padding: 1.25rem 2rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    font-size: 1.1rem;
}

.sidebar-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    padding-left: 2.3rem !important;
}

/* ==========================================================================
   5. RESPONSIVE NAVIGATION VISIBILITY CONTROLS
   ========================================================================== */

/* 1. Default State (Desktop Monitors / Viewports 768px and up) */
@media (min-width: 768px) {
    /* Completely force-hides the burger button container frame */
    .menuButton {
        display: none !important;
    }
    
    /* Safely ensures the mobile sidebar cannot peek out on wide screens */
    .sidebar {
        display: none !important;
    }
}

/* 2. Mobile Activation State (Viewports under 768px wide) */
@media (max-width: 991px) {
    /* Restores the mobile flexible element flow context */
    .menuButton {
        display: flex !important;
    }
    
    /* Re-enables the sidebar sliding block mechanics */
    .sidebar {
        display: block !important;
    }
}


/* --- Mobile Cart Bottom Shelf Styling --- */
.bg-dark-navy {
    background-color: #050c18 !important; /* Contrasting base block matching footer depth rules */
}

/* --- Blurred Layout Shadow Mask Backing layer --- */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1995 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.sidebar-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}
