/* Cart Premium Styling for LaTunik */

:root {
    --cart-bg: #ffffff;
    --cart-border: #eeeeee;
    --cart-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --cart-primary: #222222;
    --cart-accent: #b9a16b;
    --cart-text-muted: #767676;
    --cart-radius: 12px;
}

.shop-checkout {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.page-title {
    font-family: "Mourich Bold", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cart-accent);
    margin: 15px auto 0;
}

/* Cart Layout */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
}

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

.cart-item-card {
    background: var(--cart-bg);
    border-radius: var(--cart-radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    box-shadow: var(--cart-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(185, 161, 107, 0.1);
}

.cart-item-card.removing {
    transform: scale(0.9) translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-item-img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f8f8;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-family: "Mourich Bold", sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--cart-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-name:hover {
    color: var(--cart-accent);
}

.cart-item-meta {
    font-size: 0.9rem;
    color: var(--cart-text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
}

.cart-item-meta span strong {
    color: var(--cart-primary);
    font-weight: 600;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cart-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qty-btn:hover {
    background: var(--cart-accent);
    color: #fff;
}

.qty-input {
    width: 50px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

.cart-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding-left: 1rem;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cart-primary);
}

.cart-item-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cart-accent);
}

.btn-remove {
    color: var(--cart-text-muted);
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

/* Order Summary */
.order-summary {
    background: var(--cart-bg);
    border-radius: var(--cart-radius);
    padding: 2rem;
    box-shadow: var(--cart-shadow);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: "Mourich Bold", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cart-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--cart-text-muted);
}

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

.btn-checkout {
    background: var(--cart-primary);
    color: #fff;
    border: none;
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    background: var(--cart-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(185, 161, 107, 0.3);
    color: #fff;
}

.cart-actions-bottom {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-empty-cart {
    font-size: 0.9rem;
    color: var(--bs-red);
    background: rgba(195, 41, 41, 0.05);
    border: 1px solid rgba(195, 41, 41, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-empty-cart:hover {
    background: var(--bs-red);
    color: #fff;
    border-color: var(--bs-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(195, 41, 41, 0.2);
}

/* Empty State */
.empty-cart-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    display: block;
}

.empty-cart-title {
    font-family: "Mourich Bold", sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-cart-text {
    color: var(--cart-text-muted);
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .cart-item-card {
        grid-template-columns: 80px 1fr;
        padding: 1rem;
    }
    .cart-item-img {
        width: 80px;
        height: 100px;
    }
    .cart-item-pricing {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px dashed var(--cart-border);
    }
    .cart-item-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}
