/* =========================================
   CART HERO
========================================= */

.cart-hero {

    min-height: 360px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:

        linear-gradient(
            rgba(30,28,25,0.65),
            rgba(30,28,25,0.65)
        ),

        url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=2200&q=90");

    background-size: cover;

    background-position: center;

    color: var(--white);

}

.cart-hero h1 {

    margin-top: 15px;

    font-family: var(--serif);

    font-size: clamp(55px, 6vw, 82px);

    font-weight: 400;

    line-height: .9;

}

.cart-hero .section-eyebrow {

    color: #d9b47a;

}


/* =========================================
   CART SECTION
========================================= */

.cart-section {

    padding: 80px 0 120px;

    background: var(--cream);

}

.cart-container {

    width: min(1400px, 90%);

    margin: auto;

}


/* =========================================
   CART TOP
========================================= */

.cart-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 45px;

}

.cart-top h2 {

    margin-top: 10px;

    font-family: var(--serif);

    font-size: 45px;

    font-weight: 400;

}

.clear-cart {

    padding-bottom: 7px;

    border-bottom: 1px solid var(--black);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


/* =========================================
   CART LAYOUT
========================================= */

.cart-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 390px;

    gap: 70px;

    align-items: start;

}


/* =========================================
   CART ITEM
========================================= */

.cart-item {

    display: grid;

    grid-template-columns: 180px minmax(0, 1fr) auto;

    gap: 25px;

    padding: 25px 0;

    border-top: 1px solid var(--border);

}

.cart-item:last-child {

    border-bottom: 1px solid var(--border);

}


/* IMAGE */

.cart-item-image {

    display: block;

    height: 220px;

    overflow: hidden;

    background: #ebe7e0;

}

.cart-item-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;

}

.cart-item-image:hover img {

    transform: scale(1.06);

}


/* DETAILS */

.cart-item-details {

    padding-top: 5px;

}

.cart-item-details > span {

    font-size: 7px;

    font-weight: 500;

    letter-spacing: 2px;

    color: var(--gold);

}

.cart-item-details h3 {

    margin: 10px 0;

    font-family: var(--serif);

    font-size: 28px;

    font-weight: 500;

    line-height: 1;

}

.cart-item-details h3 a:hover {

    color: var(--gold);

}

.cart-metal {

    margin-bottom: 7px;

    font-size: 10px;

    color: var(--muted);

}

.cart-sku {

    font-size: 8px;

    color: #aaa;

}


/* =========================================
   ITEM ACTIONS
========================================= */

.cart-item-actions {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 35px;

}

.cart-quantity {

    display: flex;

    align-items: center;

    border: 1px solid var(--border);

}

.cart-quantity button {

    width: 34px;

    height: 35px;

    font-size: 15px;

}

.cart-quantity input {

    width: 35px;

    height: 35px;

    border: 0;

    outline: 0;

    background: transparent;

    text-align: center;

    font-size: 9px;

}

.cart-quantity input::-webkit-inner-spin-button,
.cart-quantity input::-webkit-outer-spin-button {

    appearance: none;

}

.remove-item {

    padding-bottom: 5px;

    border-bottom: 1px solid #999;

    font-size: 8px;

    color: var(--muted);

}


/* =========================================
   ITEM PRICE
========================================= */

.cart-item-price {

    padding-top: 5px;

    text-align: right;

}

.cart-item-price strong {

    display: block;

    font-size: 12px;

    font-weight: 500;

}

.cart-item-price small {

    display: block;

    margin-top: 7px;

    font-size: 8px;

    color: #999;

}


/* =========================================
   UPDATE
========================================= */

.update-cart {

    display: flex;

    justify-content: flex-end;

    margin-top: 20px;

}

.update-cart button {

    padding-bottom: 7px;

    border-bottom: 1px solid var(--black);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


/* =========================================
   SUMMARY
========================================= */

.cart-summary {

    position: sticky;

    top: 30px;

    padding: 35px;

    background: #efebe4;

}

.summary-header {

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);

}

.summary-header h2 {

    margin-top: 10px;

    font-family: var(--serif);

    font-size: 38px;

    font-weight: 400;

}


/* =========================================
   COUPON
========================================= */

.coupon-box {

    padding: 23px 0;

    border-bottom: 1px solid var(--border);

}

.coupon-box label {

    display: block;

    margin-bottom: 12px;

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

}

.coupon-form {

    display: flex;

    border-bottom: 1px solid var(--black);

}

.coupon-form input {

    flex: 1;

    height: 38px;

    border: 0;

    outline: 0;

    background: transparent;

    font-size: 9px;

}

.coupon-form button {

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* =========================================
   SUMMARY LINES
========================================= */

.summary-lines {

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

}

.summary-lines div {

    display: flex;

    justify-content: space-between;

    margin-bottom: 12px;

    font-size: 10px;

}

.summary-lines div:last-child {

    margin-bottom: 0;

}

.summary-lines span {

    color: var(--muted);

}

.summary-lines strong {

    font-weight: 500;

}


/* =========================================
   SHIPPING PROGRESS
========================================= */

.shipping-progress {

    padding: 17px 0;

}

.shipping-progress p {

    margin-bottom: 10px;

    font-size: 8px;

    line-height: 1.6;

    color: var(--muted);

}

.shipping-progress strong {

    color: var(--black);

}

.shipping-progress > div {

    height: 3px;

    background: #d9d3ca;

}

.shipping-progress > div span {

    display: block;

    height: 100%;

    background: var(--gold);

}


/* =========================================
   FREE SHIPPING
========================================= */

.free-shipping-message {

    padding: 17px 0;

    font-size: 8px;

    color: #637451;

}


/* =========================================
   TOTAL
========================================= */

.summary-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 25px 0;

    border-top: 1px solid var(--black);

}

.summary-total span {

    font-family: var(--serif);

    font-size: 23px;

}

.summary-total strong {

    font-size: 16px;

    font-weight: 500;

}


/* =========================================
   CHECKOUT
========================================= */

.checkout-button {

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    background: var(--black);

    color: var(--white);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition: all .3s ease;

}

.checkout-button:hover {

    background: var(--gold);

}

.checkout-button span {

    font-size: 15px;

}


/* =========================================
   SECURITY
========================================= */

.checkout-note {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

}

.checkout-note > span {

    font-family: var(--serif);

    font-size: 22px;

    color: var(--gold);

}

.checkout-note p {

    font-size: 8px;

    line-height: 1.5;

    color: var(--muted);

}


/* =========================================
   EMPTY CART
========================================= */

.empty-cart {

    min-height: 500px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}

.empty-cart-icon {

    margin-bottom: 25px;

    font-family: var(--serif);

    font-size: 65px;

    color: var(--gold);

}

.empty-cart h2 {

    margin: 13px 0;

    font-family: var(--serif);

    font-size: 50px;

    font-weight: 400;

}

.empty-cart p {

    margin-bottom: 30px;

    font-size: 12px;

    color: var(--muted);

}

.cart-shop-button {

    min-width: 200px;

    padding: 17px 25px;

    background: var(--black);

    color: var(--white);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2px;

    text-transform: uppercase;

}


/* =========================================
   TRUST
========================================= */

.cart-trust {

    padding: 70px 0;

    background: #fff;

    border-top: 1px solid var(--border);

}

.cart-trust-container {

    width: min(1200px, 90%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

    text-align: center;

}

.cart-trust-container div {

    padding: 0 30px;

    border-right: 1px solid var(--border);

}

.cart-trust-container div:last-child {

    border-right: 0;

}

.cart-trust-container span {

    display: block;

    margin-bottom: 12px;

    font-family: var(--serif);

    font-size: 30px;

    color: var(--gold);

}

.cart-trust-container strong {

    display: block;

    margin-bottom: 8px;

    font-family: var(--serif);

    font-size: 23px;

    font-weight: 500;

}

.cart-trust-container p {

    font-size: 10px;

    line-height: 1.7;

    color: var(--muted);

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .cart-layout {

        grid-template-columns: 1fr;

    }

    .cart-summary {

        position: static;

        max-width: 550px;

        width: 100%;

        margin-left: auto;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .cart-hero {

        min-height: 300px;

    }

    .cart-section {

        padding: 55px 0 80px;

    }

    .cart-container {

        width: 88%;

    }

    .cart-top {

        align-items: flex-start;

    }

    .cart-top h2 {

        font-size: 38px;

    }

    .cart-item {

        grid-template-columns: 105px 1fr;

        gap: 15px;

    }

    .cart-item-image {

        height: 140px;

    }

    .cart-item-details h3 {

        font-size: 22px;

    }

    .cart-item-price {

        grid-column: 2;

        padding-top: 0;

        text-align: left;

    }

    .cart-item-actions {

        margin-top: 20px;

        flex-wrap: wrap;

    }

    .cart-summary {

        padding: 25px;

    }

    .cart-trust-container {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .cart-trust-container div {

        padding: 0 10px 35px;

        border-right: 0;

        border-bottom: 1px solid var(--border);

    }

    .cart-trust-container div:last-child {

        border-bottom: 0;

        padding-bottom: 0;

    }

}