﻿/* =========================================================
   Cart
========================================================= */

.cart-page {
    padding: 55px 0 90px;
    background: #fff;
}

.cart-header {
    margin-bottom: 38px;
    text-align: center;
}

.cart-kicker {
    color: var(--og-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cart-header h1 {
    margin: 6px 0 8px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 3.7rem);
    font-weight: 600;
}

.cart-header p {
    margin: 0;
    color: var(--og-muted);
    font-size: 15px;
}


/* =========================================================
   Layout
========================================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 45px;
    align-items: start;
}


/* =========================================================
   Items
========================================================= */

.cart-items {
    border-top: 1px solid var(--og-border);
}

.cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    border-bottom: 1px solid var(--og-border);
}

    .cart-items-header h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .cart-items-header > span {
        color: var(--og-muted);
        font-size: 13px;
    }


/* Item */

.cart-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 65px 100px 40px;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--og-border);
}


/* Image */

.cart-item-image {
    display: block;
    width: 105px;
    height: 105px;
    overflow: hidden;
    background: var(--og-background-soft);
    border-radius: 5px;
}

    .cart-item-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* Product info */

.cart-item-info {
    min-width: 0;
}

    .cart-item-info h2 {
        margin: 0 0 6px;
        font-size: 16px;
        font-weight: 600;
    }

        .cart-item-info h2 a {
            color: var(--og-text);
            text-decoration: none;
        }

            .cart-item-info h2 a:hover {
                color: var(--og-green);
            }

.cart-item-option {
    margin: 0;
    color: var(--og-muted);
    font-size: 13px;
}

.cart-item-mobile-meta {
    display: none;
}


/* Quantity / price */

.cart-item-quantity,
.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

    .cart-item-quantity > span,
    .cart-item-price > span {
        color: var(--og-muted);
        font-size: 11px;
    }

    .cart-item-quantity strong,
    .cart-item-price strong {
        color: var(--og-text);
        font-weight: 600;
    }

.cart-item-price {
    text-align: right;
}


/* Remove */

.cart-remove-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: #8b8f8b;
    border: 0;
    border-radius: 50%;
    transition: background-color .15s ease, color .15s ease;
}

    .cart-remove-button:hover {
        background: #f7eeee;
        color: #9b4848;
    }

    .cart-remove-button .material-icons {
        font-size: 21px;
    }


/* =========================================================
   Summary
========================================================= */

.cart-summary {
    position: sticky;
    top: 100px;
    padding: 27px;
    background: var(--og-background-soft);
    border: 1px solid var(--og-border);
    border-radius: 6px;
}

    .cart-summary h2 {
        margin: 0 0 24px;
        font-family: "Playfair Display", serif;
        font-size: 23px;
        font-weight: 600;
    }

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: var(--og-muted);
    font-size: 14px;
}

.cart-free-delivery {
    color: var(--og-green);
    font-weight: 600;
}

.cart-summary-divider {
    margin: 20px 0;
    border-top: 1px solid #d9ddd7;
}

.cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

    .cart-summary-total > span {
        font-size: 17px;
        font-weight: 600;
    }

    .cart-summary-total strong {
        color: var(--og-green-dark);
        font-size: 24px;
        font-weight: 600;
    }

.cart-tax-note {
    margin-top: 3px;
    color: var(--og-muted);
    font-size: 11px;
    text-align: right;
}


/* Checkout */

.cart-checkout-button {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 20px;
    background: var(--og-green-dark);
    color: #fff;
    border: 2px solid var(--og-green-dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background-color .15s ease, color .15s ease;
}

    .cart-checkout-button:hover:not(:disabled) {
        background: #fff;
        color: var(--og-green-dark);
    }

    .cart-checkout-button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .cart-checkout-button .material-icons {
        font-size: 18px;
    }


/* Continue shopping */

.cart-continue-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
    color: var(--og-green-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

    .cart-continue-link:hover {
        color: var(--og-green);
    }

    .cart-continue-link .material-icons {
        font-size: 16px;
    }


/* Security */

.cart-security {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #d9ddd7;
}

    .cart-security > div {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 8px;
        color: var(--og-muted);
        font-size: 12px;
    }

    .cart-security .material-icons {
        color: var(--og-green);
        font-size: 18px;
    }


/* =========================================================
   Reservation
========================================================= */

.cart-reservation {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin-top: 30px;
    padding: 14px 17px;
    background: #f1f6ef;
    border: 1px solid #dbe8d8;
    border-radius: 5px;
    color: var(--og-green-dark);
}

    .cart-reservation > .material-icons {
        font-size: 24px;
    }

    .cart-reservation > div {
        display: flex;
        flex-direction: column;
    }

    .cart-reservation strong {
        font-size: 13px;
    }

.countdown-timer {
    color: var(--og-muted);
    font-size: 12px;
}


/* =========================================================
   Empty cart
========================================================= */

.cart-empty {
    max-width: 580px;
    margin: 20px auto 60px;
    padding: 60px 30px;
    background: var(--og-background-soft);
    border: 1px solid var(--og-border);
    border-radius: 6px;
    text-align: center;
}

.cart-empty-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: #e8efe5;
    border-radius: 50%;
    color: var(--og-green-dark);
}

    .cart-empty-icon .material-icons {
        font-size: 34px;
    }

.cart-empty h2 {
    margin-bottom: 10px;
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.cart-empty p {
    max-width: 390px;
    margin: 0 auto 24px;
    color: var(--og-muted);
    font-size: 14px;
    line-height: 1.6;
}

.cart-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 22px;
    background: var(--og-green-dark);
    color: #fff;
    border: 2px solid var(--og-green-dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

    .cart-empty-button:hover {
        background: #fff;
        color: var(--og-green-dark);
    }

    .cart-empty-button .material-icons {
        font-size: 17px;
    }


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-summary {
        position: static;
    }
}


@media (max-width: 767.98px) {

    .cart-page {
        padding: 35px 0 60px;
    }

    .cart-header {
        margin-bottom: 25px;
    }

    .cart-items-header {
        min-height: 50px;
    }

    .cart-item {
        grid-template-columns: 82px minmax(0, 1fr) auto;
        gap: 13px;
        padding: 16px 0;
    }

    .cart-item-image {
        width: 82px;
        height: 82px;
    }

    .cart-item-info h2 {
        font-size: 14px;
    }

    .cart-item-option {
        font-size: 12px;
    }

    .cart-item-quantity {
        display: none;
    }

    .cart-item-price {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        text-align: left;
    }

        .cart-item-price > span {
            display: none;
        }

    .cart-item-mobile-meta {
        display: block;
        margin-top: 7px;
        color: var(--og-muted);
        font-size: 11px;
    }

    .cart-remove-button {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .cart-summary {
        padding: 22px;
    }

    .cart-reservation {
        margin-top: 22px;
    }
}
