/* =========================================================
   THE ONLY BAKER
   CART PAGE
========================================================= */

.tob-cart-page {
    --cart-brown: #4b2415;
    --cart-dark: #25140d;
    --cart-cream: #fbf7f1;
    --cart-light: #fffdf9;
    --cart-border: #e8ddd2;
    --cart-muted: #7a695f;
    --cart-green: #617b48;

    background: var(--cart-cream);
    color: var(--cart-dark);
}

.tob-cart-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* BREADCRUMB */

.tob-cart-breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid #eee4da;
}

.tob-cart-breadcrumb {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #88776c;
}

.tob-cart-breadcrumb a {
    color: #5b2b18;
    text-decoration: none;
}


/* MAIN */

.tob-cart-section {
    padding: 45px 0 65px;
}

.tob-cart-heading {
    margin-bottom: 30px;
    text-align: center;
}

.tob-cart-eyebrow,
.tob-empty-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #9a6b4e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.tob-cart-heading h1 {
    margin: 0;
    color: var(--cart-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 500;
    line-height: 1;
}

.tob-cart-heading p {
    margin: 11px 0 0;
    color: var(--cart-muted);
    font-size: 13px;
}


/* LAYOUT */

.tob-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 25px;
    align-items: start;
}


/* PRODUCTS */

.tob-cart-products {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(62, 35, 20, .05);
}

.tob-cart-products-header {
    min-height: 48px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 330px;
    align-items: center;
    background: #f5eee6;
    color: #6c5040;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.tob-cart-products-header > div {
    display: grid;
    grid-template-columns: 90px 130px 90px;
    justify-content: end;
    text-align: center;
}


/* ITEM */

.tob-cart-item {
    min-height: 135px;
    padding: 17px 20px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 90px 130px 90px;
    align-items: center;
    border-bottom: 1px solid #eee5dc;
}

.tob-cart-product {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tob-cart-product-image {
    width: 105px;
    height: 92px;
    flex: 0 0 105px;
    overflow: hidden;
    border-radius: 6px;
    background: #f2e8dc;
}

.tob-cart-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tob-cart-product-info {
    min-width: 0;
}

.tob-cart-product-label {
    display: block;
    margin-bottom: 5px;
    color: #a17b62;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.tob-cart-product-info h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.tob-cart-product-info h3 a {
    color: #342016;
    text-decoration: none;
}

.tob-cart-product-info h3 a:hover {
    color: var(--cart-brown);
}

.tob-cart-remove {
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #ad8c78;
    background: transparent;
    color: #806454;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
}

.tob-cart-price,
.tob-cart-item-total {
    color: #392116;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.tob-cart-item-total {
    color: var(--cart-brown);
}


/* QUANTITY */

.tob-cart-quantity {
    width: 98px;
    height: 36px;
    margin: auto;
    display: grid;
    grid-template-columns: 31px 36px 31px;
    align-items: center;
    border: 1px solid #d9c9bb;
    border-radius: 4px;
    background: #fff;
}

.tob-cart-quantity button {
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #58301d;
    cursor: pointer;
    font-size: 18px;
}

.tob-cart-quantity span {
    text-align: center;
    color: #2e1c13;
    font-size: 12px;
    font-weight: 700;
}


/* BOTTOM ACTIONS */

.tob-cart-bottom-actions {
    min-height: 62px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tob-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cart-brown);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tob-clear-cart {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #bca494;
    background: transparent;
    color: #8a6f60;
    cursor: pointer;
    font-size: 10px;
}


/* SUMMARY */

.tob-order-summary {
    position: sticky;
    top: 115px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(62, 35, 20, .06);
}

.tob-summary-heading {
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee5dd;
}

.tob-summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f4e9de;
    color: var(--cart-brown);
}

.tob-summary-icon svg {
    width: 20px;
}

.tob-summary-heading h2 {
    margin: 0;
    color: var(--cart-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
}

.tob-summary-heading p {
    margin: 3px 0 0;
    color: #9a877a;
    font-size: 9px;
}

.tob-summary-lines {
    padding: 18px 0 13px;
}

.tob-summary-line {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    color: #715f54;
    font-size: 12px;
}

.tob-summary-line strong {
    color: #352117;
}

.tob-summary-line .tob-free-shipping {
    color: var(--cart-green);
}

.tob-shipping-message {
    margin-bottom: 17px;
    padding: 9px 10px;
    background: #faf4ed;
    border-radius: 4px;
    color: #876b59;
    font-size: 9px;
    text-align: center;
}

.tob-shipping-message.unlocked {
    background: #f1f5eb;
    color: #627849;
}

.tob-summary-total {
    padding: 17px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e8ded5;
}

.tob-summary-total span {
    display: block;
    color: #362117;
    font-size: 14px;
    font-weight: 800;
}

.tob-summary-total small {
    display: block;
    margin-top: 2px;
    color: #9c897c;
    font-size: 8px;
}

.tob-summary-total strong {
    color: var(--cart-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.tob-checkout-button {
    min-height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cart-brown);
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.tob-checkout-button:hover {
    background: #35180e;
    transform: translateY(-1px);
}

.tob-checkout-arrow {
    font-size: 18px;
}

.tob-secure-payment {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8b796e;
    font-size: 9px;
}

.tob-secure-payment svg {
    width: 14px;
}


/* EMPTY */

.tob-empty-cart {
    max-width: 680px;
    margin: 15px auto 30px;
    padding: 60px 30px;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(62, 35, 20, .05);
    text-align: center;
}

.tob-empty-cart-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f7eee5;
    color: #73442b;
}

.tob-empty-cart-icon svg {
    width: 48px;
}

.tob-empty-cart h2 {
    margin: 0;
    color: var(--cart-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

.tob-empty-cart p {
    max-width: 430px;
    margin: 14px auto 23px;
    color: #806e63;
    font-size: 12px;
    line-height: 1.7;
}

.tob-empty-shop-button {
    min-height: 44px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: var(--cart-brown);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}


/* BENEFITS */

.tob-cart-benefits {
    background: #efe5da;
    border-top: 1px solid #e1d3c6;
}

.tob-cart-benefits-grid {
    min-height: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tob-cart-benefit {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tob-cart-benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 34px;
    background: #d4c4b6;
}

.tob-cart-benefit strong {
    color: #4c2b1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.tob-cart-benefit span {
    margin-top: 4px;
    color: #89766a;
    font-size: 9px;
}


/* TABLET */

@media (max-width: 950px) {

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

    .tob-order-summary {
        position: static;
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .tob-cart-container {
        width: min(100% - 24px, 1180px);
    }

    .tob-cart-section {
        padding: 32px 0 45px;
    }

    .tob-cart-products-header {
        display: none;
    }

    .tob-cart-item {
        min-height: 0;
        padding: 14px;
        grid-template-columns: 1fr auto;
        gap: 13px;
    }

    .tob-cart-product {
        grid-column: 1 / -1;
    }

    .tob-cart-product-image {
        width: 90px;
        height: 80px;
        flex-basis: 90px;
    }

    .tob-cart-price {
        display: none;
    }

    .tob-cart-quantity {
        margin: 0;
    }

    .tob-cart-item-total {
        font-size: 15px;
        text-align: right;
    }

    .tob-cart-bottom-actions {
        min-height: 60px;
        padding: 0 14px;
    }

    .tob-order-summary {
        padding: 20px;
    }

    .tob-cart-benefits-grid {
        padding: 15px 0;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
    }

    .tob-cart-benefit:nth-child(2)::after {
        display: none;
    }

}


@media (max-width: 430px) {

    .tob-cart-heading h1 {
        font-size: 34px;
    }

    .tob-cart-product-info h3 {
        font-size: 15px;
    }

    .tob-cart-bottom-actions {
        gap: 15px;
    }

    .tob-empty-cart {
        padding: 45px 20px;
    }

    .tob-empty-cart h2 {
        font-size: 26px;
    }

}