/* =========================================================
   CART PAGE
   Shared by Guitar and Tabs storefronts.
   ========================================================= */

.cart-page {
    min-height: calc(100vh - 80px);
    padding: 72px 0 96px;
    background: #f7f7f5;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.cart-page-header {
    max-width: 760px;
    margin-bottom: 32px;
}

.cart-page-header h1 {
    margin: 0;
    color: #171513;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.1;

    letter-spacing: -0.025em;
}


.cart-page-eyebrow {
    margin: 0 0 14px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.14em;
}


.cart-page-header h1 {
    margin: 0;

    color: #171513;

    font-size: clamp(40px, 5vw, 58px);
    font-weight: 600;
    line-height: 1.04;

    letter-spacing: -0.04em;
}


.cart-page-intro {
    max-width: 560px;

    margin: 18px 0 0;

    color: rgba(23, 21, 19, 0.64);

    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   CART LAYOUT
   ========================================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 24px;

    align-items: start;
}


/* =========================================================
   SHARED CART CARDS
   ========================================================= */

.cart-items-card,
.cart-summary-card,
.cart-empty {
    background: #ffffff;

    border: 1px solid rgba(23, 21, 19, 0.1);
    border-radius: 4px;

    box-shadow: 0 18px 50px rgba(23, 21, 19, 0.05);
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items-card {
    padding: 30px 32px;
}


.cart-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding-bottom: 22px;

    border-bottom: 1px solid rgba(23, 21, 19, 0.1);
}


.cart-section-header h2 {
    margin: 0;

    color: #171513;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}


.cart-item-count {
    color: rgba(23, 21, 19, 0.5);

    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   INDIVIDUAL ITEM
   ========================================================= */

.cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) max-content;
    align-items: start;
    gap: 24px;

    width: 100%;
    padding: 24px 0;

    border-bottom: 1px solid rgba(23, 21, 19, 0.09);
}


.cart-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.cart-item-content {
    min-width: 0;
}


.cart-item-label {
    margin: 8px 0 0;

    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
}


.cart-item-content h3 {
    margin: 0;
    color: #171513;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}


.cart-item-quantity {
    margin: 8px 0 0;

    color: rgba(23, 21, 19, 0.5);

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   ITEM PRICE / REMOVE
   ========================================================= */

.cart-item-side {
    align-self: start;
    justify-self: end;
    min-width: 110px;
    text-align: right;
}


.cart-item-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;

    gap: 6px;

    margin: 0;
}


.cart-item-price span {
    color: rgba(23, 21, 19, 0.45);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.05em;
}


.cart-item-price strong {
    color: #171513;

    font-size: 17px;
    font-weight: 600;
}


.cart-remove {
    display: inline-block;

    margin-top: 9px;

    color: rgba(23, 21, 19, 0.5);

    font-size: 12px;
    line-height: 1;

    text-decoration: underline;
    text-underline-offset: 3px;
}


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


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.cart-summary-card {
    position: sticky;
    top: 110px;

    padding: 30px;
}


.cart-summary-eyebrow {
    margin: 0 0 25px;

    color: #171513;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.12em;
}


.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 22px;

    color: rgba(23, 21, 19, 0.58);

    font-size: 13px;

    border-bottom: 1px solid rgba(23, 21, 19, 0.1);
}


/* =========================================================
   TOTAL
   ========================================================= */

.cart-summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}


.cart-summary-total > div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.cart-summary-total span {
    color: #171513;

    font-size: 15px;
    font-weight: 600;
}


.cart-summary-total small {
    color: rgba(23, 21, 19, 0.45);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.06em;
}


.cart-summary-total strong {
    color: #171513;

    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.cart-checkout-form {
    margin: 0;
}


.cart-checkout-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    background: #111111;

    color: #ffffff;
}


.cart-checkout-button span {
    font-size: 17px;
}


.cart-checkout-note {
    margin: 14px 0 0;

    color: rgba(23, 21, 19, 0.46);

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   CONTINUE SHOPPING
   ========================================================= */

.cart-continue {
    margin-top: 24px;
}


.cart-continue a {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: rgba(23, 21, 19, 0.64);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.cart-continue a:hover {
    color: #171513;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.cart-empty {
    max-width: 720px;

    padding: 52px 48px;
}


.cart-empty-eyebrow {
    margin: 0 0 13px;

    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.12em;
}


.cart-empty h2 {
    margin: 0;

    color: #171513;

    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;

    letter-spacing: -0.025em;
}


.cart-empty > p:not(.cart-empty-eyebrow) {
    max-width: 500px;

    margin: 14px 0 25px;

    color: rgba(23, 21, 19, 0.58);

    font-size: 15px;
    line-height: 1.7;
}


.cart-empty-button {
    display: inline-flex;
    align-items: center;

    gap: 26px;

    background: #111111;

    color: #ffffff;
}

.cart-item-thumbnail {
    width: 76px;
    overflow: hidden;
    background: #f0f0ee;
    border: 1px solid rgba(23, 21, 19, 0.08);
}

.cart-item-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}





.cart-payment-section {
    padding: 24px 0;

    border-top: 1px solid rgba(23, 21, 19, 0.1);
}

.cart-payment-label {
    margin: 0 0 14px;

    color: rgba(23, 21, 19, 0.55);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
}

.cart-payment-option {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px 16px;

    background: #fafaf8;

    border: 1px solid rgba(23, 21, 19, 0.12);
    border-radius: 4px;
}

.cart-payment-option-selected {
    border-color: rgba(23, 21, 19, 0.32);
}

.cart-payment-radio {
    display: flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    border: 1px solid rgba(23, 21, 19, 0.45);
    border-radius: 50%;
}

.cart-payment-radio span {
    width: 8px;
    height: 8px;

    background: #171513;

    border-radius: 50%;
}

.cart-payment-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-payment-details strong {
    color: #171513;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.cart-payment-details span {
    color: rgba(23, 21, 19, 0.5);

    font-size: 11px;
    line-height: 1.35;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }


    .cart-summary-card {
        position: static;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .cart-items-card {
        padding: 24px 20px;
    }


    .cart-item {
        align-items: flex-start;

        gap: 20px;

        padding: 22px 0;
    }


    .cart-summary-card {
        padding: 25px 20px;
    }


    .cart-empty {
        padding: 38px 24px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 440px) {

    .cart-item {
        display: block;
    }


    .cart-item-side {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        margin-top: 18px;

        text-align: left;
    }


    .cart-item-price {
        justify-content: flex-start;
    }


    .cart-remove {
        margin-top: 0;
    }


    .cart-summary-total strong {
        font-size: 23px;
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .cart-page {
        padding: 48px 0 64px;
    }


    .cart-page-header {
        margin-bottom: 32px;
    }


    .cart-page-header h1 {
        font-size: 32px;
    }


    .cart-page-intro {
        font-size: 15px;
    }

}


@media (max-width: 440px) {

    .cart-page {
        padding: 38px 0 52px;
    }


    .cart-page-header h1 {
        font-size: 30px;
    }

}