/* ==========================================================
   ALL PRODUCTS - استایل‌های کامل صفحه محصولات
   ========================================================== */

/* ==========================================================
   1. هیرو صفحه محصولات
   ========================================================== */
.products-hero {
    padding: 50px 20px 60px;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 30% 30%, rgba(127, 99, 233, 0.05) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}

.products-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.products-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 30px;
    background: rgba(127, 99, 233, 0.12);
    color: var(--color-primary-accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ==========================================================
   2. بخش فیلتر (Filter Section)
   ========================================================== */
.filter-section {
    padding: 25px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 30px;
    overflow: hidden;
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.filter-search input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-foreground);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search button {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-search button:hover {
    color: var(--color-primary-accent);
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-categories .filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-categories .filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--text-foreground);
}

.filter-categories .filter-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(127, 99, 233, 0.3);
}

.filter-advanced {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-secondary);
    margin-top: 5px;
}

.filter-advanced select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-foreground);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.filter-advanced select:focus {
    border-color: var(--color-primary);
}

.filter-advanced .price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.filter-advanced .price-range input[type="range"] {
    width: 150px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--border-primary);
    border-radius: 10px;
    outline: none;
}

.filter-advanced .price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-main);
    cursor: pointer;
}

.filter-advanced .price-range .price-label {
    min-width: 80px;
    text-align: center;
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.filter-result {
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
    width: 100%;
}

.filter-result strong {
    color: var(--text-foreground);
}

.btn-reset-filter {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-filter:hover {
    border-color: #ff4757;
    color: #ff4757;
}

/* ==========================================================
   3. گرید محصولات (Products Grid)
   ========================================================== */
.products-grid-section {
    padding: 40px 0 60px;
    background: var(--bg-primary);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* کارت محصول */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(127, 99, 233, 0.1);
}

.product-card.hidden {
    display: none !important;
}

/* نشان (بج) محصول */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 16px;
    border-radius: 30px;
    background: var(--gradient-main);
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(127, 99, 233, 0.4);
}

.product-badge.sale {
    background: #ff4757;
}
.product-badge.new {
    background: var(--color-success);
}
.product-badge.hot {
    background: var(--color-warning);
}

/* تصویر محصول */
.product-image {
    position: relative;
    height: 240px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
}

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

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

/* دکمه‌های اکشن روی محصول */
.product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

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

.product-actions button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.85);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions button:hover {
    background: var(--gradient-main);
    transform: scale(1.1);
}

.product-actions button.favorited {
    color: var(--color-favorite);
    background: rgba(255, 71, 87, 0.2);
}

/* اطلاعات محصول */
.product-info {
    padding: 16px 18px 20px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-foreground);
}

.product-name:hover {
    color: var(--color-primary-accent);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-warning);
    font-size: 13px;
    margin-bottom: 6px;
}

.product-rating span {
    color: var(--text-muted);
    font-size: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-foreground);
}

.product-price .old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price .discount-percent {
    font-size: 0.75rem;
    color: #ff4757;
    font-weight: 700;
    background: rgba(255, 71, 87, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
}

/* دکمه افزودن به سبد خرید */
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    background: transparent;
    color: var(--text-foreground);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: scale(1.02);
}

.add-to-cart-btn.added {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* ==========================================================
   4. بخش تخفیف ویژه (Flash Sale)
   ========================================================== */
.flash-sale {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.flash-sale .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.flash-sale-header h2 {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-foreground);
}

.flash-sale-header h2 i {
    color: #ff4757;
}

.flash-timer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flash-timer .time-unit {
    text-align: center;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    min-width: 60px;
}

.flash-timer .time-unit .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-primary-accent);
}

.flash-timer .time-unit .label {
    font-size: 10px;
    color: var(--text-muted);
}

.flash-timer .separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.flash-swiper {
    padding: 10px 5px 50px;
    overflow: hidden;
    position: relative;
}

.flash-swiper .swiper-slide {
    height: auto;
}

.flash-swiper .swiper-button-next,
.flash-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    color: var(--color-primary);
    transition: var(--transition);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-swiper .swiper-button-next {
    left: 0;
    right: auto;
}

.flash-swiper .swiper-button-prev {
    right: 0;
    left: auto;
}

.flash-swiper .swiper-button-next:hover,
.flash-swiper .swiper-button-prev:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(127, 99, 233, 0.3);
}

.flash-swiper .swiper-button-next::after,
.flash-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.flash-swiper .swiper-pagination {
    position: absolute;
    bottom: 0px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.flash-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.4;
    transition: var(--transition);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.flash-swiper .swiper-pagination-bullet-active {
    background: var(--gradient-main);
    opacity: 1;
    width: 24px;
    border-radius: 10px;
}

/* ==========================================================
   5. بخش برندها (Brands)
   ========================================================== */
.brands-section {
    padding: 50px 0;
    background: var(--bg-primary);
}

.brands-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brands-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-foreground);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.brand-item {
    padding: 20px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    background: var(--bg-card);
    text-align: center;
    transition: var(--transition);
    opacity: 0.5;
    filter: grayscale(1);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.brand-item i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.brand-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================================
   6. صفحه‌بندی (Pagination)
   ========================================================== */
.pagination-section {
    padding: 30px 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.pagination-section .page-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.pagination-section .page-btn:hover {
    border-color: var(--color-primary);
    color: var(--text-foreground);
}

.pagination-section .page-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(127, 99, 233, 0.3);
}

.pagination-section .page-btn.prev-next {
    font-size: 18px;
}

/* ==========================================================
   7. سبد خرید (Cart Modal) - کامل
   ========================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cart-modal {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 35px;
    max-width: 600px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-modal::-webkit-scrollbar {
    width: 6px;
}

.cart-modal::-webkit-scrollbar-track {
    background: var(--bg-muted);
    border-radius: 10px;
}

.cart-modal::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 10px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-primary);
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-foreground);
}

.cart-header h2 i {
    color: var(--color-primary);
    font-size: 28px;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: rotate(90deg);
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-empty i {
    font-size: 72px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.cart-empty p {
    color: var(--text-muted);
    font-size: 18px;
}

.cart-items {
    margin: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: 12px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-foreground);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--color-primary-accent);
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-foreground);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cart-item-remove:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.1);
}

/* ==========================================================
   8. خلاصه سبد خرید (Cart Summary)
   ========================================================== */
.cart-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
}

.summary-row.total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--border-secondary);
    color: var(--text-foreground);
    font-size: 20px;
    font-weight: 800;
}

.summary-row .label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row .label i {
    font-size: 18px;
}

.summary-row .value {
    font-weight: 700;
}

.summary-row .value.highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-row .value.discount-text {
    color: var(--color-success);
}

.summary-row .value.tax-text {
    color: var(--color-warning);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    border: none;
    border-radius: 14px;
    background: var(--gradient-main);
    color: white;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.checkout-btn::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: all 0.6s ease;
}

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

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(127, 99, 233, 0.4);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-btn i {
    font-size: 22px;
}

/* ==========================================================
   9. نوتیفیکیشن (Notification)
   ========================================================== */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 14px;
    background: var(--gradient-main);
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(127, 99, 233, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    max-width: 400px;
}

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

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

/* ==========================================================
   10. فوتر (Footer) - کامل
   ========================================================== */
.footer {
    background: rgba(20, 24, 33, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(127, 99, 233, 0.15);
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 20px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-content i {
    font-size: 2rem;
    color: var(--color-primary);
}

.newsletter-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-foreground);
}

.newsletter-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-foreground);
    font-family: inherit;
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease;
    background: rgba(127, 99, 233, 0.08);
    box-shadow: 0 0 0 4px rgba(127, 99, 233, 0.1);
}

.newsletter-form button {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-main);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 99, 233, 0.3);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(127, 99, 233, 0.3);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 35px 0;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-foreground);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column h4 i {
    color: var(--color-primary);
    font-size: 20px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: all 0.4s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul li a:hover {
    color: var(--color-primary-accent);
    transform: translateX(-4px);
}

.footer-column ul li a i {
    font-size: 14px;
    opacity: 0.5;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--color-primary);
    font-size: 18px;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact-item span {
    display: block;
}

.footer-contact-item .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-payment {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 14px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.footer-payment .payment-icon i {
    font-size: 18px;
    color: var(--color-primary);
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: var(--color-primary-accent);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* ==========================================================
   11. هدر و نویگیشن (Header & Navbar) - کامل
   ========================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 30px;
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar {
    max-width: 1300px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo i {
    font-size: 34px;
    color: var(--color-primary);
}

.nav-logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(127, 99, 233, 0.12);
}

.nav-link.active {
    color: var(--color-primary-accent);
    background: rgba(127, 99, 233, 0.1);
}

.nav-link i {
    font-size: 18px;
}

.nav-link .ri-arrow-down-s-line,
.nav-link .ri-arrow-left-s-line {
    font-size: 14px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .ri-arrow-down-s-line {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-right: 3px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(127, 99, 233, 0.08);
    color: var(--color-primary-accent);
    border-right-color: var(--color-primary);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--color-primary);
    font-size: 17px;
}

/* دکمه سبد خرید در هدر */
.btn-cart {
    position: relative;
    padding: 8px 20px !important;
    border: 1px solid rgba(127, 99, 233, 0.2);
    border-radius: 30px;
    background: rgba(127, 99, 233, 0.12);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-cart:hover {
    background: rgba(127, 99, 233, 0.25) !important;
    border-color: var(--color-primary) !important;
    color: white;
}

.cart-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(127, 99, 233, 0.5);
    margin-right: 5px;
}

/* دکمه علاقه‌مندی‌ها در هدر */
.btn-favorites {
    position: relative;
    padding: 8px 20px !important;
    border: 1px solid rgba(127, 99, 233, 0.2);
    border-radius: 30px;
    background: rgba(127, 99, 233, 0.12);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-favorites:hover {
    background: rgba(127, 99, 233, 0.25) !important;
    border-color: var(--color-primary) !important;
    color: white;
}

.favorites-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(127, 99, 233, 0.5);
    margin-right: 5px;
}

/* ==========================================================
   RESPONSIVE - ALL PRODUCTS PAGE
   ========================================================== */

/* ==========================================================
   💻 دسکتاپ (Desktop) - 1200px به بالا
   ========================================================== */
@media (min-width: 1200px) {
    .products-grid-section {
        padding: 40px 0 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==========================================================
   🖥️ لپ‌تاپ (Laptop) - 992px تا 1199px
   ========================================================== */
@media (max-width: 1199px) and (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .product-image {
        height: 200px;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
   📟 تبلت (Tablet) - 768px تا 991px
   ========================================================== */
@media (max-width: 991px) and (min-width: 768px) {
    .products-hero h1 {
        font-size: 2.2rem;
    }
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .filter-search {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .filter-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .filter-advanced {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-advanced select {
        width: 100%;
    }
    .filter-advanced .price-range {
        justify-content: center;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .product-image {
        height: 190px;
    }
    .flash-sale-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .flash-timer {
        justify-content: center;
    }
    .flash-swiper .swiper-button-next,
    .flash-swiper .swiper-button-prev {
        display: none;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .pagination-section {
        flex-wrap: wrap;
        gap: 6px;
    }
    .pagination-section .page-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* ==========================================================
   📱 موبایل بزرگ (Mobile Large) - 576px تا 767px
   ========================================================== */
@media (max-width: 767px) and (min-width: 576px) {
    .products-hero {
        padding: 30px 16px 40px;
    }
    .products-hero h1 {
        font-size: 2rem;
    }
    .products-hero p {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .filter-section {
        padding: 15px 0;
    }
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }
    .filter-search {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .filter-search input {
        padding: 8px 14px;
        font-size: 13px;
    }
    .filter-categories {
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .filter-categories .filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    .filter-advanced {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
    }
    .filter-advanced select {
        width: 100%;
        padding: 8px 14px;
        font-size: 13px;
    }
    .filter-advanced .price-range {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-advanced .price-range input[type="range"] {
        width: 130px;
    }
    .filter-advanced .price-range .price-label {
        min-width: 70px;
        font-size: 12px;
        padding: 2px 10px;
    }
    .btn-reset-filter {
        font-size: 11px;
        padding: 5px 14px;
    }
    .filter-result {
        font-size: 13px;
        padding: 6px 0;
    }
    .products-grid-section {
        padding: 25px 0 40px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-image {
        height: 180px;
    }
    .product-info {
        padding: 12px 14px 16px;
    }
    .product-info .product-name {
        font-size: 0.9rem;
    }
    .product-info .current {
        font-size: 1rem !important;
    }
    .product-info .old {
        font-size: 0.75rem !important;
    }
    .add-to-cart-btn {
        font-size: 12px;
        padding: 8px 12px;
        min-height: 38px;
    }
    .product-actions {
        opacity: 1;
        transform: none;
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    .product-actions button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .product-badge {
        font-size: 10px;
        padding: 3px 12px;
        top: 10px;
        right: 10px;
    }
    .flash-sale {
        padding: 40px 0;
    }
    .flash-sale .container {
        padding: 0 16px;
    }
    .flash-sale-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .flash-sale-header h2 {
        font-size: 1.6rem;
    }
    .flash-timer .time-unit {
        padding: 5px 12px;
        min-width: 50px;
    }
    .flash-timer .time-unit .number {
        font-size: 1.4rem;
    }
    .flash-timer .separator {
        font-size: 1.2rem;
    }
    .flash-swiper .swiper-button-next,
    .flash-swiper .swiper-button-prev {
        display: none;
    }
    .brands-section {
        padding: 30px 0;
    }
    .brands-section .container {
        padding: 0 16px;
    }
    .brands-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .brand-item {
        padding: 14px 12px;
    }
    .brand-item i {
        font-size: 2rem;
    }
    .brand-item span {
        font-size: 0.7rem;
    }
    .pagination-section {
        padding: 15px 0 30px;
        gap: 5px;
        flex-wrap: wrap;
    }
    .pagination-section .page-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

/* ==========================================================
   📱 موبایل کوچک (Mobile Small) - 575px و پایین‌تر
   ========================================================== */
@media (max-width: 575px) {
    .products-hero {
        padding: 20px 12px 30px;
    }
    .products-hero h1 {
        font-size: 1.6rem;
    }
    .products-hero p {
        font-size: 0.85rem;
        max-width: 100%;
    }
    .hero-badge {
        font-size: 11px;
        padding: 3px 12px;
        margin-bottom: 10px;
    }
    .filter-section {
        padding: 12px 0;
    }
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 12px;
    }
    .filter-search {
        max-width: 100%;
        flex: 0 0 100%;
        border-radius: 25px;
    }
    .filter-search input {
        padding: 6px 12px;
        font-size: 12px;
    }
    .filter-search button {
        padding: 6px 12px;
        font-size: 14px;
    }
    .filter-categories {
        justify-content: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    .filter-categories .filter-btn {
        font-size: 10px;
        padding: 4px 10px;
        border-radius: 20px;
    }
    .filter-advanced {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }
    .filter-advanced select {
        width: 100%;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .filter-advanced .price-range {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 11px;
        gap: 6px;
    }
    .filter-advanced .price-range input[type="range"] {
        width: 90px;
    }
    .filter-advanced .price-range .price-label {
        min-width: 55px;
        font-size: 10px;
        padding: 2px 6px;
    }
    .btn-reset-filter {
        font-size: 9px;
        padding: 3px 10px;
        border-radius: 14px;
    }
    .filter-result {
        font-size: 11px;
        padding: 4px 0;
    }
    .products-grid-section {
        padding: 15px 0 25px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-image {
        height: 140px;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-info {
        padding: 8px 10px 12px;
        gap: 4px;
    }
    .product-info .product-name {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .product-info .product-rating {
        font-size: 9px;
        gap: 1px;
    }
    .product-info .product-rating i {
        font-size: 8px;
    }
    .product-info .product-rating span {
        font-size: 8px;
    }
    .product-info .current {
        font-size: 0.8rem !important;
    }
    .product-info .old {
        font-size: 0.6rem !important;
    }
    .product-info .discount-percent {
        font-size: 0.55rem !important;
        padding: 1px 5px !important;
    }
    .add-to-cart-btn {
        font-size: 9px;
        padding: 5px 6px;
        border-radius: 6px;
        gap: 3px;
        min-height: 28px;
    }
    .add-to-cart-btn i {
        font-size: 10px;
    }
    .product-actions {
        opacity: 1;
        transform: none;
        top: 6px;
        left: 6px;
        gap: 4px;
    }
    .product-actions button {
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-radius: 50%;
    }
    .product-badge {
        font-size: 7px;
        padding: 1px 6px;
        top: 6px;
        right: 6px;
        border-radius: 10px;
    }
    .flash-sale {
        padding: 25px 0;
    }
    .flash-sale .container {
        padding: 0 12px;
    }
    .flash-sale-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 16px;
    }
    .flash-sale-header h2 {
        font-size: 1.2rem;
        gap: 6px;
    }
    .flash-sale-header h2 i {
        font-size: 16px;
    }
    .flash-timer .time-unit {
        padding: 2px 6px;
        min-width: 32px;
        border-radius: 6px;
    }
    .flash-timer .time-unit .number {
        font-size: 0.9rem;
    }
    .flash-timer .time-unit .label {
        font-size: 7px;
    }
    .flash-timer .separator {
        font-size: 0.7rem;
    }
    .flash-swiper .swiper-slide .product-image {
        height: 140px;
    }
    .flash-swiper .swiper-slide .product-info {
        padding: 8px 10px 12px;
    }
    .flash-swiper .swiper-slide .product-name {
        font-size: 0.75rem;
    }
    .flash-swiper .swiper-slide .current {
        font-size: 0.8rem !important;
    }
    .flash-swiper .swiper-slide .old {
        font-size: 0.6rem !important;
    }
    .flash-swiper .swiper-slide .discount-percent {
        font-size: 0.55rem !important;
    }
    .flash-swiper .swiper-button-next,
    .flash-swiper .swiper-button-prev {
        display: none;
    }
    .flash-swiper .swiper-pagination {
        bottom: 0px !important;
    }
    .flash-swiper .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
    }
    .flash-swiper .swiper-pagination-bullet-active {
        width: 16px;
    }
    .brands-section {
        padding: 20px 0;
    }
    .brands-section .container {
        padding: 0 12px;
    }
    .brands-section .section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .brand-item {
        padding: 8px 6px;
        border-radius: 8px;
    }
    .brand-item i {
        font-size: 1.4rem;
    }
    .brand-item span {
        font-size: 0.55rem;
        margin-top: 3px;
    }
    .pagination-section {
        padding: 10px 0 20px;
        gap: 4px;
        flex-wrap: wrap;
    }
    .pagination-section .page-btn {
        padding: 3px 7px;
        font-size: 10px;
        min-width: 24px;
        border-radius: 5px;
    }
    .pagination-section .page-btn.prev-next {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* ==========================================================
   📱 موبایل خیلی کوچک (Extra Small) - 400px و پایین‌تر
   ========================================================== */
@media (max-width: 400px) {
    .products-grid {
        gap: 6px;
    }
    .product-image {
        height: 110px;
    }
    .product-info {
        padding: 5px 6px 8px;
    }
    .product-info .product-name {
        font-size: 0.6rem;
    }
    .product-info .product-rating {
        font-size: 7px;
    }
    .product-info .product-rating i {
        font-size: 7px;
    }
    .product-info .current {
        font-size: 0.7rem !important;
    }
    .product-info .old {
        font-size: 0.5rem !important;
    }
    .add-to-cart-btn {
        font-size: 8px;
        padding: 3px 4px;
        min-height: 22px;
        border-radius: 4px;
    }
    .add-to-cart-btn i {
        font-size: 8px;
    }
    .product-actions button {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    .product-badge {
        font-size: 6px;
        padding: 1px 4px;
        top: 4px;
        right: 4px;
        border-radius: 8px;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .brand-item {
        padding: 6px 4px;
    }
    .brand-item i {
        font-size: 1rem;
    }
    .brand-item span {
        font-size: 0.45rem;
    }
}