:root {
    --loader-primary: #f97316;
    --loader-primary-light: #fb923c;
    --loader-primary-dark: #ea6c0a;
    --loader-accent: #fdba74;
    --loader-bg: #F4F7FA;
    --loader-text: #0B0F14;
    --loader-shadow: rgba(249, 115, 22, 0.25);
    --loader-particle: #f97316;
}

[data-theme="dark"] {
    --loader-primary: #f97316;
    --loader-primary-light: #fb923c;
    --loader-primary-dark: #ea6c0a;
    --loader-accent: #fdba74;
    --loader-bg: #0B0F14;
    --loader-text: #D9E2EC;
    --loader-shadow: rgba(249, 115, 22, 0.35);
    --loader-particle: #fdba74;
}

.page-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--loader-bg) !important;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--loader-shadow) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--loader-shadow) 0%, transparent 50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        var(--loader-primary) 0%,
        var(--loader-primary-light) 25%,
        var(--loader-accent) 50%,
        var(--loader-primary-light) 75%,
        var(--loader-primary) 100%
    );
    opacity: 0.05;
    animation: gradientShift 3s ease-in-out infinite;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* Auto-hide loader after 4 seconds as CSS fallback */
.page-loader:not(.loader-manual-hide) {
    animation: autoHideLoader 4s ease-in-out forwards !important;
}

.shop-page .page-loader:not(.loader-manual-hide) {
    animation: autoHideLoader 2.8s ease-in-out forwards !important;
}

@keyframes autoHideLoader {
    0%, 85% { 
        opacity: 1; 
        visibility: visible; 
    }
    100% { 
        opacity: 0; 
        visibility: hidden; 
    }
}

.loader-container {
    position: relative;
    text-align: center;
    z-index: 2;
}

/* Main Loader Animation */
.advanced-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

/* Outer Ring */
.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--loader-primary);
    border-right-color: var(--loader-primary-light);
    animation: ringRotate 2s linear infinite;
}

/* Inner Ring */
.loader-ring-inner {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 2px solid transparent;
    border-radius: 50%;
    border-bottom-color: var(--loader-accent);
    border-left-color: var(--loader-primary-dark);
    animation: ringRotate 1.5s linear infinite reverse;
}

/* Center Logo Container */
.loader-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1; /* always perfect circle */
    background: var(--loader-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--loader-shadow);
    animation: centerPulse 2s ease-in-out infinite;
    overflow: hidden; /* ensure anything stays inside the circle */
}

.loader-logo-icon {
    position: relative;
    width: 52px;
    height: 52px;
    aspect-ratio: 1 / 1; /* preserve circle under any scaling */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.12), 0 6px 16px var(--loader-shadow);
    animation: logoFloat 1.6s ease-in-out infinite alternate;
    overflow: hidden;
    will-change: transform;
}
.loader-logo-icon img.loader-logo-img {
    width: 92%;
    height: 92%;
    border-radius: 50%;
    object-fit: cover;
    display: block; /* remove inline-gap issues so it stays perfectly centered */
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(63, 112, 77, 0.2);
    border-radius: 2px;
    margin: 30px auto 20px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--loader-primary), var(--loader-primary-light), var(--loader-primary));
    border-radius: 2px;
    animation: progressFill 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--loader-primary);
}

/* Text Animations */
.loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
    font-family: 'Vazirmatn', sans-serif;
    animation: textShine 3s ease-in-out infinite;
    position: relative;
}

.loader-brand-fa {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--loader-primary), var(--loader-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-brand-en {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--loader-primary);
    opacity: 0.9;
}

.loader-subtitle {
    font-size: 1rem;
    color: var(--loader-text);
    opacity: 0.8;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    animation: textFade 2s ease-in-out infinite;
    margin-bottom: 10px;
}

.loader-status {
    font-size: 0.9rem;
    color: var(--loader-primary);
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    animation: statusBlink 1.5s ease-in-out infinite;
}

/* Floating Compare Chip */
.compare-floating-chip {
    position: fixed;
    right: 16px;
    bottom: 90px; /* above bottom nav */
    z-index: 1050;
    display: none;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: 'Vazirmatn', sans-serif;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
    cursor: pointer;
}
.compare-floating-chip .chip-count {
    background: #fff;
    color: #f97316;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
}
@media (min-width: 768px) { .compare-floating-chip { bottom: 24px; } }

/* Particle Effects */
.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--loader-particle);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4s; }

/* Animations */
@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

@keyframes progressFill {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

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

@keyframes textFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* فروشگاه: لودر سبک‌تر برای جلوگیری از لگ */
.shop-page .page-loader {
    backdrop-filter: none !important;
}

.shop-page .page-loader::before {
    animation: none;
    opacity: 0.04;
}

.shop-page .loader-particles {
    display: none;
}

.shop-page .loader-ring,
.shop-page .loader-ring-inner {
    animation-duration: 2.8s;
}

.shop-page .loader-center {
    animation: none;
}

.shop-page .loader-logo-icon {
    animation: none;
}

.shop-page .loader-brand {
    animation: none;
}

.shop-page .loader-subtitle,
.shop-page .loader-status {
    animation: none;
}

.shop-page .loader-progress-fill {
    animation-duration: 1.8s;
    box-shadow: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .advanced-loader {
        width: 100px;
        height: 100px;
    }
    
    .loader-center {
        width: 50px;
        height: 50px;
    }
    
    .loader-logo-icon {
        font-size: 20px;
    }
    
    .loader-brand {
        font-size: 1.8rem;
    }
    
    .loader-progress {
        width: 150px;
    }
}

/* Performance Optimizations */
.page-loader * {
    will-change: transform, opacity;
}

/* Lazy Loading Styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img.loaded {
    opacity: 1;
}

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

/* Priority Content Loading */
.above-fold {
    opacity: 1;
    transform: translateY(0);
}

.below-fold {
    opacity: 1;
    transform: translateY(0);
}

.below-fold.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* استایل‌های عمومی */
:root {
--primary-color: #f97316;
--secondary-color: #ea6c0a;
--accent-color: #fdba74;
--success-color: #2ecc71;
--warning-color: #f39c12;
--danger-color: #e74c3c;
--dark-color: #2c3e50;
--text-color: #333;
--text-light: #7a7a7a;
--light-bg-color: #f8f9fa;
--border-color: #e9ecef;
--card-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
--transition-slow: all 0.3s ease;
--transition-fast: all 0.2s ease;
}

/* === Atomic Components === */
/* Buttons */
.btn {
border-radius: 8px;
padding: 0.6rem 1.5rem;
font-weight: 500;
transition: var(--transition-fast);
text-transform: none;
letter-spacing: 0;
}

.btn-primary {
background: var(--primary-color);
border-color: var(--primary-color);
box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
background: var(--secondary-color);
border-color: var(--secondary-color);
box-shadow: 0 6px 10px rgba(249, 115, 22, 0.3);
transform: translateY(-2px);
}

/* Cards */
.card {
border: none;
border-radius: 12px;
overflow: hidden;
box-shadow: var(--card-shadow);
transition: var(--transition-slow);
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
color: var(--dark-color);
}

.section-title {
position: relative;
margin-bottom: 2rem;
}

.title-line {
height: 4px;
width: 50px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
border-radius: 2px;
margin-top: 12px;
}

/* Forms */
.form-control {
border-radius: 8px;
border: 1px solid var(--border-color);
padding: 0.8rem 1rem;
transition: var(--transition-fast);
}

.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* === UI Components === */
/* Header & Navigation */
.page-header {
background-color: #ffffff;
border-radius: 0 0 20px 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
padding: 2.5rem 0 2rem;
margin-bottom: 2rem;
}

@media (min-width: 992px) {
.page-header {
padding: 2.5rem 0 2rem;
margin-bottom: 2rem;
}

.page-header .container {
max-width: 1200px;
}

.page-header h1 {
font-size: 2.2rem;
margin-bottom: 1.2rem;
}
}

.breadcrumb {
background: transparent;
padding: 0;
}

.breadcrumb-item a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
color: var(--secondary-color);
}

.breadcrumb-item.active {
color: var(--text-light);
}

.breadcrumb-item+.breadcrumb-item::before {
color: var(--text-light);
}

/* Search Form */
.product-search-form {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
background: white;
transition: var(--transition-slow);
}

.product-search-form:focus-within {
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-search-form .form-control {
border: none;
height: 54px;
padding-right: 20px;
font-size: 15px;
}

.product-search-form .btn {
padding: 0 1.8rem;
}

/* === Products Section === */
.products-section {
background-color: var(--light-bg-color);
padding: 3rem 0;
}

@media (min-width: 1200px) {
.products-section .container {
max-width: 1400px;
}
}

@media (min-width: 992px) {
.products-section {
padding: 3rem 0 4rem;
}

.products-section .container {
max-width: 1200px;
}
}

@media (max-width: 767px) {
.products-section {
padding: 0.5rem 0 2rem;
background-color: #ffffff !important;
}
}

/* === Product Card - Complete Redesign === */
.product-card {
background-color: #fff;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.04);
transition: var(--transition-slow);
height: 100%;
min-height: 480px;
display: flex;
flex-direction: column;
position: relative;
border: 1px solid rgba(0,0,0,0.03);
}

.product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
opacity: 0;
transition: var(--transition-slow);
z-index: 2;
}

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

.product-card:hover {
transform: translateY(-7px);
box-shadow: 0 25px 30px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
border-color: rgba(0,0,0,0);
}

.product-image {
position: relative;
height: 240px;
overflow: hidden;
background: #f8f9fa;
}

.product-image::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 40%;
background: linear-gradient(to top, rgba(0,0,0,0.05), rgba(0,0,0,0));
z-index: 1;
}

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

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

.product-stock-label {
position: absolute;
top: 15px;
right: 15px;
background: rgba(255, 255, 255, 0.95);
color: var(--success-color);
font-size: 11px;
font-weight: 600;
padding: 5px 12px;
border-radius: 20px;
z-index: 2;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
gap: 4px;
}

.product-stock-label i {
color: var(--success-color);
font-size: 10px;
}

.product-stock-label.out-of-stock {
background: rgba(231, 76, 60, 0.95);
color: white;
animation: outOfStockPulse 2s infinite;
}

.product-stock-label.out-of-stock i {
color: white;
}

@keyframes outOfStockPulse {
0%, 100% { opacity: 0.95; }
50% { opacity: 0.7; }
}

/* محصولات ناموجود - حذف افکت کم رنگ */
.product-card.out-of-stock {
position: relative;
/* opacity: 0.8; - حذف شد */
}

/* حذف شد - کاربر باید بتواند محصول را کامل ببیند
.product-card.out-of-stock::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.3);
pointer-events: none;
z-index: 5;
}

.product-card.out-of-stock .product-image {
filter: grayscale(30%);
}

.product-card.out-of-stock .product-price {
opacity: 0.7;
}
*/

/* استایل هشدار موجودی */
.stock-warning {
background: rgba(231, 76, 60, 0.1);
color: #e74c3c;
border: 1px solid rgba(231, 76, 60, 0.2);
border-radius: 8px;
padding: 6px 10px;
font-size: 11px;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
}

.stock-warning i {
color: #e74c3c;
font-size: 10px;
}

.category-emoji {
font-size: 14px;
margin-left: 4px;
}

/* Notify Me Button */
.btn-notify-me {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
border: none;
border-radius: 10px;
padding: 12px;
margin-top: 15px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(243, 156, 18, 0.25);
}

.btn-notify-me:hover {
background: linear-gradient(135deg, #e67e22, #d35400);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(243, 156, 18, 0.35);
}

.btn-notify-me i {
font-size: 15px;
animation: ring 2s infinite;
}

@keyframes ring {
0%, 20%, 50%, 80%, 100% { transform: rotate(0deg); }
10% { transform: rotate(-10deg); }
30% { transform: rotate(10deg); }
40% { transform: rotate(-10deg); }
60% { transform: rotate(10deg); }
70% { transform: rotate(-10deg); }
}

/* نشان‌های محصول */
.product-badges {
position: absolute;
top: 12px;
left: 12px;
z-index: 3;
display: flex;
flex-direction: column;
gap: 6px;
}

.product-badge {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
font-weight: 600;
padding: 4px 8px;
border-radius: 12px;
color: white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.discount-badge {
background: linear-gradient(135deg, #e74c3c, #ff6b6b);
animation: pulse 2s infinite;
}

.new-badge {
background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.bestseller-badge {
background: linear-gradient(135deg, #f39c12, #e67e22);
}

.product-badge i {
font-size: 8px;
}

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

.product-actions {
position: absolute;
right: 15px;
bottom: 15px;
display: flex;
gap: 10px;
z-index: 10;
opacity: 0;
transform: translateY(10px);
transition: all 0.3s ease;
}

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

.product-actions .action-btn {
width: 38px;
height: 38px;
background-color: white;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-color);
transition: all 0.2s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
cursor: pointer;
text-decoration: none;
font-size: 14px;
}

.product-actions .action-btn:hover {
background-color: var(--primary-color);
color: white;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

.product-actions .quick-view:hover {
background-color: #17a2b8;
box-shadow: 0 6px 15px rgba(23, 162, 184, 0.25);
}

.product-actions .add-to-wishlist:hover {
background-color: #dc3545;
box-shadow: 0 6px 15px rgba(220, 53, 69, 0.25);
}

.product-actions .add-to-compare:hover {
background-color: #f97316;
box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

.product-actions .view-product:hover {
background-color: #ea6c0a;
box-shadow: 0 6px 15px rgba(234, 108, 10, 0.25);
}

/* Dark Mode for Action Buttons */
[data-theme="dark"] .product-actions .action-btn {
background-color: rgba(30, 41, 59, 0.9);
color: #cbd5e1;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .product-actions .action-btn:hover {
color: white;
}

/* Active state for action buttons */
.product-actions .add-to-wishlist.added-to-wishlist {
background-color: #dc3545;
color: white;
box-shadow: 0 6px 15px rgba(220, 53, 69, 0.25);
}

.product-actions .add-to-compare.active {
background-color: #f97316;
color: white;
box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

/* Disabled state for loading */
.product-actions .action-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none !important;
}

.product-info {
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
position: relative;
z-index: 3;
min-height: 240px;
}

.product-category {
font-size: 11px;
margin-bottom: 8px;
display: inline-block;
background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 108, 10, 0.05));
padding: 5px 12px;
border-radius: 20px;
color: var(--primary-color);
font-weight: 600;
letter-spacing: 0.3px;
text-decoration: none;
transition: all 0.3s ease;
border: 1px solid rgba(249, 115, 22, 0.2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 140px;
}

.product-category:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

/* Category specific styles */
.product-category[data-category-type="camping"] {
background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
border-color: rgba(46, 204, 113, 0.3);
color: #27ae60;
}

.product-category[data-category-type="camping"]:hover {
background: linear-gradient(135deg, #2ecc71, #27ae60);
color: white;
}

.product-category[data-category-type="yoga"] {
background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.05));
border-color: rgba(155, 89, 182, 0.3);
color: #9b59b6;
}

.product-category[data-category-type="yoga"]:hover {
background: linear-gradient(135deg, #9b59b6, #8e44ad);
color: white;
}

.product-category[data-category-type="fitness"] {
background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
border-color: rgba(231, 76, 60, 0.3);
color: #e74c3c;
}

.product-category[data-category-type="fitness"]:hover {
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: white;
}

.product-category[data-category-type="accessories"] {
background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
border-color: rgba(52, 152, 219, 0.3);
color: #3498db;
}

.product-category[data-category-type="accessories"]:hover {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
}

.product-category[data-category-type="equipment"] {
background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(211, 84, 0, 0.05));
border-color: rgba(243, 156, 18, 0.3);
color: #f39c12;
}

.product-category[data-category-type="equipment"]:hover {
background: linear-gradient(135deg, #f39c12, #d35400);
color: white;
}

.product-category[data-category-type="backpack"] {
background: linear-gradient(135deg, rgba(22, 160, 133, 0.1), rgba(17, 122, 101, 0.05));
border-color: rgba(22, 160, 133, 0.3);
color: #16a085;
}

.product-category[data-category-type="backpack"]:hover {
background: linear-gradient(135deg, #16a085, #117a65);
color: white;
}

.product-category[data-category-type="clothing"] {
background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(125, 60, 152, 0.05));
border-color: rgba(142, 68, 173, 0.3);
color: #8e44ad;
}

.product-category[data-category-type="clothing"]:hover {
background: linear-gradient(135deg, #8e44ad, #7d3c98);
color: white;
}

.product-category[data-category-type="shoes"] {
background: linear-gradient(135deg, rgba(52, 73, 94, 0.1), rgba(44, 62, 80, 0.05));
border-color: rgba(52, 73, 94, 0.3);
color: #34495e;
}

.product-category[data-category-type="shoes"]:hover {
background: linear-gradient(135deg, #34495e, #2c3e50);
color: white;
}

.product-category i {
font-size: 9px;
opacity: 0.8;
}

.product-info h3 {
font-size: 16px;
margin: 10px 0;
font-weight: 600;
line-height: 1.4;
height: 44px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.product-info h3 a {
color: var(--dark-color);
text-decoration: none;
transition: color 0.2s;
}

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

/* رنگ‌ها و ویژگی‌های محصول */
.product-features {
display: flex;
flex-direction: column;
gap: 6px;
margin: 4px 0 6px;
font-size: 12px;
}

.product-colors {
display: flex;
align-items: center;
gap: 8px;
}

.colors-label {
font-size: 11px;
color: var(--text-light);
font-weight: 600;
}

.color-options {
display: flex;
gap: 4px;
}

.color-option {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
transform: scale(1.2);
border-color: rgba(0, 0, 0, 0.3);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
}

.feature-tag {
background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 108, 10, 0.05));
color: var(--primary-color);
font-size: 10px;
font-weight: 600;
padding: 3px 8px;
border-radius: 12px;
border: 1px solid rgba(249, 115, 22, 0.2);
white-space: nowrap;
transition: all 0.2s ease;
}

.feature-tag:hover {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

/* ===== Product Specs Rotator (Shop listing) — سبک + تم زینوکس ===== */
.product-specs-rotator {
position: relative;
overflow: hidden;
margin-top: 4px;
padding: 5px 8px 9px;
border-radius: 8px;
background: rgba(249, 115, 22, 0.06);
border: 1px solid rgba(249, 115, 22, 0.14);
height: 52px;
min-height: 52px;
max-height: 52px;
box-sizing: border-box;
contain: layout style paint;
}

.product-specs-rotator .spec-item {
position: absolute;
inset: 5px 8px 9px;
opacity: 0;
transform: translateY(5px);
transition: opacity 0.32s ease, transform 0.32s ease;
display: flex;
flex-direction: column;
gap: 2px;
direction: rtl;
z-index: 1;
pointer-events: none;
}

.product-specs-rotator .spec-item.active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

.product-specs-rotator .spec-header {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 100%;
background: rgba(249, 115, 22, 0.1);
border: 1px solid rgba(249, 115, 22, 0.2);
border-radius: 6px;
padding: 2px 6px;
width: fit-content;
color: #ea6c0a;
font-size: 10px;
line-height: 1.2;
}

.product-specs-rotator .spec-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 120px;
}

.product-specs-rotator .spec-value {
color: var(--text-color, #333);
font-weight: 600;
font-size: 11px;
line-height: 1.32;
max-height: 2.65em;
overflow: hidden;
flex: 1;
min-height: 0;
}

.product-specs-rotator .spec-value-text {
display: block;
}

.product-specs-rotator .spec-value.spec-scroll-v .spec-value-text {
animation: specScrollVertical var(--scroll-duration, 2.8s) ease-in-out infinite alternate;
will-change: transform;
}

.product-specs-rotator .spec-value.spec-scroll-h {
white-space: nowrap;
max-height: none;
}

.product-specs-rotator .spec-value.spec-scroll-h .spec-value-text {
display: inline-block;
padding-left: 12px;
animation: specScrollHorizontal var(--scroll-duration, 2.8s) ease-in-out infinite alternate;
will-change: transform;
}

@keyframes specScrollVertical {
0%, 14% { transform: translateY(0); }
86%, 100% { transform: translateY(calc(-1 * var(--scroll-distance, 0px))); }
}

@keyframes specScrollHorizontal {
0%, 14% { transform: translateX(0); }
86%, 100% { transform: translateX(calc(-1 * var(--scroll-distance, 0px))); }
}

.product-specs-rotator .spec-icon { color: #f97316; font-size: 10px; }
[data-theme="dark"] .product-specs-rotator { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.22); }
[data-theme="dark"] .product-specs-rotator .spec-icon { color: #fb923c; }
[data-theme="dark"] .product-specs-rotator .spec-header { color: #fb923c; }
[data-theme="dark"] .product-specs-rotator .spec-value { color: #e0e0e0; }

.product-specs-rotator .spec-progress {
position: absolute;
bottom: 3px;
left: 8px;
right: 8px;
height: 2px;
border-radius: 2px;
overflow: hidden;
background: rgba(0, 136, 194, 0.12);
z-index: 0;
}

.product-specs-rotator .spec-progress::before {
content: '';
display: block;
height: 100%;
width: 0%;
background: linear-gradient(90deg, #f97316, #fdba74);
border-radius: 2px;
animation: specProgress var(--spec-interval, 3.6s) linear infinite;
}

@keyframes specProgress { from { width: 0%; } to { width: 100%; } }

.shop-page .product-features {
margin: 4px 0 6px;
gap: 6px;
}

@media (max-width: 767px) {
.product-specs-rotator {
height: 48px;
min-height: 48px;
max-height: 48px;
padding: 4px 7px 8px;
}
.product-specs-rotator .spec-item { inset: 4px 7px 8px; }
.product-specs-rotator .spec-name { max-width: 90px; }
.product-specs-rotator .spec-value { font-size: 10px; max-height: 2.5em; }
}

@media (prefers-reduced-motion: reduce) {
.product-specs-rotator .spec-item { transition: opacity 0.2s ease; transform: none; }
.product-specs-rotator .spec-value.spec-scroll-v .spec-value-text,
.product-specs-rotator .spec-value.spec-scroll-h .spec-value-text { animation: none; }
.product-specs-rotator .spec-progress::before { animation-duration: 8s; }
}

.product-price {
margin-top: auto;
display: flex;
flex-direction: column;
align-items: flex-start;
padding-top: 15px;
border-top: 1px dashed rgba(0,0,0,0.07);
margin-top: 15px;
}

.product-price .price-wrapper {
display: flex;
align-items: center;
flex-wrap: wrap;
width: 100%;
justify-content: space-between;
}
/* place for specs rotator */

.original-price {
font-size: 14px;
text-decoration: line-through;
color: var(--text-light);
margin-bottom: 8px;
position: relative;
}

.current-price {
font-size: 19px;
color: var(--primary-color);
font-weight: 700;
display: flex;
align-items: center;
background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(234, 108, 10, 0));
padding: 8px 15px;
border-radius: 10px;
position: relative;
}

.currency-badge {
background-color: var(--primary-color);
color: white;
padding: 3px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 500;
margin-right: 8px;
box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.btn-add-to-cart {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 10px;
padding: 12px;
margin-top: 15px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-add-to-cart:hover {
background: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(249, 115, 22, 0.35);
}

.btn-add-to-cart i {
font-size: 15px;
}

/* === Promotional Banners === */
.promotional-banners {
padding: 3rem 0;
}

.promo-banner {
height: 220px;
position: relative;
transition: var(--transition-slow);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.promo-banner:hover {
transform: translateY(-8px);
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.promo-banner img {
height: 100%;
width: 100%;
object-fit: cover;
transition: all 0.6s ease;
border-radius: 38px;
}

.promo-banner:hover img {
transform: scale(1.05);
}

.promo-banner-link {
display: block;
text-decoration: none;
}

/* === Notification System === */
.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
width: 320px;
}

.notification {
background-color: white;
border-radius: 12px;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
margin-bottom: 10px;
padding: 16px;
transform: translateX(120%);
transition: transform 0.3s ease;
display: flex;
justify-content: space-between;
align-items: flex-start;
}

.notification.show {
transform: translateX(0);
}

.notification.success {
border-right: 4px solid var(--success-color);
}

.notification.error {
border-right: 4px solid var(--danger-color);
}

.notification.info {
border-right: 4px solid var(--accent-color);
}

.notification-content {
display: flex;
align-items: center;
gap: 12px;
}

.notification-content i {
font-size: 22px;
}

.notification.success i {
color: var(--success-color);
}

.notification.error i {
color: var(--danger-color);
}

.notification.info i {
color: var(--accent-color);
}

.notification-close {
background: none;
border: none;
cursor: pointer;
color: var(--text-light);
font-size: 14px;
}

.notification-close:hover {
color: var(--text-color);
}

/* === Mobile Bottom Navigation === */
.mobile-bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: white;
box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
padding: 12px 0 8px;
z-index: 999;
border-radius: 20px 20px 0 0;
}



.mobile-nav-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 6px;
color: var(--text-light);
text-decoration: none;
font-size: 12px;
position: relative;
transition: var(--transition-fast);
}

.mobile-nav-item i {
font-size: 22px;
margin-bottom: 5px;
}

.mobile-nav-item.active {
color: var(--primary-color);
}

.mobile-nav-item:hover {
color: var(--primary-color);
}

.mobile-badge {
position: absolute;
top: 0;
right: 50%;
transform: translate(50%, -5px) !important;
font-size: 10px;
padding: 3px 6px;
background-color: var(--danger-color);
color: white;
border-radius: 10px;
}

/* === Responsive Design === */
@media (min-width: 1200px) {
.product-card {
margin-bottom: 2rem;
min-height: 520px;
}

.product-image {
height: 260px;
}

.product-info {
padding: 24px;
min-height: 260px;
}

.product-info h3 {
font-size: 18px;
margin: 12px 0;
height: 48px;
}

.current-price {
font-size: 21px;
}

.product-rating {
margin: 10px 0 15px;
}

.product-rating .stars i {
font-size: 12px;
}

.rating-text {
font-size: 12px;
}

.product-badge {
font-size: 11px;
padding: 5px 10px;
}

.product-category {
font-size: 12px;
padding: 6px 14px;
max-width: 160px;
}

.product-stats {
min-height: 50px;
}
}

/* === Smart Suggestion Card === */
.smart-suggestion-card {
background: linear-gradient(135deg, #f97316 0%, #ea6c0a 100%);
color: white;
border-radius: 20px;
padding: 25px;
margin: 30px 0;
position: relative;
box-shadow: 0 15px 35px rgba(249, 115, 22, 0.28);
overflow: hidden;
}

.smart-suggestion-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
pointer-events: none;
}

.suggestion-content {
display: flex;
align-items: center;
gap: 20px;
position: relative;
z-index: 2;
}

.suggestion-emoji {
font-size: 3rem;
animation: bounce 2s infinite;
}

.suggestion-text h4 {
margin: 0 0 8px 0;
font-size: 1.3rem;
font-weight: 700;
}

.suggestion-text p {
margin: 0;
opacity: 0.9;
font-size: 0.95rem;
}

.suggestion-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 12px 24px;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
white-space: nowrap;
}

.suggestion-btn:hover {
background: rgba(255, 255, 255, 0.3);
color: white;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.suggestion-close {
position: absolute;
top: 15px;
left: 15px;
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
}

.suggestion-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }
}

/* === Quick Filters === */
.quick-filters {
margin-bottom: 20px;
}

.quick-filters-container {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 10px 5px;
scrollbar-width: none;
-ms-overflow-style: none;
}

.quick-filters-container::-webkit-scrollbar {
display: none;
}

.quick-filter-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
background: white;
border: 2px solid var(--border-color);
border-radius: 25px;
color: var(--text-color);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
flex-shrink: 0;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.quick-filter-btn i {
font-size: 12px;
}

/* === Product Stats === */
.product-stats {
margin: 10px 0;
display: flex;
flex-direction: column;
gap: 5px;
min-height: 45px;
}

.stock-warning {
display: flex;
align-items: center;
gap: 5px;
font-size: 11px;
color: #e74c3c;
font-weight: 600;
background: rgba(231, 76, 60, 0.1);
padding: 4px 8px;
border-radius: 12px;
animation: pulse 2s infinite;
}

.sales-count {
display: flex;
align-items: center;
gap: 5px;
font-size: 10px;
color: var(--text-light);
font-weight: 500;
}

.sales-count i {
color: var(--success-color);
}

/* === Floating Filters === */
.floating-filters {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
z-index: 1000;
min-width: 180px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.floating-filters.show {
opacity: 1;
visibility: visible;
}

.floating-filters-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
border-bottom: 1px solid var(--border-color);
background: var(--light-bg-color);
border-radius: 15px 15px 0 0;
}

.floating-filters-header h6 {
margin: 0;
font-size: 13px;
font-weight: 600;
color: var(--text-color);
}

.floating-close {
background: none;
border: none;
color: var(--text-light);
cursor: pointer;
padding: 5px;
border-radius: 50%;
transition: all 0.2s ease;
}

.floating-close:hover {
background: var(--border-color);
color: var(--text-color);
}

.floating-filters-content {
padding: 15px;
display: flex;
flex-direction: column;
gap: 8px;
}

.floating-filter-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: transparent;
border: 1px solid var(--border-color);
border-radius: 20px;
color: var(--text-color);
font-size: 12px;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
text-align: right;
}

.floating-filter-btn:hover,
.floating-filter-btn.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}

/* === Toast Notification === */
.toast-notification {
position: fixed;
top: 20px;
right: 50%;
transform: translateX(50%) translateY(-100px);
background: white;
color: var(--text-color);
padding: 12px 20px;
border-radius: 25px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
z-index: 10001;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0;
border: 2px solid var(--success-color);
}

.toast-notification.success {
border-color: var(--success-color);
background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
}

.toast-notification.error {
border-color: var(--danger-color);
background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
}

.toast-notification.show {
opacity: 1;
transform: translateX(50%) translateY(0);
}

.toast-content {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 14px;
}

.toast-notification.success .toast-content i {
color: var(--success-color);
}

.toast-notification.error .toast-content i {
color: var(--danger-color);
}

/* === Quick View Modal === */
.quick-view-content {
border-radius: 20px;
border: none;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quick-view-content .modal-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border-radius: 20px 20px 0 0;
padding: 20px 25px;
border-bottom: none;
}

.quick-view-content .modal-title {
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}

.quick-view-content .btn-close {
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
opacity: 1;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}

.quick-view-content .btn-close:hover {
background: rgba(255, 255, 255, 0.3);
}

.quick-view-product {
display: flex;
gap: 30px;
align-items: flex-start;
}

.quick-view-image {
flex: 0 0 250px;
}

.quick-view-image img {
width: 100%;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-view-details {
flex: 1;
}

.quick-view-details h3 {
margin-bottom: 15px;
color: var(--dark-color);
}

.quick-view-price {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
margin: 15px 0;
}

.quick-view-description {
color: var(--text-light);
line-height: 1.6;
margin-bottom: 20px;
}

.quick-view-actions {
display: flex;
gap: 15px;
margin-top: 25px;
}

.quick-view-actions .btn {
flex: 1;
padding: 12px;
border-radius: 10px;
font-weight: 600;
}

/* Mobile responsive for quick view */
@media (max-width: 767px) {
.quick-view-product {
flex-direction: column;
gap: 20px;
}

.quick-view-image {
flex: none;
}

.quick-view-actions {
flex-direction: column;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
.product-card {
min-height: 500px;
}

.product-image {
height: 240px;
}

.product-info {
padding: 22px;
min-height: 250px;
}

.product-info h3 {
height: 46px;
}
}

@media (max-width: 1199px) {
.product-image {
height: 220px;
}

.product-card {
min-height: 480px;
}
}

@media (max-width: 991px) {
.product-image {
height: 200px;
}

.page-header {
padding: 2rem 0 1.5rem;
}
}

@media (max-width: 767px) {
.page-header {
padding: 1.5rem 0 1rem;
}

.promo-banner {
height: 180px;
margin-bottom: 20px;
}

.product-card {
margin-bottom: 10px;
min-height: 420px;
}

.product-image {
height: 190px;
}

.product-info {
min-height: 200px;
}

.product-info h3 {
height: 40px;
font-size: 15px;
}

.product-category {
max-width: 120px;
font-size: 10px;
}

.product-stats {
min-height: 40px;
}

.section-title h2 {
font-size: 1.5rem;
}

.product-actions {
opacity: 1;
transform: translateY(0);
}
}

@media (max-width: 575px) {
body {
padding-bottom: 65px;
}

.page-header {
border-radius: 0 0 15px 15px;
}

.page-header h1 {
font-size: 1.5rem;
}

.product-search-form .form-control {
height: 50px;
}

.product-card {
min-height: 400px;
}

.product-image {
height: 180px;
}

.product-info {
padding: 15px;
min-height: 190px;
}

.product-info h3 {
font-size: 14px;
height: 38px;
}

.notification-container {
width: calc(100% - 30px);
right: 15px;
}

.product-category {
max-width: 100px;
font-size: 9px;
padding: 4px 8px;
}

.product-stats {
min-height: 35px;
}

.toast-notification {
right: 50%;
width: calc(100% - 20px);
max-width: 300px;
font-size: 13px;
}

.smart-suggestion-card {
margin: 20px 0;
padding: 20px 15px;
}

.suggestion-emoji {
font-size: 2.5rem;
}
}

.btn-add-to-cart.clicked {
transform: scale(0.95);
opacity: 0.9;
}

/* === Enhanced Animations === */
.product-card {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-filter-btn {
animation: fadeInUp 0.6s ease forwards;
}

.quick-filter-btn:nth-child(1) { animation-delay: 0s; }
.quick-filter-btn:nth-child(2) { animation-delay: 0.1s; }
.quick-filter-btn:nth-child(3) { animation-delay: 0.2s; }
.quick-filter-btn:nth-child(4) { animation-delay: 0.3s; }
.quick-filter-btn:nth-child(5) { animation-delay: 0.4s; }
.quick-filter-btn:nth-child(6) { animation-delay: 0.5s; }

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

.smart-suggestion-card {
animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Product hover effects */
.product-card:hover .product-badges .product-badge {
transform: scale(1.1);
}

.product-card:hover .product-stock-label {
transform: scale(1.05);
}

/* Floating filters animation */
.floating-filters {
animation: slideInFromSide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromSide {
from {
opacity: 0;
transform: translateY(-50%) translateX(50px);
}
to {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
}

/* Admin floating button styles */
.admin-actions {
position: fixed;
bottom: 80px;
left: 20px;
z-index: 999;
}

.admin-actions .dropdown-menu {
min-width: 200px;
padding: 0.5rem 0;
text-align: right;
}

.admin-actions .dropdown-item {
padding: 0.5rem 1rem;
font-size: 14px;
}

.admin-actions .btn-admin {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--primary-color);
color: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}

.admin-actions .btn-admin:hover {
transform: scale(1.1);
background: var(--secondary-color);
}

.admin-actions .btn-admin i {
font-size: 20px;
}

/* === Popular Products Section — Zinox lite === */
.popular-products-section {
position: relative;
padding: 3rem 0;
background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, #fff5ee 52%, #fff 100%);
border: 1px solid rgba(249, 115, 22, 0.1);
border-radius: 0 0 2rem 2rem;
overflow: hidden;
box-shadow: 0 10px 28px rgba(11, 15, 20, 0.06);
contain: layout paint;
}

.popular-products-section::before {
content: '';
position: absolute;
inset: -25% -8%;
background:
radial-gradient(ellipse at 22% 18%, rgba(249, 115, 22, 0.14) 0%, transparent 52%),
radial-gradient(ellipse at 78% 82%, rgba(253, 186, 116, 0.1) 0%, transparent 48%);
pointer-events: none;
z-index: 0;
opacity: 1;
animation: none;
filter: none;
border-radius: 0;
}

.popular-products-section::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 48%, transparent 72%);
opacity: 0.22;
pointer-events: none;
z-index: 1;
animation: none;
}



.popular-products-section .section-header {
text-align: center;
margin-bottom: 2rem;
position: relative;
z-index: 10;
}

.popular-products-section .section-title {
font-size: 2.8rem;
font-weight: 900;
background: linear-gradient(135deg, #f97316 0%, #ea6c0a 45%, #fdba74 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
position: relative;
filter: none;
letter-spacing: -0.5px;
}

.popular-products-section .section-title::before {
content: '';
position: absolute;
top: -12px;
left: -28px;
right: -28px;
bottom: -12px;
background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.16) 0%, transparent 72%);
border-radius: 24px;
filter: blur(14px);
z-index: -1;
animation: none;
opacity: 0.85;
}

@keyframes titleGlow {
0%, 100% { 
transform: scale(1);
opacity: 0.3;
}
33% { 
transform: scale(1.03);
opacity: 0.6;
}
66% { 
transform: scale(1.06);
opacity: 0.8;
}
}



.popular-products-section .section-title i {
background: linear-gradient(135deg, #f97316 0%, #fdba74 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-size: 2.4rem;
animation: none;
filter: none;
position: relative;
}

.popular-products-section .section-title i::before {
display: none;
}

@keyframes iconFloat {
0%, 100% { 
transform: translateY(0) rotate(0deg);
}
25% { 
transform: translateY(-3px) rotate(2deg);
}
50% { 
transform: translateY(0) rotate(0deg);
}
75% { 
transform: translateY(-2px) rotate(-1deg);
}
}

@keyframes iconGlow {
0%, 100% { 
opacity: 0.3;
transform: scale(1);
}
50% { 
opacity: 0.6;
transform: scale(1.1);
}
}

.popular-products-section .section-title small {
font-size: 0.95rem;
font-weight: 600;
color: #64748b;
margin-right: 18px;
background: 
linear-gradient(135deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    rgba(255, 255, 255, 0.15) 100%);
padding: 8px 20px;
border-radius: 30px;
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(25px);
box-shadow: 
0 6px 20px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.5);
position: relative;
overflow: hidden;
}

.popular-products-section .section-title small::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(249, 115, 22, 0.08);
animation: none;
opacity: 0.5;
}

@keyframes smallGlow {
0%, 100% { 
opacity: 0.3;
}
50% { 
opacity: 0.6;
}
}

.popular-products-section .section-line {
width: 120px;
height: 4px;
background: linear-gradient(90deg, #f97316, #fdba74, #ea6c0a);
margin: 0 auto;
border-radius: 4px;
position: relative;
animation: none;
box-shadow: 0 2px 10px rgba(249, 115, 22, 0.2);
}

.popular-products-section .section-line::before {
content: '';
position: absolute;
top: -2px;
left: -10px;
right: -10px;
bottom: -2px;
background: linear-gradient(90deg, rgba(249, 115, 22, 0.25), rgba(253, 186, 116, 0.2));
border-radius: 6px;
filter: blur(6px);
z-index: -1;
animation: none;
}

@keyframes lineFlow {
0%, 100% { 
transform: scaleX(1);
opacity: 0.9;
}
50% { 
transform: scaleX(1.05);
opacity: 1;
}
}

@keyframes lineGlow {
0%, 100% { 
opacity: 0.4;
transform: scale(1);
}
50% { 
opacity: 0.7;
transform: scale(1.1);
}
}

.popular-products-scroll-container {
position: relative;
border-radius: 25px;
box-shadow: 
0 15px 35px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.2);
background: 
linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
backdrop-filter: blur(20px);
z-index: 2;
}

.popular-products-grid {
display: flex;
gap: 20px;
padding: 20px;
overflow-x: auto;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
}

.popular-products-grid::-webkit-scrollbar {
display: none;
}

.popular-product-card {
flex: 0 0 280px;
width: 280px;
background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
border-radius: 20px;
overflow: hidden;
box-shadow: 
0 8px 25px rgba(0, 0, 0, 0.08),
0 2px 10px rgba(0, 0, 0, 0.04);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
border: 1px solid rgba(0, 0, 0, 0.05);
min-height: 350px;
scroll-snap-align: start;
}

/* ریسپانسیو برای نمایش کارت‌ها */
@media (max-width: 767px) {
.popular-product-card {
flex: 0 0 250px;
width: 250px;
}
}

@media (max-width: 480px) {
.popular-product-card {
flex: 0 0 200px;
width: 200px;
min-height: 300px;
}
}

.popular-product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg,
rgba(249, 115, 22, 0.06) 0%,
transparent 45%,
rgba(253, 186, 116, 0.04) 100%);
opacity: 0;
transition: opacity 0.35s ease;
z-index: 1;
pointer-events: none;
}

.popular-product-card:hover {
transform: translateY(-8px);
box-shadow: 
0 15px 40px rgba(0, 0, 0, 0.12),
0 5px 15px rgba(0, 0, 0, 0.08);
border-color: var(--primary-color);
}

.popular-product-card.slider-active {
transform: translateY(-4px);
box-shadow: 
0 12px 30px rgba(249, 115, 22, 0.15),
0 4px 12px rgba(249, 115, 22, 0.1);
border-color: var(--primary-color);
}

.popular-product-card.slider-active::before {
opacity: 1;
}

.popular-product-image {
position: relative;
height: 180px;
overflow: hidden;
border-radius: 15px 15px 0 0;
background: #f8f9fa;
}

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

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

.popular-product-badge {
position: absolute;
top: 12px;
right: 12px;
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 10px;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
z-index: 3;
}

.popular-product-badge i {
font-size: 10px;
}

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

@keyframes badgePulse {
0%, 100% { 
transform: scale(1);
box-shadow: 
    0 6px 20px rgba(34, 197, 94, 0.4),
    0 0 25px rgba(251, 191, 36, 0.3);
}
50% { 
transform: scale(1.05);
box-shadow: 
    0 8px 25px rgba(34, 197, 94, 0.5),
    0 0 30px rgba(251, 191, 36, 0.4);
}
}

.popular-product-badge i {
font-size: 12px;
}

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

.popular-product-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}

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

.popular-product-info {
padding: 16px;
position: relative;
z-index: 2;
background: rgba(255, 255, 255, 0.94);
border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.popular-product-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 8px;
line-height: 1.3;
height: 36px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.popular-product-title a {
color: #2d3748;
text-decoration: none;
transition: color 0.3s ease;
}

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

.popular-product-category {
font-size: 11px;
color: #718096;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 4px;
}

.popular-product-price {
margin-bottom: 12px;
}

.popular-product-price .original-price {
font-size: 12px;
text-decoration: line-through;
color: #a0aec0;
display: block;
}

.popular-product-price .discount-price {
font-size: 14px;
font-weight: 700;
color: #e53e3e;
}

.popular-product-price .current-price {
font-size: 14px;
font-weight: 700;
color: var(--primary-color);
}

.popular-product-actions {
margin-top: 10px;
}

.popular-product-actions .btn {
font-size: 12px;
padding: 6px 12px;
border-radius: 8px;
width: 100%;
}

/* دکمه‌های scroll */
.scroll-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: 
linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.8) 100%);
border: 2px solid rgba(255, 255, 255, 0.6);
width: 50px;
height: 50px;
border-radius: 50%;
box-shadow: 
0 8px 20px rgba(0, 0, 0, 0.1),
0 0 20px rgba(34, 197, 94, 0.1);
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
z-index: 15;
color: #475569;
font-size: 16px;
}

.scroll-btn:hover {
background: linear-gradient(135deg, #f97316, #ea6c0a);
color: white;
transform: translateY(-50%) scale(1.06);
box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
border-color: rgba(255, 255, 255, 0.85);
}

.scroll-btn:active {
transform: translateY(-50%) scale(1.05);
}

.scroll-left {
right: 15px;
}

.scroll-right {
left: 15px;
}

/* اندیکاتور */
/* نمایش scroll indicator برای موبایل */
.popular-products-scroll-container::after {
content: '';
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 4px;
background: linear-gradient(90deg, 
rgba(34, 197, 94, 0.3) 0%, 
rgba(251, 191, 36, 0.3) 100%);
border-radius: 2px;
opacity: 0.7;
}

@media (min-width: 768px) {
.popular-products-scroll-container::after {
display: none;
}
}

/* Glass Wave Effects */
.popular-products-section .glass-wave-effect {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
radial-gradient(ellipse at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
pointer-events: none;
z-index: 1;
animation: glassWave 10s ease-in-out infinite;
mix-blend-mode: overlay;
}

@keyframes glassWave {
0%, 100% { 
opacity: 0.5;
transform: scale(1) rotate(0deg);
filter: blur(20px);
}
33% { 
opacity: 0.8;
transform: scale(1.05) rotate(2deg);
filter: blur(15px);
}
66% { 
opacity: 0.6;
transform: scale(1.1) rotate(-1deg);
filter: blur(25px);
}
}

/* Glass Shimmer Effect */
.popular-products-section .glass-shimmer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 30%, 
    rgba(255, 255, 255, 0.05) 50%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.1) 100%);
pointer-events: none;
z-index: 2;
animation: glassShimmerMove 6s ease-in-out infinite;
mix-blend-mode: overlay;
}

@keyframes glassShimmerMove {
0%, 100% { 
opacity: 0.3;
transform: translateX(-100%) skewX(-15deg);
}
50% { 
opacity: 0.7;
transform: translateX(100%) skewX(15deg);
}
}



/* رنگ‌های کوچک محصولات پربازدید */
.popular-product-colors {
margin: 8px 0;
}

.color-options-small {
display: flex;
align-items: center;
gap: 4px;
}

.color-option-small {
width: 12px;
height: 12px;
border-radius: 50%;
border: 1px solid rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.color-option-small:hover {
transform: scale(1.3);
border-color: rgba(0, 0, 0, 0.3);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-more {
font-size: 9px;
color: var(--text-light);
font-weight: 600;
background: rgba(0, 0, 0, 0.05);
padding: 2px 6px;
border-radius: 8px;
margin-right: 4px;
}

/* Glass Floating Elements */
.popular-products-section .glass-floating-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 3;
overflow: hidden;
}

.popular-products-section .glass-floating-elements::before {
content: '';
position: absolute;
top: 20%;
left: 15%;
width: 20px;
height: 20px;
background: 
linear-gradient(135deg, 
    rgba(34, 197, 94, 0.3) 0%, 
    rgba(251, 191, 36, 0.2) 100%);
border-radius: 50%;
backdrop-filter: blur(10px);
animation: glassFloat1 8s ease-in-out infinite;
box-shadow: 
0 0 20px rgba(34, 197, 94, 0.2),
inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.popular-products-section .glass-floating-elements::after {
content: '';
position: absolute;
top: 60%;
right: 20%;
width: 15px;
height: 15px;
background: 
linear-gradient(135deg, 
    rgba(245, 158, 11, 0.3) 0%, 
    rgba(251, 191, 36, 0.2) 100%);
border-radius: 50%;
backdrop-filter: blur(10px);
animation: glassFloat2 10s ease-in-out infinite 2s;
box-shadow: 
0 0 15px rgba(245, 158, 11, 0.2),
inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

@keyframes glassFloat1 {
0%, 100% {
transform: translateY(0px) translateX(0px) rotate(0deg);
opacity: 0.6;
}
25% {
transform: translateY(-10px) translateX(15px) rotate(90deg);
opacity: 0.8;
}
50% {
transform: translateY(-20px) translateX(-10px) rotate(180deg);
opacity: 1;
}
75% {
transform: translateY(-5px) translateX(-20px) rotate(270deg);
opacity: 0.7;
}
}

@keyframes glassFloat2 {
0%, 100% {
transform: translateY(0px) translateX(0px) rotate(0deg);
opacity: 0.5;
}
33% {
transform: translateY(-15px) translateX(-10px) rotate(120deg);
opacity: 0.9;
}
66% {
transform: translateY(-8px) translateX(12px) rotate(240deg);
opacity: 0.7;
}
}

/* ریسپانسیو - تنها تغییرات بصری */
@media (max-width: 991px) {
.popular-products-section .section-title {
font-size: 2rem;
}

.popular-slider-btn {
width: 45px;
height: 45px;
font-size: 15px;
}

.popular-slider-indicators .indicator {
width: 16px;
height: 16px;
}
}

@media (max-width: 767px) {
.popular-products-section .section-title {
font-size: 1.8rem;
flex-direction: column;
gap: 8px;
}

.popular-products-section .section-title i {
font-size: 1.8rem;
}

.popular-products-container {
padding: 20px 0;
}

.popular-slider-btn {
width: 45px;
height: 45px;
font-size: 14px;
}

.popular-slider-btn.prev-btn {
right: 10px;
}

.popular-slider-btn.next-btn {
left: 10px;
}

.popular-slider-indicators .indicator {
width: 14px;
height: 14px;
}

.popular-products-section .section-line {
width: 100px;
}

.popular-products-section .section-title small {
font-size: 0.9rem;
margin-right: 0;
margin-top: 5px;
}
.popular-products-section .glass-wave-effect {
opacity: 0.4;
animation-duration: 8s;
}

.popular-products-section .glass-shimmer {
opacity: 0.3;
animation-duration: 5s;
}

.popular-products-section .glass-floating-elements {
display: none;
}

.color-option-small {
width: 10px;
height: 10px;
}

.color-more {
font-size: 8px;
padding: 1px 4px;
}
}

#translateAllModal .modal-dialog {
max-width: 500px;
}

#translateAllModal .progress {
height: 10px;
border-radius: 5px;
}

#translateAllModal .product-list {
max-height: 300px;
overflow-y: auto;
}

#translateAllModal .list-group-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1.25rem;
margin-bottom: -1px;
}

#translateAllModal .status-badge {
font-size: 12px;
padding: 0.25rem 0.5rem;
}

.translation-result {
background-color: #f8f9fa;
border-radius: 8px;
padding: 10px;
margin-top: 10px;
}

.translation-result.success {
border-left: 3px solid var(--success-color);
}

.translation-result.error {
border-left: 3px solid var(--danger-color);
}

/* === Filter Buttons Container === */
.filter-buttons-container {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}

@media (max-width: 767px) {
.filter-buttons-container {
flex-direction: column;
gap: 8px;
width: 100%;
}

.filter-buttons-container .btn {
width: 100%;
justify-content: center;
}
}

/* === Filter Buttons Base Styles === */
.category-filter-btn,
.brand-filter-btn {
border-radius: 15px;
padding: 14px 24px;
font-weight: 600;
border: 2px solid transparent;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 14px;
white-space: nowrap;
}

/* === Category Filter Button === */
.category-filter-btn {
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
color: white;
box-shadow: 
0 4px 15px rgba(249, 115, 22, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* === Brand Filter Button === */
.brand-filter-btn {
background: linear-gradient(145deg, #f97316, #ea6c0a);
color: white;
box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28);
}

.brand-filter-btn:hover {
background: linear-gradient(145deg, #fb923c, #f97316);
color: white;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(249, 115, 22, 0.32);
}

/* Dark Mode for Filter Buttons */
[data-theme="dark"] .category-filter-btn {
background: linear-gradient(145deg, #3b82f6, #2563eb);
box-shadow: 
0 4px 15px rgba(59, 130, 246, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .category-filter-btn:hover {
background: linear-gradient(145deg, #2563eb, #1d4ed8);
box-shadow: 
0 8px 25px rgba(59, 130, 246, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .brand-filter-btn {
background: linear-gradient(145deg, #10b981, #059669);
box-shadow: 
0 4px 15px rgba(16, 185, 129, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .brand-filter-btn:hover {
background: linear-gradient(145deg, #059669, #047857);
box-shadow: 
0 8px 25px rgba(16, 185, 129, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@media (min-width: 992px) {
.category-filter-btn,
.brand-filter-btn {
padding: 14px 28px;
font-size: 15px;
width: auto !important;
max-width: none;
margin: 0;
}
}

.category-filter-btn:hover {
background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
color: white;
transform: translateY(-3px) scale(1.02);
box-shadow: 
0 8px 25px rgba(249, 115, 22, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-filter-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.6s;
}

.category-filter-btn:hover::before {
left: 100%;
}

.category-filter-btn i {
transition: transform 0.3s ease;
}

.category-filter-btn:hover i:last-child {
transform: rotate(180deg);
}

/* Modal Styles */
#categoryFilterModal {
z-index: 9999 !important;
}

#categoryFilterModal .modal-backdrop {
backdrop-filter: blur(15px) saturate(1.5);
-webkit-backdrop-filter: blur(15px) saturate(1.5);
background: radial-gradient(circle at center, rgba(44, 62, 80, 0.2), rgba(0, 0, 0, 0.7)) !important;
z-index: 9998 !important;
animation: backdropFadeIn 0.4s ease-out;
}

#categoryFilterModal.show .modal-backdrop {
backdrop-filter: blur(15px) saturate(1.5);
-webkit-backdrop-filter: blur(15px) saturate(1.5);
}

@keyframes backdropFadeIn {
from {
opacity: 0;
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
}
to {
opacity: 1;
backdrop-filter: blur(15px) saturate(1.5);
-webkit-backdrop-filter: blur(15px) saturate(1.5);
}
}

#categoryFilterModal .modal-content {
border-radius: 30px;
border: none;
box-shadow: 0 30px 60px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
min-height: 70vh;
max-height: 85vh;
overflow: hidden;
position: relative;
}

#categoryFilterModal .modal-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(44, 62, 80, 0.02), rgba(52, 73, 94, 0.01));
pointer-events: none;
z-index: 0;
}

#categoryFilterModal .modal-dialog {
max-width: 85vw;
width: 85vw;
position: relative;
z-index: 1;
}

@media (min-width: 992px) {
#categoryFilterModal .modal-dialog {
max-width: 900px;
width: 900px;
}

#categoryFilterModal .modal-content {
min-height: 60vh;
max-height: 80vh;
}
}

#categoryFilterModal .modal-header {
background: linear-gradient(135deg, #f97316 0%, #ea6c0a 50%, #c2410c 100%);
color: white;
border-radius: 30px 30px 0 0;
padding: 20px 25px;
border-bottom: none;
position: relative;
overflow: hidden;
z-index: 2;
}

#categoryFilterModal .modal-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
pointer-events: none;
}

#categoryFilterModal .modal-header::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#categoryFilterModal .modal-title {
font-weight: 700;
font-size: 1.1rem;
text-shadow: 0 1px 3px rgba(0,0,0,0.2);
position: relative;
z-index: 3;
display: flex;
align-items: center;
gap: 8px;
color: #ffffff;
}

#categoryFilterModal .modal-title i {
background: rgba(255,255,255,0.2);
padding: 6px;
border-radius: 10px;
backdrop-filter: blur(10px);
font-size: 14px;
}

#categoryFilterModal .btn-close {

border-radius: 50%;
opacity: 1;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.3);
transition: all 0.3s ease;
position: relative;
z-index: 3;
font-size: 12px;
}

#categoryFilterModal .btn-close:hover {
background: rgba(0, 0, 0, 0);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
color: white;
}

#categoryFilterModal .btn-close:focus {
box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Category List */
.category-list {
max-height: 65vh;
overflow-y: auto;
padding: 25px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px;
grid-auto-rows: minmax(130px, auto);
position: relative;
z-index: 2;
}

@media (min-width: 992px) {
.category-list {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 20px;
grid-auto-rows: minmax(150px, auto);
padding: 30px;
max-height: 70vh;
}
}

.category-list::-webkit-scrollbar {
width: 6px;
}

.category-list::-webkit-scrollbar-track {
background: rgba(0,0,0,0.05);
border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb {
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover {
background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
}

.category-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 15px 10px 12px;
text-decoration: none;
color: var(--text-color);
border: 1px solid rgba(249, 115, 22, 0.1);
border-radius: 18px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
backdrop-filter: blur(10px);
box-shadow: 
0 4px 15px rgba(0, 0, 0, 0.08),
0 1px 3px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
min-height: 125px;
text-align: center;
overflow: hidden;
}

.category-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), transparent);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 0;
}

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

.category-item:hover {
color: var(--text-color);
transform: translateY(-8px) scale(1.03);
box-shadow: 
0 15px 30px rgba(249, 115, 22, 0.15),
0 5px 15px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
border-color: rgba(249, 115, 22, 0.2);
}

.category-item.active {
background: linear-gradient(145deg, rgba(249, 115, 22, 0.15), rgba(234, 108, 10, 0.1));
border: 2px solid var(--primary-color);
color: var(--primary-color);
box-shadow: 
0 12px 25px rgba(249, 115, 22, 0.25),
0 4px 10px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
transform: translateY(-3px);
}

.category-item.active::before {
opacity: 1;
background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 108, 10, 0.05));
}

.category-item.active .category-icon i {
color: var(--primary-color);
}

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

.category-icon {
width: 42px;
height: 42px;
border-radius: 14px;
background: linear-gradient(145deg, rgba(249, 115, 22, 0.1), rgba(234, 108, 10, 0.05));
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 8px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
flex-shrink: 0;
position: sticky;
z-index: 1;
box-shadow: 
0 3px 8px rgba(249, 115, 22, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.category-icon i {
font-size: 18px;
color: var(--text-light);
transition: var(--transition-fast);
}

.category-item:hover .category-icon {
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
transform: scale(1.15) rotate(5deg);
box-shadow: 
0 8px 20px rgba(249, 115, 22, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.category-info {
flex-grow: 1;
position: relative;
z-index: 1;
}

.category-info h6 {
margin: 0 0 4px 0;
font-weight: 700;
font-size: 13px;
color: inherit;
line-height: 1.3;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
transition: all 0.3s ease;
}

.category-info .product-count {
font-size: 10px;
color: var(--text-light);
margin-top: 2px;
display: block;
padding: 2px 8px;
background: rgba(249, 115, 22, 0.08);
border-radius: 10px;
font-weight: 500;
transition: all 0.3s ease;
}

.category-item:hover .category-info .product-count {
background: rgba(249, 115, 22, 0.15);
color: var(--primary-color);
transform: scale(1.05);
}

.category-arrow {
display: none;
}

/* Responsive for Mobile */
@media (max-width: 767px) {
.category-filter-btn {
margin: 0 8px;
padding: 12px 18px;
font-size: 14px;
border-radius: 12px;
}

#categoryFilterModal .modal-dialog {
margin: 5px;
max-width: calc(100% - 10px);
width: calc(100% - 10px);
min-height: calc(100vh - 10px);
display: flex;
align-items: center;
}

#categoryFilterModal .modal-content {
max-height: calc(100vh - 20px);
min-height: 85vh;
width: 100%;
border-radius: 25px;
}

#categoryFilterModal .modal-header {
padding: 18px 20px;
border-radius: 25px 25px 0 0;
}

#categoryFilterModal .modal-title {
font-size: 1rem;
color: #ffffff;
}

#categoryFilterModal .modal-title i {
padding: 5px;
font-size: 12px;
}

#categoryFilterModal .btn-close {
width: 12px;
height: 12px;
font-size: 11px;
}

.category-list {
grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
padding: 20px 15px;
gap: 10px;
grid-auto-rows: minmax(110px, auto);
}

.category-item {
padding: 12px 8px 10px;
min-height: 110px;
border-radius: 15px;
box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
justify-content: space-between;
}

.category-icon {
width: 36px;
height: 36px;
margin: 0 auto 6px;
border-radius: 12px;
}

.category-icon i {
font-size: 17px;
}

.category-info h6 {
font-size: 12px;
margin-bottom: 3px;
}

.category-info .product-count {
font-size: 9px;
padding: 1px 6px;
}

.category-item:hover {
transform: translateY(-5px) scale(1.02);
}

.category-item:hover .category-icon {
transform: scale(1.1) rotate(3deg);
}

/* Responsive adjustments */
.suggestion-content {
flex-direction: column;
text-align: center;
gap: 15px;
}

.suggestion-text h4 {
font-size: 1.1rem;
}

.suggestion-text p {
font-size: 0.9rem;
}

.suggestion-btn {
padding: 10px 20px;
font-size: 14px;
}

.quick-filters-container {
justify-content: flex-start;
padding-right: 10px;
padding-left: 10px;
}

.product-stats {
margin: 8px 0;
}

.stock-warning,
.sales-count {
font-size: 10px;
}

@media (min-width: 992px) {
.category-item {
padding: 20px 15px 15px;
min-height: 150px;
}

.category-icon {
width: 50px;
height: 50px;
margin-bottom: 12px;
}

.category-icon i {
font-size: 22px;
}

.category-info h6 {
font-size: 14px;
margin-bottom: 6px;
}

.category-info .product-count {
font-size: 11px;
padding: 3px 10px;
}
}
}

/* === Brand Info Section — Zinox lite === */
.brand-info-section {
position: relative;
padding: 3rem 0;
background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, #fff5ee 55%, #fff 100%);
border: 1px solid rgba(249, 115, 22, 0.1);
border-radius: 0 0 2rem 2rem;
overflow: hidden;
box-shadow: 0 10px 28px rgba(11, 15, 20, 0.06);
transition: box-shadow 0.3s ease;
contain: layout paint;
}

[data-theme="dark"] .brand-info-section {
background: linear-gradient(180deg, rgba(249, 115, 22, 0.12) 0%, #0b0f14 100%);
border-color: rgba(249, 115, 22, 0.22);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.brand-info-section::before,
.brand-info-section::after,
.brand-info-section .glass-wave-effect,
.brand-info-section .glass-shimmer,
.brand-info-section .glass-floating-elements {
display: none;
}

.brand-showcase-card {
background: #fff;
border-radius: 20px;
padding: 32px;
box-shadow: 0 12px 28px rgba(11, 15, 20, 0.08);
border: 1px solid rgba(249, 115, 22, 0.12);
position: relative;
z-index: 10;
overflow: hidden;
transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .brand-showcase-card {
background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
border: 1px solid rgba(249, 115, 22, 0.25);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.brand-showcase-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #f97316, #fdba74, #ea6c0a);
z-index: 1;
}

.brand-header {
display: flex;
align-items: center;
gap: 30px;
margin-bottom: 30px;
padding-bottom: 25px;
border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

[data-theme="dark"] .brand-header {
border-bottom-color: rgba(249, 115, 22, 0.25);
}

.brand-logo-container {
flex: 0 0 120px;
width: 120px;
height: 120px;
border-radius: 20px;
background: linear-gradient(145deg, #f8f9fa, #e9ecef);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 
0 10px 25px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
border: 3px solid rgba(255, 255, 255, 0.5);
position: relative;
overflow: hidden;
}

.brand-logo-container::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #f97316, #fdba74, #ea6c0a);
border-radius: 23px;
z-index: -1;
opacity: 0.35;
}

@keyframes brandGlow {
0%, 100% { opacity: 0.6; transform: scale(1); }
50% { opacity: 1; transform: scale(1.02); }
}

.brand-logo {
width: 100%;
height: 100%;
object-fit: contain;
padding: 15px;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-logo-placeholder {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #6c757d, #495057);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.brand-logo-placeholder i {
font-size: 30px;
}

.brand-title-section {
flex: 1;
}

.brand-name {
font-size: 2.8rem;
font-weight: 900;
background: linear-gradient(135deg, 
#22c55e 0%, 
#fbbf24 20%, 
#f59e0b 40%, 
#16a34a 60%, 
#fde047 80%, 
#22c55e 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
letter-spacing: -1px;
}

.brand-subtitle {
font-size: 1.1rem;
color: #64748b;
font-weight: 600;
display: flex;
align-items: center;
background: rgba(34, 197, 94, 0.1);
padding: 8px 16px;
border-radius: 20px;
border: 1px solid rgba(34, 197, 94, 0.2);
width: fit-content;
}

.brand-subtitle i {
color: #22c55e;
}

.brand-description {
margin-bottom: 30px;
}

.description-header {
margin-bottom: 15px;
}

.description-header h3 {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
display: flex;
align-items: center;
gap: 8px;
}

.description-header i {
color: #22c55e;
font-size: 1.3rem;
}

.description-content {
background: rgba(248, 250, 252, 0.8);
padding: 20px;
border-radius: 15px;
border: 1px solid rgba(0, 0, 0, 0.05);
position: relative;
transition: all 0.3s ease;
}

[data-theme="dark"] .description-content {
background: rgba(15, 23, 42, 0.8);
border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .description-content p {
color: #cbd5e1;
}

.description-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(180deg, #22c55e, #16a34a);
border-radius: 2px;
}

.description-content p {
margin: 0;
line-height: 1.8;
color: #4a5568;
font-size: 1rem;
}

.brand-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-top: 25px;
}

.stat-item {
background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
padding: 25px 20px;
border-radius: 18px;
text-align: center;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 
0 4px 15px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

[data-theme="dark"] .stat-item {
background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
border-color: rgba(34, 197, 94, 0.2);
box-shadow: 
0 4px 15px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .stat-label {
color: #94a3b8;
}

.stat-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #22c55e, #fbbf24, #f59e0b);
transform: translateX(-100%);
transition: transform 0.5s ease;
}

.stat-item:hover::before {
transform: translateX(0);
}

.stat-item:hover {
transform: translateY(-5px);
box-shadow: 
0 8px 25px rgba(0, 0, 0, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-value {
font-size: 2rem;
font-weight: 900;
background: linear-gradient(135deg, #22c55e, #16a34a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.stat-value i {
color: #fbbf24;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-label {
font-size: 0.9rem;
color: #64748b;
font-weight: 600;
}

/* ریسپانسیو برای بخش برند */
@media (max-width: 991px) {
.brand-showcase-card {
padding: 30px;
}

.brand-header {
flex-direction: column;
text-align: center;
gap: 20px;
}

.brand-logo-container {
width: 100px;
height: 100px;
}

.brand-name {
font-size: 2.2rem;
}

.brand-stats {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
}
}

@media (max-width: 767px) {
.brand-info-section {
padding: 2rem 0;
}

.brand-showcase-card {
padding: 25px 20px;
border-radius: 20px;
}

.brand-logo-container {
width: 80px;
height: 80px;
}

.brand-name {
font-size: 1.8rem;
}

.brand-subtitle {
font-size: 1rem;
}

.description-content {
padding: 15px;
}

.stat-item {
padding: 20px 15px;
}

.stat-value {
font-size: 1.6rem;
}

.brand-stats {
grid-template-columns: 1fr;
gap: 12px;
}
}

/* === Brand Filter Modal === */
#brandFilterModal {
z-index: 9999 !important;
}

#brandFilterModal .modal-backdrop {
backdrop-filter: blur(15px) saturate(1.5);
-webkit-backdrop-filter: blur(15px) saturate(1.5);
background: radial-gradient(circle at center, rgba(34, 197, 94, 0.2), rgba(0, 0, 0, 0.7)) !important;
z-index: 9998 !important;
animation: backdropFadeIn 0.4s ease-out;
}

#brandFilterModal .modal-content {
border-radius: 30px;
border: none;
box-shadow: 0 30px 60px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
min-height: 70vh;
max-height: 85vh;
overflow: hidden;
position: relative;
transition: all 0.3s ease;
}

[data-theme="dark"] #brandFilterModal .modal-content {
background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.92));
box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] #categoryFilterModal .modal-content {
background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.92));
box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(249, 115, 22, 0.2);
}

#brandFilterModal .modal-header {
background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
color: white;
border-radius: 30px 30px 0 0;
padding: 20px 25px;
border-bottom: none;
position: relative;
overflow: hidden;
z-index: 2;
}

#brandFilterModal .modal-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
pointer-events: none;
}

#brandFilterModal .modal-title {
font-weight: 700;
font-size: 1.1rem;
text-shadow: 0 1px 3px rgba(0,0,0,0.2);
position: relative;
z-index: 3;
display: flex;
align-items: center;
gap: 8px;
color: #ffffff;
}

#brandFilterModal .modal-title i {
background: rgba(255,255,255,0.2);
padding: 6px;
border-radius: 10px;
backdrop-filter: blur(10px);
font-size: 14px;
}

#brandFilterModal .btn-close {
border-radius: 50%;
opacity: 1;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.3);
transition: all 0.3s ease;
position: relative;
z-index: 3;
font-size: 12px;
}

/* Brand List */
.brand-list {
max-height: 65vh;
overflow-y: auto;
padding: 25px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 20px;
grid-auto-rows: minmax(150px, auto);
position: relative;
z-index: 2;
}

@media (max-width: 767px) {
.brand-list {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
padding: 20px 15px;
gap: 15px;
grid-auto-rows: minmax(130px, auto);
}
}

.brand-item,
.category-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 20px 15px 15px;
text-decoration: none;
color: var(--text-color);
border: 1px solid rgba(34, 197, 94, 0.1);
border-radius: 18px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
backdrop-filter: blur(10px);
box-shadow: 
0 4px 15px rgba(0, 0, 0, 0.08),
0 1px 3px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
min-height: 150px;
text-align: center;
overflow: hidden;
}

[data-theme="dark"] .brand-item,
[data-theme="dark"] .category-item {
background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.7));
border-color: rgba(34, 197, 94, 0.2);
color: #cbd5e1;
box-shadow: 
0 4px 15px rgba(0, 0, 0, 0.2),
0 1px 3px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .brand-item:hover,
[data-theme="dark"] .category-item:hover {
background: linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
border-color: rgba(34, 197, 94, 0.4);
color: #e2e8f0;
}

[data-theme="dark"] .brand-item.active,
[data-theme="dark"] .category-item.active {
background: linear-gradient(145deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.2));
border-color: #22c55e;
color: #22c55e;
}

.brand-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), transparent);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 0;
}

.brand-item:hover::before {
opacity: 1;
}

.brand-item:hover {
color: var(--text-color);
transform: translateY(-8px) scale(1.03);
box-shadow: 
0 15px 30px rgba(34, 197, 94, 0.15),
0 5px 15px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
border-color: rgba(34, 197, 94, 0.2);
}

.brand-item.active {
background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
border: 2px solid #22c55e;
color: #22c55e;
box-shadow: 
0 12px 25px rgba(34, 197, 94, 0.25),
0 4px 10px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
transform: translateY(-3px);
}

.brand-item.active::before {
opacity: 1;
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

.brand-icon {
width: 50px;
height: 50px;
border-radius: 14px;
background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 12px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
flex-shrink: 0;
position: relative;
z-index: 1;
box-shadow: 
0 3px 8px rgba(34, 197, 94, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.7);
overflow: hidden;
}

.brand-icon i {
font-size: 22px;
color: var(--text-light);
transition: var(--transition-fast);
}

.brand-logo-small {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 10px;
padding: 6px;
}

.brand-item:hover .brand-icon {
background: linear-gradient(145deg, #22c55e, #16a34a);
transform: scale(1.15) rotate(5deg);
box-shadow: 
0 8px 20px rgba(34, 197, 94, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-item:hover .brand-icon i {
color: white;
transform: scale(1.1);
}

.brand-item:hover .brand-logo-small {
filter: brightness(1.1) contrast(1.1);
}

.brand-info {
flex-grow: 1;
position: relative;
z-index: 1;
}

.brand-info h6 {
margin: 0 0 6px 0;
font-weight: 700;
font-size: 14px;
color: inherit;
line-height: 1.3;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
transition: all 0.3s ease;
}

.brand-info .product-count {
font-size: 11px;
color: var(--text-light);
margin-top: 4px;
display: block;
padding: 3px 10px;
background: rgba(34, 197, 94, 0.08);
border-radius: 10px;
font-weight: 500;
transition: all 0.3s ease;
}

.brand-item:hover .brand-info .product-count {
background: rgba(34, 197, 94, 0.15);
color: #22c55e;
transform: scale(1.05);
}

.brand-arrow {
display: none;
}

@media (max-width: 767px) {
.brand-item {
padding: 15px 10px 12px;
min-height: 130px;
}

.brand-icon {
width: 40px;
height: 40px;
margin-bottom: 8px;
}

.brand-icon i {
font-size: 18px;
}

.brand-info h6 {
font-size: 12px;
margin-bottom: 4px;
}

.brand-info .product-count {
font-size: 10px;
padding: 2px 8px;
}
}

/* Global Modal Blur Effect */
body.modal-blur-active {
overflow: hidden;
}

body.modal-blur-active > *:not(.modal):not(.modal-backdrop) {
filter: blur(3px);
transition: filter 0.3s ease;
}

/* Ensure modal is above everything */
.modal-backdrop.show {
opacity: 0.8;
backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important;
}

/* Mobile bottom nav z-index fix */
.mobile-bottom-nav {
z-index: 999;
}

/* Ensure category modal is highest */
#categoryFilterModal {
z-index: 10000 !important;
}

#categoryFilterModal .modal-backdrop {
z-index: 9999 !important;
}

