/* Updated Button Styles - Version 2.0 */
/* Import Fonts */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Cart Drawer */
#cartDrawer.open { transform: translateX(0) !important; }
#cartDrawerBackdrop.open { display:block !important; }

/* Skeleton loader for images */
.img-skeleton {
    background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* Generic skeleton blocks */
.skeleton { position: relative; overflow: hidden; background-color: #f2f2f2; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); transform: translateX(-100%); animation: skeleton-loading 1.2s infinite; }
@keyframes skeleton-loading { 100% { transform: translateX(100%); } }
.cart-drawer-item { display:flex; gap:8px; padding:8px; border-bottom:1px solid #f1f1f1; }
.cart-drawer-thumb { width:56px; height:56px; border-radius:8px; overflow:hidden; flex-shrink:0; background:#f7f7f7; display:flex; align-items:center; justify-content:center; }
.cart-drawer-thumb img { width:100%; height:100%; object-fit:cover; }
.cart-drawer-info { flex:1; min-width:0; }
.cart-drawer-title { font-size:13px; font-weight:600; margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-drawer-meta { font-size:12px; color:#6b7280; display:flex; gap:6px; align-items:center; }
.cart-drawer-price { font-weight:700; }
.cart-drawer-qty { display:flex; align-items:center; gap:6px; }
.cart-drawer-qty button { width:24px; height:24px; padding:0; line-height:24px; text-align:center; }

/* Payment Gateway Styles */
.payment-gateways {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    position: relative;
}

.gateway-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gateway-label {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gateway-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(8, 145, 178, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.15);
}

.gateway-radio:checked + .gateway-label {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.5);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.2);
}

.gateway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gateway-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gateway-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.gateway-fee {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.gateway-description {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive Design for Payment Gateways */
@media (max-width: 768px) {
    .gateway-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gateway-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .gateway-fee {
        text-align: left;
    }
}

/* Premium Glass Morphism E-commerce Styles - Dynamic Color Theme */
:root {
    /* Dynamic Color Palette - Turquoise, Blue, Purple */
    --primary-color: #0891b2; /* Turquoise */
    --secondary-color: #2563eb; /* Blue */
    --accent-color: #8b5cf6; /* Purple */
    --accent-secondary: #06b6d4; /* Light Turquoise */
    --accent-tertiary: #0d9488; /* Dark Turquoise */
    --accent-quaternary: #7c3aed; /* Light Purple */
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-white: #1f2937;
    --text-white-50: #6b7280;
    
    /* Glass Backgrounds with Dynamic Colors */
    --glass-bg: #ffffff;
    --glass-bg-hover: #ffffff;
    --glass-border: rgba(8, 145, 178, 0.2);
    --glass-border-bright: rgba(8, 145, 178, 0.3);
    
    /* Dynamic Shadows */
    --shadow: 0 8px 32px 0 rgba(8, 145, 178, 0.15);
    --shadow-lg: 0 20px 60px 0 rgba(8, 145, 178, 0.2);
    --backdrop-blur: blur(20px);
    --backdrop-blur-strong: blur(30px);
    
    /* Dynamic Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #0891b2, #2563eb, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #0d9488, #7c3aed);
    --gradient-accent: linear-gradient(135deg, #8b5cf6, #0891b2, #2563eb);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #ffffff;
    background-attachment: fixed;
}

body {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', 'Segoe UI', 'Arial', sans-serif;
    background: transparent;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glass Container */
.glass-container {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.glass-container::before {
    display: none;
}

.glass-container::after {
    display: none;
}

.glass-container:hover::after {
    display: none;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    border-bottom: 1px solid var(--glass-border-bright);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, #0891b2);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.navbar-brand {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: none;
}

.navbar-brand:hover {
    color: #1f2937 !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: #1f2937;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    /* Hover effect removed */
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

.navbar-nav .nav-link .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.3);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

/* Buttons */
.btn-glass {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glass:hover::before {
    /* No hover effects */
}

.btn-glass:hover {
    /* No hover effects */
}

.btn-primary-glass {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.btn-primary-glass:hover::before {
    /* No hover effects */
}

.btn-primary-glass:hover {
    /* No hover effects */
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    /* No hover effects */
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-danger i {
    margin-right: 0.25rem;
}

/* Coupon Section Styles */
.applied-coupon-container {
    margin-bottom: 1rem;
}

.coupon-success-card {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.coupon-success-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-icon {
    font-size: 1.25rem;
}

.coupon-label {
    font-weight: 600;
    font-size: 1rem;
}

.coupon-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coupon-code {
    font-weight: 700;
    color: #155724;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.coupon-discount {
    font-size: 0.9rem;
    font-weight: 500;
}

.coupon-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.remove-coupon-form {
    display: inline-block;
}

.remove-coupon-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.remove-coupon-btn:hover {
    /* No hover effects */
}

.remove-coupon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.remove-coupon-btn i {
    font-size: 0.8rem;
}

/* Coupon Input Form */
.coupon-input-form {
    margin-top: 0;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.coupon-input-group input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.coupon-input-group input[type="text"]:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.apply-coupon-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    white-space: nowrap;
}

.apply-coupon-btn:hover {
    /* No hover effects */
}

.apply-coupon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.apply-coupon-btn i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coupon-success-card {
        padding: 1rem;
    }
    
    .coupon-details {
        gap: 0.5rem;
    }
    
    .coupon-code {
        font-size: 1rem;
    }
    
    .remove-coupon-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .coupon-input-group {
        flex-direction: column;
    }
    
    .apply-coupon-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}


/* Cards */
.card-glass {
    background: #ffffff !important;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 24px;
    z-index: -1;
}

.card-glass:hover::before {
    /* No opacity change on hover */
}

.card-glass:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}


.card-glass .card-img-top {
    height: 250px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    transition: transform 0.6s ease;
    position: relative;
}

.card-glass:hover .card-img-top {
    /* Zoom animation removed */
}

.card-glass .card-body {
    padding: 1.5rem;
    background: #ffffff;
}

.card-glass .card-title {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-glass .card-text {
    color: rgba(31, 41, 55, 0.8);
    font-size: 0.9rem;
}

/* Product Thumbnail Styles */
.product-thumb {
    cursor: pointer !important;
    transform: none !important; /* Prevent any zoom effects */
}

.product-thumb.active {
    border: 2px solid rgba(31,41,55,0.8) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.3) !important;
}

.product-thumb:hover {
    border: 2px solid rgba(31,41,55,0.6) !important;
    /* transform: scale(1.05) !important; - Removed to prevent zoom */
}

#mainProductImage {
    transition: opacity 0.3s ease !important;
    transform: none !important;
    cursor: default !important;
    width: 100% !important;
    height: 400px !important;
    max-width: 400px !important;
    max-height: 400px !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Center thumbnail images */
.product-thumbnails-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* Additional centering for product thumbnails */
.product-detail .product-thumbnails-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Ensure thumbnail images are centered */
.product-thumbnails-container .product-thumb {
    margin: 2px 0 0 0 !important;
    display: block !important;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

/* Time-limited slider (no arrows) */
.tlp-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0 0.5rem 0;
    scroll-snap-type: x proximity; /* softer snapping */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    touch-action: pan-x; /* enable horizontal panning */
    overscroll-behavior-x: contain; /* keep body from stealing swipes */
}

/* Flickity styles - using same approach as product-grid */
.tlp-flickity {
    overflow: hidden;
}

.tlp-flickity .tlp-cell {
    width: 20%; /* 5 per row on desktop */
    margin-right: 1rem;
    height: auto;
}

/* Use same responsive breakpoints as product-grid */
@media (max-width: 992px) {
    .tlp-flickity .tlp-cell {
        width: 25%; /* 4 per row */
    }
}

@media (max-width: 768px) {
    .tlp-flickity .tlp-cell {
        width: 33.333%; /* 3 per row */
        margin-right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .tlp-flickity .tlp-cell {
        width: 50%; /* 2 per row */
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tlp-flickity .tlp-cell {
        width: 50%; /* 2 per row */
        margin-right: 0.4rem;
    }
}

/* Ensure time-limited product cards match regular product cards */
.tlp-flickity .product-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
    height: 100%;
    min-height: 450px; /* Increased minimum height for all cards */
    display: flex;
    flex-direction: column;
    margin: 2px 0; /* Top and bottom margin */
}

.tlp-flickity .product-card:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.4);
    transform: translateY(-2px);
}

.tlp-flickity .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

/* Time limited badge positioned over image */
.tlp-flickity .time-limited-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tlp-flickity .time-limited-badge i {
    font-size: 0.5rem;
}

/* Badge color variants */
.tlp-flickity .badge-green {
    background: rgba(34, 197, 94, 0.95);
}

.tlp-flickity .badge-red {
    background: rgba(239, 68, 68, 0.95);
}

.tlp-flickity .badge-blue {
    background: rgba(59, 130, 246, 0.95);
}

.tlp-flickity .badge-orange {
    background: rgba(249, 115, 22, 0.95);
}

.tlp-flickity .badge-purple {
    background: rgba(147, 51, 234, 0.95);
}

.tlp-flickity .badge-pink {
    background: rgba(236, 72, 153, 0.95);
}

.tlp-flickity .badge-yellow {
    background: rgba(245, 158, 11, 0.95);
}

.tlp-flickity .badge-teal {
    background: rgba(20, 184, 166, 0.95);
}

/* Wishlist button positioned over image */
.tlp-flickity .wishlist-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tlp-flickity .wishlist-btn:hover {
    background: #f8f9fa;
    color: #dc2626;
    transform: scale(1.1);
}

.tlp-flickity .wishlist-btn.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.tlp-flickity .wishlist-btn.active:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.tlp-flickity .wishlist-btn i {
    font-size: 0.875rem;
}

.tlp-flickity .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlp-flickity .product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px; /* Increased minimum height for product info */
}

.tlp-flickity .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: right;
}

.tlp-flickity .product-price {
    margin-top: auto;
    min-height: 3.5rem; /* Increased height to accommodate discount prices */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; /* Right-align price */
    text-align: right;
}

/* Ensure discount price layout doesn't affect card height */
.tlp-flickity .product-price .discount-price {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    width: 100%;
}

.tlp-flickity .product-price .original-price {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.125rem;
    text-align: right;
    width: 100%;
}

.tlp-flickity .product-price .price {
    display: block;
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    width: 100%;
}

/* Countdown timer directly below image */
.tlp-flickity .countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.6rem;
    margin: 0.15rem 0 0.1rem 0;
    padding: 0.15rem;
}

.tlp-flickity .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 1rem;
}

.tlp-flickity .countdown-number {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.6rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tlp-flickity .countdown-label {
    font-size: 0.4rem;
    color: #ffffff;
    margin-top: 0.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tlp-flickity .countdown-separator {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.6rem;
    margin: 0 0.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tlp-slide {
    flex: 0 0 auto;
    width: calc((100% - 4rem) / 5); /* 5 per row on desktop with gaps */
    max-width: 320px;
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .tlp-slide {
        width: calc((100% - 1rem) / 2); /* ~2 per row on tablets */
        max-width: none;
    }
}

@media (max-width: 576px) {
    .tlp-slide { width: calc((100% - 1rem) / 2); }
}

/* Price Display */
.price {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    font-size: 1.1rem;
    font-weight: 950;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    display: inline-block;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-glass:hover .price::after {
    /* Hover effect removed */
}

.discount-price {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    color: #000000;
    font-weight: 950;
    font-size: 1.1rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.original-price {
    text-decoration: line-through;
    color: rgba(31, 41, 55, 0.6);
    font-size: 1rem;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    right: 1rem;
    box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 6px 20px rgba(128, 128, 128, 0.4);
    }
}

/* Forms */
.form-control-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: #1f2937;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #0891b2;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
    color: #1f2937;
}

.form-control-glass::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

/* Cart */
.cart-item {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 15px;
    z-index: -1;
}

/* Cart Table */
.cart-table-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.cart-table-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, #0891b2);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.4s ease;
    animation: gradientRotate 8s ease infinite;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cart-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.cart-table th {
    padding: 1rem 0.75rem;
    text-align: center;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-row:hover {
    /* No background change on hover */
}

.cart-item:hover::before {
    /* No opacity change on hover */
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.cart-product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(31, 41, 55, 0.5);
    font-size: 1.5rem;
}

.product-name-cell {
    text-align: right !important;
    max-width: 200px;
}

.product-name-cell h6 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.product-name-cell small {
    font-size: 0.8rem;
    line-height: 1.3;
}

.variant-cell {
    font-size: 0.9rem;
    text-align: center;
}

.variant-cell span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.price-cell .price {
    font-size: 0.9rem;
}

/* Cart table quantity controls */
.cart-table .cart-quantity-controls {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 0.3rem;
    margin: 0 auto;
    width: fit-content;
}

.cart-table .cart-quantity-controls .quantity-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Decrease button (minus) - Red background */
.cart-table .cart-quantity-controls .decrease-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.cart-table .cart-quantity-controls .decrease-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Increase button (plus) - Green background */
.cart-table .cart-quantity-controls .increase-btn {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}

.cart-table .cart-quantity-controls .increase-btn:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.cart-table .cart-quantity-controls .quantity-btn:hover {
    /* Hover effect removed */
}

.cart-table .cart-quantity-controls .quantity-display {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.total-cell {
    font-size: 1rem;
}

.action-cell .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

/* Checkout Address Selection */
.address-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-option {
    position: relative;
}

.address-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.address-label {
    display: block;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-radio:checked + .address-label {
    border-color: #0891b2;
    background: var(--glass-bg-hover);
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
}

.address-label:hover {
    /* Hover effect removed */
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.address-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.address-details {
    color: rgba(31, 41, 55, 0.8);
}

.address-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.address-phone {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.7);
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

/* Address Management */
.address-card {
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.address-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 20px;
    z-index: -1;
}

.address-card:hover {
    /* Hover effect removed */
}

.address-card:hover::before {
    /* No opacity change on hover */
}

.address-details p {
    margin-bottom: 0.5rem;
}

.address-details i {
    width: 16px;
    text-align: center;
}

.dropdown-menu {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--glass-border);
    border-radius: 0;
}

.dropdown-item {
    color: #1f2937;
    transition: all 0.3s ease;
    border-radius: 0;
}


/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    border-top: 1px solid var(--glass-border-bright);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #1f2937;
    position: relative;
    z-index: 1;
}


.footer a {
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0891b2;
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

.footer a:hover {
    /* Hover effect removed */
}

/* Footer Store Info */
.footer-store-info h5 {
    color: #374151;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: #0891b2;
    width: 20px;
}

/* Footer Section Titles */
.footer-section-title {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Footer Features */
.footer-features .features-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.footer-features .features-scroll-container::-webkit-scrollbar {
    display: none;
}

.footer-features .features-scroll {
    display: flex;
    gap: 1rem;
    padding: 0 0.5rem;
    min-width: max-content;
}

.footer-features .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
    gap: 0.75rem;
}


.footer-features .feature-icon-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.footer-features .feature-icon-circle i {
    color: #374151;
    font-size: 1.5rem;
}

.footer-features .feature-title {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Footer Social Links */
.footer-social .social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: #374151;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid #e5e7eb;
}

.footer-social .social-link:hover {
    background: white;
    color: #0891b2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.4);
    border-color: #0891b2;
}

/* Footer Links */
.footer-links ul {
    margin: 0;
    padding: 0;
}

.footer-links .footer-link {
    color: #6b7280;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    padding-right: 0.75rem;
}



/* Footer Copyright */
.footer-copyright {
    border-top: 1px solid rgba(8, 145, 178, 0.3);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-copyright p {
    color: #9ca3af;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer Site Icons */
.footer-site-icons {
    text-align: center;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(8, 145, 178, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.site-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.site-icon-item:hover {
    transform: translateY(-5px);
}

.site-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.site-icon:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* HTML Code Display for Site Icons */
.site-icon-html {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto 0.75rem auto;
}

.site-icon-html:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.site-icon-html img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-icon-html iframe {
    max-width: 100%;
    max-height: 60px;
    border: none;
    border-radius: 4px;
}

.site-icon-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.site-icon-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.site-icon-link:hover {
    text-decoration: none;
    color: inherit;
}

.site-icon-item-content {
    display: block;
}

.site-icon-text {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* CKEditor5 Center */
.django-ckeditor-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.django-ckeditor-widget .ck-editor {
    width: 100%;
    max-width: 100%;
}

.django-ckeditor-widget .ck-editor__editable {
    min-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

/* Animations - fadeInUp removed */

.fade-in-up {
    /* Animation removed - cards appear immediately */
}

/* Responsive */
@media (max-width: 768px) {
    .glass-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-banner-section .banner-slide {
        min-height: 25vh !important;
    }
    
    .banner-image-mobile {
        min-height: 25vh !important;
    }
    
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .card-glass .card-img-top {
        height: 180px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    /* Cart table responsive */
    .cart-table-container {
        overflow-x: auto;
    }
    
    .cart-table {
        min-width: 600px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .cart-product-image {
        width: 50px;
        height: 50px;
    }
    
    .product-name-cell {
        max-width: 150px;
    }
    
    .product-name-cell h6 {
        font-size: 0.9rem;
    }
    
    .product-name-cell small {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 2rem 0;
        margin-bottom: 70px;
    }
    
    .footer-features .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-features .feature-item {
        padding: 1rem 0.75rem;
        min-width: 100px;
        gap: 0.5rem;
    }
    
    .footer-features .feature-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .footer-features .feature-icon-circle i {
        font-size: 1.2rem;
    }
    
    .footer-features .feature-title {
        font-size: 0.8rem;
    }
    
    .footer-social .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .site-icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .site-icon {
        width: 60px;
        height: 60px;
    }
    
    .site-icon-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .form-control-glass {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-box {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Messages */
.alert-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: #1f2937;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

.alert-glass.alert-info {
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.3);
    color: #0891b2;
}

.alert-glass.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.btn-warning-glass {
    background: #ffffff;
    border: 1px solid var(--glass-border-bright);
    color: #1f2937;
    transition: all 0.3s ease;
}

.btn-warning-glass:hover {
    /* Hover effect removed */
}

.alert-success {
    border-left: 4px solid #0891b2;
}

.alert-danger {
    border-left: 4px solid #f56565;
}

.alert-warning {
    border-left: 4px solid #ed8936;
}

.alert-info {
    border-left: 4px solid #0891b2;
}

/* Pagination */
.pagination-glass {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.page-link-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    color: #1f2937;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link-glass:hover {
    /* Hover effect removed */
}

.page-link-glass.active {
    background: linear-gradient(135deg, #0891b2, #2563eb, #8b5cf6);
    color: #1f2937;
}

/* Category Filter */
.category-filter {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.category-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #0891b2 transparent;
}

.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
    /* Hover effect removed */
}

.category-link {
    color: #1f2937;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-link:hover,
.category-link.active {
    /* Hover effect removed */
}

.category-link-simple {
    color: #1f2937;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    font-weight: 500;
    font-size: 0.9rem;
}

.category-link-simple:hover {
    /* Hover effect removed */
}

/* Search Box */
.search-box {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    color: #1f2937;
    width: 100%;
    max-width: 400px;
}

/* Form Control Glass */
.form-control-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: #1f2937;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control-glass:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #0891b2;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
    color: #1f2937;
}

.form-control-glass option {
    background: var(--glass-bg);
    color: #1f2937;
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

/* Hero Banner Section */
.hero-banner-section {
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

.hero-banner-section .carousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner-slide {
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #f8f9fa; /* Fallback background color */
    overflow: hidden;
}

/* Banner Images */
.banner-image-desktop,
.banner-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-image-desktop {
    min-height: 40vh;
}

.banner-image-mobile {
    min-height: 25vh;
}

/* Banner Content Styles */
.banner-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.banner-content {
    text-align: center;
    color: #1f2937;
    max-width: 600px;
    padding: 2rem;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', sans-serif;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', sans-serif;
}

.banner-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.filter-tag {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-tag.discount {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive banner content */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .banner-filters {
        gap: 0.3rem;
    }
    
    .filter-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Banner Styles - Now using inline styles from model */

/* Best Selling Products Styles */
.best-selling-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.best-selling-scroll-container::-webkit-scrollbar {
    display: none;
}

.best-selling-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.best-selling-item {
    flex-shrink: 0;
    width: 200px;
}

.product-card-new {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-new::before {
    display: none;
}

/* Product Detail Tabs */
.nav-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-item {
    flex-shrink: 0;
    display: inline-block;
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1f2937;
    border: none;
}

.nav-tabs .nav-link.active {
    background: #ffffff;
    color: #1f2937;
    border: none;
    border-bottom: 3px solid #059669;
    font-weight: 700;
}

.tab-content {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    min-height: 200px;
}

/* Bold headings */
h5 {
    font-weight: 700;
}

/* More Button Styles */
.btn-outline-primary {
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary:hover {
    /* No hover effects */
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.btn-outline-primary i {
    font-size: 0.8rem;
}


/* White Cards for Reviews */
.card-glass {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-glass:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}


.product-link-new {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-image-new {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    position: relative;
}

.product-image-new img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-placeholder-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.product-info-new {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title-new {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-new {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discount-price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #dc2626;
}

.original-price-new {
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: line-through;
}

.price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* Responsive best selling products */
@media (max-width: 768px) {
    .best-selling-item {
        width: 200px;
    }
    
    .product-image-new {
        height: 0;
        padding-bottom: 100%; /* Keep 1:1 aspect ratio on mobile */
    }
    
    .product-info-new {
        padding: 1rem;
    }
    
    .product-title-new {
        font-size: 1rem;
    }
    
    .best-selling-scroll {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .best-selling-item {
        width: 160px;
    }
    
    .best-selling-scroll {
        gap: 0.75rem;
        padding: 0 0.25rem;
    }
}

/* Featured Products - Two Column Design */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Helper: three columns on desktop */
.featured-products-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

/* Helper: force two columns on desktop */
.featured-products-grid.two-columns {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Strong override for products page */
.page-product-list .featured-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 992px) {
    .featured-products-grid.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-products-grid.two-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .featured-products-grid.three-columns {
        grid-template-columns: 1fr;
    }
    .featured-products-grid.two-columns {
        grid-template-columns: 1fr !important;
    }
}


.featured-product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 120px;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-product-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    gap: 0.75rem;
}

.featured-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 2;
}

.featured-wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    z-index: 2;
}

.featured-wishlist-btn:hover {
    background: #fff5f5;
    border-color: #fecaca;
    color: #ef4444;
}

.featured-wishlist-btn i.active {
    color: #ef4444;
}

.featured-product-image {
    position: relative;
    flex: 0 0 24%;
    max-width: 24%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
}

.featured-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.featured-no-image {
    color: #6c757d;
    font-size: 1.2rem;
}

.featured-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.featured-product-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2rem;
}

.featured-product-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.featured-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #059669;
}

.featured-discount-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #059669;
}

.featured-original-price {
    font-size: 0.7rem;
    color: #6b7280;
    text-decoration: line-through;
}

.featured-cart-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.featured-add-to-cart-btn {
    background: linear-gradient(135deg, #059669, #047857);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.featured-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

.featured-cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.25rem;
}

.featured-quantity-btn {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.7rem;
}

.featured-quantity-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.featured-quantity-display {
    font-weight: 600;
    color: #1f2937;
    min-width: 16px;
    text-align: center;
    font-size: 0.7rem;
}

/* Responsive Featured Products */
@media (max-width: 1200px) {
    .featured-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .featured-product-card {
        height: 110px;
    }
    
    .featured-product-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .featured-product-image {
        flex: 0 0 24% !important;
        max-width: 24% !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    .featured-product-title {
        font-size: 0.8rem;
        min-height: 2rem;
    }
    
    .featured-price,
    .featured-discount-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .featured-product-card {
        height: 100px;
    }
    
    .featured-product-image {
        flex: 0 0 24% !important;
        max-width: 24% !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    .featured-product-title {
        font-size: 0.75rem;
        min-height: 1.8rem;
    }
    
    .featured-price,
    .featured-discount-price {
        font-size: 0.75rem;
    }
}

/* Featured product image hard fix (all viewports) */
.featured-product-card { height: auto !important; }
.featured-products-grid .featured-product-card .featured-product-link { align-items: stretch !important; }
.featured-products-grid .featured-product-card .featured-product-image {
    position: relative !important;
    flex: 0 0 24% !important;
    max-width: 24% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}
.featured-products-grid .featured-product-card .featured-product-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Best Selling Products Action Buttons */
.product-actions-new {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    pointer-events: none;
}

/* Countdown Timer in Best Selling Products */
.product-card-new .countdown-timer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 4px;
    padding: 0.2rem;
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    font-size: 0.5rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card-new .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.03rem;
}

.product-card-new .countdown-number {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 2px;
    padding: 0.05rem 0.2rem;
    font-weight: 700;
    color: #1f2937;
    min-width: 1rem;
    text-align: center;
    font-size: 0.5rem;
}

.product-card-new .countdown-label {
    font-size: 0.4rem;
    color: #374151;
    font-weight: 500;
}

.product-card-new .countdown-separator {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.5rem;
}

.product-actions-new > * {
    pointer-events: auto;
}

/* Best Selling Products - Override existing button styles */
.product-actions-new .wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.product-actions-new .wishlist-btn:hover {
    background: #f8f9fa;
    color: #dc2626;
    transform: scale(1.05);
}

.product-actions-new .wishlist-btn.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.product-actions-new .wishlist-btn.active:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.product-actions-new .wishlist-btn i {
    font-size: 1rem;
}

.product-actions-new .add-to-cart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.product-actions-new .add-to-cart-btn:hover {
    background: #f8f9fa;
    color: #059669;
    transform: scale(1.05);
}

.product-actions-new .add-to-cart-btn i {
    font-size: 1rem;
}

.product-actions-new .cart-quantity-controls {
    position: absolute;
    display: none; /* Hidden by default */
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-bright);
    border-radius: 15px;
    padding: 2px 6px;
    gap: 4px;
    z-index: 10;
    min-width: auto;
    width: 95px;
    justify-content: center;
}

/* Show product actions cart quantity controls when needed */
.product-actions-new .cart-quantity-controls.show {
    display: flex !important;
}

.product-actions-new .quantity-btn {
    background: transparent;
    border: none;
    color: #1f2937;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Decrease button (minus) - Red background */
.product-actions-new .decrease-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.product-actions-new .decrease-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Increase button (plus) - Green background */
.product-actions-new .increase-btn {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

.product-actions-new .increase-btn:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.product-actions-new .quantity-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.product-actions-new .quantity-display {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 16px;
    text-align: center;
}


/* Categories Center Styles */
.categories-center-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.categories-center {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.category-center-item {
    flex-shrink: 0;
    width: 80px;
}

.category-center-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.category-center-link:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    color: #007bff;
}

.category-center-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.category-center-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.category-center-placeholder {
    color: #6c757d;
    font-size: 1.2rem;
}

.category-center-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
    word-wrap: break-word;
}

/* Mobile Categories - Keep scrollable */
@media (max-width: 768px) {
    .categories-center-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }
    
    .categories-center-container::-webkit-scrollbar {
        display: none;
    }
    
    .categories-center {
        gap: 1rem;
        padding: 0 1rem;
        min-width: max-content;
        justify-content: flex-start;
    }
    
    .category-center-item {
        width: 80px;
    }
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.category-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    line-height: 1.2;
    margin-top: 0.25rem;
}


/* Responsive category styles */
@media (max-width: 768px) {
    .category-item {
        width: 70px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-name {
        font-size: 0.65rem;
    }
    
    .categories-scroll {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
}

.carousel-indicators {
    margin-bottom: 2rem;
}

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

.carousel-indicators button.active {
    width: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0891b2, #2563eb, #8b5cf6);
    border-color: transparent;
}

.hero-title {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #1f2937 0%, rgba(31,41,55,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(31, 41, 55, 0.8);
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    background: #ffffff !important;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 20px;
    z-index: -1;
}

.feature-card:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    /* No opacity change on hover */
}

.feature-icon {
    font-size: 3rem;
    color: #0891b2;
    margin-bottom: 1rem;
}

.feature-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(31, 41, 55, 0.8);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    margin: 3rem 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    animation: statGlow 6s ease-in-out infinite;
}

.stat-card:hover {
    /* Hover effect removed */
}

.stat-icon {
    font-size: 3rem;
    color: #0891b2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(31, 41, 55, 0.8);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

@keyframes statGlow {
    0%, 100% { transform: translate(-25%, -25%) scale(1); opacity: 0.3; }
    50% { transform: translate(-15%, -15%) scale(1.1); opacity: 0.6; }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #1f2937;
}

.loader-spinner::before {
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

.loader-spinner::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation: spin 0.7s linear infinite reverse;
}

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

.loader-text {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

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

.scroll-to-top:hover {
    /* Hover effect removed */
}

/* Tooltip Enhancement */
.tooltip-inner {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-bright);
    box-shadow: var(--shadow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    /* Hover effect removed */
}

/* Product Card */
.product-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 20px;
    z-index: -1;
}

.product-card:hover {
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-card:hover::before {
    /* No opacity change on hover */
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: static; /* ensure absolute children anchor to .product-card */
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    /* Zoom animation removed */
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(31, 41, 55, 0.5);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #f8f9fa;
    color: #dc2626;
}

.wishlist-btn i {
    color: #333333;
    transition: color 0.3s ease;
}

.wishlist-btn i.active,
.wishlist-btn.active i {
    color: #ffffff !important;
}

.wishlist-btn.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.wishlist-btn.active:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.product-info {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.product-title {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6rem; /* دو خط ثابت */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: rgba(31, 41, 55, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    margin-bottom: 3rem;
}

.product-price .price {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    color: #000000;
    font-weight: 950;
    font-size: 1.1rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.discount-price {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    color: #008000;
    font-size: 1.1rem;
    font-weight: 950;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.original-price {
    color: rgba(31, 41, 55, 0.5);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Product card add to cart button (for product cards on homepage, etc.) */
.product-card .add-to-cart-btn {
    position: absolute;
    bottom: 5px;
    right: 15px;
    margin-top: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hide add to cart button when not needed */
.product-card .add-to-cart-btn.hidden {
    display: none !important;
}

/* Ensure related products use circular buttons */
.product-grid .product-card .add-to-cart-btn {
    position: absolute !important;
    bottom: 5px !important;
    right: 15px !important;
    margin-top: 0 !important;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 50% !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    color: #1f2937 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: none !important;
    z-index: 10 !important;
    cursor: pointer !important;
}

/* Product detail page add to cart button (only for main product, not related products) */
.product-detail > .row .add-to-cart-btn {
    position: static;
    margin-top: 1rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 100%;
    height: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Product detail page cart quantity controls (only for main product, not related products) */
.product-detail > .row .cart-quantity-controls {
    position: static !important;
    margin-top: 1rem !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    height: auto !important;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow) !important;
    display: none !important; /* Hidden by default */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

/* Show product detail cart quantity controls when needed */
.product-detail > .row .cart-quantity-controls.show {
    display: flex !important;
}

.add-to-cart-btn:hover {
    /* No hover effects */
}

.add-to-cart-btn:active {
    /* no scale to keep bottom offset visually fixed */
}

/* General cart quantity controls (for product detail pages) */
.cart-quantity-controls {
    position: static;
    margin-top: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    display: none; /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.quantity-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Decrease button (minus) - Red background */
.decrease-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.decrease-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Increase button (plus) - Green background */
.increase-btn {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}

.increase-btn:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.quantity-btn:hover {
    /* Hover effect removed */
}

.quantity-display {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

/* Cart quantity controls styling - removed duplicate rule */

/* Show quantity controls when needed */
.cart-quantity-controls.show {
    display: flex !important;
}

/* Product card cart quantity controls (for homepage product cards) */
.product-card .cart-quantity-controls {
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 20px !important;
    padding: 0.3rem !important;
    display: none !important; /* Hidden by default */
    align-items: center !important;
    gap: 0.5rem !important;
    z-index: 10 !important;
    min-width: 80px !important;
    justify-content: center !important;
}

/* Show product card cart quantity controls when needed */
.product-card .cart-quantity-controls.show {
    display: flex !important;
}

.cart-quantity-controls .quantity-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Decrease button (minus) - Red background */
.cart-quantity-controls .decrease-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.cart-quantity-controls .decrease-btn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Increase button (plus) - Green background */
.cart-quantity-controls .increase-btn {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

.cart-quantity-controls .increase-btn:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.cart-quantity-controls .quantity-btn:hover {
    /* Hover effect removed */
}

.cart-quantity-controls .quantity-display {
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.25rem 0.5rem;
}

/* Variant Selection Styles */
.variant-selection {
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.color-options, .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.color-option .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.color-option:hover {
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.color-option.selected {
    border-color: #0891b2;
    border-width: 3px;
    transform: scale(1.1);
}

.size-option {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--backdrop-blur);
}

.size-option:hover {
    border-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: #0891b2;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
    transform: translateY(-2px);
    font-weight: 600;
}

/* Variant add to cart button styling */
.add-variant-to-cart-btn {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: var(--shadow) !important;
    display: block;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.add-variant-to-cart-btn:hover:not(:disabled) {
    /* Hover effect removed */
}

.variant-cart-controls .add-variant-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.variant-quantity-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    width: 100%;
    justify-content: center;
}

.variant-quantity-controls.show {
    display: flex !important;
}

/* Mobile Header */
.mobile-header {
    padding: 0.5rem 0;
}

.mobile-search-btn,
.mobile-user-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-bright);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-search-btn:hover,
.mobile-user-btn:hover {
    /* Hover effect removed */
}

/* Search Modal */
.search-modal .modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur-strong) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-strong) !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Override Bootstrap modal styles */
.modal-content.search-modal {
    background: #ffffff !important; /* Pure white background */
    backdrop-filter: none !important; /* Remove blur effect */
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Light border */
    border-radius: 0 !important;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1) !important; /* Light shadow */
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    /* Hide scrollbars */
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Hide webkit scrollbars for search modal content */
.modal-content.search-modal::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.modal-content.search-modal::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.modal-content.search-modal::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.modal-content.search-modal::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

/* Full screen modal dialog */
.search-modal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force glass effect on all modal elements */
#mobileSearchModal .modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur-strong) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-strong) !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

#mobileSearchModal .modal-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: #1f2937 !important;
}

#mobileSearchModal .modal-body {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #1f2937 !important;
}

/* Additional glass effect enforcement */
.modal.show .modal-content.search-modal {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0 !important;
    box-shadow: 0 20px 60px 0 rgba(31, 38, 135, 0.5), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Fullscreen modal dialog */
.modal-fullscreen .modal-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure search modal is always fullscreen */
.search-modal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-fullscreen .modal-content {
    height: 100vh !important;
    min-height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Ensure modal backdrop is also styled */
.modal-backdrop.show {
    background: rgba(0, 0, 0, 0.15) !important; /* Less dark background */
    backdrop-filter: blur(5px) !important; /* Less blur for lighter effect */
    -webkit-backdrop-filter: blur(5px) !important;
}

/* Final override for any remaining white backgrounds */
.modal-content,
.modal-content * {
    background-color: transparent !important;
}

.modal-content.search-modal,
.modal-content.search-modal * {
    background-color: transparent !important;
}

#mobileSearchModal .modal-content,
#mobileSearchModal .modal-content * {
    background-color: transparent !important;
}

/* Re-apply white background specifically */
.modal-content.search-modal {
    background: #ffffff !important; /* Pure white background */
    backdrop-filter: none !important; /* Remove blur effect */
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Light border */
    border-radius: 0 !important;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1) !important; /* Light shadow */
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

#mobileSearchModal .modal-content {
    background: #ffffff !important; /* Pure white background */
    backdrop-filter: none !important; /* Remove blur effect */
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Light border */
    border-radius: 0 !important;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1) !important; /* Light shadow */
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

#mobileSearchModal .modal-header {
    background: #ffffff !important; /* White header background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Light border */
    color: #1f2937 !important;
}

#mobileSearchModal .modal-body {
    background: #ffffff !important; /* White body background */
    color: #1f2937 !important;
}



#mobileSearchModal .modal-title {
    color: #1f2937 !important;
}

#mobileSearchModal .btn-close {
    filter: none !important;
    opacity: 1 !important;
    background: #ffffff !important; /* Modern gradient background */
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

#mobileSearchModal .btn-close::before {
    content: '×' !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    color: #000000 !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}




/* Alternative close button styling */
.search-modal .btn-close {
    filter: none !important;
    opacity: 1 !important;
    background: #ffffff !important; /* Modern gradient background */
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.search-modal .btn-close::before {
    content: '×' !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    color: #000000 !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}





/* Override Bootstrap btn-close styles completely */
.btn-close {
    background: #ffffff !important; /* Modern gradient background */
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}













/* Alternative close button with better styling */
.close-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    position: relative !important;
    color: #000000 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-family: 'IRANSansWeb', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Create a custom X with CSS */
.close-icon::before,
.close-icon::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 2px !important;
    height: 16px !important;
    background: white !important;
    border-radius: 1px !important;
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Ensure the close button is always visible */
.btn-close {
    background-image: none !important;
    background: #ffffff !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    opacity: 1 !important;
}



.search-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.search-modal .modal-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, #0891b2);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
    animation: gradientRotate 8s ease infinite;
}

.search-modal .modal-header {
    border-bottom: 1px solid var(--glass-border) !important;
    color: #1f2937 !important;
    padding: 2rem 2rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05) !important;
    position: relative;
}

.search-modal .modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, transparent);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.search-modal .modal-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

.search-modal .modal-title i {
    color: #0891b2;
    margin-left: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(8, 145, 178, 0.5));
}

.search-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    background: #ffffff;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
}

.search-modal .btn-close:hover {
    opacity: 1;
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.search-modal .modal-body {
    color: #1f2937 !important;
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff !important; /* Pure white background */
    /* Hide scrollbar completely */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
    scrollbar-color: transparent transparent !important; /* Firefox */
    /* Additional scrollbar hiding */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.search-modal .modal-body::-webkit-scrollbar {
    display: none !important; /* WebKit browsers (Chrome, Safari, Edge) */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.search-modal .modal-body::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.search-modal .modal-body::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.search-modal .modal-body::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

/* Hide scrollbar for all search modal elements */
.search-modal * {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
    /* Additional scrollbar hiding for all elements */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.search-modal *::-webkit-scrollbar {
    display: none !important; /* WebKit browsers */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.search-modal *::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

.search-modal *::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

.search-modal *::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

/* Hide scrollbar for body when modal is open */
body.modal-open {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

body.modal-open::-webkit-scrollbar {
    display: none !important; /* WebKit browsers */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

body.modal-open::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

body.modal-open::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

body.modal-open::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

.search-input {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px 0 0 18px;
    color: #1f2937;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.search-input:focus {
    background: var(--glass-bg-hover);
    border-color: #0891b2;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #1f2937;
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: rgba(107, 114, 128, 0.6);
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-input:focus::placeholder {
    color: rgba(107, 114, 128, 0.4);
    transform: translateY(-2px);
}

.search-btn {
    background:#ffffff;
    background-size: 200% 200%;
    border: 1px solid transparent;
    border-radius: 0 18px 18px 0;
    color: #1f2937;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
    animation: gradientFlow 3s ease infinite;
}

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



.search-btn:active {
    transform: translateY(0);
}

.search-btn i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.search-results {
    margin-top: 1.5rem;
}

.search-result-item {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.search-result-item:hover::before {
    left: 100%;
}

.search-result-item:hover {
    /* Hover effect removed */
}

.search-result-item:active {
    transform: translateY(-2px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.search-result-item:hover .search-result-image {
    /* Hover effect removed */
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.search-result-item:hover .search-result-name {
    /* Hover effect removed */
}

.search-result-category {
    color: rgba(31, 41, 55, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-result-item:hover .search-result-category {
    /* Hover effect removed */
}

.search-result-price {
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', sans-serif;
    color: #000000;
    font-weight: 950;
    font-size: 0.95rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.search-result-item:hover .search-result-price {
    /* Zoom animation removed */
}

.no-results {
    padding: 3rem 2rem;
    color: rgba(31, 41, 55, 0.8);
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
    animation: statGlow 6s ease-in-out infinite;
}

.no-results i {
    color: #0891b2;
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.3));
    position: relative;
    z-index: 2;
}

.no-results p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.no-results small {
    color: rgba(31, 41, 55, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.search-loading {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.search-loading::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
    animation: statGlow 6s ease-in-out infinite;
}

.spinner-border {
    color: #0891b2 !important;
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.3));
}

.search-loading .visually-hidden {
    color: rgba(31, 41, 55, 0.8);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Search Container Enhancements */
.search-container {
    position: relative;
}

/* Prevent all animations on search elements */
.search-container *,
.search-suggestions *,
.suggestion-tag *,
.suggestions-list * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Ultra-specific fixes for search suggestions */
#searchSuggestions,
#searchSuggestions *,
#suggestionsList,
#suggestionsList *,
.suggestion-tag,
.suggestion-tag * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    contain: layout style paint !important;
    isolation: isolate !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeSpeed !important;
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
    isolation: isolate;
}

.search-suggestions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
    animation: statGlow 8s ease-in-out infinite;
}

.suggestions-title {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.suggestions-title i {
    color: #0891b2;
    filter: drop-shadow(0 2px 4px rgba(8, 145, 178, 0.3));
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: none !important;
    transform: none !important;
    animation: none !important;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: flat;
    -webkit-transform-style: flat;
    contain: layout style paint;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #0891b2;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.search-container .input-group {
    position: relative;
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
}

.search-container .input-group::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, #0891b2);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
}

.search-container .input-group:focus-within::before {
    opacity: 0.3;
}

/* Search Modal Backdrop */
.search-modal .modal-backdrop {
    background: rgba(0, 0, 0, 0.15); /* Less dark background */
    backdrop-filter: blur(5px); /* Less blur for lighter effect */
    -webkit-backdrop-filter: blur(5px);
}

/* Search Modal - No Animation */
.search-modal .modal-dialog {
    transform: none;
}

.search-modal.show .modal-dialog {
    transform: none;
}

/* Enhanced Mobile Search Button */
.mobile-search-btn {
    position: relative;
    overflow: hidden;
}

.mobile-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-search-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Desktop Search Button */
.desktop-search-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border-bright);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.desktop-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.desktop-search-btn:hover::before {
    width: 100px;
    height: 100px;
}

.desktop-search-btn:hover {
    color: #0891b2;
    border-color: #0891b2;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    border-top: 1px solid var(--glass-border-bright);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0.25rem 0;
    /* Prevent scrollbar from appearing under the navigation */
    overflow-x: hidden;
    overflow-y: hidden;
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed, #0891b2);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Prevent any overflow that could cause scrollbars */
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(31, 41, 55, 0.7);
    text-decoration: none;
    padding: 0.25rem;
    min-width: 60px;
    transition: all 0.3s ease;
    position: relative;
    /* Prevent overflow */
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: #1f2937;
    position: relative;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #2563eb, #8b5cf6, #06b6d4, #0d9488, #7c3aed);
    border-radius: 2px;
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 8px currentColor);
    animation: bounce 0.5s ease;
}

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

.bottom-nav-item:hover {
    color: #1f2937;
}

.bottom-nav-item:active {
    /* Active animation removed */
}

.bottom-nav-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.3);
}

/* Hide default navbar on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Prevent horizontal scrollbar under bottom navigation */
    body {
        overflow-x: hidden;
        padding-bottom: 0;
    }
    
    /* Ensure no scrollbar appears under the bottom navigation */
    html {
        overflow-x: hidden;
    }
    
    /* Hide any scrollbars that might appear under the bottom navigation */
    .mobile-bottom-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .mobile-bottom-nav {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    .navbar-toggler {
        display: none;
    }
    
    .navbar-brand {
        margin: 0;
    }
    
    /* Add padding to body to prevent content hiding behind bottom nav */
    body {
        padding-bottom: 60px;
    }
    
    main {
        margin-bottom: 1rem;
    }
    
    .scroll-to-top {
        bottom: 80px;
    }
}

/* General Modal Glass Styling */
.modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur) !important;
    -webkit-backdrop-filter: var(--backdrop-blur) !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    color: #1f2937 !important;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border) !important;
    background: transparent !important;
}

.modal-footer {
    border-top: 1px solid var(--glass-border) !important;
    background: transparent !important;
}

.modal-body {
    background: transparent !important;
    color: #1f2937 !important;
}

.modal-title {
    color: #1f2937 !important;
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', sans-serif !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.15) !important; /* Less dark background */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 0.15 !important; /* Always visible */
}

.modal-backdrop.show {
    opacity: 0.15 !important; /* Less dark opacity */
}

.modal-backdrop.fade {
    opacity: 0.15 !important; /* Always visible */
}

.modal-backdrop.fade.show {
    opacity: 0.15; /* Less dark opacity */
}

.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1055 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
    display: none !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    margin: 0.5rem !important;
    pointer-events: none !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: var(--glass-bg) !important;
    background-clip: padding-box !important;
    border: 1px solid var(--glass-border-bright) !important;
    border-radius: 16px !important;
    outline: 0 !important;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Review Modal Specific Styling */
#addReviewModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
}

#addReviewModal .modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur-strong) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-strong) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    color: #1f2937 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#addReviewModal .modal-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem !important;
}

#addReviewModal .modal-body {
    background: transparent !important;
    color: #1f2937 !important;
    padding: 1.5rem !important;
}

#addReviewModal .modal-footer {
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid var(--glass-border) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 1.5rem !important;
}

#addReviewModal .modal-title {
    color: #1f2937 !important;
    font-family: 'IRANSansWeb', 'Vazir', 'Tahoma', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

/* Form elements in modal */
.modal .form-label {
    color: #1f2937 !important;
}

.modal .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    color: #1f2937 !important;
}

.modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--glass-border-bright) !important;
    color: #1f2937 !important;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25) !important;
}

.modal .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    color: #1f2937 !important;
}

.modal .form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--glass-border-bright) !important;
    color: #1f2937 !important;
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25) !important;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.star-rating .star:hover ~ .star {
    color: #6b7280;
}

/* Review stars display */
.text-warning .fas.fa-star {
    color: #fbbf24 !important;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.text-warning .far.fa-star {
    color: #6b7280 !important;
}

/* Tracking Code Styles */
.tracking-code-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.tracking-code-display {
    font-family: 'IRANSansWeb', 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0891b2;
    text-align: center;
    letter-spacing: 2px;
    background: rgba(8, 145, 178, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(8, 145, 178, 0.3);
    word-break: break-all;
}

.tracking-code-display:hover {
    border-color: rgba(8, 145, 178, 0.5);
    transition: all 0.3s ease;
}

/* Time Limited Products Styles */
.time-limited-card {
    position: relative;
    border: 2px solid #ff6b6b;
    background: #ffffff;
    animation: pulse-glow 4s infinite;
    padding-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.time-limited-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: 12px;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(128, 128, 128, 0.3);
    }
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.time-limited-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
    animation: badge-pulse 3s infinite;
}

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

.time-limited-badge i {
    font-size: 0.6rem;
}

/* Countdown Timer Styles */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.5rem 0;
    padding: 0.4rem;
    border-radius: 6px;
    color: #1f2937;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.3);
    position: relative;
    z-index: 5;
    direction: rtl;
    flex-direction: row-reverse;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 25px;
}

.countdown-number {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    min-width: 25px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-size: 0.5rem;
    margin-top: 0.1rem;
    color: #374151;
    text-align: center;
}

.countdown-separator {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 0.8;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Time Limited Product Hover Effects */
.time-limited-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(128, 128, 128, 0.3);
}

.time-limited-card:hover .countdown-timer {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(128, 128, 128, 0.3);
}

.time-limited-card:hover .time-limited-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(128, 128, 128, 0.3);
}

/* Section Countdown Timer */
.section-countdown-timer {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.section-countdown-timer .countdown-timer {
    max-width: 400px;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(128, 128, 128, 0.3);
    animation: section-timer-pulse 4s infinite;
    direction: rtl;
    flex-direction: row-reverse;
}

@keyframes section-timer-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(128, 128, 128, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(128, 128, 128, 0.4);
    }
}

.section-countdown-timer .countdown-timer .countdown-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    min-width: 30px;
}

.section-countdown-timer .countdown-timer .countdown-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #374151;
    margin-top: 0.2rem;
}

.section-countdown-timer .countdown-timer .countdown-separator {
    font-size: 1.1rem;
    font-weight: 800;
    color: #6b7280;
    margin: 0 0.2rem;
}

/* Countdown Timer Above Product Card */
.time-limited-card .countdown-timer {
    margin-bottom: 0px;
    border-radius: 8px;
    font-size: 0.7rem;
}

.time-limited-card .countdown-timer .countdown-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.time-limited-card .countdown-timer .countdown-label {
    font-size: 0.45rem;
    font-weight: 600;
    color: #374151;
}

/* Mobile Search Modal Fullscreen Fix */
@media (max-width: 768px) {
    #mobileSearchModal .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    #mobileSearchModal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    #mobileSearchModal .modal-header {
        padding: 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    #mobileSearchModal .modal-body {
        padding: 1rem !important;
        height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }
}

/* Mobile Responsive for Time Limited Products */
@media (max-width: 768px) {
    .section-countdown-timer .countdown-timer {
        max-width: 400px;
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-countdown-timer .countdown-timer .countdown-number {
        font-size: 1.2rem;
        padding: 0.3rem 0.5rem;
        min-width: 35px;
    }
    
    .section-countdown-timer .countdown-timer .countdown-label {
        font-size: 0.6rem;
    }
    
    .section-countdown-timer .countdown-timer .countdown-separator {
        font-size: 1.2rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
        padding: 0.6rem;
    }
    
    .countdown-number {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
        min-width: 25px;
    }
    
    .countdown-label {
        font-size: 0.5rem;
    }
    
    .countdown-separator {
        font-size: 1rem;
    }
    
    .time-limited-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .section-countdown-timer .countdown-timer {
        max-width: 350px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .section-countdown-timer .countdown-timer .countdown-number {
        font-size: 1rem;
        padding: 0.25rem 0.4rem;
        min-width: 30px;
    }
    
    .section-countdown-timer .countdown-timer .countdown-label {
        font-size: 0.55rem;
    }
    
    .section-countdown-timer .countdown-timer .countdown-separator {
        font-size: 1rem;
    }
    
    .countdown-timer {
        gap: 0.2rem;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 0.9rem;
        padding: 0.15rem 0.3rem;
        min-width: 20px;
    }
    
    .countdown-label {
        font-size: 0.45rem;
    }
    
    .countdown-separator {
        font-size: 0.9rem;
    }
    
    .time-limited-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'IRANSansWeb', 'Vazir', 'Samim', 'Tahoma', 'Segoe UI', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #ffffff;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
}

.toast-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #0891b2;
}

.toast-success .toast-icon {
    color: #0891b2;
}

.toast-error,
.toast-danger {
    border-left: 4px solid #dc2626;
}

.toast-error .toast-icon,
.toast-danger .toast-icon {
    color: #dc2626;
}

.toast-warning {
    border-left: 4px solid #d97706;
}

.toast-warning .toast-icon {
    color: #d97706;
}

.toast-info {
    border-left: 4px solid #0891b2;
}

.toast-info .toast-icon {
    color: #0891b2;
}

/* Toast Stacking */
.toast-notification:nth-child(2) {
    top: 140px;
}

.toast-notification:nth-child(3) {
    top: 200px;
}

.toast-notification:nth-child(4) {
    top: 260px;
}

.toast-notification:nth-child(5) {
    top: 320px;
}

/* Mobile Responsive for Toast */
@media (max-width: 768px) {
    .toast-notification {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        min-width: 280px;
        max-width: 90%;
    }
    
    .toast-content {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .toast-message {
        font-size: 0.85rem;
    }
    
    .toast-icon {
        font-size: 1.1rem;
    }
    
    /* Adjust stacking for mobile */
    .toast-notification:nth-child(2) {
        top: 120px;
    }
    
    .toast-notification:nth-child(3) {
        top: 170px;
    }
    
    .toast-notification:nth-child(4) {
        top: 220px;
    }
    
    .toast-notification:nth-child(5) {
        top: 270px;
    }
}

@media (max-width: 480px) {
    .toast-notification {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        min-width: 260px;
        max-width: 95%;
    }
    
    .toast-content {
        padding: 0.7rem 0.8rem;
        gap: 0.4rem;
    }
    
    .toast-message {
        font-size: 0.8rem;
    }
    
    .toast-icon {
        font-size: 1rem;
    }
    
    .toast-close {
        width: 20px;
        height: 20px;
    }
}

/* Featured Products - Button positioning (High Priority) */
.featured-products-grid .featured-product-card .product-actions-new .add-to-cart-btn {
    position: absolute !important;
    top: 55px !important;
    left: 15px !important;
    right: auto !important;
}

.featured-products-grid .featured-product-card .product-actions-new .cart-quantity-controls {
    position: absolute !important;
    top: 50px !important;
    left: 15px !important;
}

/* Responsive adjustments for featured products quantity controls */
@media (max-width: 768px) {
    .featured-products-grid .featured-product-card .product-actions-new .cart-quantity-controls {
        top: 40px !important;
    }
}

@media (max-width: 576px) {
    .featured-products-grid .featured-product-card .product-actions-new .cart-quantity-controls {
        top: 35px !important;
    }
}

/* Out of Stock Styling */
.out-of-stock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: 2px solid #ff3742;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.out-of-stock-btn:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    border-color: #ff2f3a;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    transform: translateY(-1px);
}

.out-of-stock-section {
    text-align: center;
}

.out-of-stock-section .btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: 2px solid #ff3742;
    color: #ffffff;
    cursor: not-allowed;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stock-info {
    margin-top: 8px;
}

.stock-info small {
    font-size: 11px;
}

.max-quantity-display {
    color: var(--accent-color, #06b6d4);
    font-weight: 600;
}

/* Product card out of stock styling */
.featured-product-card .out-of-stock-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    min-width: 70px;
    height: 28px;
    font-size: 11px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: 2px solid #ff3742;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for out of stock */
@media (max-width: 768px) {
    .out-of-stock-btn {
        font-size: 11px;
        padding: 6px 10px;
        font-weight: 700;
    }
    
    .featured-product-card .out-of-stock-btn {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 60px;
        height: 24px;
        font-weight: 700;
    }
}

/* Compact Features Section with Horizontal Scroll */
.features-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin: 0 -15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.features-scroll-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Blog Scroll Container - Hide Scrollbar */
.blog-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.blog-scroll-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

.features-scroll {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    min-width: max-content;
}

.feature-item {
    flex-shrink: 0;
    width: 200px;
}

.feature-card-compact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.feature-card-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-compact {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-color, #06b6d4), var(--primary-color, #3b82f6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.feature-icon-compact i {
    color: white;
    font-size: 16px;
}

.feature-content-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title-compact {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.feature-description-compact {
    font-size: 9px;
    color: var(--text-muted, #6b7280);
    margin: 0;
    line-height: 1.2;
}

/* Responsive adjustments for compact features */
@media (max-width: 768px) {
    .feature-item {
        width: 160px;
    }
    
    .feature-card-compact {
        padding: 8px;
        width: 100px;
        height: 100px;
    }
    
    .feature-icon-compact {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }
    
    .feature-icon-compact i {
        font-size: 14px;
    }
    
    .feature-title-compact {
        font-size: 11px;
    }
    
    .feature-description-compact {
        font-size: 8px;
    }
}

@media (max-width: 576px) {
    .feature-item {
        width: 140px;
    }
    
    .feature-card-compact {
        padding: 6px;
        width: 90px;
        height: 90px;
    }
    
    .feature-icon-compact {
        width: 25px;
        height: 25px;
        margin-bottom: 4px;
    }
    
    .feature-icon-compact i {
        font-size: 12px;
    }
    
    .feature-title-compact {
        font-size: 10px;
    }
    
    .feature-description-compact {
        font-size: 7px;
    }
}

/* Banner Carousel Indicators - Small and Centered */
.hero-banner-section .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
}

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

.hero-banner-section .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.hero-banner-section .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Responsive adjustments for banner indicators */
@media (max-width: 768px) {
    .hero-banner-section .carousel-indicators {
        bottom: 10px;
    }
    
    .hero-banner-section .carousel-indicators button {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }
}

@media (max-width: 576px) {
    .hero-banner-section .carousel-indicators {
        bottom: 8px;
    }
    
    .hero-banner-section .carousel-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
}

/* Footer Content Page Styles */
.footer-content-hero {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 100px 0 80px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    border-bottom: 1px solid #e5e7eb;
}

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

.hero-content {
    text-align: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #000000 !important;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    letter-spacing: 1px;
    color: #2c3e50;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 400;
    color: #000000 !important;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #000000, transparent) !important;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.content-body {
    padding: 40px;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.content-body h2 {
    font-size: 1.6rem;
    color: #2980b9;
}

.content-body h3 {
    font-size: 1.4rem;
    color: #34495e;
}

.content-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #374151;
    font-size: 1.1rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 20px;
    padding-right: 20px;
}

.content-body li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #374151;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-body th,
.content-body td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.content-body th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.content-body tr:hover {
    background: #f8fafc;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-body blockquote {
    border-right: 4px solid #3498db;
    background: #f8fafc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #374151;
}

.content-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e53e3e;
}

.content-body pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.special-content-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.special-content-box h3 {
    color: white;
    margin-bottom: 15px;
}

.special-content-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.empty-content {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-content h3 {
    color: #374151;
    margin-bottom: 15px;
}

.content-actions {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.content-actions .btn {
    margin: 0 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.content-actions .btn-primary {
    background: #3498db;
    border: none;
    color: white;
}

.content-actions .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.content-actions .btn-outline-primary {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
}

.content-actions .btn-outline-primary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.related-links {
    background: #f8fafc;
    padding: 30px 40px;
    border-top: 1px solid #e5e7eb;
}

.related-links h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.related-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.related-links a::before {
    content: '→';
    margin-left: 10px;
    font-weight: bold;
}

.faq-answer {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.faq-answer h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-answer p {
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content-hero {
        padding: 80px 0 60px;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-divider {
        width: 80px;
        height: 3px;
    }
    
    .content-body {
        padding: 25px;
    }
    
    .content-actions {
        padding: 20px 25px;
    }
    
    .related-links {
        padding: 20px 25px;
    }
    
    .content-actions .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-content-hero {
        padding: 60px 0 40px;
    }
    
    .hero-icon {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Force white background for footer content hero */
.footer-content-hero {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Force dark colors for hero elements */
.footer-content-hero .hero-icon {
    color: #000000 !important;
}

.footer-content-hero .hero-icon i {
    color: #000000 !important;
}

.footer-content-hero .hero-subtitle {
    color: #000000 !important;
}

.footer-content-hero .hero-divider {
    background: linear-gradient(90deg, transparent, #000000, transparent) !important;
}

/* Search elements hidden by default */
.search-loading {
    display: none;
}

.no-results {
    display: none;
}

/* Cart quantity controls hidden by default */
.cart-quantity-controls {
    display: none;
}

/* Banner slide background - removed as we now use img tags */

/* Product detail styles */
#mainProductImage {
    height: 400px;
    object-fit: cover;
}

.product-image-placeholder {
    height: 400px;
}

.product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumb.active {
    border: 2px solid rgba(255,255,255,0.4);
}

.variant-quantity-controls {
    display: none;
}

/* Extracted inline styles from HTML files */

/* Banner fallback styles */
.banner-fallback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

/* OTP input styles */
.otp-input {
    text-align: center;
}

/* Phone input styles */
.phone-input {
    text-align: left;
}

/* Blog tag styles */
.blog-tag {
    background-color: var(--tag-color, #e5e7eb);
    color: var(--tag-text-color, #374151);
}

/* Empty state icon styles */
.empty-state-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.empty-state-icon-gray {
    font-size: 4rem;
    color: rgba(107,114,128,0.5);
}

/* Color preview styles */
.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Text truncation styles */
.text-truncate-200 {
    max-width: 200px;
}

.text-truncate-150 {
    max-width: 150px;
}

/* Footer Content Page Styles - Extracted from footer_content.html */

/* Hero Section */
.footer-content-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer-content-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-icon i {
    font-size: 2rem;
    color: white;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Wrapper */
.content-wrapper {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.1);
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

/* Content Body */
.content-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #374151;
}

.content-body h1, .content-body h2 {
    color: #2c3e50;
    font-weight: bold;
    margin: 2.5rem 0 1.5rem 0;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.75rem;
    position: relative;
}

.content-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.content-body h3, .content-body h4 {
    color: #34495e;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-right: 1rem;
}

.content-body h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.content-body h5, .content-body h6 {
    color: #2c3e50;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
}

.content-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #4b5563;
}

.content-body ul, .content-body ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.content-body li {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.content-body ul li::marker {
    color: #3498db;
}

.content-body blockquote {
    border-right: 4px solid #3498db;
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.content-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(52, 152, 219, 0.3);
    font-family: serif;
}

/* Tables */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-body table th,
.content-body table td {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    text-align: right;
}

.content-body table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content-body table tr:nth-child(even) {
    background: rgba(52, 152, 219, 0.05);
}

.content-body table tr:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Images */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.content-body img:hover {
    transform: scale(1.02);
}

/* Links */
.content-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.content-body a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
    transform: translateY(-1px);
}

/* Code */
.content-body code {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.content-body pre {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.content-body pre code {
    background: none;
    padding: 0;
    border: none;
}

/* Special Content Boxes */
.contact-info, .working-hours, .faq-item, .shipping-methods {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before, .working-hours::before, .faq-item::before, .shipping-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #2c3e50);
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    padding-bottom: 0.5rem;
}

.faq-answer {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border-right: 3px solid #3498db;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Empty Content */
.empty-content {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.empty-icon i {
    font-size: 2rem;
    color: #3498db;
}

.empty-content h3 {
    color: #374151;
    margin-bottom: 1rem;
}

/* Action Buttons */
.content-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(52, 152, 219, 0.1);
}

.content-actions .btn {
    margin: 0 0.5rem 1rem 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Related Links Section */
.related-links-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    padding: 4rem 0;
    margin-top: 3rem;
}

.related-links-wrapper {
    text-align: center;
}

.related-title {
    color: #3498db;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-link {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    color: #3498db;
    text-decoration: none;
}

.related-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.related-link:hover .related-icon {
    transform: scale(1.1);
}

.related-icon i {
    font-size: 1.5rem;
    color: white;
}

.related-link span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design for Footer Content */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
        margin-top: -1rem;
    }
    
    .related-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .related-link {
        padding: 1.5rem;
    }
    
    .content-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Product Attributes Styles */
.product-attributes-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-attributes-preview h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.attribute-item-preview {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.attribute-item-preview:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.attribute-item-preview .attribute-key {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
    min-width: auto;
    font-size: 0.95rem;
}

.attribute-item-preview .attribute-value {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Product Specifications Styles */
.product-specifications {
    padding: 20px 0;
}

.product-specifications h5 {
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    display: inline-block;
}

.specifications-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.spec-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.spec-label {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 200px;
    max-width: 200px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.spec-data {
    padding: 16px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Responsive adjustments for attributes */
@media (max-width: 768px) {
    .product-attributes-preview {
        padding: 15px;
    }
    
    .attribute-item-preview {
        padding: 1px 1px;
        font-size: 0.9rem;
    }
    
    .attribute-item-preview .attribute-key {
        min-width: auto;
        font-size: 0.9rem;
        margin-right: 3px;
    }
    
    .spec-row {
        flex-direction: column;
    }
    
    .spec-label {
        min-width: auto;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .spec-data {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Product Q&A Styles */
.product-qa {
    padding: 20px 0;
}

.product-qa h5 {
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    display: inline-block;
}

.ask-question-section .card-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.qa-item .card-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qa-item .card-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.question-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.question-user {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.question-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.answers-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.answers-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.answer-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
}

.answer-item:last-child {
    margin-bottom: 0;
}

.answer-user {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.answer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 8px 0 0 0;
}

.no-answers {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Responsive Q&A */
@media (max-width: 768px) {
    .product-qa {
        padding: 15px 0;
    }
    
    .qa-item .card-glass {
        margin-bottom: 15px;
    }
    
    .question-user, .answer-user {
        font-size: 0.9rem;
    }
    
    .question-text, .answer-text {
        font-size: 0.9rem;
    }
}



/* SHIPPING COUNTDOWN TIMER */

/* Shipping Methods Styling */
.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipping-option {
    position: relative;
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-label {
    display: block;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shipping-label:hover {
    border-color: rgba(8, 145, 178, 0.3);
    background: rgba(8, 145, 178, 0.05);
}

.shipping-option input[type="radio"]:checked + .shipping-label {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.2);
}

.shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shipping-title {
    font-weight: 600;
}

.shipping-cost {
    font-weight: 700;
    color: #0891b2;
    font-size: 1.1rem;
}


/* Existing Orders Styling */
.existing-order-option {
    padding: 1rem;
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 8px;
    background: rgba(8, 145, 178, 0.05);
    transition: all 0.3s ease;
}

.existing-order-option:hover {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.4);
}

.alert-glass.alert-info {
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.3);
}

.alert-glass.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #000000;
}

.alert-glass.alert-warning strong {
    color: #f59e0b;
    font-weight: 700;
}

.alert-glass.alert-warning small {
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Add to Cart Button */
.add-to-cart-btn, .add-variant-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: none;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.add-to-cart-btn:hover, .add-variant-to-cart-btn:hover {
    /* No hover effects */
}

.add-to-cart-btn:active, .add-variant-to-cart-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(8, 145, 178, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Button Text Animation */
.btn-text {
    transition: all 0.3s ease;
    display: inline-block;
}

.add-to-cart-btn:hover .btn-text, .add-variant-to-cart-btn:hover .btn-text {
    transform: scale(1.05);
}

.btn-icon {
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.add-to-cart-btn:hover .btn-icon, .add-variant-to-cart-btn:hover .btn-icon {
    transform: rotate(90deg) scale(1.1);
}

/* Loading State */
.add-to-cart-btn.loading, .add-variant-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-to-cart-btn.loading .btn-text, .add-variant-to-cart-btn.loading .btn-text {
    opacity: 0;
}

.add-to-cart-btn.loading .btn-icon, .add-variant-to-cart-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Success State */
.add-to-cart-btn.success, .add-variant-to-cart-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Disabled State Enhancement */
.add-to-cart-btn:disabled, .add-variant-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.add-to-cart-btn:disabled:hover, .add-variant-to-cart-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Compact Banner Styles */
.banner-link {
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.banner-link:hover {
    text-decoration: none;
    /* Hover effect removed */
}

.banner-link:hover .banner-slide {
    /* Hover effect removed */
}

.banner-slide {
    position: relative;
    overflow: hidden;
    border: none;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.banner-link:hover .banner-slide::before {
    /* Hover effect removed */
}

/* Brands Section Styles - Similar to Categories */
.brands-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin: 0 -15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brands-scroll-container::-webkit-scrollbar {
    display: none;
}

.brands-scroll {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    min-width: max-content;
}

.brand-item {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 120px;
}

.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.brand-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    border-radius: 4px;
}

.brand-card:hover .brand-logo {
    transform: scale(1.05);
}

.brand-placeholder {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.brand-name {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    line-height: 1.2;
    text-align: center;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Responsive adjustments for brands */
@media (max-width: 768px) {
    .brand-item {
        min-width: 80px;
        max-width: 100px;
    }
    
    .brand-card {
        padding: 10px 8px;
        height: 85px;
    }
    
    .brand-logo {
        width: 50px;
        height: 35px;
    }
    
    .brand-placeholder {
        width: 50px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 9px;
        margin-top: 4px;
    }
}

/* Brand Filter Styles */
.brand-filter {
    margin: 20px 0;
    padding: 15px 0;
}

.brand-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin: 0 -15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brand-scroll-container::-webkit-scrollbar {
    display: none;
}

.brand-scroll-container {
    display: flex;
    gap: 12px;
    padding: 0 15px;
    min-width: max-content;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.brand-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.brand-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.brand-link:hover::before {
    opacity: 1;
}

.brand-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 1);
}

.brand-filter-logo {
    width: 32px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.brand-link:hover .brand-filter-logo {
    transform: scale(1.1);
}

.brand-filter-placeholder {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    font-size: 14px;
}

.brand-filter-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for brand filter */
@media (max-width: 768px) {
    .brand-link {
        padding: 10px 12px;
        min-width: 70px;
    }
    
    .brand-filter-logo {
        width: 28px;
        height: 20px;
    }
    
    .brand-filter-placeholder {
        width: 28px;
        height: 20px;
        font-size: 12px;
    }
    
    .brand-filter-name {
        font-size: 10px;
    }
}






/* Filter Sidebar Styles */
.filter-sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

.filter-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.filter-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.filter-header h5 {
    color: #2d3748;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.filter-section {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 4px;
    background: transparent;
    box-sizing: border-box;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Search Input Styles */
.search-input-container {
    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.search-input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #2d3748;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    flex: 1 1 auto;
    min-width: 0;
    outline: none;
    border-radius: 10px;
}

.search-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.search-btn {
    border: none;
    color: black;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Custom Dropdown Styles */
.dropdown-container {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-container:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #2d3748;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem 0.6rem 3rem;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 10px;
}

.custom-dropdown:focus {
    background: rgba(255, 255, 255, 0.3);
}

.custom-dropdown option {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 0.5rem;
}

.dropdown-arrow {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dropdown-container:hover .dropdown-arrow {
    color: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

.dropdown-container:focus-within .dropdown-arrow {
    color: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

/* Clear Filters Button */
.clear-filters-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clear-filters-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 ease;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clear-filters-btn:hover::before {
    left: 100%;
}

/* Price Range Filter Styles */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.price-input-group:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.price-input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #2d3748;
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
    outline: none;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    border-radius: 10px;
}

.price-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.price-separator {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.price-apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.price-apply-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Filter Sidebar */
@media (max-width: 991px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .filter-sidebar {
        padding: 1.25rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .filter-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .filter-header h5 {
        font-size: 1rem;
    }
    
    .filter-section {
        margin-bottom: 1.5rem;
    }
    
    .filter-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .search-input,
    .custom-dropdown {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
    
    .search-btn {
        padding: 0.65rem 0.85rem;
    }
    
    .clear-filters-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-sidebar {
        padding: 1rem;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    .filter-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .filter-header h5 {
        font-size: 0.95rem;
    }
    
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .search-input,
    .custom-dropdown {
        font-size: 0.8rem;
        padding: 0.6rem 0.85rem;
    }
    
    .search-btn {
        padding: 0.6rem 0.75rem;
    }
    
    .dropdown-arrow {
        left: 0.75rem;
    }
    
    .clear-filters-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Mobile price filter styles */
    .price-input-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .price-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .price-apply-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.mobile-filter-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.mobile-filter-toggle.rotated {
    transform: rotate(180deg);
}

/* Mobile Layout Improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-3,
    .col-md-4 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .col-lg-9,
    .col-md-8 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .filter-content {
        display: none;
        animation: slideDown 0.3s ease;
    }
    
    .filter-content.show {
        display: block;
    }
}

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

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .featured-products-grid {
        gap: 0.75rem;
    }
    
    .featured-product-card {
        margin-bottom: 0.75rem;
    }
    
    /* Mobile Touch Improvements */
    .search-btn,
    .clear-filters-btn,
    .mobile-filter-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .custom-dropdown,
    .search-input {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better mobile spacing */
    .filter-section {
        margin-bottom: 1.25rem;
    }

    .filter-label {
        margin-bottom: 0.5rem;
    }
}

/* Product Comparison Styles */
.add-to-comparison {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.add-to-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.add-to-comparison:active {
    transform: translateY(0);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 18px;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error .toast-content i {
    color: #dc3545;
}

/* Search Suggestions */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

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

/* Recently Viewed Products */
#recently-viewed-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

#recently-viewed-container .product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

#recently-viewed-container .product-card:hover {
    transform: translateY(-5px);
}

#recently-viewed-container .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

#recently-viewed-container .product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#recently-viewed-container .product-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

#recently-viewed-container .product-price {
    margin-bottom: 15px;
}

#recently-viewed-container .product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#recently-viewed-container .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
}

/* Comparison Count Badge */
.comparison-count {
    background: #28a745;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* Responsive Design for Comparison */
@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    #search-suggestions {
        left: 10px;
        right: 10px;
    }
    
    #recently-viewed-container .product-card {
        margin: 5px 0;
        padding: 15px;
    }
    
    #recently-viewed-container .product-image {
        height: 150px;
    }
}

