/* ===== Cart Section ===== */
.cart-section {
    padding: 4rem 1rem;
    background-color: #f5f6fa;
    font-family: 'Inter', sans-serif;
}

.cart-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e3192;
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== Cart Layout ===== */
.cart-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Product List */
.cart-products {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Product Card */
.cart-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

.cart-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    background: #f9f9fb;
    padding: 0.5rem;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2e3192;
}

.cart-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.cart-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e3192;
}

.cart-price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.cart-quantity,
.cart-subtotal {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.cart-form {
    margin-top: 0.75rem;
}

.cart-remove-btn {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Summary Panel */
.cart-summary {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);

    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.cart-summary h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e3192;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: #2e3192;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    background-color: #ffdd00;
    color: #2e3192;
    transform: translateY(-2px);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    font-size: 1.25rem;
    color: #555;
    margin-top: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cart-layout {
        flex-direction: column;
    }

    .cart-summary {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
        order: -1;
        margin-bottom: 1.5rem;
        flex: none;
        width: 100%;
    }

    .cart-products {
        order: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-image {
        margin-bottom: 1rem;
    }

    .cart-info {
        align-items: center;
    }
}

/* ===== Footer always at bottom ===== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.site-footer {
    background-color: #2e3192;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}
