/* ============================================================
   PRETTY KICKS GALORE
   CART PAGE
============================================================ */


/* ============================================================
   PAGE
============================================================ */

.cart-page {
    min-height: 70vh;
    background: #ffffff;
}


/* ============================================================
   CONTAINER
============================================================ */

.cart-page .container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   CART HEADING
============================================================ */

.cart-heading {
    padding: 90px 0 55px;
    border-bottom: 1px solid #eeeeee;
}


.cart-heading .eyebrow {
    display: block;
    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #777777;
}


.cart-heading h1 {
    margin: 0;

    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;

    letter-spacing: -0.055em;

    color: #111111;
}


.cart-heading p {
    margin: 22px 0 0;

    max-width: 520px;

    font-size: 14px;
    line-height: 1.7;

    color: #777777;
}



/* ============================================================
   CART SECTION
============================================================ */

.cart-section {
    padding: 60px 0 100px;
}


.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        370px;

    gap: 70px;

    align-items: start;
}



/* ============================================================
   CART ITEMS HEADER
============================================================ */

.cart-items-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom: 1px solid #111111;
}


.cart-items-header h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.02em;
}


.clear-cart-button {
    border: 0;
    background: transparent;

    padding: 8px 0;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #777777;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.clear-cart-button:hover {
    color: #111111;
}



/* ============================================================
   CART ITEM
============================================================ */

.cart-item {
    display: grid;

    grid-template-columns:
        140px
        minmax(0, 1fr)
        auto;

    gap: 25px;

    padding: 25px 0;

    border-bottom: 1px solid #eeeeee;
}


.cart-item-image {
    width: 140px;
    height: 160px;

    overflow: hidden;

    background: #f4f4f1;
}


.cart-item-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.cart-item:hover
.cart-item-image img {
    transform: scale(1.04);
}



/* ============================================================
   CART ITEM DETAILS
============================================================ */

.cart-item-details {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


.cart-item-category {
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #888888;
}


.cart-item-name {
    margin: 0;

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -0.025em;

    color: #111111;
}


.cart-item-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 12px;

    font-size: 12px;

    color: #666666;
}


.cart-item-size strong {
    color: #111111;
}


.cart-item-combo-badge {
    display: inline-flex;

    align-items: center;

    padding: 3px 9px;

    background: #111111;
    color: #ffffff;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.08em;
}



/* ============================================================
   CART ITEM CONTROLS
============================================================ */

.cart-item-controls {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 20px;
}


.quantity-control {
    display: inline-flex;

    align-items: center;

    border: 1px solid #dddddd;

    height: 40px;
}


.quantity-control button {
    width: 38px;
    height: 38px;

    border: 0;

    background: #ffffff;

    font-size: 16px;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


.quantity-control button:hover {
    background: #f4f4f4;
}


.quantity-control span {
    min-width: 34px;

    text-align: center;

    font-size: 12px;
    font-weight: 800;
}


.remove-item {
    border: 0;

    background: transparent;

    padding: 5px;

    color: #888888;

    cursor: pointer;
}


.remove-item:hover {
    color: #111111;
}



/* ============================================================
   CART ITEM PRICE
============================================================ */

.cart-item-price {
    min-width: 100px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: space-between;
}


.cart-item-price strong {
    font-size: 16px;
    font-weight: 800;

    color: #111111;
}



/* ============================================================
   EMPTY CART
============================================================ */

.empty-cart {
    padding: 90px 20px;

    text-align: center;

    border: 1px solid #eeeeee;
}


.empty-cart-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f5f3;
}


.empty-cart-icon svg {
    width: 24px;
    height: 24px;
}


.empty-cart h2 {
    margin: 0 0 10px;

    font-size: 24px;
    letter-spacing: -0.03em;
}


.empty-cart p {
    margin: 0 auto 25px;

    max-width: 400px;

    font-size: 13px;
    line-height: 1.7;

    color: #777777;
}



/* ============================================================
   BUTTON
============================================================ */

.primary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 25px;

    background: #111111;
    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.primary-button:hover {
    background: #2a2a2a;

    transform: translateY(-2px);
}



/* ============================================================
   SUMMARY
============================================================ */

.cart-summary {
    position: sticky;
    top: 30px;

    padding: 30px;

    background: #f6f6f3;
}


.cart-summary h2 {
    margin: 0 0 28px;

    font-size: 20px;
    letter-spacing: -0.025em;
}


.summary-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 17px;

    font-size: 13px;

    color: #666666;
}


.summary-row strong {
    color: #111111;
}


.summary-row #delivery {
    max-width: 150px;

    text-align: right;

    font-size: 11px;
    line-height: 1.5;
}


.summary-divider {
    height: 1px;

    margin: 25px 0;

    background: #ddddda;
}


.summary-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.summary-total span {
    font-size: 15px;
    font-weight: 700;
}


.summary-total strong {
    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.03em;
}



/* ============================================================
   CHECKOUT BUTTON
============================================================ */

.checkout-button {
    width: 100%;
    min-height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;

    background: #111111;
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.checkout-button:hover {
    background: #292929;

    transform: translateY(-2px);
}


.checkout-button svg {
    width: 16px;
    height: 16px;
}



/* ============================================================
   SECURE CHECKOUT
============================================================ */

.secure-checkout {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    font-size: 10px;

    color: #777777;
}


.secure-checkout svg {
    width: 14px;
    height: 14px;
}



/* ============================================================
   DELIVERY NOTE
============================================================ */

.delivery-note {
    display: flex;

    gap: 12px;

    margin-top: 25px;
    padding-top: 25px;

    border-top: 1px solid #ddddda;
}


.delivery-note > svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 2px;
}


.delivery-note strong {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
}


.delivery-note p {
    margin: 0;

    font-size: 10px;
    line-height: 1.6;

    color: #777777;
}



/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .cart-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .cart-summary {
        position: static;
    }

}


@media (max-width: 650px) {

    .cart-page .container {
        width: min(
            100% - 30px,
            1200px
        );
    }


    .cart-heading {
        padding: 60px 0 40px;
    }


    .cart-section {
        padding: 40px 0 70px;
    }


    .cart-item {
        grid-template-columns:
            95px
            minmax(0, 1fr);

        gap: 15px;
    }


    .cart-item-image {
        width: 95px;
        height: 115px;
    }


    .cart-item-price {
        grid-column: 2;

        min-width: 0;

        flex-direction: row;

        align-items: center;

        margin-top: -5px;
    }


    .cart-item-name {
        font-size: 16px;
    }


    .cart-item-controls {
        gap: 12px;
    }


    .cart-summary {
        padding: 24px;
    }

}