/* Cart Page Styles - Professional Overhaul */

.page-main {
    padding-top: 120px;
}

.cart-table-wrapper {
    margin-bottom: 60px;
    overflow-x: auto;
    background: var(--color-bg);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 20px 15px;
    border-bottom: 2px solid var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.cart-table td {
    padding: 30px 15px;
    border-bottom: 1px solid var(--color-border);
}

.product-remove .remove-item {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.product-remove .remove-item:hover {
    color: #e11d48;
}

.product-thumbnail img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.product-name a {
    font-weight: 600;
    color: var(--color-primary);
}

.product-price,
.product-subtotal {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.product-subtotal {
    font-weight: 700;
    color: var(--color-primary);
}

/* Quantity Controls */
.quantity-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: fit-content;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--color-primary);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--color-bg-alt);
}

.quantity-ctrl span {
    padding: 8px 15px;
    font-weight: 600;
}

/* Cart Totals */
.cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.cart-totals {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--color-bg);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow-lg);
}

.cart-totals h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th,
.shop-table td {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.shop-table th {
    font-weight: 500;
    color: var(--color-text-muted);
}

.shop-table td {
    text-align: right;
    font-weight: 600;
}

.order-total th,
.order-total td {
    font-size: 1.3rem;
    padding-top: 25px;
    border-top: 2px solid var(--color-primary);
}

.order-total td {
    color: var(--color-accent);
}

.proceed-to-checkout {
    margin-top: 30px;
}

/* Empty Cart View */
.cart-empty-page {
    text-align: center;
    padding: 100px 40px;
    border: 1px dashed var(--color-border);
    border-radius: 4px;
}

.cart-empty-page i {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .cart-totals {
        max-width: 100%;
    }
}