/*
   products.css
   استایل اختصاصی صفحه محصولات
*/

/* صفحه اصلی */
.products-page {
    padding-top: 0;
}

/* هیرو بخش */
.products-hero {
    background: linear-gradient(135deg, #00A693 0%, #1B2A49 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.1)" d="M50,0 Q100,50 50,100 Q0,50 50,0Z"/></svg>');
    background-size: contain;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #FFD166;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* بخش محصولات تاب */
.tab-products-section {
    padding: 80px 0;
    background: #F9F7F2;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    color: #1B2A49;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    font-size: 36px;
    color: #00A693;
}

.section-description {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* فیلترها */
.filters-container {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 300px;
}

.filter-title {
    font-size: 18px;
    color: #1B2A49;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.color-filter {
    flex: 1;
    min-width: 200px;
}

.color-filter label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.color-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.color-select:hover {
    border-color: #00A693;
}

.reset-filters {
    background: #F0F0F0;
    color: #666;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.reset-filters:hover {
    background: #E0E0E0;
    color: #333;
}

/* گرید محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* کارت محصول */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #00A693;
}

/* عکس محصول */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(27, 42, 73, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card:hover .overlay-text {
    transform: translateY(0);
}

/* برچسب‌ها */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.badge.stock {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.badge.out-of-stock {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.badge.premium {
    background: rgba(241, 196, 15, 0.9);
    color: #1B2A49;
}

/* اطلاعات محصول */
.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    color: #1B2A49;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-name a:hover {
    color: #00A693;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
}

/* رنگ‌ها */
.product-colors {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.color-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.color-info:last-child {
    margin-bottom: 0;
}

.color-info.single-color {
    justify-content: flex-start;
    gap: 10px;
}

.color-label {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-count {
    background: #E8F4F3;
    color: #00A693;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

/* قیمت */
.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px dashed #E0E0E0;
}

.price-label {
    color: #777;
    font-size: 14px;
}

.price-value {
    color: #1B2A49;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.currency {
    font-size: 14px;
    color: #00A693;
    font-weight: 500;
}

/* دکمه‌های اقدام */
.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-cart {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-view {
    background: #1B2A49;
    color: white;
    border: 2px solid #1B2A49;
}

.btn-view:hover {
    background: #2A3E6B;
    border-color: #2A3E6B;
}

.btn-cart {
    background: #00A693;
    color: white;
    border: 2px solid #00A693;
}

.btn-cart:hover {
    background: #009382;
    border-color: #009382;
}

/* بخش سایر محصولات */
.other-products-section {
    padding: 80px 0;
    background: white;
}

.other-product .product-colors {
    background: #FFF3E0;
}

.other-product .color-info .color-label {
    color: #D99058;
}

/* بخش CTA */
.products-cta {
    background: linear-gradient(135deg, #F5EFE6 0%, #E8F4F3 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 28px;
    color: #1B2A49;
    margin-bottom: 15px;
}

.cta-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-description a {
    color: #00A693;
    text-decoration: none;
    font-weight: 500;
}

.cta-description a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #D99058;
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(217, 144, 88, 0.3);
}

.cta-button:hover {
    background: #C87C40;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(217, 144, 88, 0.4);
}

/* نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
    border-right: 4px solid #00A693;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-right-color: #2ECC71;
}

.notification i {
    font-size: 20px;
}

.notification-success i {
    color: #2ECC71;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
   
    .section-title {
        font-size: 28px;
    }
   
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
   
    .filter-group {
        min-width: 100%;
    }
   
    .color-filters {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 60px 0 40px;
    }
   
    .hero-title {
        font-size: 30px;
    }
   
    .hero-subtitle {
        font-size: 16px;
    }
   
    .hero-stats {
        gap: 30px;
    }
   
    .stat-number {
        font-size: 28px;
    }
   
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
   
    .product-actions {
        flex-direction: column;
    }
   
    .tab-products-section,
    .other-products-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
   
    .hero-title {
        font-size: 26px;
    }
   
    .stat {
        flex: 1;
        min-width: 120px;
    }
   
    .product-info {
        padding: 20px;
    }
   
    .product-name {
        font-size: 18px;
    }
   
    .price-value {
        font-size: 20px;
    }
}
