/* Mobile horizontal scroll for categories css*/
.category-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.category-scroll-row::-webkit-scrollbar {
    display: none;
}
.category-scroll-row > div {
    min-width: 45vw;
    max-width: 45vw;
    flex: 0 0 45vw;
    scroll-snap-align: start;
}
/* Modern Categories Card */
.category-modern-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    border-radius: 1.2rem;
    box-shadow: 0 4px 18px rgba(13,110,253,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.7rem 0.7rem 0.7rem;
    transition: box-shadow 0.3s, transform 0.3s;
    min-height: 140px;
    border: none;
}
.category-modern-card:hover {
    box-shadow: 0 8px 32px rgba(13,110,253,0.15);
    transform: translateY(-6px) scale(1.04);
    background: linear-gradient(135deg, #e3f0ff 0%, #f8fafc 100%);
}
.category-modern-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 0.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
}
.category-modern-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4f8;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.category-modern-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    margin-top: 0;
    letter-spacing: 0.01em;
    text-align: center;
}
/* Custom CSS for E-Commerce Store - Modern Design */

:root {
    /* Modern Color Palette */
    --primary-color: #667eea;
    --primary-light: #764ba2;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Typography */
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Typography */
body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--dark-color);
    background: #fafafa;
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Modern Button Styles */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20c057 0%, #06503e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 1.1em;
}

.btn-whatsapp-outline {
    background: transparent;
    color: #25d366;
    border: 2px solid #25d366;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-whatsapp-outline:hover {
    background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* Mobile WhatsApp Button Optimizations */
@media (max-width: 768px) {
    .btn-whatsapp,
    .btn-whatsapp-outline {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 50px;
        width: 100%;
    }
    
    .btn-whatsapp i,
    .btn-whatsapp-outline i {
        font-size: 1.2em;
    }
    
    /* Mobile product detail button improvements */
    .btn-lg {
        min-height: 50px;
        font-size: 1rem !important;
        padding: 12px 16px;
    }
    
    /* Side-by-side buttons on mobile */
    .d-flex.gap-2 > .btn.flex-fill {
        font-size: 0.9rem !important;
        padding: 12px 8px;
        min-height: 50px;
    }
    
    /* Ensure text fits on smaller buttons */
    .d-flex.gap-2 > .btn.flex-fill i {
        font-size: 0.9em;
        margin-right: 4px !important;
    }
}

@media (max-width: 576px) {
    .btn-whatsapp,
    .btn-whatsapp-outline {
        padding: 16px 20px;
        font-size: 1.1rem;
        min-height: 55px;
    }
    
    .btn-lg {
        min-height: 55px;
        padding: 16px 20px;
        font-size: 1.1rem !important;
    }
    
    /* Further optimize side-by-side buttons for very small screens */
    .d-flex.gap-2 > .btn.flex-fill {
        font-size: 0.85rem !important;
        padding: 14px 6px;
        min-height: 55px;
    }
    
    .d-flex.gap-2 > .btn.flex-fill i {
        font-size: 0.8em;
        margin-right: 3px !important;
    }
}

/* Modern Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl) !important;
}

/* Enhanced Modern Header Styles */
.modern-header {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1020;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-header.sticky-top {
    position: sticky;
    top: 0;
}

.modern-header.scrolled {
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(25px);
}

/* Header Top Bar */
.header-top {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Cart Badge Styles - Optimized positioning */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545 !important;
    color: white !important;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    line-height: 1;
    padding: 0 2px !important;
    margin: 0 !important;
    transition: all 0.2s ease;
}

/* Handle larger numbers */
.cart-badge[data-count="10"],
.cart-badge[data-count="11"],
.cart-badge[data-count="12"],
.cart-badge[data-count="13"],
.cart-badge[data-count="14"],
.cart-badge[data-count="15"] {
    min-width: 20px;
    padding: 0 1px !important;
    font-size: 0.6rem;
}

.cart-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Better button positioning context */
.btn-header {
    position: relative !important;
    overflow: visible !important;
    margin-right: 8px !important;
}

/* Responsive cart badge positioning - optimized */
@media (max-width: 576px) {
    .cart-badge {
        top: -5px;
        right: -5px;
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        border-width: 1px;
    }
    
    .btn-header {
        margin-right: 5px !important;
    }
}

/* Ensure parent button has proper positioning context - simplified */
.btn-header {
    position: relative !important;
    overflow: visible !important;
}

/* Simplified header overflow fixes */
.header-actions {
    overflow: visible !important;
    position: relative;
    padding-right: 10px !important;
}

/* Simplified header overflow fixes */
.header-actions {
    overflow: visible !important;
    position: relative;
}

/* Responsive cart badge positioning - clean */
@media (max-width: 576px) {
    .cart-badge {
        top: -4px;
        right: -6px;
        font-size: 0.65rem;
        min-width: 14px;
        height: 14px;
    }
}

/* Header Main Section */
.header-main {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Logo and Branding */
.logo-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.logo-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
    opacity: 0.9;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced Search Bar - Modern Glass Morphism */
.search-form {
    position: relative;
    width: 100%;
}

.search-container {
    position: relative;
    display: flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 48px;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: all 0.3s ease;
}

.search-container:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-input {
    border: none !important;
    background: transparent;
    padding: 0 1.5rem;
    font-size: 1rem;
    color: var(--dark-color);
    flex: 1;
    outline: none;
    box-shadow: none !important;
    font-weight: 400;
    height: 100%;
    border-radius: 50px 0 0 50px !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
}

.search-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.search-btn {
    background: var(--gradient-primary);
    border: none !important;
    color: #fff;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 !important;
    flex-shrink: 0;
    border-radius: 0 50px 50px 0 !important;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: none;
    transition: all 0.2s ease;
    min-width: 60px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    color: white;
    transform: scale(1.05);
}

.search-btn i {
    font-size: 18px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
}

/* Header Action Buttons - Modern Glass Morphism */
.header-actions {
    gap: 0.75rem;
}

.btn-header {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-outline-light.btn-header {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-outline-light.btn-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light.btn-header {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.btn-light.btn-header:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cart Badge - Modern */
.cart-badge {
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: var(--shadow-lg);
    }
}

/* Header Navigation */
.header-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    margin: 0 0.25rem;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.hover-white:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Utility Classes */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .brand-tagline {
        display: none !important;
    }
    
    .header-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .modern-header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-container {
        margin-top: 0.75rem;
    }
    
    .btn-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

/* Mobile Header Height Optimization */
@media (max-width: 767.98px) {
    /* Reduce overall header height */
    .modern-header {
        min-height: auto !important;
    }
    
    .modern-header .header-main {
        min-height: auto !important;
    }
    
    /* Compact container padding */
    .modern-header .container-fluid {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Compact branding section */
    .navbar-brand {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .brand-text {
        line-height: 1 !important;
    }
    
    .brand-name {
        font-size: 0.95rem !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
    }
    
    /* Reduce logo sizes */
    .logo-img {
        height: 28px !important;
        margin-right: 0.5rem !important;
    }
    
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
    }
    
    /* Compact search section */
    .search-container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.4rem !important;
        height: 36px !important;
    }
    
    .search-input {
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }
    
    .search-btn {
        height: 36px !important;
        padding: 0 16px !important;
        min-width: 45px !important;
    }
    
    .search-btn i {
        font-size: 14px !important;
    }
    
    /* Compact action buttons */
    .btn-header {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-height: 32px !important;
        line-height: 1 !important;
    }
    
    .header-actions {
        gap: 0.25rem !important;
    }
    
    /* Hide button text on mobile */
    .btn-text {
        display: none !important;
    }
    
    /* Optimize grid spacing */
    .modern-header .row {
        margin: 0 !important;
        --bs-gutter-y: 0.25rem !important;
    }
    
    .modern-header .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Cart badge optimization */
    .cart-badge {
        font-size: 0.65rem !important;
        padding: 0.15em 0.4em !important;
        top: -4px !important;
        right: -4px !important;
    }
}

/* Extra small mobile optimization */
@media (max-width: 575.98px) {
    .modern-header .container-fluid {
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Even smaller logo */
    .logo-img {
        height: 24px !important;
    }
    
    .logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }
    
    .brand-name {
        font-size: 0.85rem !important;
    }
    
    /* Smaller search */
    .search-container {
        height: 32px !important;
        margin-top: 0.375rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .search-input {
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
    
    .search-btn {
        height: 32px !important;
        padding: 0 14px !important;
        min-width: 42px !important;
    }
    
    .search-btn i {
        font-size: 13px !important;
    }
    
    /* Smaller action buttons */
    .btn-header {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.7rem !important;
        min-height: 28px !important;
    }
    
    .header-actions {
        gap: 0.2rem !important;
    }
    
    /* Smaller cart badge */
    .cart-badge {
        font-size: 0.6rem !important;
        padding: 0.1em 0.3em !important;
        min-width: 16px !important;
        height: 16px !important;
        top: -2px !important;
        right: -2px !important;
    }
}

@media (max-width: 767.98px) {
    .header-top {
        display: none !important;
    }
    
    .modern-header .container-fluid {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .modern-header .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Reduce header component heights */
    .logo-img {
        height: 28px !important;
    }
    
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }
    
    .brand-name {
        font-size: 0.95rem !important;
        line-height: 1 !important;
    }
    
    /* Compact search container */
    .search-container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 6px;
        height: 36px !important;
    }

    .search-input {
        padding: 0 12px !important;
        font-size: 14px !important;
        height: 36px !important;
    }

    .search-btn {
        padding: 0 16px !important;
        height: 36px !important;
    }

    .search-btn i {
        font-size: 14px !important;
    }
    
    /* Compact header buttons */
    .btn-header {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-height: 32px !important;
    }
    
    .btn-text {
        display: none !important;
    }
    
    .header-actions {
        gap: 0.25rem !important;
    }
    
    /* Reduce overall header row spacing */
    .modern-header .row.g-2 {
        --bs-gutter-y: 0.25rem !important;
    }
    
    /* Cart badge positioning for smaller buttons */
    .cart-badge {
        top: -2px !important;
        right: -2px !important;
        font-size: 0.65rem !important;
        padding: 0.15em 0.4em !important;
    }
}

@media (max-width: 575.98px) {
    .modern-header .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
    }
    
    /* Extra compact logo */
    .logo-img {
        height: 24px !important;
    }
    
    .logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }
    
    .brand-name {
        font-size: 0.85rem !important;
    }
    
    /* Extra compact search */
    .search-container {
        border-radius: 6px;
        margin-top: 0.375rem !important;
        margin-bottom: 0.375rem !important;
        height: 32px !important;
    }

    .search-input {
        padding: 0 10px !important;
        font-size: 13px !important;
        height: 32px !important;
    }

    .search-btn {
        padding: 0 14px !important;
        height: 32px !important;
    }

    .search-btn i {
        font-size: 13px !important;
    }
    
    /* Extra compact buttons */
    .btn-header {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.7rem !important;
        min-height: 28px !important;
    }
    
    .header-actions {
        gap: 0.2rem !important;
    }
    
    /* Further reduce row spacing */
    .modern-header .row.g-2 {
        --bs-gutter-y: 0.15rem !important;
    }
    
    /* Smaller cart badge */
    .cart-badge {
        top: -1px !important;
        right: -1px !important;
        font-size: 0.6rem !important;
        padding: 0.1em 0.3em !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 1 !important;
    }
}

/* Legacy header styles - keeping for compatibility */
header.legacy-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

header.sticky-top.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 0.75rem 1rem;
}

header .input-group .btn {
    border-radius: 0 25px 25px 0;
    border: none;
    padding: 0.75rem 1rem;
}

header .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

header .btn-light {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.gap-2 {
    gap: 0.5rem !important;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    header .col-12.mt-2 {
        margin-top: 1rem !important;
    }
    
    header .order-2 {
        order: 2;
    }
    
    header .order-3 {
        order: 3;
    }
}

@media (max-width: 575.98px) {
    header .navbar-brand .fs-4 {
        font-size: 1.1rem !important;
    }
    
    header .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    header .input-group .form-control {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem !important;
    }
}

/* Simplified Header */
header .row {
    align-items: center;
}

@media (max-width: 768px) {
    header .col-md-3,
    header .col-md-6 {
        margin-bottom: 1rem;
    }
    
    header .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    header .text-end {
        text-align: center !important;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Category Cards */
.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    min-height: 200px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
    color: white;
}

.category-card:hover .text-dark {
    color: white !important;
}

.category-card:hover .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(var(--primary-rgb), 0.1);
    transition: var(--transition);
    margin-bottom: var(--spacing-md);
}

.category-card:hover .category-image {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.category-icon {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.category-card:hover .category-icon {
    color: white;
    transform: scale(1.1);
}

/* Categories Carousel */
#categoriesCarousel {
    position: relative;
    padding: 0 50px;
}

#categoriesCarousel .carousel-control-prev,
#categoriesCarousel .carousel-control-next {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: var(--transition);
}

#categoriesCarousel .carousel-control-prev {
    left: 10px;
}

#categoriesCarousel .carousel-control-next {
    right: 10px;
}

#categoriesCarousel .carousel-control-prev:hover,
#categoriesCarousel .carousel-control-next:hover {
    background: var(--primary-color);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-50%) scale(1.1);
}

#categoriesCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#categoriesCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

#categoriesCarousel .carousel-indicators {
    bottom: -30px;
    margin-bottom: 0;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

#categoriesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.3);
    opacity: 1;
    border: 2px solid transparent;
    transition: var(--transition);
}

#categoriesCarousel .carousel-indicators button.active {
    background: var(--primary-color);
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: scale(1.2);
}

#categoriesCarousel .carousel-indicators button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

#categoriesCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 768px) {
    #categoriesCarousel .carousel-control-prev,
    #categoriesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        left: -20px;
        right: -20px;
    }
    
    #categoriesCarousel .carousel-indicators {
        bottom: -30px;
    }
}

/* Category Hero Banner Carousel */
.category-hero-section {
    position: relative;
}

#categoryHeroCarousel {
    position: relative;
}

.category-hero-slide {
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

#categoryHeroCarousel .carousel-control-prev,
#categoryHeroCarousel .carousel-control-next {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#categoryHeroCarousel .carousel-control-prev {
    left: 20px;
}

#categoryHeroCarousel .carousel-control-next {
    right: 20px;
}

#categoryHeroCarousel .carousel-control-prev:hover,
#categoryHeroCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

#categoryHeroCarousel .carousel-indicators {
    bottom: 20px;
}

#categoryHeroCarousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

#categoryHeroCarousel .carousel-indicators button.active,
#categoryHeroCarousel .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

#categoryHeroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

.category-hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-products-preview {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.offer-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 768px) {
    .category-hero-slide {
        min-height: 300px;
    }
    
    .category-hero-content h1 {
        font-size: 2rem !important;
    }
    
    #categoryHeroCarousel .carousel-control-prev,
    #categoryHeroCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        left: 10px;
        right: 10px;
    }
}

/* Best Sellers Carousel */
#bestSellersCarousel {
    position: relative;
}

#bestSellersCarousel .carousel-control-prev,
#bestSellersCarousel .carousel-control-next {
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#bestSellersCarousel .carousel-control-prev {
    left: -25px;
}

#bestSellersCarousel .carousel-control-next {
    right: -25px;
}

#bestSellersCarousel .carousel-control-prev:hover,
#bestSellersCarousel .carousel-control-next:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

#bestSellersCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

#bestSellersCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(13, 110, 253, 0.3);
    border: none;
    transition: all 0.3s ease;
}

#bestSellersCarousel .carousel-indicators button.active,
#bestSellersCarousel .carousel-indicators button:hover {
    background-color: var(--primary-color);
}

#bestSellersCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 768px) {
    #bestSellersCarousel .carousel-control-prev,
    #bestSellersCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        left: -20px;
        right: -20px;
    }
    
    #bestSellersCarousel .carousel-indicators {
        bottom: -30px;
    }
}

/* Enhanced Modern Product Cards */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.product-image-container {
    overflow: hidden;
    height: 280px;
    position: relative;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Enhanced Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.92) 0%, rgba(118, 75, 162, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

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

.product-overlay .btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.product-overlay .btn:hover {
    background: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

.product-overlay .btn:nth-child(2) {
    transition-delay: 0.1s;
}

/* Enhanced Product Info Section */
.product-card .card-body {
    padding: 20px;
    position: relative;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-card .product-original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-card .product-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-card .product-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-card .stock-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

.product-card .stock-status.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-card .stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-card .stock-status.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Product Rating */
.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.product-card .product-rating .stars {
    color: #fbbf24;
}

.product-card .product-rating .rating-text {
    color: #6b7280;
    font-weight: 500;
}

/* Quick Action Buttons */
.product-card .quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card .quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card .quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.product-title {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--dark-color);
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-title a:hover {
    color: var(--primary-color) !important;
}

.price {
    font-size: 1.2rem;
}

/* Cart Styles */
.cart-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(13, 110, 253, 0.02);
}

.cart-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-controls .input-group {
    max-width: 140px;
}

.quantity-input {
    max-width: 60px;
    padding: 0.375rem 0.25rem;
    text-align: center;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.remove-item-btn {
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.item-total {
    font-size: 1.1rem;
    transition: all 0.2s ease;
    transform-origin: center;
}

.item-total.updating {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item.updating {
    opacity: 0.7;
    pointer-events: none;
}

.cart-item.updating::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Summary Animations */
#cart-subtotal, #cart-total {
    transition: all 0.3s ease;
}

#cart-subtotal.updating, #cart-total.updating {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Mobile Responsive Cart */
@media (max-width: 768px) {
    .cart-item .col-md-4,
    .cart-item .col-md-3,
    .cart-item .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .cart-item .col-4,
    .cart-item .col-8 {
        margin-bottom: 0.5rem;
    }
    
    .cart-item .col-6 {
        margin-bottom: 1rem;
    }
    
    .cart-image {
        max-width: 80px;
        height: 80px;
        object-fit: cover;
    }
    
    .quantity-controls .input-group {
        max-width: 120px;
        margin: 0 auto;
    }
    
    .cart-item h6 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .cart-item .text-muted.small {
        font-size: 0.75rem;
    }
    
    .cart-item .item-unit-price {
        font-size: 0.9rem;
    }
    
    .cart-item .item-total {
        font-size: 1rem;
        font-weight: bold;
    }
    
    .remove-item-btn {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    /* Stack cart summary below items on mobile */
    .position-sticky {
        position: relative !important;
        top: auto !important;
    }
    
    /* Better mobile spacing for cart summary */
    .card-body .d-flex {
        font-size: 0.9rem;
    }
    
    .card-body .fw-bold.fs-5 {
        font-size: 1.1rem !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    .cart-item {
        padding: 1rem !important;
    }
    
    .cart-item h6 {
        font-size: 0.85rem;
    }
    
    .cart-image {
        max-width: 70px;
        height: 70px;
    }
    
    .quantity-controls .input-group {
        max-width: 110px;
    }
    
    .quantity-controls .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .quantity-controls .form-control {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
    
    .remove-item-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-outline-primary {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Checkout Styles */
.checkout-summary {
    background: var(--light-color);
    border-radius: 8px;
}

.order-summary-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.order-summary-item:last-child {
    border-bottom: none;
}

/* Product Detail Styles */
.product-detail-image {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
}

.product-gallery img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery img:hover {
    opacity: 0.8;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer Styles */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, 
        rgba(var(--dark-rgb), 0.95) 0%, 
        rgba(var(--primary-rgb), 0.1) 100%
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

footer .hover-link {
    transition: var(--transition);
    position: relative;
}

footer .hover-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

footer .hover-link:hover::after {
    width: 100%;
}

footer .hover-link:hover {
    color: var(--primary-color) !important;
}

footer h6 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: var(--spacing-xs) 0;
    display: block;
}

footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: var(--spacing-sm);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-size: 1rem;
    margin: 0 var(--spacing-xs);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Mobile Footer Optimization */
    footer {
        padding: 1.5rem 0 !important;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer h6 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem !important;
    }
    
    footer ul li {
        margin-bottom: 0.25rem !important;
    }
    
    footer ul li a {
        font-size: 0.8rem;
    }
    
    footer .social-links a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        margin-right: 0.5rem !important;
    }
    
    footer hr {
        margin: 1rem 0 !important;
    }
    
    footer .row.align-items-center p {
        font-size: 0.75rem;
    }
    
    /* Original mobile styles */
    .hero-slide {
        min-height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-image-container {
        height: 200px;
    }

    /* Enhanced Mobile Product Card Styles */
    .product-card {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.12);
    }

    .product-card .card-body {
        padding: 16px;
    }

    .product-card .product-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-card .product-price {
        font-size: 1.2rem;
    }

    .product-overlay .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 40px;
        height: 40px;
    }

    .product-card .quick-actions {
        display: none; /* Hide on mobile for better touch experience */
    }

    .cart-image {
        width: 60px;
        height: 60px;
    }

    .quantity-input {
        width: 60px;
    }
}

@media (max-width: 576px) {
    /* Extra Small Screen Footer Optimization */
    footer {
        padding: 1rem 0 !important;
        margin-top: 2rem !important;
    }
    
    footer .container {
        padding: 0 0.75rem;
    }
    
    footer h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }
    
    footer ul li a, footer .text-light {
        font-size: 0.75rem;
    }
    
    footer .social-links a {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.75rem;
        margin-right: 0.4rem !important;
    }
    
    footer hr {
        margin: 0.75rem 0 !important;
    }
    
    footer .row.align-items-center p {
        font-size: 0.7rem;
    }
    
    footer .col-lg-3, footer .col-md-6 {
        margin-bottom: 1rem !important;
    }
    
    /* Original extra small styles */
    .category-card {
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    /* Enhanced mobile product card styles */
    .product-image-container {
        height: 160px !important;
        border-radius: 12px 12px 0 0;
    }

    .product-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.1);
    }

    .product-card .card-body {
        padding: 12px;
    }

    .product-card .product-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-card .product-price {
        font-size: 1.1rem;
    }

    .product-card .product-original-price {
        font-size: 0.85rem;
    }

    .product-card .product-discount,
    .product-card .product-badge {
        padding: 2px 6px;
        font-size: 0.7rem;
        top: 8px;
    }

    .product-card .product-discount {
        right: 8px;
    }

    .product-card .product-badge {
        left: 8px;
    }

    .product-overlay .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 36px;
        height: 36px;
        border-radius: 18px;
    }

    .product-card .stock-status {
        font-size: 0.75rem;
        padding: 2px 8px;
        margin-top: 4px;
    }

    .product-card .product-rating {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    /* Hide product overlay completely on mobile for clear image visibility */
    .product-overlay {
        display: none !important;
    }
    
    /* Remove hover effects on product cards for mobile */
    .product-card:hover .product-overlay {
        display: none !important;
    }
}

/* Additional tablet styles for product grid */
@media (max-width: 992px) and (min-width: 769px) {
    .product-card .card-body {
        padding: 18px;
    }
    
    .product-card .product-title {
        font-size: 1.05rem;
    }
    
    .product-image-container {
        height: 220px;
    }
}

/* Tablet and Mobile Optimizations */
@media (max-width: 768px) {
    .product-image-container {
        height: 180px !important;
    }
    
    /* Hide product overlay on mobile for better touch experience */
    .product-overlay {
        display: none !important;
    }
    
    .product-card:hover .product-overlay {
        display: none !important;
    }
    
    .product-card .product-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .price {
        font-size: 1rem !important;
    }
    
    /* Better button sizing on mobile */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Optimize spacing for mobile 2-column layout */
    .col-6 .product-card {
        margin-bottom: 1rem;
    }
}
    .carousel-item .row .col-6 {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Card Styles */
.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-header {
    background: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Custom Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Header and Navigation Styles */
.header-shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Removed conflicting legacy search styles to prevent button positioning issues */

.cart-btn, .track-btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.cart-btn:hover, .track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cart-count {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mobile-nav-toggle {
    border: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.mobile-menu .btn {
    border-radius: 0;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    color: #333;
    padding: 1rem;
    transition: all 0.3s ease;
}

.mobile-menu .btn:hover {
    background: #007bff;
    color: white;
    transform: translateX(10px);
}

.mobile-menu .btn:last-child {
    border-bottom: none;
}

/* Critical Search Layout Fix - Override any conflicting styles */
.search-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

.search-container .search-input {
    flex: 1 1 auto !important;
    display: block !important;
    width: auto !important;
}

.search-container .search-btn {
    flex: 0 0 auto !important;
    display: flex !important;
    width: auto !important;
    min-width: 65px !important;
}

/* Ensure no Bootstrap conflicts */
.search-container .search-input.form-control,
.search-container .search-btn.btn {
    float: none !important;
    clear: none !important;
    display: block !important;
}

.search-container .search-btn.btn {
    display: flex !important;
}

/* Sticky Call Now Button */
.call-now-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999 !important;
    cursor: pointer;
}

.call-now-button a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none;
    text-decoration: none;
    color: white !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: callButtonBounce 2s infinite;
    position: relative;
    z-index: 2;
    display: flex !important;
}

.call-now-button a:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.call-now-button a:focus {
    color: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Pulsing animation */
.call-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.3);
    animation: callPulse 2s infinite;
    z-index: 1;
}

/* Enhanced tooltip */
.call-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
}

.call-tooltip .call-text {
    display: block;
    font-weight: 600;
    color: #28a745;
}

.call-tooltip .call-number {
    display: block;
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 2px;
}

.call-now-button:hover .call-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

@keyframes callButtonBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes callPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .call-now-button {
        bottom: 20px;
        right: 15px;
    }
    
    .call-now-button a {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .call-pulse {
        width: 55px;
        height: 55px;
    }
    
    .call-tooltip {
        right: 65px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .call-now-button {
        bottom: 15px;
        right: 10px;
    }
    
    .call-now-button a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .call-pulse {
        width: 50px;
        height: 50px;
    }
    
    .call-tooltip {
        right: 60px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .call-tooltip .call-number {
        font-size: 0.7rem;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 999 !important;
    cursor: pointer;
}

.whatsapp-button a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none;
    text-decoration: none;
    color: white !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: whatsappBounce 3s infinite;
    position: relative;
    z-index: 2;
    display: flex !important;
}

.whatsapp-button a:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.whatsapp-button a:focus {
    color: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* WhatsApp pulse */
.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 3s infinite;
    z-index: 1;
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
}

.whatsapp-tooltip .whatsapp-text {
    display: block;
    font-weight: 600;
    color: #25D366;
}

.whatsapp-tooltip .whatsapp-number {
    display: block;
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 2px;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: translateY(0);
    }
    33% {
        transform: translateY(-3px);
    }
    66% {
        transform: translateY(-6px);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive WhatsApp adjustments */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 85px;
        right: 15px;
    }
    
    .whatsapp-button a {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .whatsapp-pulse {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 75px;
        right: 10px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .whatsapp-pulse {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .whatsapp-tooltip .whatsapp-number {
        font-size: 0.7rem;
    }
}

/* Contact Buttons Container */
.contact-buttons-container {
    transition: all 0.3s ease;
    /* Ensure buttons are visible by default */
    opacity: 1;
    transform: translateX(0);
}

.contact-buttons-container.hidden .call-now-button,
.contact-buttons-container.hidden .whatsapp-button {
    transform: translateX(100px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-buttons-container .call-now-button,
.contact-buttons-container .whatsapp-button {
    transition: all 0.3s ease;
    /* Ensure individual buttons are visible */
    opacity: 1;
    transform: translateX(0);
}

/* Toggle Button */
.contact-toggle-button {
    position: fixed;
    bottom: 220px;
    right: 20px;
    z-index: 1000;
}

.contact-toggle-button button {
    width: 40px;
    height: 40px;
    background: rgba(108, 117, 125, 0.9);
    border: none;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-toggle-button button:hover {
    background: rgba(108, 117, 125, 1);
    transform: scale(1.1);
    color: white;
}

.contact-toggle-button button:focus {
    color: white;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.3);
    outline: none;
}

.contact-toggle-button button:active {
    transform: scale(0.95);
}

/* Responsive adjustments for toggle */
@media (max-width: 768px) {
    .contact-toggle-button {
        bottom: 150px;
        right: 15px;
    }
    
    .contact-toggle-button button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-toggle-button {
        bottom: 135px;
        right: 10px;
    }
    
    .contact-toggle-button button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Footer Height Optimization - Ultra Compact */
@media (max-width: 1200px) {
    footer {
        padding: 1.2rem 0 !important;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    footer h6 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem !important;
    }
    
    footer .small {
        font-size: 0.75rem;
    }
    
    footer hr {
        margin: 0.3rem 0 !important;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 0.8rem 0 !important;
        margin-top: 1rem !important;
    }
    
    footer .social-links a {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin-right: 0.3rem !important;
    }
    
    footer h6 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem !important;
    }
    
    footer .small {
        font-size: 0.7rem;
        line-height: 1.2 !important;
    }
    
    footer .col-lg-3,
    footer .col-md-6 {
        margin-bottom: 0.5rem !important;
    }
    
    footer hr {
        margin: 0.2rem 0 !important;
        border-width: 1px;
    }
    
    footer ul li {
        margin-bottom: 0 !important;
        line-height: 1.1;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 0.5rem 0 !important;
        margin-top: 0.5rem !important;
    }
    
    footer .social-links a {
        width: 26px;
        height: 26px;
        font-size: 11px;
        margin-right: 0.2rem !important;
    }
    
    footer h6 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem !important;
    }
    
    footer .small {
        font-size: 0.65rem;
        line-height: 1.1 !important;
    }
    
    footer .col-lg-3,
    footer .col-md-6 {
        margin-bottom: 0.3rem !important;
        padding: 0 0.5rem;
    }
    
    footer hr {
        margin: 0.1rem 0 !important;
        border-width: 0.5px;
    }
    
    footer p {
        margin-bottom: 0.1rem !important;
    }
    
    footer .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 0.3rem 0 !important;
    }
    
    footer .social-links a {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    footer h6 {
        font-size: 0.75rem;
    }
    
    footer .small {
        font-size: 0.6rem;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.6) 0%,
        rgba(var(--secondary-rgb), 0.4) 100%
    );
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroFadeInUp 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-content .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-content .btn:hover::before {
    left: 100%;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.6);
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content .btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   MODERN UTILITY CLASSES & ANIMATIONS
   ========================================== */

/* Section Spacing */
.section-padding {
    padding: var(--spacing-xxl) 0;
}

.section-padding-sm {
    padding: var(--spacing-xl) 0;
}

/* Modern Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Styles */
::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--dark-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

/* Mobile Cart Styles */
@media (max-width: 768px) {
    .mobile-cart-container {
        margin-bottom: 1rem;
    }
    
    .mobile-cart-item {
        padding: 1rem 0.75rem !important;
    }
    
    .mobile-cart-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
    }
    
    .mobile-cart-image-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .mobile-product-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .mobile-price {
        font-size: 1.1rem;
    }
    
    .mobile-quantity-group {
        display: flex;
        align-items: center;
        background: #f8f9fa;
        border-radius: 25px;
        padding: 2px;
        border: 1px solid #dee2e6;
    }
    
    .mobile-qty-btn {
        background: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: #6c757d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }
    
    .mobile-qty-btn:hover {
        background: #007bff;
        color: white;
        transform: scale(1.05);
    }
    
    .mobile-qty-input {
        border: none;
        background: transparent;
        width: 50px;
        text-align: center;
        font-weight: 600;
        font-size: 1rem;
        padding: 0;
        margin: 0 8px;
    }
    
    .mobile-qty-input:focus {
        outline: none;
        box-shadow: none;
    }
    
    .mobile-total-price {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-remove-btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
        border-radius: 20px;
    }
    
    /* Cart summary improvements for mobile */
    .mobile-summary-card {
        position: static !important;
        margin-top: 1rem;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .mobile-summary-header {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        border-radius: 15px 15px 0 0;
        padding: 1rem 1.25rem;
    }
    
    .mobile-summary-body {
        padding: 1.25rem;
    }
    
    .mobile-summary-row {
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .mobile-summary-label {
        font-size: 0.95rem;
        color: #6c757d;
    }
    
    .mobile-summary-value {
        font-size: 1rem;
        color: #333;
    }
    
    .mobile-summary-divider {
        margin: 1rem 0;
        border-color: #e9ecef;
    }
    
    .mobile-total-row {
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }
    
    .mobile-total-label {
        font-size: 1.1rem !important;
    }
    
    .mobile-total-value {
        font-size: 1.3rem !important;
    }
    
    .mobile-checkout-btn {
        padding: 0.875rem 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 25px;
        margin-bottom: 0.75rem !important;
    }
    
    .mobile-whatsapp-order {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 25px;
    }
    
    /* Better spacing for mobile cart header */
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Mobile cart title */
    h2.fw-bold {
        font-size: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .mobile-cart-item {
        padding: 0.75rem 0.5rem !important;
    }
    
    .mobile-cart-image,
    .mobile-cart-image-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .mobile-product-title {
        font-size: 0.95rem;
    }
    
    .mobile-price {
        font-size: 1rem;
    }
    
    .mobile-total-price {
        font-size: 1.1rem;
    }
    
    .mobile-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .mobile-qty-input {
        width: 40px;
        font-size: 0.9rem;
    }
}
