/* =========================================================
   NND — CART
   ========================================================= */

.cart-page {
    min-height: 80vh;
    padding: 90px 0 120px;
}


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


/* =========================================================
   HEADING
   ========================================================= */

.cart-heading {
    margin-bottom: 70px;
}


.eyebrow {
    display: block;

    margin-bottom: 20px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.cart-heading h1 {
    max-width: 800px;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(48px, 6vw, 82px);

    font-weight: 400;

    line-height: .95;

    letter-spacing: -3px;
}


.cart-heading h1 em {
    display: block;

    font-weight: 400;
}


.cart-heading p {
    max-width: 560px;

    margin: 25px 0 0;

    color: #77736c;

    font-size: 17px;

    line-height: 1.7;
}


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

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    gap: 80px;

    align-items: start;
}


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

.cart-items {
    border-top: 1px solid #ddd6c9;
}


.cart-item {
    display: grid;

    grid-template-columns:
        145px
        minmax(0, 1fr)
        auto;

    gap: 25px;

    align-items: center;

    padding: 25px 0;

    border-bottom: 1px solid #ddd6c9;
}


/* Product visual */

.cart-item-visual {
    width: 145px;
    aspect-ratio: 1;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #f2dfb8,
            #ead8c4
        );

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.cart-item-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.cart-item-symbol {
    font-size: 58px;
}


/* Info */

.cart-item-category {
    display: block;

    margin-bottom: 8px;

    color: #8a857d;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.cart-item-name {
    display: block;

    margin-bottom: 10px;

    color: #111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    text-decoration: none;
}


.cart-item-price {
    color: #6e6a63;

    font-size: 14px;
}


/* Quantity */

.cart-item-controls {
    display: flex;

    align-items: center;

    gap: 15px;
}


.quantity-control {
    display: flex;

    align-items: center;

    border: 1px solid #d8d1c5;

    border-radius: 100px;

    background: #fff;

    overflow: hidden;
}


.quantity-control button {
    width: 36px;
    height: 36px;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 17px;
}


.quantity-control button:hover {
    background: #eee8dc;
}


.quantity-value {
    min-width: 32px;

    text-align: center;

    font-size: 14px;
}


.cart-item-total {
    min-width: 80px;

    text-align: right;

    font-size: 16px;

    font-weight: 600;
}


/* Remove */

.remove-item {
    border: 0;

    background: none;

    color: #999;

    cursor: pointer;

    font-size: 12px;

    text-decoration: underline;

    text-underline-offset: 4px;
}


.remove-item:hover {
    color: #111;
}


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

.cart-summary {
    position: sticky;

    top: 110px;

    padding: 32px;

    border: 1px solid #ddd6c9;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, .45);

    box-shadow:
        0 20px 60px rgba(50, 40, 25, .06);
}


.summary-label {
    display: block;

    margin-bottom: 30px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}


.summary-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 18px;

    color: #6f6b64;

    font-size: 14px;
}


.summary-row strong {
    color: #111;

    font-weight: 500;
}


.delivery-text {
    max-width: 170px;

    text-align: right;

    font-size: 12px;

    line-height: 1.4;
}


.summary-divider {
    height: 1px;

    margin: 25px 0;

    background: #ddd6c9;
}


.summary-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 28px;
}


.summary-total span {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
}


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


/* Checkout */

.checkout-btn {
    width: 100%;

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 22px;

    border: 1px solid #111;

    border-radius: 100px;

    background: #111;

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: .25s ease;
}


.checkout-btn:hover {
    transform: translateY(-2px);

    background: #2b2926;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, .15);
}


.continue-link {
    display: block;

    margin-top: 22px;

    color: #6d6962;

    font-size: 13px;

    text-align: center;

    text-decoration: none;
}


.continue-link:hover {
    color: #111;
}


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

.empty-cart {
    padding: 90px 20px;

    text-align: center;
}


.empty-flower {
    margin-bottom: 25px;

    font-size: 55px;
}


.empty-cart h2 {
    margin: 0 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    font-weight: 400;
}


.empty-cart p {
    margin: 0 0 28px;

    color: #77736c;
}


.continue-shopping {
    display: inline-flex;

    padding: 14px 24px;

    border: 1px solid #111;

    border-radius: 100px;

    color: #111;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .25s ease;
}


.continue-shopping:hover {
    background: #111;

    color: white;
}
/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding-top: 70px;

    background: var(--ink);

    color: var(--cream);

    border-top:
        1px solid
        rgba(255,255,255,0.10);
}


.footer-main {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 50px;

    padding-bottom: 70px;
}


.footer-brand p {
    margin-top: 18px;

    max-width: 230px;

    color:
        rgba(255,255,255,0.52);
}


.footer-column {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.footer-heading {
    margin-bottom: 8px;

    font-size: 0.62rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.14em;

    color:
        rgba(255,255,255,0.42);
}


.footer-column a {
    width: fit-content;

    font-size: 0.82rem;

    color:
        rgba(255,255,255,0.72);

    transition:
        color 200ms ease;
}

.footer-column a:hover {
    color: white;
}


.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 0;

    border-top:
        1px solid
        rgba(255,255,255,0.10);

    font-size: 0.62rem;

    color:
        rgba(255,255,255,0.38);
}


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

@media (max-width: 950px) {

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

        gap: 45px;
    }


    .cart-summary {
        position: static;

        max-width: 600px;

        width: 100%;

        margin: 0 auto;
    }

}


@media (max-width: 650px) {

    .cart-container {
        width: calc(100% - 30px);
    }


    .cart-page {
        padding: 55px 0 80px;
    }


    .cart-heading {
        margin-bottom: 45px;
    }


    .cart-heading h1 {
        font-size: 50px;

        letter-spacing: -2px;
    }


    .cart-item {
        grid-template-columns: 90px 1fr;

        gap: 15px;

        align-items: start;
    }


    .cart-item-visual {
        width: 90px;

        border-radius: 17px;
    }


    .cart-item-symbol {
        font-size: 38px;
    }


    .cart-item-name {
        font-size: 20px;
    }


    .cart-item-controls {
        grid-column: 2;

        flex-wrap: wrap;
    }


    .cart-item-total {
        margin-left: auto;
    }


    .remove-item {
        grid-column: 2;

        justify-self: start;
    }


    .cart-summary {
        padding: 25px;

        border-radius: 22px;
    }

}