/* css/cart.css */

.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #e91e63;
}

.breadcrumb-nav .separator {
    color: #999;
    font-size: 12px;
}

.breadcrumb-nav .current {
    color: #e91e63;
    font-weight: 500;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cart-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h3 {
    margin-bottom: 15px;
    color: #333;
}

.cart-empty a {
    color: #e91e63;
    text-decoration: none;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

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

.item-details {
    flex: 1;
}

.item-name {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

.item-price {
    color: #e91e63;
    font-weight: 500;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity {
    padding: 8px 15px;
    background: white;
    min-width: 40px;
    text-align: center;
}

.item-total {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #d32f2f;
}

.cart-summary {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
}

.summary-row.total {
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.checkout-btn {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    font-size: 1.1rem;
}

.continue-shopping {
    width: 100%;
    text-align: center;
    padding: 12px;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .cart-item {
        padding: 15px;
    }
    
    .item-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-controls {
        order: 2;
    }
    
    .item-total {
        order: 1;
    }
    
    .remove-item {
        order: 3;
    }
}


/* استایل‌های مربوط به modal سبد خرید */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.view-cart-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
}
.btn-secondary {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}
.btn-success{
    background-color: #4caf50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-success:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
}