/* Shop Page Specific Styles - Maroon Theme */

/* Force dark background on body to prevent white flash */
body {
    background: linear-gradient(to bottom, #660000 0%, #500000 100%) !important;
    background-color: #660000 !important;
}

/* Shop-specific override: simplify the floating cart toggle to a plain cart icon
   Remove the yellow border and red background, make the cart glyph larger. */
.cart-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 12px !important; /* larger hit area */
    border-radius: 6px !important; /* slight rounding for a softer touch */
    right: 35px !important;
    top: 96px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer !important;
    pointer-events: auto !important; /* Ensure clicks are captured */
    z-index: 10500 !important; /* Above all other elements */
}

.cart-toggle-btn i {
    font-size: 44px !important; /* much larger cart icon for visibility */
    line-height: 1 !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6) !important; /* subtle lift for contrast */
    pointer-events: none !important; /* Let clicks pass through to button */ 
}

@media (max-width: 1024px) {
    .cart-toggle-btn i { font-size: 36px !important; }
}

/* Mobile - Position cart icon at top right, above content but below header */
@media (max-width: 768px) {
    .cart-toggle-btn {
        position: fixed !important;
        top: 70px !important; /* Just below the header */
        bottom: auto !important; /* Override any bottom positioning */
        right: 15px !important;
        left: auto !important;
        padding: 0 !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 9999 !important;
        background: rgba(128, 0, 0, 0.9) !important; /* Semi-transparent maroon */
        border-radius: 50% !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .cart-toggle-btn i { 
        font-size: 22px !important; 
        text-shadow: none !important;
        color: white !important;
    }
}

@media (max-width: 480px) {
    .cart-toggle-btn {
        top: 65px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }
    .cart-toggle-btn i { font-size: 20px !important; }
}

/* --- Animated Background Shapes --- */
.soft-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #660000 0%, #500000 100%); /* Matches header color */
    overflow: hidden;
    pointer-events: none;
}

.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff4d4d 0%, transparent 70%);
}

.shape-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #ff3333 0%, transparent 70%);
    animation-delay: -7s;
}

.shape-blob-3 {
    top: 40%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff6666 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Modern Shop Styles */
.shop-hero {
    position: relative;
    background-color: #000; /* Fallback color */
    color: white;
    padding: 80px 20px !important; /* Reduced padding */
    text-align: center;
    overflow: hidden;
    min-height: 45vh !important; /* Reduced height */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.shop-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--hero-bg, url('../images/hero_bg_index.png')) center/cover no-repeat;
    z-index: 0;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Commented out hero text styles to prevent unintended rendering */
/* .shop-hero h1 {
    font-family: 'Mokoto', sans-serif;
    font-size: 2.5rem !important;
    margin-bottom: 30px;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.4);
    letter-spacing: 2px;
    line-height: 1.2;
    width: 100%;
}

.shop-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
} */

.stats-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Mokoto', sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* EXPANDED LAYOUT - Full width container */
.shop-main {
    max-width: 95% !important;
    width: 95% !important;
    padding: 8px 0 120px 0 !important;
    margin: -60px auto 52px;
    font-size: 0.95rem;
    position: relative;
    min-height: 80vh;
    box-sizing: border-box;
}

/* Allow the shop's inner .container to expand for wider cards */
main.shop-main .container,
main.shop-main > .container,
.shop-main .container,
.shop-main > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ===== TOP SEARCH BAR ===== */
.search-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: #fff5f5; /* Light Maroon Theme */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 0 4px 12px 4px;
    border: 1px solid rgba(128,0,0,0.1);
}

.shop-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.shop-brand-logo {
    height: 50px; /* Increased size */
    width: auto;
    object-fit: contain;
    /* Make logo black and add shadow */
    filter: brightness(0) drop-shadow(0 2px 4px rgba(0,0,0,0.1)); 
}

.shop-brand-logo.main-logo {
    height: 60px; /* Even bigger for the main logo */
}

.search-bar-top .search-wrapper {
    flex: 1;
    max-width: 300px; /* Reduced width */
}

.sort-group-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-group-top .filter-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== SHOP LAYOUT WITH LEFT SIDEBAR ===== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    padding: 0 4px;
}

/* Left Sidebar Filters */
.filters-sidebar {
    position: sticky;
    top: 20px;
    background: #fff5f5; /* Light Maroon Theme */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(128,0,0,0.1);
    overflow: hidden;
}

.filters-sidebar-inner {
    padding: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #660000;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    font-size: 0.9rem;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Radio Options */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #444;
}

.category-option:hover {
    background: #fef7f7;
}

.category-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.category-option input[type="radio"]:checked {
    border-color: #660000;
    background: #660000;
}

.category-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.category-option:has(input:checked) {
    background: #fef7f7;
    color: #660000;
    font-weight: 600;
}

/* Price Filter */
.price-filter {
    padding: 0 4px;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 12px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #660000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(128,0,0,0.3);
    transition: transform 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #660000;
    cursor: pointer;
    border: none;
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.price-display #price-value {
    color: #660000;
    font-weight: 700;
}

/* Shop Products Area */
.shop-products {
    width: 100%;
}

/* ===== RESPONSIVE: Hide sidebar on mobile ===== */
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    /* Show a mobile filter bar instead */
    .search-bar-top {
        flex-wrap: wrap;
    }
    
    .search-bar-top .search-wrapper {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 12px;
    }
    
    .sort-group-top {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .search-bar-top {
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .sort-group-top .filter-label {
        display: none;
    }
}

/* ========================================
   VERTICAL PRODUCT GRID - 4 Column Layout
   ========================================
   - Desktop: 4 columns (responsive down to 1 column on mobile)
   - Cards stack vertically: image on top, content below
   - Maintains all features: variants, quick view, badges, etc.
   - Responsive breakpoints ensure optimal viewing on all devices
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for vertical cards */
    gap: 20px;
    align-items: stretch;
    justify-content: stretch;
    margin: 0;
    margin-right: 0;
    width: 100%; /* Use full available width */
    max-width: calc(100vw - 110px); /* Prevent overflow beyond icons */
    padding-right: 0; /* Spacing handled by parent container */
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        width: 100%;
        max-width: calc(100vw - 100px);
    }
    .shop-content {
        padding-right: 70px;
    }
}

@media (max-width: 992px) {
    /* Tablet: 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        width: 100%;
        max-width: calc(100vw - 95px);
    }
    .shop-content {
        padding-right: 65px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        max-width: calc(100vw - 90px);
    }
    .shop-content {
        padding-right: 60px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px; /* Tighter gap for mobile 2-col */
        width: 100%;
        padding-left: 2px;
        padding-right: 2px;
    }
    .shop-content {
        padding-right: 0;
    }
    
    /* Adjust card sizing for 2-col mobile */
    .product-card-modern {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-overlay {
        display: none !important; /* Remove hover overlay on mobile to save space/performance */
    }
}

/* ===== GLOBAL IMAGE FIX FOR ALL SHOP PAGES ===== */
/* Make images fill entire container with zoom effect */
.product-card-modern .product-image-container img,
.product-card-modern img.product-image {
    object-fit: cover !important;
    object-position: center !important;
}

/* Base product card with PERFECTLY EVEN heights and fixed sections */
/* ===== CONSOLIDATED Product Card Styles ===== */
/* All product cards should be uniform and aligned */
.product-card-modern {
    background: #fff5f5; /* Light Maroon Theme */
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(128, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    display: flex;
    flex-direction: column; /* Vertical: image top, content bottom */
    height: 100%; /* Stretch to fill grid cell (uniform height per row) */
    position: relative;
    will-change: transform; /* Optimize for animations */
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(128,0,0,0.2);
    border-color: rgba(128, 0, 0, 0.2);
} 

.product-left-col {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(128,0,0,0.08);
    background: linear-gradient(180deg, #fff9f9 0%, #fff0f0 100%); /* Light Maroon Gradient */
    position: relative;
    flex-shrink: 0;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* No padding for full zoom */
    /* Fixed aspect ratio for consistent sizing regardless of image dimensions */
    aspect-ratio: 1 / 1; /* Square container - change to 4/3 or 3/4 as needed */
    width: 100%;
    height: auto;
    min-height: 200px; /* Fallback for older browsers */
    background: #f5f5f5; /* Placeholder background while loading */
}

.size-selection {
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.5);
    margin-bottom: 0;
    flex-shrink: 0;
}

.size-dropdown {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.75rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire space, crop if needed */
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; /* No padding for full zoom */
    position: absolute; /* Position absolute to fill container */
    top: 0;
    left: 0;
}

/* Ensure images don't overflow or distort on hover */
.product-card-modern:hover .product-image {
    transform: scale(1.08);
}

/* Floating price tag on image for immediate visibility */
.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.97);
    color: #800000;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    z-index: 3;
}

/* Ribbon-style badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: -30px;
    transform: rotate(-25deg);
    transform-origin: left center;
    background: linear-gradient(135deg, #ffd700, #ffdd57);
    color: #5a2b00;
    padding: 5px 60px;
    font-weight: 800;
    font-size: 0.7rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    z-index: 4;
}

/* Move quick view to center of image on hover */
.product-overlay { 
    background: linear-gradient(180deg, rgba(128,0,0,0.0), rgba(128,0,0,0.7)); 
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-overlay .quick-view-btn { 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-info {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0; /* Prevent flex items from overflowing */
}

.product-category { color: #999; font-size: 0.7rem; margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; flex-shrink: 0; }
.product-title { font-size: 1.1rem; color: #1a1a1a; font-weight: 700; line-height: 1.3; margin-bottom: 6px; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-description { 
    font-size: 0.85rem; 
    color: #777; 
    display: -webkit-box !important; 
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important; 
    overflow: hidden !important; 
    margin-bottom: 8px; 
    line-height: 1.5; 
    flex-shrink: 0; 
    font-weight: 400; 
    text-overflow: ellipsis;
    height: auto; /* Allow height to adjust */
    min-height: 2.55rem; /* Ensure at least 2 lines */
}

/* Expand description if no variants are present */
.product-card-modern.no-variants .product-description {
    -webkit-line-clamp: 8 !important; /* Show more lines */
    line-clamp: 8 !important;
    flex-grow: 1;
}

.product-price { font-size: 1.15rem; color: #660000; font-weight: 800; margin-bottom: 0; flex-shrink: 0; }

/* Sale Pricing Styles */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    flex-shrink: 0;
    order: 10; /* Move price above size selection */
    margin-top: auto;
}

/* Size selection for variant products */
.size-selection {
    margin-bottom: 8px;
    flex-shrink: 0;
    order: 11; /* Move size selection below price */
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
}

.size-label {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

.size-dropdown-container {
    position: relative;
    width: 100%;
}

.size-dropdown {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #666;
    pointer-events: none;
}

.custom-option-container {
    order: 12;
}

.product-actions { 
    display: flex;
    gap: 10px; 
    align-items: center; 
    flex-wrap: nowrap; 
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
    order: 20; /* Ensure actions are always last */
}
.quantity-selector { width: 90px; height: 36px; flex-shrink: 0; display: flex; align-items: center; background: #f8f8f8; border-radius: 6px; border: 1px solid #e0e0e0; }
.add-to-cart-btn { flex: 1; height: 36px; font-size: 0.85rem; border-radius: 6px; font-weight: 600; }

/* Ensure the product info container places actions at the bottom */
/* Actions are now directly inside product-info with margin-top: auto */

/* Responsive: adjust vertical card layout for smaller screens */
@media (max-width: 1200px) {
    .product-card-modern {
        height: 100%;
    }
    .product-image-container {
        aspect-ratio: 1 / 1;
        min-height: 180px;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .product-card-modern {
        height: 100%;
    }
    .product-image-container {
        aspect-ratio: 1 / 1;
        min-height: 160px;
        padding: 0;
    }
}

@media (max-width: 680px) {
    .product-card-modern {
        height: 100%;
    }
    .product-image-container {
        aspect-ratio: 1 / 1;
        min-height: 140px;
        padding: 0;
    }
    .product-title { font-size: 0.95rem; line-height: 1.25; }
    .product-price { font-size: 1rem; }
    .product-description { font-size: 0.8rem; -webkit-line-clamp: 2; line-clamp: 2; min-height: 2.4rem; }
    .add-to-cart-btn { flex: 1; height: 34px; font-size: 0.8rem; }
    .quantity-selector { height: 34px; width: 80px; }
    .product-info { padding: 14px 16px; gap: 6px; }
    .size-dropdown { padding: 6px 26px 6px 10px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    /* Compact Mobile Grid Optimization */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 5px !important;
    }

    .product-image-container {
        aspect-ratio: 1 / 1 !important; /* Consistent square ratio */
        min-height: 120px !important;
        padding: 0 !important;
    }
    
    .product-info { 
        padding: 10px !important; 
    }
    
    .product-title { 
        font-size: 0.85rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        height: 2.4em; /* Limit to 2 lines visual height */
        overflow: hidden;
    }
    
    .product-description { 
        display: none !important; /* Hide description to save vertical space */
    }
    
    .product-price {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    /* Compact Actions */
    .product-actions {
        gap: 4px !important;
    }
    
    .add-to-cart-btn {
        font-size: 0.75rem !important;
        height: 32px !important;
        padding: 0 !important;
    }
    
    .quantity-selector {
        height: 32px !important; 
        width: 60px !important;
    }

    .quantity-selector input {
        width: 20px !important;
        font-size: 0.8rem !important;
        padding: 0 !important;
    }
    
    .size-dropdown {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
        height: 28px !important;
    }

    /* Ensure Quick View is accessible if not using mobile-first.css styles */
    .mobile-quick-view-btn {
        bottom: 5px !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* has-sizes class no longer needed - all cards use same fixed height */

.product-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(128, 0, 0, 0.1);
    border-color: rgba(128, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #800000, #660000);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 9px rgba(0,0,0,0.15);
}

.product-type-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 4px 0 8px 0;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-type-tag.snare {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.product-type-tag.tenor {
    background-color: #fce4ec;
    color: #880e4f;
    border: 1px solid #f8bbd0;
}

.product-type-tag.glockenspiel-lyre {
    background-color: #fff9c4;
    color: #f57f17;
    border: 1px solid #fff176;
}

/* FIXED IMAGE HEIGHT - Consistent across all cards */
/* Removed conflicting .product-image-container rule */

/* .product-image rule removed as it is defined earlier */

.product-card-modern:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.92), rgba(160, 0, 0, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensure it sits above the image */
    border-radius: 0; /* Ensure it doesn't overflow rounded corners */
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #660000;
    border: none;
    border-radius: 8px;
    width: auto;
    min-width: 100px;
    height: 40px;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 11; /* Ensure button is clickable */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.quick-view-btn:hover {
    background: #660000;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* FIXED CONTENT AREA - Consistent spacing and growth */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    min-height: 160px;
}

.product-category {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    font-weight: 700;
    flex-shrink: 0;
}

/* Custom Name Tag Styles */
.product-name-tag {
    display: inline-block;
    padding: 3px 8px; /* More concise padding */
    border-radius: 3px;
    font-size: 0.65rem; /* Slightly smaller font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px; /* Better spacing */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Softer shadow */
    align-self: flex-start; /* Ensure alignment if in flex container */
    line-height: 1.2;
}

/* Removed distracting animation for cleaner look */

.product-title {
    font-family: 'Mokoto', sans-serif;
    font-size: 1.05rem;
    color: #2d1b1b; /* Warmer dark tone */
    margin-bottom: 0;
    line-height: 1.3;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Removed conflicting product-description style */

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #b30000; /* Slightly more vibrant maroon */
    margin-bottom: 0;
    min-height: 1.6rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* --- MODERN DROPDOWN STYLES --- */
.size-dropdown-container {
    position: relative;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.size-dropdown {
    width: 100%;
    padding: 9px 34px 9px 14px;
    border: 2px solid #e9ecef;
    border-radius: 9px;
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    min-height: 38px;
}

.size-dropdown:focus {
    outline: none;
    border-color: #660000;
    box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.12);
}

.size-dropdown:hover {
    border-color: #660000;
}

.dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.size-dropdown:focus + .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Remove old size button styles */
.size-buttons-container,
.size-buttons-grid,
.size-btn {
    display: none;
}

/* Update size selection area for dropdowns */
.size-selection {
    margin-bottom: 8px; /* Consistent spacing */
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.selected-size-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 0 0;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
    flex-shrink: 0;
}

.selected-size-text {
    font-size: 0.82rem;
    color: #333;
    font-weight: 700;
}

.selected-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #800000;
}

/* Product actions styles - consolidated */
.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: auto !important;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    flex-shrink: 0;
    width: 100px;
    height: 38px;
    border: 1px solid #e9ecef;
}

.quantity-btn {
    background: none;
    border: none;
    width: 32px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #660000;
    font-size: 0.85rem;
    flex-shrink: 0;
    padding: 0 2px;
}

.quantity-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.quantity-input {
    width: 36px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 700;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    flex-shrink: 0;
    font-size: 0.85rem;
    height: 100%;
    color: #333;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* PERFECTLY ALIGNED ADD TO CART BUTTONS */
.add-to-cart-btn {
    background: linear-gradient(135deg, #660000, #800000);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    height: 46px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.36);
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Enhanced Filters */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff2f2; /* Light maroon/pinkish background */
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(128, 0, 0, 0.1);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 34px 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 22px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #660000;
    box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.85rem;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 9px;
    background: white;
    cursor: pointer;
    min-width: 190px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #660000;
}

/* Modern Sidebar - Extended width for better visibility */
.sidebar-filters-modern {
    background: #fff2f2; /* Light maroon/pinkish background */
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(0,0,0,0.1);
    border: 1px solid rgba(128, 0, 0, 0.1);
    position: sticky;
    top: 84px;
    height: fit-content;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    grid-row: 1 / span 2;
}

.filter-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-family: 'Mokoto', sans-serif;
    font-size: 0.98rem;
    color: #660000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 6px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.82rem;
}

.category-link:hover {
    background: #f8f9fa;
    color: #660000;
    transform: translateX(3px);
}

.category-link.active {
    background: linear-gradient(135deg, #660000, #800000);
    color: white;
    box-shadow: 0 4px 16px rgba(128, 0, 0, 0.3);
}

.category-count {
    background: #e9ecef;
    padding: 2px 7px;
    border-radius: 14px;
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
}

.category-link.active .category-count {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Price Range */
.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #666;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Loading Animation */
.loading-products {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.loading-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #660000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- PREMIUM CART SIDEBAR STYLES --- */

/* Toggle Button */
.cart-toggle-btn {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #fff;
    color: #660000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10500;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: none !important;
}

.cart-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cart-toggle-btn i {
    font-size: 24px !important;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #660000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Sidebar Container */
.cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 450px !important;
    max-width: 100vw;
    height: 100% !important;
    background: #fff !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1) !important;
    z-index: 12000 !important;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    border-left: none;
}

.cart-sidebar.active {
    transform: translateX(0) !important;
}

/* Header */
.cart-sidebar-header {
    padding: 35px 40px; /* Increased padding */
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}

.cart-sidebar-header h3 {
    font-family: 'Mokoto', sans-serif; /* Brand font */
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar:hover {
    transform: rotate(90deg);
    color: #660000;
}

/* Content Area */
.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fff;
}

/* Empty State */
.empty-cart-message {
    padding: 60px 40px; /* Increased padding */
    text-align: center;
    color: #999;
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #eee;
}

.empty-cart-message h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Cart Item */
.cart-sidebar-item {
    display: flex;
    padding: 30px 40px; /* Increased padding */
    border-bottom: 1px solid #f5f5f5;
    gap: 25px; /* Increased gap */
    transition: background-color 0.2s ease;
    align-items: flex-start;
}

.cart-sidebar-item:hover {
    background-color: #fafafa;
}

.cart-sidebar-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cart-sidebar-item:hover .cart-sidebar-item-image img {
    transform: scale(1.05);
}

.cart-sidebar-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-sidebar-item-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.cart-sidebar-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.cart-sidebar-item-info .item-subtotal {
    font-weight: 600;
    color: #660000;
    margin-top: 4px;
    font-size: 0.95rem;
}

/* Actions (Quantity & Remove) */
.cart-sidebar-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 90px; /* Match image height */
}

.remove-sidebar-item {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.2s ease;
}

.remove-sidebar-item:hover {
    color: #d32f2f;
}

.quantity-selector-cart {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 32px;
    overflow: hidden;
}

.quantity-btn-cart {
    width: 30px;
    height: 100%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.quantity-btn-cart:hover {
    background: #f5f5f5;
}

.cart-sidebar-item-quantity {
    width: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    height: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    padding: 0;
    background: #fff;
}

/* Footer */
.cart-sidebar-footer {
    padding: 35px 40px; /* Increased padding */
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Mokoto', sans-serif;
}

.cart-sidebar-total span:first-child {
    font-size: 1rem;
    color: #1a1a1a;
}

.cart-sidebar-total span:last-child {
    font-size: 1.4rem;
    color: #660000;
}

.checkout-btn-sidebar,
.shop-now-btn-sidebar {
    display: block;
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkout-btn-sidebar:hover,
.shop-now-btn-sidebar:hover {
    background: #660000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

/* Overlay */
.sidebar-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

/* Responsive */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100% !important;
    }
    .cart-sidebar-item {
        padding: 20px;
    }
    .cart-sidebar-item-image {
        width: 70px;
        height: 70px;
    }
    .cart-sidebar-item-actions {
        height: 70px;
    }
}

/* Messages Container */
#message-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
    max-width: 300px;
}

.message {
    padding: 10px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    animation: slideInRight 0.4s ease;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* EXPANDED Shop Content Layout - Full Width */
.shop-content {
    display: block; /* Changed from grid to block for full width */
    width: 100%;
    padding-right: 80px; /* Increased space for cart icon and chatbot */
    box-sizing: border-box;
}

.shop-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100%;
    padding-right: 0; /* Handled by parent */
}

/* --- FIXED NOTIFICATION STYLES (Bottom Left) --- */
.modal-confirmation-window {
    position: fixed;
    bottom: 80px;
    left: 22px;
    z-index: 20001; /* Higher than global modal (20000) and sidebar (12000) */
    max-width: 320px;
    background: white;
    padding: 14px 18px;
    border-radius: 11px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
    border-left: 5px solid #660000;
    transition: all 0.4s ease-out;
    opacity: 0;
    transform: translateX(-100%);
}


.modal-confirmation-window.show {
    left: 22px;
    opacity: 1;
    transform: translateX(0);
}

.confirmation-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

#modal-icon {
    font-size: 1.6rem;
    color: #660000;
}

#modal-message {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.modal-confirmation-window.success {
    border-left-color: #28a745;
}
.modal-confirmation-window.success #modal-icon {
    color: #28a745;
}

.modal-confirmation-window.error {
    border-left-color: #dc3545;
}
.modal-confirmation-window.error #modal-icon {
    color: #dc3545;
}

/* --- CUSTOM REMOVAL MODAL DIALOG STYLES --- */
.custom-modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 20002; /* Higher than toast (20001) */
}

.custom-modal-dialog.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-dialog .modal-content {
    background: white;
    padding: 24px;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    border: 1px solid #ddd;
    opacity: 0;
}

.custom-modal-dialog.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.custom-modal-dialog .modal-body {
    padding: 12px 0 20px 0;
}

.custom-modal-dialog .modal-icon-warning {
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 14px;
}

.custom-modal-dialog #removal-modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 6px 0 10px 0;
}

.custom-modal-dialog #removal-modal-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-modal-dialog .modal-actions {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-top: 18px;
}

.custom-modal-dialog .modal-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.custom-modal-dialog .btn-secondary {
    background: #f8f9fa;
    color: #555;
    border: 2px solid #e9ecef;
}

.custom-modal-dialog .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.custom-modal-dialog .btn-danger {
    background: linear-gradient(135deg, #800000, #660000);
    color: white;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
}

.custom-modal-dialog .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.4);
}

.custom-modal-dialog .close-modal-btn {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}

.custom-modal-dialog .close-modal-btn:hover {
    color: #660000;
}

/* Font Awesome Icon Fix */
.fa, .fas, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

.quantity-btn i,
.quantity-btn-cart i, 
.remove-sidebar-item i,
.cart-toggle-btn i,
.quick-view-btn i,
.filter-title i {
    font-weight: 900 !important;
}

/* Responsive layout for featured products */
@media (max-width: 1440px) {
    .shop-main {
        max-width: 1400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .shop-main {
        margin: 0 auto 60px;
        padding: 20px 16px 40px;
    }
    
    .cart-sidebar {
        width: 100%;
        transform: translate3d(100%, 0, 0);
    }
    
    .cart-sidebar-header {
        padding: 18px 16px;
    }
    
    .cart-sidebar-header h3 {
        font-size: 1.3rem;
    }
    
    .cart-sidebar-content {
        padding: 20px 16px;
        gap: 12px;
    }
    
    .cart-sidebar-item {
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cart-sidebar-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-sidebar-item-info h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .cart-sidebar-item-info p {
        font-size: 0.8rem;
    }
    
    .cart-sidebar-item-info .item-subtotal {
        font-size: 0.85rem;
    }
    
    .quantity-selector-cart {
        transform: scale(0.9);
    }
    
    .cart-sidebar-footer {
        padding: 16px;
    }
    
    .cart-sidebar-total {
        font-size: 1rem;
        padding: 12px 0 4px;
    }
    
    .cart-sidebar-total span:last-child {
        font-size: 1.2rem;
    }
    
    .checkout-btn-sidebar {
        padding: 14px;
        font-size: 1rem;
    }

    .cart-toggle-btn {
        top: 84px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
        min-height: auto;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
        padding: 8px;
        height: 40px;
    }
    
    .add-to-cart-btn {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 40px;
        font-size: 0.9rem;
    }

    .product-title {
        min-height: auto;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .product-price {
        min-height: auto;
        font-size: 1.1rem;
    }

    .selected-size-display {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .modal-confirmation-window {
        bottom: 64px;
        left: 12px;
        width: calc(100% - 24px);
        max-width: none;
    }
    .modal-confirmation-window.show {
        left: 12px;
    }
}

@media (max-width: 500px) {
    .custom-modal-dialog .modal-actions {
        flex-direction: column;
    }
    
    .custom-modal-dialog .modal-content {
        padding: 20px 14px;
        margin: 14px;
    }
}

/* --- QUICK VIEW MODAL STYLES --- */
.modal-quick-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 20005; /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
    /* Removed backdrop-filter for 240Hz performance */
}

.modal-quick-view.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

.quick-view-content {
    background: white;
    width: 95%;
    max-width: 1320px;
    max-height: 95vh;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    overflow-x: hidden !important; /* Force no horizontal scroll */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translate3d(0, -30px, 0) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.32, 1), opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.modal-quick-view.active .quick-view-content {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.close-quick-view {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: #666;
}

.close-quick-view:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
    color: #660000;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
    min-height: auto;
    overflow: hidden;
    overflow-x: hidden !important; /* Force no horizontal scroll */
}

/* Left Column: Gallery */
.quick-view-gallery {
    background: #f8f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow-y: auto;
    overflow-x: hidden !important; /* Force no horizontal scroll */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.main-image-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#qv-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
    cursor: zoom-in;
}

#qv-main-image.zoomed {
    max-width: none;
    max-height: none;
    width: 200%;
    height: 200%;
    cursor: zoom-out;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

#qv-main-image.zoomed.pan-mode {
    cursor: grab;
}

#qv-main-image.zoomed.pan-mode:active {
    cursor: grabbing;
}

.main-image-container.zoom-active {
    cursor: zoom-out;
    overflow: hidden;
}

.main-image-container.zoom-active.pan-mode {
    cursor: grab;
}

.main-image-container.zoom-active.dragging {
    cursor: grabbing;
}

.zoom-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pan-mode-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    z-index: 15;
    display: none;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.pan-mode-btn:hover {
    background: rgba(128, 0, 0, 0.9);
    transform: scale(1.05);
}

.pan-mode-btn.active {
    background: rgba(128, 0, 0, 0.9);
    border-color: white;
}

.pan-mode-btn.visible {
    display: flex;
}

.qv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.qv-nav-btn:hover {
    background: rgba(128, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.qv-prev {
    left: 10px;
}

.qv-next {
    right: 10px;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    margin-top: auto;
    overflow-x: hidden !important; /* Completely disable horizontal scroll */
    overflow-y: hidden;
    padding: 5px 0;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.thumbnail-container::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
}

.thumbnail.active {
    border-color: #660000;
    transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Details */
.quick-view-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.quick-view-details h3 {
    margin-top: -15px;
}

/* Ensure bullet lists display properly in quickview */
.quick-view-details ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

.quick-view-details ol {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 10px;
}

.quick-view-details li {
    margin-bottom: 5px;
}

/* ===== QUICK VIEW MODAL MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .modal-quick-view {
        align-items: flex-start !important;
        padding: 5px !important;
        display: flex !important;
    }
    
    .modal-quick-view.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .quick-view-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh !important;
        border-radius: 8px !important;
        margin: auto 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .modal-quick-view.active .quick-view-content {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .quick-view-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    .quick-view-gallery {
        padding: 15px !important;
        min-height: auto !important;
        max-height: 40vh !important;
    }
    
    .main-image-container {
        height: 280px !important;
    }
    
    #qv-thumbnail-container {
        gap: 6px !important;
        padding: 8px 0 !important;
    }
    
    .thumbnail {
        width: 50px !important;
        height: 50px !important;
    }
    
    .quick-view-details {
        padding: 20px 15px !important;
    }
    
    .qv-title {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }
    
    .qv-price {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .qv-description {
        font-size: 1.3rem !important;
        max-height: 60px !important;
        margin-bottom: 15px !important;
        color: #5d4037 !important;
        line-height: 1.45 !important;
    }
    
    #qv-specifications {
        margin-bottom: 15px !important;
    }
    
    .qv-spec-tags {
        gap: 6px !important;
    }
    
    .qv-spec-tag {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    .qv-options {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .size-dropdown {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .qv-actions {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin-top: 15px !important;
    }
    
    .qv-quantity-selector {
        width: 100% !important;
        justify-content: center !important;
    }
    
    #qv-add-to-cart-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        touch-action: manipulation;
    }
    
    .close-quick-view {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        z-index: 100 !important;
        touch-action: manipulation;
    }
    
    /* Mobile: Hide zoom controls - not great for touch */
    .zoom-indicator,
    .pan-mode-btn {
        display: none !important;
    }
    
    /* Mobile: Make nav buttons larger for touch */
    .qv-nav-btn {
        width: 44px !important;
        height: 44px !important;
        touch-action: manipulation;
    }
    
    /* Mobile: Ensure thumbnails are touch-friendly */
    .thumbnail {
        min-width: 50px !important;
        min-height: 50px !important;
        touch-action: manipulation;
    }
}

/* ===== Header/Nav consistency (enforced) ===== */
.main-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    height: var(--nav-height, 68px) !important;
    min-height: var(--nav-height, 68px) !important;
    padding: 12px 30px !important;
    background: linear-gradient(135deg, #3d0000 0%, #1a0000 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.main-header .menu-toggle-btn,
.main-header .logo,
.main-header .navbar {
    margin-top: 0 !important;
}

.main-header .navbar-left {
    display: flex !important;
    gap: var(--nav-gap, 18px) !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    flex-wrap: nowrap !important;
}

.main-header .navbar-right {
    display: flex !important;
    gap: var(--nav-gap, 18px) !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}

@media (min-width: 1400px) {
    .main-header {
        gap: 40px !important;
    }
}

@media (max-width: 1200px) {
    .main-header {
        gap: 20px !important;
        padding: 12px 30px !important;
    }
    .navbar-left {
        gap: 14px !important;
    }
}

@media (max-width: 1024px) {
    .main-header {
        grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr) !important;
        gap: 15px !important;
        padding: 12px 20px !important;
    }
    .navbar-left {
        gap: 12px !important;
    }
    .navbar a {
        font-size: 0.95rem !important;
    }
}

@media (max-width:980px){
    .main-header { 
        padding: 10px 14px !important; 
    }
}

.qv-category {
    color: #660000;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.qv-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.qv-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #660000;
    margin-bottom: 24px;
}

.qv-description {
    color: #5d4037 !important;
    line-height: 1.45 !important;
    margin-bottom: 24px !important;
    font-size: 1.3rem !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* Product Details Tags Styles */
.qv-specifications {
    margin-bottom: 10px !important;
}

.qv-specifications h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #660000 !important;
    margin-bottom: 14px !important;
}

#qv-specifications-content {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    color: #5d4037 !important;
    line-height: 1.45 !important;
}

.qv-spec-tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qv-spec-tag,
.qv-specifications .qv-spec-tag,
span.qv-spec-tag {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    display: inline !important;
    white-space: normal !important;
    line-height: inherit !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

.qv-options {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.qv-options:not(:empty) {
    padding: 15px;
    background: transparent;
    border: none;
}

.qv-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 20px;
    flex-shrink: 0;
}

.qv-actions .add-to-cart-btn {
    height: 50px;
    font-size: 1rem;
    min-width: 160px;
}

.favorites-btn {
    height: 50px;
    width: 50px;
    background: #ffd700;
    border: 2px solid #ffed4e;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #856404;
    transition: all 0.2s ease;
}

.favorites-btn:hover {
    background: #ffed4e;
    border-color: #ffe066;
    color: #6c5b00;
}

.favorites-btn.favorited {
    background: #ff6b6b;
    border-color: #ff5252;
    color: #fff;
}

.favorites-btn.favorited:hover {
    background: #ff5252;
}

/* Cart Animation */
@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounce 0.5s ease;
}

/* ===== MINIMALIST FILTER BAR (Siskin Style) ===== */
.filter-bar-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Separate Search from Filters */
    align-items: center;
    padding: 10px 20px; /* Compact padding */
    margin-bottom: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    flex-wrap: nowrap; /* Force single line */
    gap: 15px; /* Gap between Search and Filter Group */
    overflow-x: auto; /* Allow horizontal scroll if screen is too narrow */
    
    /* Floating Bar Style */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.04);
    
    /* Make it sticky */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.filter-bar-container::-webkit-scrollbar {
    display: none;
}

/* New Group for Right Side Actions */
.filter-actions-group {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between filter items */
    flex-shrink: 0; /* Prevent shrinking */
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Prevent shrinking */
    height: 40px; /* Enforce height consistency */
}

/* Legacy classes removed */
.filter-left, .filter-right {
    display: none; 
}

.filter-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600; /* Unified weight */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0; /* Removed extra margin */
    display: flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
    height: 100%;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Minimal Select Group */
/* Modern Select Group */
.minimal-select-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 40px;
}

.minimal-select-group:hover,
.minimal-select-group:focus-within {
    border-color: #660000;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.1);
    background: white;
}

.minimal-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    font-size: 0.9rem; /* Slightly smaller font */
    color: #333;
    padding: 0 30px 0 5px;
    cursor: pointer;
    font-weight: 500;
    min-width: 120px; /* Reduced min-width */
    height: 100%;
    line-height: 1.2;
}

.minimal-select:focus {
    outline: none;
}

.select-icon {
    position: absolute;
    right: 10px;
    font-size: 0.75rem;
    color: #660000;
    pointer-events: none;
    transition: transform 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.minimal-select-group:focus-within .select-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Modern Search */
.modern-search-container {
    position: relative;
    flex: 1; /* Allow flexible width */
    min-width: 180px; /* Reduced min-width */
    max-width: 300px; /* Reduced max-width */
    /* Removed margin-right: auto */
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff; /* White background for better visibility */
    border: 1px solid #ccc; /* Darker border */
    border-radius: 30px;
    padding: 0 15px; /* Remove vertical padding, use height */
    height: 40px; /* Fixed height to match others */
    transition: all 0.3s ease;
    width: 100%; /* Fill container */
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Default shadow */
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    background: white;
    border-color: #660000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* Removed width expansion to prevent layout shift */
}

.search-icon {
    color: #666; /* Darker icon */
    margin-right: 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.search-wrapper:focus-within .search-icon {
    color: #660000;
}

.modern-search-input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
    width: 100%;
}

.modern-search-input:focus {
    outline: none;
}

.modern-search-input::placeholder {
    color: #aaa;
}

/* Minimal Price Group */
.minimal-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Prevent shrinking */
    height: 40px; /* Enforce height consistency */
}

.price-label-static {
    font-size: 0.8rem; /* Unified size */
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex; /* Added flex */
    align-items: center; /* Added align-items */
    height: 100%; /* Added height */
    gap: 6px; /* Added gap */
}

.price-slider-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 0 12px; /* Reduced padding */
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    height: 40px; /* Fixed height to match others */
    box-sizing: border-box;
}

.price-slider-compact input[type=range] {
    width: 80px; /* Reduced width */
    height: 4px;
    accent-color: #660000;
}

.price-slider-compact span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #660000;
    min-width: 50px; /* Reduced min-width */
    text-align: right;
}

/* Responsive adjustments for filter bar */
@media (max-width: 1100px) {
    .filter-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
        flex-wrap: nowrap;
        overflow-x: hidden;
        height: auto;
        position: sticky;
        top: 0;
        border-radius: 0 !important; /* Remove border radius on mobile for full width */
    }

    /* Stack the actions group vertically on mobile */
    .filter-actions-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .modern-search-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .minimal-select-group, .search-wrapper {
        width: 100%;
    }
    
    .minimal-select {
        width: 100%;
    }
    
    .price-slider-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-slider-compact input[type=range] {
        flex: 1;
    }
}


/* ===== MODERN VARIANT DROPDOWN STYLES ===== */
.size-selection {
    margin: 15px 0;
}

.size-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-dropdown-container {
    position: relative;
    width: 100%;
}

.size-dropdown {
    width: 100%;
    padding: 10px 15px;
    padding-right: 35px; /* Space for arrow */
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-dropdown:hover {
    background-color: #fff;
    border-color: #b0b0b0;
}

.size-dropdown:focus {
    outline: none;
    border-color: #660000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #660000;
    pointer-events: none; /* Click passes through to select */
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.size-dropdown:focus + .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom Option Checkbox Style */
.custom-option-container {
    margin-top: 12px;
    padding: 10px;
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 8px;
    transition: background 0.2s;
}

.custom-option-container:hover {
    background: #ffe0e0;
}

.custom-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #660000;
    font-weight: 500;
    margin: 0;
}

.custom-option-label input[type='checkbox'] {
    accent-color: #660000;
    width: 16px;
    height: 16px;
    cursor: pointer;
}


/* ===== STORE CAROUSEL SECTION ===== */
.store-carousel-section {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-header h2 {
    font-family: 'Mokoto', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.carousel-header h2 i {
    color: #660000;
    font-size: 1.8rem;
}

.carousel-header p {
    color: #666;
    font-size: 1.05rem;
    margin: 0;
}

.store-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.store-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
}

.store-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Store Card */
.store-card {
    min-width: 320px;
    max-width: 320px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.store-card.active-store {
    border: 2px solid #660000;
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.2);
}

.store-card-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.store-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.store-logo {
    max-width: 80%;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.store-logo-placeholder {
    background: rgba(255,255,255,0.15);
    padding: 20px 30px;
    border-radius: 12px;
    border: 2px dashed rgba(255,255,255,0.4);
}

.store-logo-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-card-body h3 {
    font-family: 'Mokoto', sans-serif;
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 12px 0;
}

.store-card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #660000;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
    align-self: flex-start;
}

.store-card:hover .store-badge {
    background: #660000;
    color: white;
    border-color: #660000;
}

.current-badge {
    background: #660000;
    color: white;
    border-color: #660000;
}

.store-card.active-store:hover .current-badge {
    background: #800000;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
    font-size: 1.2rem;
}

.carousel-nav:hover {
    background: #660000;
    color: white;
    border-color: #660000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .store-carousel-wrapper {
        padding: 0 50px;
    }
    
    .store-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .store-carousel-section {
        padding: 40px 0;
    }
    
    .carousel-header h2 {
        font-size: 1.6rem;
    }
    
    .carousel-header p {
        font-size: 0.95rem;
    }
    
    .store-carousel-wrapper {
        padding: 0 15px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .store-card {
        min-width: 260px;
        max-width: 260px;
    }
    
    .store-card-header {
        height: 150px;
    }
    
    .store-icon {
        font-size: 4rem;
    }
    
    .store-card-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .store-carousel-section {
        padding: 30px 0;
    }
    
    .carousel-header h2 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .store-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .store-card-header {
        height: 130px;
    }
    
    .store-icon {
        font-size: 3.5rem;
    }
    
    .store-logo {
        max-height: 100px;
    }
    
    .store-card-body {
        padding: 20px;
    }
    
    .store-card-body h3 {
        font-size: 1.1rem;
    }
    
    .store-card-body p {
        font-size: 0.85rem;
    }
}

/* Recommendations Sidebar - Modernized */
.cart-recommendations {
    position: fixed;
    top: 0;
    right: -420px; /* Hidden initially */
    width: 400px; /* Wider */
    bottom: 0;
    height: 100% !important;
    min-height: 100% !important;
    
    /* Modern Light Maroon Theme */
    background: #fff5f5;
    
    z-index: 11999; /* Below cart sidebar (12000) */
    transition: right 0.42s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.42s ease, transform 0.42s ease;
    
    /* Shadow and Border */
    box-shadow: none; /* Remove shadow to join with cart */
    border-radius: 0;
    border-left: 1px solid rgba(128,0,0,0.1); /* Subtle divider */
    
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.cart-recommendations::before {
    display: none; /* Remove old gradient overlay */
}

.cart-recommendations.active {
    right: 450px; /* Positioned exactly next to the 450px sidebar */
    box-shadow: -24px 0 44px rgba(53, 10, 10, 0.15); /* Add shadow to the far left */
}

@media (max-width: 1200px) {
    .cart-recommendations {
        display: none; /* Hide on smaller screens to prevent overlap */
    }
}

/* Header */
.recommendations-header {
    padding: 28px 24px;
    background: #fff5f5; /* Light Maroon Theme */
    color: #660000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    z-index: 2;
    flex-shrink: 0;
    position: relative;
    border-bottom: 1px solid rgba(128,0,0,0.1);
}

.recommendations-header::after {
    content: "Curated picks";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    background: #660000;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
    font-weight: 700;
}

.recommendations-header h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    color: #660000;
    text-shadow: none;
}

/* List Container */
.recommendations-list {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
}

.recommendations-list::-webkit-scrollbar {
    width: 6px;
}
.recommendations-list::-webkit-scrollbar-thumb {
    background: rgba(128,0,0,0.2);
    border-radius: 10px;
}

/* Item Card */
.recommendation-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(128,0,0,0.1);
    background: #fff;
}

.recommendation-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.recommendation-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.recommendation-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.recommendation-info {
    width: 100%;
}

.recommendation-info h4 {
    font-size: 1rem;
    color: #222;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-price {
    font-size: 1.1rem;
    color: #660000;
    font-weight: 800;
    margin-bottom: 16px;
}

/* Button */
.btn-add-recommendation {
    background: #660000;
    color: white;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn-add-recommendation:hover {
    background: #600000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.3);
}

.btn-add-recommendation:active {
    transform: translateY(0);
}

/* Fade-in animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCATTERED TO ALIGNED SCROLL ANIMATION ===== */
/* Initial scattered state for product cards */
.product-grid .product-card-modern {
    opacity: 0;
    transform: translate(var(--product-scatter-x, 0), var(--product-scatter-y, 0)) rotate(var(--product-scatter-rotate, 0deg)) scale(0.85);
    animation: none; /* Disable the old fadeInUp animation */
}

/* Define scattered positions for product cards */
.product-grid .product-card-modern:nth-child(4n+1) { --product-scatter-x: -80px; --product-scatter-y: -50px; --product-scatter-rotate: -8deg; }
.product-grid .product-card-modern:nth-child(4n+2) { --product-scatter-x: 60px; --product-scatter-y: 70px; --product-scatter-rotate: 6deg; }
.product-grid .product-card-modern:nth-child(4n+3) { --product-scatter-x: -50px; --product-scatter-y: 60px; --product-scatter-rotate: 7deg; }
.product-grid .product-card-modern:nth-child(4n+4) { --product-scatter-x: 70px; --product-scatter-y: -40px; --product-scatter-rotate: -6deg; }

/* Animated state when grid is visible */
.product-grid.animate-in .product-card-modern {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered animation delays for scattered cards */
.product-grid.animate-in .product-card-modern:nth-child(1) { transition-delay: 0.05s; }
.product-grid.animate-in .product-card-modern:nth-child(2) { transition-delay: 0.1s; }
.product-grid.animate-in .product-card-modern:nth-child(3) { transition-delay: 0.15s; }
.product-grid.animate-in .product-card-modern:nth-child(4) { transition-delay: 0.2s; }
.product-grid.animate-in .product-card-modern:nth-child(5) { transition-delay: 0.25s; }
.product-grid.animate-in .product-card-modern:nth-child(6) { transition-delay: 0.3s; }
.product-grid.animate-in .product-card-modern:nth-child(7) { transition-delay: 0.35s; }
.product-grid.animate-in .product-card-modern:nth-child(8) { transition-delay: 0.4s; }
.product-grid.animate-in .product-card-modern:nth-child(n+9) { transition-delay: 0.45s; }

/* Preserve hover state after animation */
.product-grid.animate-in .product-card-modern:hover {
    transform: translateY(-8px) scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition-delay: 0s;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .cart-recommendations {
        display: none; /* Hide on smaller screens */
    }
}

/* Ensure italic formatting displays correctly */
.quick-view-details em,
.quick-view-modal em {
  font-style: italic !important;
}

/* =====================================================
   ENHANCED MOBILE-FIRST RESPONSIVE STYLES FOR SHOP
   ===================================================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .main-header {
        flex-wrap: wrap !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .main-header .navbar-left,
    .main-header .navbar-right {
        display: none !important;
    }
    
    .main-header .logo {
        order: 1;
        margin: 0 auto;
    }
    
    .main-header .logo img {
        height: 36px !important;
        width: auto !important;
    }
    
    /* Shop Hero Mobile */
    .shop-hero {
        min-height: auto;
        padding: 60px 16px 40px;
    }
    
    .shop-hero-content {
        padding: 0;
    }
    
    .hero-logo-img {
        max-width: 280px !important;
    }
    
    .stats-container {
        gap: 30px !important;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    /* Search Bar Mobile */
    .search-bar-top {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .shop-logos {
        display: none;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .modern-search-input {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 14px 16px 14px 40px;
    }
    
    .sort-group-top {
        width: 100%;
        justify-content: center;
    }
    
    .minimal-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Category Filters Mobile */
    .category-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 280px;
        height: 100%;
        z-index: 1000;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }
    
    .category-sidebar.active {
        left: 0;
    }
    
    .category-filter-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #800000;
        color: #fff;
        padding: 12px 20px;
        border-radius: 25px;
        border: none;
        font-weight: 600;
        cursor: pointer;
        margin: 12px auto;
    }
    
    /* Product Grid Mobile */
    .shop-main .container {
        padding: 0 8px;
    }
    
    .product-grid-container {
        width: 100%;
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 4px;
    }
    
    .product-card-modern {
        border-radius: 12px;
    }
    
    .card-badge-modern {
        font-size: 9px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
    
    .card-image-modern {
        height: 130px;
    }
    
    .card-image-modern img {
        object-fit: cover;
    }
    
    .card-body-modern {
        padding: 10px;
    }
    
    .card-category-modern {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .card-title-modern {
        font-size: 0.8rem;
        margin-bottom: 6px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-desc-modern {
        display: none;
    }
    
    .card-rating-modern {
        font-size: 9px;
        margin-bottom: 8px;
    }
    
    .card-rating-modern i {
        font-size: 9px;
    }
    
    .card-footer-modern {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-price-modern {
        font-size: 0.95rem;
        text-align: center;
        width: 100%;
    }
    
    .card-original-price {
        font-size: 0.75rem;
    }
    
    .card-btn-modern {
        width: 100%;
        padding: 10px 12px;
        font-size: 10px;
        justify-content: center;
        border-radius: 8px;
    }
    
    .card-btn-modern i {
        font-size: 12px;
    }
    
    /* Quick View Button Hidden on Mobile Touch */
    .card-overlay-modern {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Quick View Modal Mobile */
    .quick-view-modal {
        padding: 10px;
    }
    
    .quick-view-modal .quick-view-content {
        flex-direction: column;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }
    
    .quick-view-gallery {
        width: 100%;
        height: 250px;
    }
    
    .quick-view-gallery .gallery-main img {
        max-height: 200px;
    }
    
    .quick-view-gallery .gallery-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 8px;
    }
    
    .quick-view-gallery .gallery-nav button {
        min-width: 50px;
        height: 50px;
    }
    
    .quick-view-details {
        width: 100%;
        padding: 20px;
    }
    
    .qv-title {
        font-size: 1.3rem;
    }
    
    .qv-description {
        font-size: 0.9rem;
    }
    
    .qv-price {
        font-size: 1.4rem;
    }
    
    .qv-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .qv-actions .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .qv-actions .favorites-btn {
        width: 50px;
    }
    
    .qv-actions .add-to-cart-btn {
        flex: 1;
        min-width: 150px;
    }
    
    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cart-sidebar-header {
        padding: 16px;
    }
    
    .cart-sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-sidebar-content {
        padding: 12px;
    }
    
    .cart-sidebar-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-sidebar-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-sidebar-item-info {
        flex: 1;
        min-width: 120px;
    }
    
    .cart-sidebar-item-info h4 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .cart-sidebar-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .quantity-selector-cart {
        gap: 4px;
    }
    
    .quantity-btn-cart {
        width: 32px;
        height: 32px;
    }
    
    .cart-sidebar-item-quantity {
        width: 40px;
    }
    
    .cart-sidebar-footer {
        padding: 16px;
    }
    
    .checkout-btn-sidebar {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    /* Footer Mobile */
    .main-footer .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-footer .footer-column {
        text-align: center;
        width: 100%;
    }
    
    .main-footer .social-links {
        justify-content: center;
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-logo-img {
        max-width: 220px !important;
    }
    
    .stat-item {
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr !important;
    }
    
    .card-image-modern {
        height: 180px;
    }
    
    .card-title-modern {
        font-size: 1rem;
    }
    
    .card-btn-modern {
        font-size: 12px;
        padding: 12px;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    .card-btn-modern {
        min-height: 44px;
    }
    
    .quantity-btn-cart {
        min-width: 36px;
        min-height: 36px;
    }
    
    .checkout-btn-sidebar {
        min-height: 50px;
    }
    
    /* Disable hover effects on touch */
    .product-card-modern:hover,
    .card-btn-modern:hover {
        transform: none;
    }
    
    /* Active state for touch feedback */
    .card-btn-modern:active,
    .product-card-modern:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    .cart-sidebar-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    .main-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .shop-hero {
        min-height: auto;
        padding: 40px 20px 30px;
    }
    
    .quick-view-modal .quick-view-content {
        flex-direction: row;
        max-height: 95vh;
    }
    
    .quick-view-gallery {
        width: 45%;
        height: auto;
    }
    
    .quick-view-details {
        width: 55%;
    }
}

