/* Custom CSS for Wallpaper eCommerce */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #0a58ca;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --white: #ffffff;
    
    /* Spacing System (8px) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Header Redesign Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    padding: 0;
}

.main-logo {
    height: 40px; /* Reduced from 45px */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 50px; /* Reduced from 60px */
    width: auto;
    object-fit: contain;
    margin-bottom: var(--sp-4); /* Reduced from 25px */
    filter: brightness(1) contrast(1.1);
}

/* Hero Slider Styles - Boxed */
.hero-slider-section {
    background-color: #f8f9fa;
    padding: var(--sp-6) 0; /* Standardized to 24px for a cleaner boxed look */
}

#heroCarousel {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.carousel-item {
    background-color: #f8fafc;
}

.carousel-item img {
    width: 100%;
    height: 350px;
    object-fit: fill; /* Stretching to fit the box exactly */
}

@media (max-width: 992px) {
    .carousel-item img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 160px;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #fff;
    background-image: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 1;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    font-family: "remixicon" !important;
    font-style: normal;
    color: #333;
    font-size: 20px;
}

.carousel-control-prev-icon::after {
    content: "\ea60"; /* ri-arrow-left-s-line */
}

.carousel-control-next-icon::after {
    content: "\ea6e"; /* ri-arrow-right-s-line */
}

.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #ffd700; /* Yellow indicator like in design */
    width: 45px;
}

/* Hero Section (Old styles removed as hero-section is replaced) */

/* Product Cards - Updated to match design */
.product-card {
    border: 1px solid #edf2f7;
    border-radius: 12px; /* Increased from 8px */
    padding: var(--sp-4); /* Increased from sp-3 */
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-top-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wishlist-btn, .cart-plus-btn {
    background: #fff;
    border: none;
    font-size: 16px;
    color: #3182ce;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.wishlist-btn:hover, .cart-plus-btn:hover {
    transform: scale(1.1);
    color: #2c5282;
}

.product-img-container {
    height: 220px; /* Increased from 180px */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4); /* Increased from sp-3 */
    cursor: pointer;
    background-color: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    padding: var(--sp-3); /* Increased from sp-2 */
}

.product-card img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-img-container:hover img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
}

.badge-new { background-color: #2ecc71; }
.badge-sale { background-color: #e74c3c; }
.badge-hot { background-color: #f39c12; }

@media (max-width: 576px) {
    .product-card {
        padding: var(--sp-2); /* Even tighter padding on mobile */
    }
    
    .product-img-container {
        height: 140px; /* Shorter image height for 2-per-row mobile view */
        margin-bottom: var(--sp-2);
    }
    
    .price-amount {
        font-size: 16px; /* Smaller price for mobile cards */
    }
    
    .currency-symbol {
        font-size: 14px;
    }
    
    .product-title {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 34px; /* Fixed height for title alignment */
    }
    
    .product-info {
        font-size: 12px;
    }
}

/* Quick View Modal Styles */
#quickViewContent img {
    max-width: 100%;
    border-radius: 12px;
}

.quick-view-info h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Flash Sale Section */
.flash-sale-box {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    border: 2px solid var(--primary-color);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
}

.time-unit .number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* Product Slider */
.product-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider-container::-webkit-scrollbar {
    display: none;
}

.product-slider-container .product-card {
    min-width: 280px;
    max-width: 280px;
}

@media (max-width: 576px) {
    .product-slider-container .product-card {
        min-width: 200px;
        max-width: 200px;
    }
}

.slider-controls button {
    width: 45px; /* Increased from 35px */
    height: 45px; /* Increased from 35px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.25rem; /* Increased font size */
    transition: all 0.3s;
}

.slider-controls button i {
    font-size: 24px; /* Explicitly set a larger icon size */
}

/* Service Features (Trust Badges) */
.service-features-section {
    background-color: #f8f9fa;
}

.features-wrapper {
    background-color: #fff;
}

.feature-item-trust {
    border-right: 1px solid #eee;
    padding: 10px 0;
}

@media (max-width: 991px) {
    .feature-item-trust {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .features-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .features-row-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
        -ms-overflow-style: none;
        padding-bottom: 0;
        margin: 0 !important; /* Remove row margins */
    }

    .features-row-slider::-webkit-scrollbar {
        display: none;
    }

    .features-row-slider .feature-item-trust {
        flex: 0 0 100%;
        scroll-snap-align: start;
        border-bottom: none !important;
        border-right: none !important;
        padding: 5px 0 !important;
        display: block !important; /* Changed from flex to block */
        padding-left: 20px !important;
    }

    .features-row-slider .feature-icon-box {
        font-size: 35px !important; /* Forced bigger icons */
        min-width: 50px;
        color: #3498db !important; /* Explicitly set to --accent-color value */
    }

    .features-row-slider .feature-text h6 {
        font-size: 18px; /* Bigger title */
        margin-bottom: 2px !important;
    }

    .features-row-slider .feature-text p {
        font-size: 14px; /* Bigger sub-text */
    }

    .features-row-slider .d-flex.align-items-center.gap-3 {
        gap: 1.5rem !important; /* Increase gap between icon and text on mobile */
    }
}

.feature-icon-box {
    font-size: 24px;
    color: var(--accent-color);
    min-width: 40px;
    display: flex;
    justify-content: center;
}

.feature-text h6 {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.feature-text p {
    font-size: 11px;
}

/* Promotional Banners */
.promo-banners-section {
    background-color: #fff;
}

.promo-banner {
    min-height: 200px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

.sika-banner {
    background: linear-gradient(135deg, #ff6600 0%, #cc5200 100%);
}

.saveto-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.banner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.invert-logo {
    /* If the logo is white and needs to be visible on light background */
    filter: brightness(0) saturate(100%);
}

.w-fit {
    width: fit-content;
}

@media (max-width: 768px) {
    .promo-banner {
        min-height: 180px;
    }
}

/* Mobile Offcanvas Menu Styles */
.mobile-menu-offcanvas {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    top: 0 !important; /* Start from the very top */
    height: 100% !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 3000 !important; /* Higher than fixed-top header (1050) and bottom-nav (2000) */
}

/* Ensure body doesn't scroll when offcanvas is open */
body.offcanvas-open {
    overflow: hidden !important;
}

.mobile-menu-offcanvas .offcanvas-header {
    display: block !important; /* Show the internal header */
    padding: 15px 15px 10px;
    background: #fff;
    z-index: 1061;
}

.mobile-tabs-nav {
    background-color: #eef2f7 !important;
    border-radius: 10px !important;
    margin-right: 40px; /* Make space for the close button inside the header */
}

.mobile-tabs-nav .nav-link {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    padding: 6px 5px !important;
    transition: all 0.2s ease;
}

.mobile-tabs-nav .nav-link.active {
    background-color: #007bff !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.sidebar-close-btn {
    position: absolute;
    right: 15px; /* Positioned inside for full width */
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #007bff;
    font-size: 18px;
    z-index: 1060;
}

.sidebar-close-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.sidebar-action-buttons {
    position: relative;
    display: flex;
    align-items: center;
    width: 20px;
    height: 100%;
}

.mobile-category-list li {
    border-bottom: 1px solid #f1f3f6 !important;
}

.mobile-category-list li a {
    font-size: 15px;
    color: #2d3748;
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.mobile-category-list li a:active {
    background-color: #f7fafc;
}

.mobile-category-list .fa-chevron-right {
    font-size: 11px;
    color: #cbd5e0;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
}

.mobile-tab-content.active {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-tab-content {
    animation: fadeIn 0.3s ease;
}

.mobile-menu-layer-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    min-height: 400px; /* Added fallback min-height */
}

.mobile-menu-layer {
    width: 100%;
    height: 100%;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto; /* Allow scrolling inside layers */
}

#main-layer {
    transform: translateX(0);
    z-index: 3;
}

#middle-layer {
    transform: translateX(100%);
    z-index: 4;
}

#sub-layer {
    transform: translateX(200%);
    z-index: 5;
}

.mobile-menu-layer-wrapper.middle-active #main-layer {
    transform: translateX(-100%);
}

.mobile-menu-layer-wrapper.middle-active #middle-layer {
    transform: translateX(0);
}

.mobile-menu-layer-wrapper.sub-active #main-layer {
    transform: translateX(-200%);
}

.mobile-menu-layer-wrapper.sub-active #middle-layer {
    transform: translateX(-100%);
}

.mobile-menu-layer-wrapper.sub-active #sub-layer {
    transform: translateX(0);
}

.sub-layer-header {
    display: flex;
    flex-direction: column;
}

.sub-layer-header .btn-link {
    font-size: 14px;
    font-weight: 600;
}

.view-all-category a {
    font-size: 14px;
}

.sidebar-bottom-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, 
        #007bff 0%, #007bff 20%, 
        #ff4d4d 20%, #ff4d4d 40%, 
        #a0aec0 40%, #a0aec0 60%, 
        #4fd1c5 60%, #4fd1c5 80%, 
        #007bff 80%, #007bff 100%
    );
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}



.product-info {
    font-size: 14px;
    line-height: 1.4;
}

.product-brand {
    color: #2d3748;
}

.brand-divider {
    color: #cbd5e0;
}

.product-title {
    color: #1a202c;
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.extra-small {
    font-size: 10px !important;
}

.rating-value {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px; /* Reduced from 14px */
}

.review-count {
    color: #a0aec0;
}

.price-box {
    background-color: #ebf8ff;
    padding: var(--sp-2) var(--sp-3); /* Tightened */
    border-radius: 8px;
}

.price-label {
    font-size: 12px;
    margin-bottom: 2px;
}

.currency-symbol {
    font-size: 18px;
    color: #1a202c;
}

.price-amount {
    font-size: 20px; /* Slightly reduced from 24px */
    color: #1a202c;
}

.vat-label {
    font-size: 11px;
}

.bnpl-section {
    border-top: 1px solid #edf2f7;
}

.bnpl-label {
    font-size: 12px;
    color: #4a5568;
}

.bnpl-badge {
    height: 30px;
    width: auto;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Category Section */
.category-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-slider-container::-webkit-scrollbar {
    display: none;
}

.category-card-wrapper {
    min-width: 160px;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .category-slider-container {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        overflow: visible;
        gap: 20px;
    }
    .category-card-wrapper {
        min-width: unset;
        flex: unset;
    }
    .category-slider-controls {
        display: none !important;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 160px; /* Reduced from 200px */
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-name {
    color: var(--dark);
    transition: color 0.3s ease;
}

.category-card-wrapper:hover .category-name {
    color: var(--primary);
}

/* Mobile Header Styles */
.no-caret::after {
    display: none !important;
}

.search-mobile-group {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2px 10px;
}

.search-mobile-group .form-control {
    border: none !important;
    box-shadow: none !important;
    font-size: 14px;
}

.mobile-search-bar {
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .main-logo {
        height: 35px;
    }
    
    .main-header {
        padding: 5px 0;
    }
}

/* Header Redesign */
.top-bar {
    background-color: #f1f3f6;
    font-size: 13px;
    padding: 5px 0;
}

.top-bar a {
    color: #555;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.main-header {
    padding: var(--sp-3) 0; /* Reduced from 15px */
    border-bottom: 1px solid #eee;
    background-color: #fff;
    z-index: 1050;
    transition: all 0.3s ease;
}

/* This class will be applied via JS when scrolling */
.main-header.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: var(--sp-2) 0; /* Tightened when sticky */
    animation: headerSlideDown 0.4s ease;
}

@keyframes headerSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-search {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 var(--sp-6); /* Standardized to 24px */
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px; /* Reduced from 12px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: var(--sp-2);
    padding: var(--sp-6); /* Reduced from 25px */
    z-index: 1100;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.recent-search-item:hover {
    background: #f8f9fa;
    border-color: #ddd;
    color: var(--secondary-color);
}

.recent-search-item img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
}

.trending-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.trending-tag:hover {
    background: #f8f9fa;
    border-color: #ddd;
    color: var(--accent-color);
}

.search-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

/* Dashboard Sidebar New Design */
.dashboard-sidebar-card {
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    padding: 20px 0 !important;
}

.dashboard-sidebar .nav-link {
    color: #444;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 15px;
    margin-bottom: 5px;
}

.dashboard-sidebar .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #718096;
    transition: all 0.2s ease;
}

.dashboard-sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8fafc;
}

.dashboard-sidebar .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    font-weight: 600;
}

.dashboard-sidebar .nav-link.active i {
    color: var(--primary-color);
}

/* Left indicator for active item - semi-circle look */
.dashboard-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background-color: var(--primary-color);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.dashboard-sidebar .nav-link.text-danger {
    color: #ef4444 !important;
    margin-top: 20px;
}

.dashboard-sidebar .nav-link.text-danger i {
    color: #ef4444;
}

.dashboard-sidebar .nav-link.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}
    border-radius: 8px;
    transition: background 0.2s;
}

.search-product-item:hover {
    background: #f8f9fa;
    color: var(--accent-color);
}

.search-product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.search-product-info .name {
    font-weight: 600;
    font-size: 14px;
}

.search-product-info .category {
    font-size: 12px;
    color: #777;
}

.search-product-info .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
}

.header-search .form-control:focus,
.search-sidebar-group input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.header-search .input-group {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-search .input-group:focus-within {
    border-color: #e0e0e0;
    box-shadow: none !important;
}

.header-search .form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 10px 10px;
    font-size: 15px;
    color: #555;
    background: transparent;
}

.header-search .form-control::placeholder {
    color: #999;
}

.header-search .btn-search {
    background: transparent;
    border: none;
    color: #3498db;
    padding: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.header-search .btn-search:focus,
.header-search .btn-search:active {
    outline: none !important;
    box-shadow: none !important;
}

.header-icons {
    gap: var(--sp-4); /* Standardized to 16px */
}

@media (max-width: 576px) {
    .header-icons {
        gap: var(--sp-2); /* Reduced for mobile */
    }
    
    .header-icon-box span {
        display: none; /* Hide labels on very small screens to save space */
    }
}

.header-icon-box {
    text-align: center;
    color: #2c3e50;
    text-decoration: none;
    font-size: 11px; /* Slightly reduced */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 40px;
}

.header-icon-box i {
    font-size: 20px;
    margin-bottom: 3px;
}

.header-icon-box .badge {
    position: absolute;
    top: -5px;
    right: 5px;
}

.sub-header {
    padding: var(--sp-2) 0; /* Reduced from 10px */
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.sub-header a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.features-bar {
    background-color: #f0f8ff;
    padding: var(--sp-2) 0; /* Reduced from 10px */
    font-size: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2); /* Reduced from 10px */
    color: #555;
}

.feature-item i {
    color: var(--accent-color);
}

/* Search Trigger Box (Desktop) */
.search-trigger-box {
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 10px;
    transition: all 0.3s ease;
}

.search-trigger-box:hover {
    border-color: #cbd5e0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-trigger-box input {
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.search-trigger-box .btn-search {
    border: none;
    background: transparent;
    color: #718096;
}

/* Search Sidebar Styles */
.search-sidebar-group {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 5px 15px;
    border: 1px solid #e2e8f0;
}

.search-sidebar-group:focus-within {
    border-color: #e2e8f0;
    box-shadow: none !important;
}

.search-sidebar-group input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
}

.btn-search-sidebar {
    background: transparent;
    border: none;
    color: #4a5568;
    font-size: 18px;
}

#sidebarSearchResults {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.search-product-item-sidebar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #2d3748;
    transition: background 0.2s;
}

.search-product-item-sidebar:hover {
    background: #f8fafc;
}

.search-product-item-sidebar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.search-product-item-sidebar .info .name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-product-item-sidebar .info .price {
    font-size: 13px;
    color: #007bff;
    font-weight: 700;
}

/* Categories Sidebar */
.category-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 4000;
    box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; /* Hide overflow for sliding menu */
}

.category-sidebar.active {
    left: 0;
}

.category-menu-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sub-menu-wrapper {
    transform: translateX(100%); /* Start off-screen to the right */
}

.category-sidebar.sub-active #mainCategoryMenu {
    transform: translateX(-100%); /* Slide main menu to the left */
}

.category-sidebar.sub-active #subCategoryMenu {
    transform: translateX(0); /* Slide sub menu to the center */
}

.category-sidebar-header {
    padding: 25px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
}

.btn-back {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0;
}

.category-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.category-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.category-item i.text-primary {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3900;
    display: none;
    backdrop-filter: blur(2px);
}

.category-overlay.active {
    display: block;
}

@media (max-width: 1199px) {
    .category-sidebar {
        width: 100%;
        left: -100%;
    }
}

/* RTL Adjustments */
[dir="rtl"] body {
    text-align: right;
}

.breadcrumb-container {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054" !important; /* fa-chevron-right solid */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 10px;
    color: #94a3b8;
    margin: 0 12px;
    vertical-align: middle;
    float: none;
    display: inline-block;
}

.breadcrumb-item, .breadcrumb-item a {
    color: #334155 !important;
    font-size: 14.5px;
    letter-spacing: 0.1px;
}

.breadcrumb-item.active {
    color: #64748b !important;
    font-weight: 400;
}

/* Premium Product Details Page Styles */
.bg-light-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.rounded-4 { border-radius: 16px !important; }

/* Skeleton UI */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-thumb { height: 60px; width: 60px; }
.skeleton-main-img { height: 650px; width: 100%; }
.skeleton-title { height: 40px; width: 80%; }
.skeleton-text { height: 20px; width: 100%; }
.skeleton-price { height: 60px; width: 40%; }
.skeleton-btn { height: 50px; width: 100%; }

/* Image Gallery */
.product-thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Hide scrollbar for thumbnails */
.product-thumbnails-vertical::-webkit-scrollbar {
    width: 0px;
}

.thumb-item {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px; /* Width same as height */
    height: 60px; /* Height same as width */
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-image-wrapper {
    background: #f8fafc;
    cursor: zoom-in;
    height: 650px; /* Set premium height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img-premium {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Premium cover effect */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wishlist-heart-btn {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-heart-btn:hover {
    transform: scale(1.1);
    color: #e74c3c;
}

.wishlist-heart-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Inner Zoom Effect */
.main-image-wrapper {
    background: #f8fafc;
    cursor: zoom-in;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Essential for inner zoom */
    position: relative;
}

.main-img-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out; /* Slightly faster for responsiveness */
    pointer-events: none; /* Let the container handle events */
}

/* Remove CSS-only zoom to avoid conflict with JS-based cursor tracking */
.main-image-wrapper:hover .main-img-premium {
    /* Handled by JS */
}

/* Cleaned up old zoom-lens and zoom-result styles */
.product-info-card {
    background: white;
}

.brand-tag {
    font-size: 12px;
    letter-spacing: 1px;
}

.category-badge {
    font-size: 11px;
    font-weight: 600;
}

.stars-premium i {
    font-size: 14px;
    margin-right: 2px;
}

.price-current {
    font-size: 2.5rem;
}

.discount-badge {
    font-size: 10px;
}

/* Customization */
.material-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    background: white;
    transition: all 0.3s ease;
}

.material-btn.active, .material-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e2e8f0;
    transition: all 0.3s ease;
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--accent-color);
    transform: scale(1.1);
}

/* Delivery Box */
.delivery-icon-bg {
    width: 45px;
    height: 45px;
    background: #ebf8ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trust-item i {
    font-size: 16px;
}

/* Action Buttons */
.quantity-selector-premium {
    display: flex;
    align-items: center;
    background: #f1f3f6;
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    color: var(--accent-color);
}

.quantity-selector-premium input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-gradient-secondary {
    background: #1e3a5f;
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-gradient-secondary:hover {
    background: #111827;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.premium-tab-link {
    font-weight: 700;
    font-size: 14px;
    color: #718096 !important;
    border: none !important;
    padding: 10px 0 !important;
    position: relative;
    background: transparent !important;
}

.premium-tab-link.active {
    color: var(--primary-color) !important;
}

.premium-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bg-primary-light { background: #ebf8ff; }
.bg-success-light { background: #f0fff4; }
.bg-warning-light { background: #fffaf0; }

/* Reviews */
.user-avatar-small {
    width: 45px;
    height: 45px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.verified-badge {
    color: #38a169;
    font-size: 10px;
    font-weight: 600;
}

.review-item-premium {
    transition: all 0.3s ease;
}

.review-item-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}

.product-thumbnails-horizontal .thumb-item {
    width: 60px;
    height: 60px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .zoom-result { display: none !important; }
    .main-image-wrapper { cursor: default; height: 450px; }
    .price-current { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .product-info-card .d-flex.gap-2 {
        flex-direction: column;
    }
}

.mobile-swipe-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    pointer-events: none;
    opacity: 0.8;
}

/* Sticky Mobile Footer */
.sticky-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sticky-mobile-footer.active {
    transform: translateY(0);
}

/* Footer Redesign */
footer {
    background-color: #001e2b;
    color: #fff;
    padding: var(--sp-12) 0 var(--sp-8); /* Tightened from 60px 0 30px */
}

footer .text-muted {
    color: #cbd5e1 !important; /* Brighter color for visibility on dark background */
}

.footer-title {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 700;
    margin-bottom: var(--sp-5); /* Reduced from 25px */
    color: #fff;
}

.footer-links {
    list-unstyled: true;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--sp-2); /* Reduced from 12px */
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.qr-section {
    background: #fff;
    padding: var(--sp-3); /* Reduced from 15px */
    border-radius: 8px; /* Reduced from 12px */
    display: inline-block;
    margin-bottom: var(--sp-4); /* Reduced from 20px */
}

.qr-section img {
    width: 100px; /* Reduced from 120px */
}

.app-download-btns img {
    height: 32px; /* Reduced from 40px */
    margin-bottom: var(--sp-2); /* Reduced from 10px */
    display: block;
    border-radius: 4px;
}

.payment-methods img {
    height: 20px; /* Reduced from 25px */
    margin-right: var(--sp-2);
    margin-bottom: var(--sp-2);
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.social-icons-footer a {
    color: #fff;
    font-size: 18px; /* Reduced from 20px */
    margin-right: var(--sp-4); /* Reduced from 20px */
    transition: transform 0.3s;
    display: inline-block;
}

.social-icons-footer a:hover {
    transform: translateY(-3px);
}

/* Product Details Design Update */
.breadcrumb-container {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    font-size: 10px;
    vertical-align: middle;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #000;
}

.product-thumbnails .thumb-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.product-thumbnails .thumb-item:hover {
    border-color: #999;
}

.product-thumbnails .thumb-item.active {
    border-color: #000;
    border-width: 2px;
}

.product-thumbnails img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-image-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.wishlist-btn-large {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #999;
    transition: all 0.2s;
}

.wishlist-btn-large:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.brand-link {
    font-size: 13px;
    color: #2563eb !important;
}

.price-section .price-amount {
    font-size: 28px;
    color: #000;
}

.price-badge .badge {
    font-size: 12px;
    padding: 6px 12px;
}

.delivery-card {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7 !important;
}

.action-sidebar {
    position: sticky;
    top: 100px;
    background-color: #fff;
    border: 1px solid #eee !important;
    border-radius: 12px;
}

.seller-rating {
    background-color: #f8fafc;
}

.trust-points {
    color: #666;
}

.btn-add-cart {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-buy-now {
    background-color: #fff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-buy-now:hover {
    background-color: #eff6ff !important;
}

.promo-ad-card {
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Premium UI Enhancements */
:root {
    --premium-blue: #2563eb;
    --premium-blue-hover: #1d4ed8;
    --premium-blue-glow: rgba(37, 99, 235, 0.2);
    --premium-gray-light: #f1f5f9;
    --premium-gray-border: #e2e8f0;
    --premium-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --premium-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --premium-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-8: 8px;
    --radius-12: 12px;
}

/* Modern Inputs */
.form-control, .form-select {
    border-radius: var(--radius-8) !important;
    border: 1.5px solid var(--premium-gray-border) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: #fff !important;
    box-shadow: var(--premium-shadow-sm) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--premium-blue) !important;
    box-shadow: 0 0 0 4px var(--premium-blue-glow) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Premium Buttons */
.btn-premium-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    border: none !important;
    border-radius: var(--radius-12) !important;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39) !important;
    cursor: pointer;
    width: 100%;
}

.btn-premium-primary:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-premium-primary:active {
    transform: scale(0.97) translateY(0);
}

.btn-premium-secondary {
    background: #fff !important;
    color: var(--premium-blue) !important;
    border: 2px solid var(--premium-blue) !important;
    border-radius: var(--radius-12) !important;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    width: 100%;
}

.btn-premium-secondary:hover {
    background: #eff6ff !important;
    transform: scale(1.03);
}

.btn-premium-secondary:active {
    transform: scale(0.97);
}

/* Quantity Stepper Upgrade */
.quantity-stepper {
    display: flex;
    align-items: center;
    background: var(--premium-gray-light);
    border-radius: var(--radius-12);
    padding: 4px;
    border: 1.5px solid var(--premium-gray-border);
    max-width: fit-content;
}

.quantity-stepper button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-8);
    border: none;
    background: white;
    color: var(--premium-blue);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--premium-shadow-sm);
}

.quantity-stepper button:hover {
    background: var(--premium-blue);
    color: white;
    transform: translateY(-1px);
}

.quantity-stepper input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 60px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #1e293b !important;
    pointer-events: none;
}

/* Section and Card UI */
.premium-card {
    background: #fff;
    border-radius: var(--radius-12);
    border: 1px solid var(--premium-gray-border);
    box-shadow: var(--premium-shadow);
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.premium-card:hover {
    box-shadow: var(--premium-shadow-lg);
}

.delivery-box-premium {
    background: #f0f9ff;
    border: 1.5px dashed #bae6fd;
    border-radius: var(--radius-12);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.delivery-box-premium i {
    font-size: 1.5rem;
    color: var(--premium-blue);
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--premium-shadow-sm);
}

/* Rating Stars */
.rating-stars-premium {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 1.1rem;
}

/* Sticky Mobile Bottom Bar */
.sticky-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sticky-mobile-footer.active {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .sticky-mobile-footer {
        display: none !important;
    }
}
    color: var(--accent-color);
}

.contact-info-footer {
    font-size: 13px; /* Reduced from 14px */
    color: #bdc3c7;
}

.contact-info-footer i {
    width: 20px; /* Reduced from 25px */
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--sp-10); /* Reduced from 50px */
    padding-top: var(--sp-6); /* Reduced from 30px */
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* WhatsApp Button */
.popular-searches-section {
    background-color: #fff;
    border-top: 1px solid #edf2f7;
}

.popular-tag {
    background-color: #f7fafc;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.popular-tag:hover {
    background-color: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

/* Brands Section Styles - Boxed Border */
.brands-box {
    height: 120px !important;
    padding: 0 !important;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    overflow: hidden;
}

#brandsCarousel {
    width: 100%;
    height: 100%;
}

#brandsCarousel .carousel-inner,
#brandsCarousel .carousel-item {
    height: 100%;
}

#brandsCarousel .carousel-item > div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around; /* Spreads logos across the full width */
    padding: 0 40px; /* Reduced padding to fit default container width better */
}

#brandsCarousel {
    width: 100%;
}

.brand-logo {
    height: 40px !important; /* Slightly larger for better visibility */
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-ctrl {
    width: 32px !important;
    height: 32px !important;
    background-color: #cfe3ff !important; /* Light blue background from image */
    border-radius: 50%;
    top: 50% !important;
    transform: translateY(-50%);
    opacity: 1 !important;
    color: #fff !important; /* White icon from image */
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
}

.brand-ctrl:hover {
    background-color: #add0ff !important;
}

.brand-ctrl.carousel-control-prev {
    left: 10px !important;
}

.brand-ctrl.carousel-control-next {
    right: 10px !important;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 4000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3900;
    display: none;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    display: block;
}

.cart-item-side {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-side img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-side-info {
    flex-grow: 1;
}

/* Image Preview Modal Premium Styles */
#imagePreviewModal .modal-dialog {
    max-width: 90vw;
}

#imagePreviewModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px !important;
}

.preview-image-bg {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}

.preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.preview-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.preview-nav-btn.prev {
    left: 40px;
}

.preview-nav-btn.next {
    right: 40px;
}

#preview-image-fullscreen {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.2s ease;
    cursor: default;
}

#imagePreviewModal.fade .modal-dialog {
    transform: scale(0.9);
}

#imagePreviewModal.show .modal-dialog {
    transform: scale(1);
}

#imagePreviewModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
}

#imagePreviewModal .btn-close-white:hover {
    opacity: 1;
}

/* Modal Backdrop Premium Blur */
#imagePreviewModal ~ .modal-backdrop {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.85);
}

.cart-item-side-info .name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-side-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.cart-item-side-info .qty {
    font-size: 12px;
    color: #777;
}

.remove-item-side {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 14px;
    background: transparent;
    border: none;
    padding: 0;
}

.remove-item-side:hover {
    color: #cc0000;
}

@media (max-width: 1199px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Mobile Featured Products Optimization */
@media (max-width: 576px) {
    .section-title-mobile {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .view-all-mobile {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        width: auto !important;
        align-self: flex-start;
        margin-bottom: 0 !important;
    }
    
    .featured-header-mobile {
        margin-bottom: 1rem !important;
    }
}

/* Mobile Bottom Navigation Menu */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 2000;
    border-top: 1px solid #f1f3f6;
}

.mobile-bottom-nav .nav-item {
    text-decoration: none;
    color: #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    transition: all 0.2s;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item.active {
    color: #007bff;
}

.mobile-bottom-nav .nav-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-bottom-nav .nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #ff4d4d;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #fff;
}

/* Add padding to body to prevent footer content overlap */
@media (max-width: 991px) {
    body {
        padding-bottom: 60px;
    }
}
