/* ==================================================================== */
/* --- NEW PREMIUM COLOR & TYPOGRAPHY THEME --- */
/* ==================================================================== */
:root {
    /* Primary (Gold) */
    --bs-primary: #D4AF37;
    --bs-primary-rgb: 212, 175, 55;
    --primary-color: #D4AF37;
    --primary-hover-color: #C39D2E;
    
    /* Secondary (Light Gray) */
    --bs-secondary: #F8F8F8;
    --secondary-color: #F8F8F8;
    
    /* Accent (Red) */
    --accent-color: #C81D25;

    /* Signup Button (can be same as primary for consistency) */
    --signup-color: var(--primary-color);
    --signup-hover-color: var(--primary-hover-color);

    /* Text Colors */
    --text-color-main: #2C2C2C; /* Deep Charcoal */
    --text-color-muted: #6C757D;
    
    /* Backgrounds & Surfaces */
    --background-color-body: var(--secondary-color);
    --surface-color: #ffffff;
    --border-color-default: #dee2e6;

    /* Fonts */
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Inter', sans-serif;
    
    /* Bootstrap Overrides for new theme */
    --bs-body-color: var(--text-color-main);
    --bs-body-bg: var(--background-color-body);
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--primary-hover-color);
    --bs-border-color: var(--border-color-default);
}

[data-bs-theme="dark"] {
    /* Primary (Brighter Gold for Dark Mode) */
    --bs-primary: #E6C25E;
    --bs-primary-rgb: 230, 194, 94;
    --primary-color: #E6C25E;
    --primary-hover-color: #F0D47C;
    
    /* Secondary (Dark Surface) */
    --bs-secondary: #1A1A1A;
    --secondary-color: #1A1A1A;

    /* Accent (Slightly brighter Red) */
    --accent-color: #D6333C;

    /* Text Colors */
    --text-color-main: #EAEAEA;
    --text-color-muted: #8c8c8c;
    
    /* Backgrounds & Surfaces */
    --background-color-body: var(--secondary-color);
    --surface-color: #242424; /* Slightly lighter than body for cards */
    --border-color-default: #404040;
    
    /* Bootstrap Overrides for new theme */
    --bs-body-color: var(--text-color-main);
    --bs-body-bg: var(--background-color-body);
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--primary-hover-color);
    --bs-border-color: var(--border-color-default);
}
/* ==================================================================== */
/* --- END OF NEW THEME --- */

body {
    font-family: var(--font-family-body);
    background-color: var(--background-color-body);
    color: var(--text-color-main);
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: none;
}

/* This is the corrected .navbar style block */
.navbar {
    background-color: var(--surface-color) !important;
    border-bottom: 1px solid var(--border-color-default);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    
    /* --- THE FIX --- */
    position: relative; /* z-index only works on positioned elements */
    z-index: 1050;      /* A high value to ensure it's on top */
    /* --- END OF FIX --- */
}

.navbar .navbar-brand img {
    max-height: 40px;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-color-main);
}

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

.navbar .badge {
    font-size: 0.6em;
    padding: .3em .5em;
}

.dropdown.position-static .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
    border: 1px solid var(--border-color-default);
    border-top: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    background-color: var(--surface-color);
    padding: 2rem;
}

.mega-menu h5 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: var(--text-color-main);
    background-color: transparent;
    border-radius: 0.25rem;
}

.mega-menu .dropdown-item:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.5);
}

.btn-signup {
    background-color: var(--signup-color);
    border-color: var(--signup-color);
    color: #fff;
}

.btn-signup:hover {
    background-color: var(--signup-hover-color);
    border-color: var(--signup-hover-color);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

[data-bs-theme="dark"] .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.5);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color-default);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card-img-container {
    background-color: #f9f9f9;
}

[data-bs-theme="dark"] .product-card-img-container {
    background-color: #374151;
}

.product-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 1rem;
}

.product-card .card-body {
    text-align: center;
    padding: 1rem;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.product-card .card-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-main);
}

[data-bs-theme="dark"] .product-card .card-price {
    color: var(--primary-color);
}

.main-product-image img {
    transition: opacity 0.3s ease-in-out;
}

.product-thumbnails {
    max-height: 500px;
    overflow-y: auto;
}

.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.3rem;
    padding: 2px;
    transition: border-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

.btn-wishlist {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color-muted);
    border: none;
}

.btn-wishlist:hover {
    color: var(--accent-color);
    background: #fff;
    transform: scale(1.1);
}

.color-swatch, .size-swatch {
    border: 1px solid var(--border-color-default);
    transition: all 0.2s ease;
    font-weight: 500;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
}

.color-swatch:hover, .size-swatch:hover {
    transform: scale(1.05);
    border-color: var(--text-color-main);
}

.color-swatch.active, .size-swatch.active {
    border-width: 2px;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: none;
}

.size-swatch.active {
    background-color: var(--primary-color);
    color: #fff;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-color-muted);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.product-features li .bi {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

.sticky-add-to-cart {
    display: none;
}

.carousel-item {
    height: 60vh;
    min-height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#productImageCarousel .carousel-indicators button {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2rem;
    width: 100%;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.star-rating .bi-star-fill {
    color: #fbbc05;
}

.offer-item .bi {
    font-size: 0.8rem;
}

.admin-sidebar .nav-link {
    font-weight: 500;
    color: var(--text-color-muted);
    padding: .5rem 1rem;
    border-radius: .25rem;
}
.admin-sidebar .nav-link .bi {
    margin-right: 0.5rem;
    color: #727272;
}
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
}
.admin-sidebar .nav-link.active .bi,
.admin-sidebar .nav-link:hover .bi {
  color: inherit;
}
.admin-sidebar .nav-link:hover {
    background-color: var(--secondary-color);
}
[data-bs-theme="dark"] .admin-sidebar .nav-link:hover {
    background-color: #343a40;
}


@media (max-width: 991.98px) {
    .dropdown.position-static .dropdown-menu {
        width: auto;
        position: absolute;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
        border: 1px solid var(--border-color-default);
        margin-top: 0.125rem;
        border-radius: 0.375rem;
    }

    .profile-nav-container {
        margin-bottom: 2rem;
    }

    .profile-nav-container .nav-pills {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color-default);
    }

    .profile-nav-container .nav-link {
        white-space: nowrap;
        margin-bottom: 0 !important;
        margin-right: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .product-grid-row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .product-grid-col {
        width: 50%;
    }

    .sticky-add-to-cart {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background-color: var(--surface-color);
        border-top: 1px solid var(--border-color-default);
        z-index: 1020;
        gap: 1rem;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    }

    body:has(.sticky-add-to-cart) {
        padding-bottom: 120px;
    }
}

/* ==================================================================== */
/* --- UNIQUE PRODUCT CARD DESIGN --- */
/* ==================================================================== */
.product-card-unique {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--surface-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.product-card-unique:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-unique .card-img-container {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-unique .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use 'cover' for a full bleed look */
    transition: transform 0.4s ease;
}

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

.product-card-unique .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: #fff;
}

.product-card-unique .card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.product-card-unique .card-brand {
    font-size: 0.8rem;
    opacity: 0.8;
}

.product-card-unique .card-body {
    padding: 1rem;
}

.product-card-unique .price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card-unique .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-unique .mrp-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-color-muted);
}

.product-card-unique .discount {
    font-size: 0.85rem;
    font-weight: 600;
    color: #16A34A; /* A nice green color */
}

[data-bs-theme="dark"] .product-card-unique .discount {
    color: #4ADE80;
}

.product-card-unique .stock-left {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.product-card-unique .stock-out {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color-muted);
    font-style: italic;
}

.product-card-unique .view-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-unique:hover .view-btn-overlay {
    opacity: 1;
}

.product-card-unique .view-btn {
    background-color: #fff;
    color: #000;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.product-card-unique:hover .view-btn {
    transform: scale(1);
}

/* ==================================================================== */
/* --- PROFESSIONAL ADMIN LAYOUT STYLES --- */
/* ==================================================================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 150px); /* Adjust based on your header/footer height */
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--surface-color);
    border-right: 1px solid var(--border-color-default);
    padding: 1.5rem 1rem;
}

.admin-sidebar .nav-link {
    font-weight: 500;
    color: var(--text-color-muted);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-sidebar .nav-link .bi {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color-muted);
    transition: color 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-main);
}

.admin-sidebar .nav-link:hover .bi {
    color: var(--primary-color);
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.4);
}

.admin-sidebar .nav-link.active .bi {
    color: #fff;
}

.admin-sidebar .nav-item-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-color-muted);
    padding: 1.5rem 1rem 0.5rem;
}

.admin-main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: var(--secondary-color);
}

[data-bs-theme="dark"] .admin-sidebar {
    background-color: #111827; /* A slightly darker shade for the sidebar */
}

@media (max-width: 991.98px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color-default);
        padding: 1rem;
    }
    .admin-sidebar .nav-item-header {
        padding-top: 1rem;
    }
    .admin-main-content {
        padding: 1.5rem;
    }
}

/* ==================================================================== */
/* --- PROFESSIONAL CHECKOUT PAGE STYLES --- */
/* ==================================================================== */
.payment-option {
    border: 1px solid var(--border-color-default);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.payment-option:hover, .payment-option.active {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.payment-option .form-check-input {
    float: right;
    margin-left: 0;
    margin-top: 0.5rem;
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
}
.payment-option .form-check-label {
    width: 90%;
    cursor: pointer;
}
.form-check-input:checked + .form-check-label {
    font-weight: bold;
}

/* ==================================================================== */
/* --- PROFESSIONAL NAVBAR ENHANCEMENTS --- */
/* ==================================================================== */

/* General Navbar Refinements */
.navbar .nav-link {
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Hover effect for main nav links */
.navbar-nav .nav-link:not(.dropdown-toggle):hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}
[data-bs-theme="dark"] .navbar-nav .nav-link:not(.dropdown-toggle):hover {
     background-color: rgba(255, 255, 255, 0.05);
}


/* Make the dropdown toggle more visually distinct when open */
.navbar .nav-item.dropdown.show .nav-link {
    color: var(--primary-color);
}

/* Style for the new search button in the navbar */
.navbar .btn-search {
    background-color: transparent;
    border: none;
    color: var(--text-color-muted);
}
.navbar .btn-search:hover {
    color: var(--primary-color);
}

/* Styling for the search modal */
.search-modal .modal-content {
    border-radius: 0.75rem;
    border: none;
}
.search-modal .form-control {
    height: 3.5rem;
    font-size: 1.25rem;
    border: none;
    box-shadow: none !important;
}

/* Refined mobile auth links */
#auth-links-mobile .nav-link {
    padding: 0.75rem 0;
    font-weight: 500;
}

/* =================================== */
/* --- LOADING SKELETON STYLES --- */
/* =================================== */
.skeleton {
    animation: skeleton-loading 1.5s linear infinite alternate;
}
.skeleton-text {
    width: 100%;
    height: 0.7rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}
.skeleton-text:last-child {
    width: 80%;
}
@keyframes skeleton-loading {
    0% { background-color: hsl(200, 20%, 80%); }
    100% { background-color: hsl(200, 20%, 95%); }
}
[data-bs-theme="dark"] .skeleton {
    animation: skeleton-loading-dark 1.5s linear infinite alternate;
}
@keyframes skeleton-loading-dark {
    0% { background-color: hsl(210, 9%, 25%); }
    100% { background-color: hsl(210, 9%, 31%); }
}

/* ==================================================================== */
/* --- PROFILE PAGE ORDER CARD FIXES --- */
/* ==================================================================== */

.order-card .card-header {
    /* Use a subtle background to distinguish the header */
    background-color: var(--secondary-color) !important;
}

/* This is the main fix for the header text visibility */
.order-card .order-meta strong {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-color-main); /* Will be light in dark mode, dark in light mode */
}

.order-card .order-meta .text-muted {
    font-size: 0.85rem;
    color: var(--text-color-muted) !important; /* Ensures correct muted color in both themes */
}

/* ==================================================================== */
/* --- PROFESSIONAL NAVBAR REDESIGN --- */
/* ==================================================================== */

.navbar-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1071; /* High z-index to stay on top of everything */
}

.navbar .navbar-brand img {
    max-height: 36px; /* Slightly smaller logo for a cleaner look */
}

/* Central navigation links */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
     background-color: rgba(255, 255, 255, 0.05);
}

/* Icon button styling */
.btn-icon {
    background-color: transparent;
    border: none;
    color: var(--text-color-muted);
    font-size: 1.25rem; /* Slightly larger icons */
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circular buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

[data-bs-theme="dark"] .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Auth dropdown styling */
.auth-links-container .dropdown-toggle {
    font-weight: 500;
    color: var(--text-color-main);
}

.auth-links-container .dropdown-toggle::after {
    margin-left: 0.5em; /* Better spacing for dropdown arrow */
}

/* This targets the 'Hi, Altamas' link specifically */
.auth-links-container a.nav-link.dropdown-toggle:hover {
    background-color: var(--secondary-color);
}
[data-bs-theme="dark"] .auth-links-container a.nav-link.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Adjustments for mobile view */
@media (max-width: 991.98px) {
    /* When collapsed, align icons to the right of the main links */
    .navbar-collapse .d-flex {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color-default);
    }
}

/* ==================================================================== */
/* --- NEW HOMEPAGE STYLES --- */
/* ==================================================================== */

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/carousel-1.jpg');
    background-size: cover;
    background-position: center center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Trust Badges */
.trust-badge i {
    transition: transform 0.2s ease-in-out;
}
.trust-badge:hover i {
    transform: scale(1.1);
}

/* New Category Cards */
.category-card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color-default);
    background-color: var(--surface-color);
    transition: all 0.3s ease-in-out;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.category-card .card-title {
    color: var(--text-color-main);
}

/* ==================================================================== */
/* --- DEFINITIVE MOBILE NAVBAR FIXES --- */
/* ==================================================================== */

/* This turns the collapsed menu into a full-height, scrollable off-canvas menu */
.navbar-offcanvas-body {
    padding: 1rem;
}

.navbar-offcanvas-body .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
    font-weight: 500;
}

/* Styling for the category accordion inside the off-canvas menu */
.category-accordion-body {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color-default);
    margin-left: 0.5rem;
    margin-top: 0.5rem;
}

.category-accordion-body .dropdown-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-muted);
    padding: 0.75rem 0 0.25rem;
}

/* Ensure mobile auth links look good and consistent */
#auth-links-mobile .dropdown-item,
#auth-links-mobile .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
    font-weight: 500;
}

.product-features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.product-features-list li .bi {
    font-size: 1.1rem;
}
