/* =========================================
   UZAYO CART PAGE
========================================= */

.cart-page {
    min-height: 75vh;
    padding: 90px 20px 100px;
    background: #ffffff;
}

.cart-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.cart-header {
    margin-bottom: 55px;
}

.cart-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #b89b5e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cart-header h1 {
    margin: 0 0 15px;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -1px;
    color: #111111;
}

.cart-header p {
    margin: 0;
    color: #777777;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================
   CART LAYOUT
========================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 55px;
    align-items: start;
}


/* =========================================
   CART ITEMS
========================================= */

.cart-items {
    width: 100%;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
}

.cart-item:first-child {
    border-top: 1px solid #e8e8e8;
}


/* =========================================
   PRODUCT
========================================= */

.cart-product {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.cart-product img {
    display: block;
    width: 105px;
    height: 125px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f5f5;
}

.cart-product-details {
    min-width: 0;
}

.cart-product-label {
    display: block;
    margin-bottom: 7px;
    color: #b89b5e;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.cart-product-details h2 {
    margin: 0 0 8px;
    color: #111111;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-product-details p {
    margin: 0;
    color: #666666;
    font-size: 0.85rem;
}


/* =========================================
   SIZE + QUANTITY FORM
========================================= */

.cart-quantity-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}


/* =========================================
   FORM LABELS
========================================= */

.cart-quantity-form label {
    display: block;
    margin-bottom: 7px;
    color: #888888;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* =========================================
   SIZE CONTROL
========================================= */

.cart-size-control,
.cart-quantity-control {
    display: flex;
    flex-direction: column;
}


/* =========================================
   SIZE SELECT
========================================= */

.cart-size-select {
    width: 145px;
    height: 42px;
    padding: 0 38px 0 14px;

    border: 1px solid #dddddd;
    border-radius: 10px;

    background-color: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;

    cursor: pointer;
    outline: none;

    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #999999 50%),
        linear-gradient(135deg, #999999 50%, transparent 50%);

    background-position:
        calc(100% - 17px) 18px,
        calc(100% - 12px) 18px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cart-size-select:hover {
    border-color: #b89b5e;
}

.cart-size-select:focus {
    border-color: #b89b5e;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.12);
}


/* =========================================
   QUANTITY
========================================= */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 7px;
}

.quantity-control input {
    width: 52px;
    height: 42px;

    box-sizing: border-box;

    border: 1px solid #dddddd;
    border-radius: 10px;

    background: #ffffff;
    color: #111111;

    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.quantity-control input:focus {
    border-color: #b89b5e;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.12);
}


/* =========================================
   UPDATE BUTTON
========================================= */

.cart-update-button {
    height: 42px;
    padding: 0 16px;

    border: 1px solid #111111;
    border-radius: 10px;

    background: #111111;
    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 1.2px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.cart-update-button:hover {
    background: #b89b5e;
    border-color: #b89b5e;
    transform: translateY(-1px);
}


/* =========================================
   ITEM PRICE
========================================= */

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 80px;
}

.cart-item-price strong {
    color: #111111;
    font-size: 1rem;
}

.remove-item {
    color: #999999;
    font-size: 0.68rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.remove-item:hover {
    color: #b89b5e;
}


/* =========================================
   PRODUCT SIZE LABEL
========================================= */

.cart-product-size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
}

.cart-product-size span {
    color: #999999;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.cart-product-size strong {
    color: #222222;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* =========================================
   ORDER SUMMARY
========================================= */

.cart-summary {
    position: sticky;
    top: 30px;

    padding: 30px;

    background: #f7f6f3;
    border-radius: 22px;

    box-sizing: border-box;
}

.summary-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #b89b5e;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.cart-summary h2 {
    margin: 0 0 28px;
    color: #111111;
    font-family: var(--font-heading);
    font-size: 1.7rem;
}


/* =========================================
   SUMMARY ROWS
========================================= */

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;

    color: #666666;
    font-size: 0.8rem;
    line-height: 1.5;
}

.summary-row strong {
    color: #111111;
    font-weight: 600;
}

.summary-row > span:last-child {
    text-align: right;
}


/* =========================================
   TRIO DISCOUNT
========================================= */

.summary-row strong {
    white-space: nowrap;
}


/* =========================================
   DIVIDER
========================================= */

.summary-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    background: #dddddd;
}


/* =========================================
   TOTAL
========================================= */

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.summary-total span {
    color: #111111;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-total strong {
    color: #111111;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}


/* =========================================
   CHECKOUT BUTTON
========================================= */

.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    margin-top: 28px;
    padding: 16px 22px;

    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    text-decoration: none;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;

    transition: 0.3s ease;
}

.checkout-button span {
    font-size: 1rem;
    transition: 0.3s ease;
}

.checkout-button:hover {
    background: #b89b5e;
    transform: translateY(-2px);
}

.checkout-button:hover span {
    transform: translateX(5px);
}


/* =========================================
   CONTINUE SHOPPING
========================================= */

.continue-shopping {
    display: block;
    margin-top: 18px;

    color: #777777;
    text-align: center;

    font-size: 0.72rem;
    text-decoration: none;

    transition: 0.25s ease;
}

.continue-shopping:hover {
    color: #111111;
}


/* =========================================
   EMPTY CART
========================================= */

.empty-cart {
    padding: 90px 25px;

    text-align: center;

    border: 1px solid #eeeeee;
    border-radius: 22px;

    background: #fafafa;
}

.empty-cart-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    opacity: 0.65;
}

.empty-cart h2 {
    margin: 0 0 10px;

    color: #111111;

    font-family: var(--font-heading);
    font-size: 2rem;
}

.empty-cart p {
    margin: 0 0 28px;

    color: #777777;
    font-size: 0.9rem;
}

.shop-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 24px;

    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    text-decoration: none;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;

    transition: 0.3s ease;
}

.shop-now-button span {
    transition: 0.3s ease;
}

.shop-now-button:hover {
    background: #b89b5e;
    transform: translateY(-2px);
}

.shop-now-button:hover span {
    transform: translateX(5px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .cart-quantity-form {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-content: flex-start;
        align-items: flex-end;
    }

    .cart-item-price {
        grid-column: 2;
        grid-row: 1;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .cart-page {
        padding: 60px 15px 75px;
    }

    .cart-header {
        margin-bottom: 40px;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        padding: 22px 0;
    }

    .cart-product {
        gap: 16px;
    }

    .cart-product img {
        width: 85px;
        height: 105px;
    }

    .cart-product-details h2 {
        font-size: 1rem;
    }

    .cart-quantity-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 12px;
        width: 100%;
    }

    .cart-size-select {
        width: 100%;
    }

    .cart-quantity-control {
        width: 100%;
    }

    .quantity-control {
        width: 100%;
    }

    .quantity-control input {
        width: 100%;
    }

    .cart-update-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cart-item-price {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .cart-summary {
        padding: 25px 20px;
        border-radius: 18px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .cart-header h1 {
        font-size: 2.6rem;
    }

    .cart-product img {
        width: 75px;
        height: 95px;
    }

    .cart-quantity-form {
        grid-template-columns: 1fr;
    }

    .cart-size-select {
        width: 100%;
    }

    .quantity-control input {
        width: 60px;
    }

}