/* shop.css - استایل مخصوص فروشگاه */

.shop-main {
    margin-top: 100px;
    padding: 40px 0;
    min-height: 60vh;
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.shop-header p {
    color: #666;
    font-size: 1rem;
}

.shop-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.shop-filters .filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.shop-filters .filter-btn.active,
.shop-filters .filter-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tag {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #666;
}

.product-price {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.btn-add-to-cart {
    width: 100%;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #e74c3c;
}

.loading, .error, .no-products {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: #666;
}

.error {
    color: #e74c3c;
}

/* نوتیفیکیشن */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-filters {
        gap: 10px;
    }
    
    .shop-filters .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
        height: auto;
    }
}
/* ===== استایل مخصوص صفحه سبد خرید ===== */
.cart-main {
    margin-top: 100px;
    padding: 40px 0;
    min-height: 60vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 50px;
}

.cart-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cart-header p {
    color: #666;
}

.cart-items {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 2;
    min-width: 200px;
}

.cart-item-details h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #2c3e50;
}

.cart-item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cart-item-meta .meta-tag {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #666;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-quantity {
    text-align: center;
    min-width: 150px;
}

.cart-item-quantity label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #666;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.quantity-control button {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.quantity-control button:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.quantity-control input {
    width: 80px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.min-order-note {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
}

.cart-item-total {
    min-width: 120px;
    text-align: center;
}

.item-total-label {
    font-size: 0.8rem;
    color: #666;
}

.item-total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.cart-item-remove button {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.cart-item-remove button:hover {
    background: #fee;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: bold;
}

.summary-row.total span:last-child {
    color: #e74c3c;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 25px;
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 150px;
        margin: 0 auto;
    }
    
    .cart-item-details {
        text-align: center;
    }
    
    .cart-item-meta {
        justify-content: center;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    
    .summary-actions .btn {
        width: 100%;
        text-align: center;
    }
}
/* استایل نمایش تعداد ثابت (غیرقابل تغییر) */
.quantity-display {
    text-align: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 150px;
}

.quantity-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
}

.quantity-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.min-order-info {
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    margin-top: 8px;
}

/* حذف استایل‌های قدیمی quantity-control */
.quantity-control {
    display: none;
}

.cart-item-quantity {
    min-width: 150px;
}
/* استایل لینک عنوان محصول */
.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.3s;
}

.product-title-link:hover {
    color: #e74c3c;
}

.product-title-link h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}
/* استایل قیمت‌های محصول دیجیتال */
.digital-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    text-align: center;
}

.digital-prices span {
    display: block;
    padding: 3px 0;
    border-bottom: 1px dashed #eee;
}

.digital-prices span:last-child {
    border-bottom: none;
}
.checkout-main {
    margin-top: 150px;  /* فاصله از هدر */
    margin-bottom: 50px; /* فاصله از فوتر */
    padding: 20px 0;
}