﻿.cart-page {
    background: #f5f7fb;
    padding: 2rem 1rem 3rem;
}

.cart-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    margin-bottom: 1.5rem;
}

.cart-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.cart-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.cart-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

    .cart-empty h2 {
        margin: 0 0 0.5rem;
        color: #0f172a;
    }

    .cart-empty p {
        margin: 0 0 1.25rem;
        color: #475569;
    }

.cart-empty-btn {
    min-width: 180px;
}

.cart-layout {
    display: grid;
    gap: 1.5rem;
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    align-items: start;
}

.cart-item-image-wrap {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 0.35rem;
}

.cart-item-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.cart-item-line-total {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.cart-item-meta {
    margin-bottom: 0.85rem;
}

.cart-item-price {
    font-size: 0.95rem;
    color: #64748b;
}

.cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.cart-qty-form,
.cart-remove-form {
    margin: 0;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cart-qty-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.cart-qty-input {
    width: 72px;
    height: 40px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}

.cart-update-btn,
.cart-remove-btn,
.cart-checkout-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-update-btn {
    background: #e2e8f0;
    color: #0f172a;
}

    .cart-update-btn:hover {
        background: #cbd5e1;
    }

.cart-remove-btn {
    background: transparent;
    color: #dc2626;
    padding-left: 8px;
    padding-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: solid 1px #dc2626;
    border-radius: 5px;
}

    .cart-remove-btn:hover {
        color: white;
        background-color: #dc2626;
    }

    .cart-remove-btn i {
        font-size: 1rem;
        line-height: 1;
    }

.cart-summary-card {
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
    padding: 1.25rem;
}

.cart-summary-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.98rem;
}

.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 0;
    padding-bottom: 0;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 1.25rem;
    background: #fff;
    color: #0f172a;
}

    .cart-checkout-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

.cart-continue-link {
    display: inline-block;
    margin-top: 0.9rem;    
    text-decoration: none;
    font-weight: 600;
    width: 100%
}

    .cart-continue-link:hover {
        color: #fff;
    }

@media (min-width: 768px) {
    .cart-page {
        padding: 2.5rem 1.5rem 4rem;
    }

    .cart-title {
        font-size: 2.4rem;
    }

    .cart-item {
        grid-template-columns: 110px 1fr;
        padding: 1.25rem;
    }

    .cart-item-image-wrap {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .cart-summary {
        position: sticky;
        top: 100px;
    }
}
