/* Cart Page Styling */
.cart-page {
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cart-page h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background: #f5d9d6;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.cart-table td {
    font-size: 14px;
    color: #555;
}

.cart-table img {
    width: 100px;
    height: auto;
    border-radius: 4px;
}

.cart-table .price,
.cart-table .total {
    color: #e74c3c;
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #ff4500;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.quantity-btn:hover {
    background: #e63900;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.remove-item:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.cart-total {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.checkout-btn {
    background: #ff4500;
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s;
}

.checkout-btn:hover {
    background: #e63900;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cart-table th,
    .cart-table td {
        padding: 12px;
    }
    .cart-table img {
        width: 80px;
    }
}

@media (max-width: 1024px) {
    .cart-table th,
    .cart-table td {
        font-size: 14px;
    }
    .cart-table img {
        width: 70px;
    }
}

@media (max-width: 768px) {
    .cart-table th,
    .cart-table td {
        padding: 10px;
        font-size: 13px;
    }
    .cart-table img {
        width: 60px;
    }
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 60px 15px;
    }
    .cart-page h2 {
        font-size: 24px;
    }
    .cart-table {
        display: block;
        box-shadow: none;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table tbody {
        display: block;
    }
    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .cart-table td {
        display: block;
        text-align: left;
        padding: 8px 10px;
        font-size: 12px;
        border: none;
    }
    .cart-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        display: block;
        margin-bottom: 5px;
    }
    .cart-table td[data-label="Image"] {
        text-align: center;
    }
    .cart-table td[data-label="Image"] img {
        width: 80px;
        margin-right: 0;
    }
    .quantity-controls {
        gap: 8px;
    }
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    .remove-item {
        padding: 6px 10px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
    .cart-total {
        font-size: 18px;
    }
    .checkout-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .cart-table td[data-label="Image"] img {
        width: 60px;
    }
    .cart-table td {
        font-size: 11px;
    }
    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}