﻿*{
    font-family:'iran sans';
}
/* Add this to your main CSS file or create basket.css */
.basket-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.basket-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 15px;
    background: var(--black);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .basket-header h1 {
        font-size: 2.0rem;
        margin-bottom: 10px;
        font-weight: 700;
    }

.basket-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Basket Content Layout */
.basket-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .basket-content {
        grid-template-columns: 1fr;
    }
}

/* Basket Items Section */
.basket-items {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.basket-item {
    display: grid;
    grid-template-columns: 120px 1fr auto 150px;
    gap: 25px;
    padding: 25px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s ease;
}

    .basket-item:hover {
        background: #f9f9f9;
        transform: translateY(-2px);
    }

    .basket-item:last-child {
        border-bottom: none;
    }

/* Item Image */
.item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

        .item-image img:hover {
            transform: scale(1.05);
        }

/* Item Details */
.item-details {
    padding: 10px 0;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

    .item-name a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.2s;
    }

        .item-name a:hover {
            color: #3498db;
        }

.item-sku {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.item-price {
    font-size: 1.1rem;
    margin: 10px 0;
}

.sale-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

.regular-price {
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.9rem;
}

.item-stock {
    display: inline-block;
    padding: 4px 12px;
   
    font-size: 0.85rem;
    font-weight: 500;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Quantity Controls */
.item-quantity {
    text-align: center;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    
    overflow: hidden;
    margin-bottom: 15px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .quantity-btn:hover {
        background: #e9ecef;
    }

    .quantity-btn:active {
        transform: scale(0.95);
    }

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
}

    .quantity-input:focus {
        outline: none;
    }

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.2s;
}

    .remove-item:hover {
        background: #ffeaea;
        color: #c0392b;
    }

    .remove-item svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }

/* Item Total */
.item-total {
    text-align: right;
    padding: 10px;
}

.total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Basket Summary */
.basket-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

    .summary-card h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
        color: #2c3e50;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1rem;
}

    .summary-row:last-child {
        border-bottom: none;
    }

    .summary-row.total {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2c3e50;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 2px solid #eee;
    }

/* Action Buttons */
.summary-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-secondary, .btn-primary, .btn-link {
    padding: 15px;
    text-align: center;
    
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

    .btn-secondary:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, ffdc2f 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

.btn-link {
    background: none;
    color: #e74c3c;
    font-size: 1rem;
}

    .btn-link:hover {
        background: #ffeaea;
        color: #c0392b;
    }

/* Empty Basket */
.empty-basket {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 600px;
}

.empty-icon {
    margin-bottom: 30px;
    color: #95a5a6;
}

    .empty-icon svg {
        width: 80px;
        height: 80px;
        stroke-width: 1.5;
    }

.empty-basket h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-basket p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .basket-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .item-image {
        margin: 0 auto;
    }

    .item-quantity, .item-total {
        text-align: center;
    }

    .basket-header h1 {
        font-size: 2rem;
    }

    .basket-container {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.basket-item {
    animation: fadeIn 0.3s ease-out;
}

/* Custom Scrollbar */
.basket-items::-webkit-scrollbar {
    width: 8px;
}

.basket-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.basket-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    .basket-items::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.basket-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.error-message {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}


