/* my_cart.php - Page Panier */
:root {
    --primary-blue: #f57c00;
    --secondary-gray: #f8f9fa;
    --border-color: #e9ecef;
    --text-dark: #333;
    --text-muted: #6c757d;
}

body {
    background-color: #fff;
    color: var(--text-dark);
}

.cart-container {
    padding: 50px 0;
}

/* Table Header */
.cart-header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-img-wrapper {
    background: var(--secondary-gray);
    border-radius: 10px;
    padding: 10px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-details h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-meta span {
    font-size: 0.8rem;
    background: var(--secondary-gray);
    padding: 2px 10px;
    border-radius: 5px;
    margin-right: 5px;
    color: var(--text-muted);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0;
    margin-top: 10px;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #dc3545;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}

/* Quantity Toggle */
.quantity-control {
    display: flex;
    align-items: center;
    background: var(--secondary-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    max-width: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-control button {
    background: #fff;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.quantity-control button:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(245, 124, 0, 0.3);
}

.quantity-control button:active {
    transform: scale(0.95);
}

.quantity-control input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.product-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

/* Coupon Section */
.coupon-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.coupon-input {
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    flex-grow: 1;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.coupon-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(245, 124, 0, 0.15);
}

.apply-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.apply-btn:hover {
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
    transform: translateY(-1px);
}

.action-btns {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: flex-end;
}

.update-btn {
    background: #fff;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 124, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(245, 124, 0, 0.3);
    transform: translateY(-1px);
}

.clear-btn {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.clear-btn:hover {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

/* Order Summary */
.summary-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-row.total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.total-amount {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
}

.shipping-options {
    margin: 20px 0;
}

.shipping-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.shipping-option input {
    margin-right: 10px;
}

.checkout-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px;
    width: 100%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
    text-decoration: none;
}

.checkout-btn:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
    transform: translateY(-2px);
}

.continue-btn {
    background: var(--secondary-gray);
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px;
    width: 100%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.continue-btn:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: var(--primary-blue);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}
