/* =========================================================
   Cart
   ========================================================= */

.cart-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}


/* =========================================================
   Page Header
   ========================================================= */

.cart-page__header {
    margin-bottom: 36px;
}

.cart-page__eyebrow {
    margin: 0 0 8px;
    color: #7a7a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cart-page__title {
    margin: 0;
    color: #0b5488;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.25;
}

.cart-page__description {
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   Cart Layout
   ========================================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}


/* =========================================================
   Cart Items
   ========================================================= */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   Cart Item
   ========================================================= */

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;

    padding: 24px;

    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
}


/* =========================================================
   Product Image
   ========================================================= */

.cart-item__image {
    width: 150px;
}

.cart-item__image img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 220px;

    object-fit: contain;

    border: 1px solid #ececec;
    border-radius: 6px;

    background: #f8f8f8;
}


/* =========================================================
   Product Information
   ========================================================= */

.cart-item__content {
    min-width: 0;
}

.cart-item__category {
    margin: 0 0 6px;

    color: #777;

    font-size: 12px;
    font-weight: 600;
}

.cart-item__title {
    margin: 0 0 12px;

    color: #0b5488;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.cart-item__purchase-type {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 5px 10px;

    color: #555;

    font-size: 12px;
    font-weight: 600;

    background: #f3f5f6;
    border-radius: 999px;
}


/* =========================================================
   Subscription Information
   ========================================================= */

.cart-item__subscription {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;

    margin: 0 0 16px;
    padding: 12px 14px;

    background: #f7f9fa;
    border-radius: 7px;

    color: #555;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   Price
   ========================================================= */

.cart-item__price {
    margin: 0 0 14px;

    color: #333;
    font-size: 14px;
}

.cart-item__price strong {
    color: #111;
    font-size: 17px;
}


/* =========================================================
   Quantity
   ========================================================= */

.cart-item__quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 14px 0;
}

.cart-item__quantity label {
    color: #444;
    font-size: 13px;
    font-weight: 600;
}

.cart-item__quantity input[type="number"] {
    width: 88px;
    height: 42px;

    padding: 0 10px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    background: #fff;

    font: inherit;
}

.cart-item__quantity input[type="number"]:focus {
    outline: none;
    border-color: #0b5488;
    box-shadow: 0 0 0 2px rgba(11, 84, 136, 0.08);
}

.cart-item__quantity button {
    min-height: 42px;

    padding: 0 16px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    background: #fff;

    color: #333;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.cart-item__quantity button:hover {
    background: #f6f6f6;
}


/* =========================================================
   Item Subtotal
   ========================================================= */

.cart-item__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #ececec;

    color: #555;
    font-size: 13px;
}

.cart-item__subtotal strong {
    color: #111;
    font-size: 18px;
}


/* =========================================================
   Remove
   ========================================================= */

.cart-item__remove {
    margin-top: 16px;
}

.cart-item__remove button,
.cart-item__remove a {
    padding: 0;

    border: 0;

    background: transparent;

    color: #777;

    font-size: 12px;
    text-decoration: underline;

    cursor: pointer;
}

.cart-item__remove button:hover,
.cart-item__remove a:hover {
    color: #b42318;
}


/* =========================================================
   Cart Summary
   ========================================================= */

.cart-summary {
    position: sticky;
    top: 100px;

    padding: 26px;

    background: #fff;

    border: 1px solid #e1e1e1;
    border-radius: 12px;
}

.cart-summary__title {
    margin: 0 0 24px;

    color: #0b5488;

    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   Summary Rows
   ========================================================= */

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 10px 0;

    color: #555;
    font-size: 14px;
}

.cart-summary__row strong {
    color: #111;
    font-size: 16px;
}

.cart-summary__row--total {
    margin-top: 12px;
    padding-top: 20px;

    border-top: 1px solid #ddd;

    color: #111;

    font-size: 16px;
    font-weight: 700;
}

.cart-summary__row--total strong {
    color: #0b5488;
    font-size: 24px;
}


/* =========================================================
   Checkout Button
   ========================================================= */

.cart-summary__checkout {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin-top: 24px;
    padding: 12px 18px;

    border: 0;
    border-radius: 7px;

    background: #171717;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

.cart-summary__checkout:hover {
    background: #333;
    color: #fff;
}


/* =========================================================
   Continue Shopping
   ========================================================= */

.cart-summary__continue {
    display: block;

    margin-top: 14px;

    color: #555;

    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.cart-summary__continue:hover {
    color: #0b5488;
    text-decoration: underline;
}


/* =========================================================
   Empty Cart
   ========================================================= */

.cart-empty {
    padding: 64px 24px;

    background: #fff;

    border: 1px solid #e3e3e3;
    border-radius: 12px;

    text-align: center;
}

.cart-empty__title {
    margin: 0 0 10px;

    color: #0b5488;

    font-size: 24px;
}

.cart-empty__description {
    margin: 0 0 24px;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}


@media (max-width: 640px) {

    .cart-page {
        padding: 32px 16px 56px;
    }

    .cart-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;

        padding: 16px;
    }

    .cart-item__image {
        width: 100px;
    }

    .cart-item__image img {
        max-height: 160px;
    }

    .cart-item__title {
        font-size: 18px;
    }

    .cart-summary {
        padding: 20px;
    }
}


@media (max-width: 480px) {

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item__image {
        width: 120px;
    }

    .cart-item__subtotal {
        align-items: flex-end;
    }
}