
    :root {
        --primary-color: #dc3545;
        --primary-hover: #c82333;
        --light-bg: #f8f9fa;
        --dark-text: #212529;
        --gray-text: #6c757d;
    }

    /* Loader */
    #loader {
        position: fixed;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transition: opacity 0.5s ease;
    }
    #loader i {
        font-size: 3.5rem;
        color: var(--primary-color);
        animation: bounce 1.2s infinite;
    }
    #loader span {
        margin-top: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 1.25rem;
    }
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    /* Navbar */
    .navbar {
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        background: white !important;
        z-index: 1030;
    }
    .navbar-brand {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary-color) !important;
        display: flex;
        align-items: center;
    }
    .navbar-brand i {
        margin-right: 0.5rem;
    }

    /* Nav Items */
    .nav-link {
        color: var(--dark-text) !important;
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    .nav-link:hover {
        color: var(--primary-color) !important;
    }
    .nav-link.active {
        color: var(--primary-color) !important;
        font-weight: 600;
    }

    /* Search Bar - Adapts to available space */
    .search-container {
        flex: 1 1 auto;
        min-width: 150px;
        max-width: 500px;
        margin: 0 1rem;
    }
    .search-form {
        width: 100%;
        position: relative;
    }
    .search-form input {
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
        border: 1px solid #dee2e6;
        width: 100%;
        transition: all 0.3s ease;
    }
    .search-form input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
    .search-form button {
        position: absolute;
        right: 5px;
        top: 5px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        border: none;
        transition: all 0.3s ease;
    }
    .search-form button:hover {
        background: var(--primary-hover);
    }

    /* Icons with badges */
    .icon-container {
        position: relative;
        margin-left: 0.75rem;
    }
    .icon-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--primary-color);
        color: white;
        font-size: 0.65rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    .nav-icon {
        font-size: 1.25rem;
        color: var(--dark-text);
        transition: all 0.2s ease;
    }
    .nav-icon:hover {
        color: var(--primary-color);
    }

    /* Dropdowns */
    .dropdown-menu {
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    .dropdown-item {
        padding: 0.5rem 1.25rem;
        transition: all 0.2s ease;
    }
    .dropdown-item:hover {
        background: rgba(220, 53, 69, 0.1);
        color: var(--primary-color);
    }

    /* User avatar */
    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 0.5rem;
        border: 2px solid #eee;
    }

    /* Responsive adjustments */
    @media (max-width: 1199px) {
        .search-container {
            order: 3;
            width: 100%;
            max-width: 100%;
            margin: 1rem 0 0 0;
        }
        .navbar-collapse {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 767px) {
        .navbar-brand {
            font-size: 1.5rem;
        }
        .nav-link {
            padding: 0.75rem 1rem !important;
        }
        .dropdown-menu {
            width: 100%;
        }
    }

    @media (max-width: 575px) {
        .navbar-brand {
            font-size: 1.3rem;
        }
        .btn-sm-block {
            display: block;
            width: 100%;
            margin-top: 0.5rem;
        }
    }
    /* Mega Menu Enhancements */
.mega-menu .dropdown-menu {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary-color);
}

.category-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.category-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.category-header {
    border-bottom: 1px dashed #eee;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-header:hover .category-icon {
    background-color: var(--primary-color) !important;
}

.category-header:hover .category-icon i {
    color: white !important;
}

.product-item {
    transition: all 0.2s ease;
    border-radius: 0.25rem;
}

.product-item:hover {
    background-color: rgba(220, 53, 69, 0.03);
}

.product-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.product-thumb img {
    transition: all 0.3s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .category-card {
        border-right: none !important;
    }
}

@media (max-width: 991px) {
    .mega-menu .dropdown-menu {
        max-height: 70vh;
        overflow-y: auto;
    }

    .category-card {
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 767px) {
    .product-name {
        max-width: 120px;
    }
}

@media (max-width: 575px) {
    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .product-thumb img {
        width: 40px;
        height: 40px;
    }
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08) !important;
}
.btn-danger {
    border-radius: 50px;
    padding-left: 30px;
    padding-right: 30px;
    transition: all 0.3s ease;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff !important;
}
.card-img-top {
    border-radius: 0.25rem 0.25rem 0 0;
    transition: transform 0.5s ease;
}
.card:hover .card-img-top {
    transform: scale(1.05);
}
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Improved sidebar filter styling */
.filter-options::-webkit-scrollbar {
    width: 5px;
}
.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.filter-options::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 10px;
}
.filter-options::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Better form controls */
.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}
.form-check-label {
    cursor: pointer;
    transition: color 0.2s;
}
.form-check-input:checked + .form-check-label {
    color: #dc3545;
    font-weight: 500;
}

/* Improved product card */
.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.card-img-top {
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}
.card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08) !important;
}
.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Better buttons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}
.hero-section .carousel {
    z-index: 0;
}
.hero-section .position-absolute {
    z-index: 2;
}
.countdown-timer {
    font-family: monospace;
}

/* General Styles */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
}

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

.breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #dc3545;
}

.breadcrumb-item.active {
    color: #dc3545;
    font-weight: 500;
}

/* Social Share */
.social-share a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-share a:hover {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

/* Rating Input Styles */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 1.8rem;
    padding: 0 0.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-input input:checked ~ label,
.rating-input input:checked ~ label ~ label {
    color: #ffc107;
}

.rating-input input:not(:checked) ~ label:hover,
.rating-input input:not(:checked) ~ label:hover ~ label {
    color: #ffc107;
}

.rating-input label:hover {
    transform: scale(1.2);
}

/* Quantity input buttons */
.input-group button {
    width: 40px;
    transition: all 0.3s ease;
}

.input-group button:hover {
    background-color: #dc3545;
    color: white;
}

.input-group input {
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-weight: bold;
}

/* Image Zoom */
.image-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

/* Hover Shadow */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Cursor Pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Product Tabs */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #dc3545;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #dc3545;
    background-color: transparent;
    border-bottom: 2px solid #dc3545;
}

/* Review Cards */
.reviews-list .card {
    transition: all 0.3s ease;
}

.reviews-list .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .product-details h1 {
        font-size: 1.8rem;
    }

    .rating-input label {
        font-size: 1.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation for alerts */
.alert {
    animation: fadeIn 0.5s ease;
}

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

/* Star Rating */
.star-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Product Description */
.product-description {
    line-height: 1.8;
}

.product-description img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

/* Scroll to reviews */
.scroll-to-reviews {
    transition: all 0.3s ease;
}

.scroll-to-reviews:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}
