:root {
    --brand-yellow: #FDD835;
    --text-dark: #2D2D2D;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
}

.text-warning {
    color: var(--brand-yellow) !important;
}

/* Navbar */
.top-strip {
    background-color: #eeeeee;
    font-size: 0.75rem;
}

.navbar-brand span {
    color: var(--brand-yellow);
}

.navbar-nav .nav-link {
    font-weight: 600;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-yellow) !important;
    border-bottom: 2px solid var(--brand-yellow);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
}

/* Swiper custom arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Categories Scroll */
.categories-scroll {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.category-item {
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 100px;
}

/*.category-item:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

/* Product Cards */
.swiper-slide {
    height: auto;
    /* Ensure slides stretch to fill the wrapper height (default flex behavior) */
    display: flex;
    /* Make slide a flex container */
    flex-direction: column;
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    /* Visible border as requested */
    border-radius: 8px;
    /* Slight radius for better look */
    overflow: hidden;
    /* Ensure content stays within border */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill the slide height */
    width: 100%;
}

.product-card .p-3 {
    flex-grow: 1;
    /* Allow content to grow and fill empty space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push bottom elements down if needed, or just standard flex layout */
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-yellow);
    /* Highlight border on hover */
}

.product-img img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.wishlist-icon {
    cursor: pointer;
    color: #333;
}

.wishlist-icon:hover i {
    color: #dc3545;
    /* Red on hover */
    font-weight: 900;
    /* Solid heart */
}

/* Footer */
footer a:hover {
    color: var(--brand-yellow) !important;
}

/* ----- Product Details Page Styles ----- */

/* Breadcrumb */
.breadcrumb-item+.breadcrumb-item::before {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Gallery Thumbnails */
.gallery-thumb {
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #000 !important;
    /* Black border on hover/active */
}


/* Size Selector Buttons */
.size-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-color: #ccc;
    color: #333;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #333;
    background-color: #f8f9fa;
    color: #000;
}

.size-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Mobile Sticky Footer */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
        /* Add space so content isn't hidden behind sticky footer */
    }

    /* Ensure mobile gallery Swiper is visible */
    .productGallerySwiper {
        width: 100%;
        height: auto;
    }
}

/* Review Stars */
#ratingStars i {
    cursor: pointer;
}

/* ----- Login/Auth Page Styles ----- */

/* Material-like Input Group Focus */
#emailInputGroup {
    transition: border-color 0.3s;
}

#emailInputGroup.focused {
    border-color: #000 !important;
    /* Black border on focus */
}

/* OTP Inputs */
.otp-input {
    width: 60px;
    height: 60px;
    border: 1px solid #ccc;
}

.otp-input:focus {
    border-color: #000;
    box-shadow: none;
}

/* ----- Dashboard Styles ----- */
.list-group-item.active {
    background-color: #fff;
    color: #000;
    border-left: 4px solid var(--brand-yellow) !important;
    font-weight: 700;
}

/* ----- Filter Sidebar Styles ----- */
.cursor-pointer {
    cursor: pointer;
}

.color-swatch {
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Ensure filter sidebar stays sticky and doesn't overlap footer if needed */
.filter-sidebar {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    /* Custom scrollbar for sidebar */
    scrollbar-width: thin;
}

/* Custom Scrollbar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* ----- Mega Menu Styles ----- */

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* Remove default margin */
        animation: fadeIn 0.3s ease;
    }
}

/* Mega Menu Position */
.mega-menu {
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}

/* Hover Link Effect */
.hover-link:hover {
    color: var(--brand-yellow) !important;
    text-decoration: underline !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Avatar in Header */
.user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.no-caret::after {
    display: none !important;
}

.dropdown-menu {
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

.search-item {
    transition: background 0.2s;
}

.search-item:hover {
    background-color: #fcfcfc !important;
}

.search-results-container {
    max-height: 400px;
    overflow-y: auto;
    z-index: 1060;
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0808089c;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: .8;
    visibility: hidden;
}


.breadcrumb-item{
    font-size:.7rem!important;
}