/* استایل‌های صفحه محصولات */

/* بخش هدر صفحه محصولات */
.product-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-hero {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.product-hero-text {
    text-align: center;
}

.product-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* کارت محصولات */
.products-section {
    padding: 3rem 0;
}

.product-card {
    border: none;
    border-radius: var(--card-border-radius);
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(to left, var(--primary), var(--primary-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 2;
}

.product-discount-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(to left, #dc3545, #fd7e14);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 2;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.product-price-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d6efd;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--secondary);
    font-size: 1rem;
    margin-right: 10px;
}

.product-discount-badge {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.product-feature i {
    color: #0d6efd;
    margin-left: 8px;
    font-size: 0.85rem;
}

.product-btn {
    width: 100%;
    border-radius: 8px;
    padding: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* صفحه جزئیات محصول */
.product-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    display: flex;
    gap: 10px;
}

.gallery-thumbnail {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail.active, 
.gallery-thumbnail:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-rating {
    font-size: 1rem;
}

.product-actions button {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-actions button:hover {
    transform: translateY(-3px);
}

.nav-tabs .nav-link {
    color: var(--primary);
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* صفحه چک‌اوت */
.checkout-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.invoice-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.invoice-details {
    font-size: 0.95rem;
}

.coupon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
}

.payment-methods {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
}

.payment-methods h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.secure-payment {
    margin-top: 15px;
}

/* صفحه پرداخت موفق و ناموفق */
.payment-success-title,
.payment-failed-title,
.bank-transfer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.success-icon,
.failed-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.order-details {
    font-size: 0.95rem;
}

.download-section {
    background-color: rgba(13, 110, 253, 0.05);
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .product-hero h1 {
        font-size: 1.7rem;
    }
    
    .product-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        height: 200px;
    }
    
    .product-hero h1 {
        font-size: 1.5rem;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .checkout-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-hero {
        height: 180px;
    }
    
    .product-hero h1 {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-detail-title {
        font-size: 1.3rem;
    }
}