/* Premium Shopping Cart Page Styling */

.cart-section {
    padding: 6rem 0 8rem;
    min-height: 80vh;
    background-color: var(--bg-hero, #f4f5f7);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    transition: opacity 0.3s ease;
}

.item-image {
    width: 140px;
    height: 190px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eee;
}

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

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 500;
    font-family: var(--font-heading);
    margin: 0;
}

.item-name a {
    color: var(--text-primary);
}

.item-name a:hover {
    color: var(--text-secondary);
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.remove-btn:hover {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.08);
    transform: rotate(90deg);
}

.item-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.meta-label {
    font-weight: 500;
}

.meta-divider {
    margin: 0 0.5rem;
    opacity: 0.4;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 0.2rem;
    background: var(--white);
}

.qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-primary);
    transition: background 0.2s;
}

.qty-btn:hover {
    background-color: rgba(0,0,0,0.04);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-price {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
}

/* Order Summary */
.summary-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    position: sticky;
    top: 120px;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.row-label {
    color: var(--text-secondary);
}

.row-value {
    font-weight: 500;
    color: var(--text-primary);
}

.summary-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 1.5rem 0;
}

.total-row {
    font-size: 1.4rem;
}

.total-row .row-label {
    color: var(--text-primary);
    font-weight: 500;
}

.total-row .row-value {
    font-family: var(--font-heading);
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08); /* Premium shadow */
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Empty Cart State */
.empty-cart-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.empty-cart-msg p {
    margin: 0;
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .summary-card {
        position: static;
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .cart-item {
        gap: 1rem;
    }
    .item-image {
        width: 100px;
        height: 140px;
    }
    .item-name {
        font-size: 1.1rem;
    }
    .item-meta {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }
    .item-price {
        font-size: 1.1rem;
    }
}
