/* =========================================
LIVING SPACE — CART
========================================= */

:root {

--cart-grey: #D3D3D3;
--cart-white: #ffffff;
--cart-black: #000000;

}

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

.cart-page {

width: min(1200px, 94%);

margin: 0 auto;

padding:

    35px
    0
    120px;

}

/* =========================================
CART HEADER
========================================= */

.cart-header {

display: flex;

justify-content: space-between;

align-items: center;

gap: 25px;

margin-bottom: 35px;

}

.cart-eyebrow {

display: inline-block;

font-size: 12px;

font-weight: 900;

letter-spacing: 3px;

margin-bottom: 7px;

}

.cart-header h1 {

margin: 0;

font-size: clamp(34px, 5vw, 58px);

font-weight: 900;

letter-spacing: -2px;

}

.cart-header p {

margin: 8px 0 0;

opacity: .7;

font-size: 15px;

}

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

.continue-shopping {

display: flex;

align-items: center;

gap: 9px;

padding: 13px 18px;

background: var(--cart-grey);

color: var(--cart-black);

border: 2px solid var(--cart-black);

border-radius: 999px;

text-decoration: none;

font-weight: 800;

transition: .2s ease;

}

.continue-shopping:hover {

transform: translateY(-2px);

}

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

.cart-layout {

display: grid;

grid-template-columns:

    minmax(0, 1fr)
    350px;

gap: 28px;

align-items: start;

}

/* =========================================
SECTION TITLE
========================================= */

.section-title {

display: flex;

justify-content: space-between;

align-items: center;

margin-bottom: 15px;

}

.section-title h2 {

margin: 0;

font-size: 21px;

font-weight: 900;

}

.section-title span {

font-size: 13px;

font-weight: 700;

opacity: .65;

}

/* =========================================
CART CONTAINER
========================================= */

.cart-container {

display: flex;

flex-direction: column;

gap: 14px;

}

/* =========================================
CART ITEM
========================================= */

.cart-container > * {

background: var(--cart-grey);

border: 2px solid var(--cart-black);

border-radius: 22px;

padding: 18px;

}

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

.cart-summary {

position: sticky;

top: 20px;

background: var(--cart-grey);

border: 2px solid var(--cart-black);

border-radius: 25px;

padding: 23px;

box-sizing: border-box;

}

.summary-top {

display: flex;

justify-content: space-between;

align-items: center;

margin-bottom: 25px;

font-size: 12px;

font-weight: 900;

letter-spacing: 2px;

}

.summary-top i {

font-size: 18px;

}

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

.summary-row {

display: flex;

justify-content: space-between;

align-items: center;

gap: 15px;

margin: 16px 0;

font-size: 14px;

}

.summary-row strong {

text-align: right;

font-weight: 900;

}

/* =========================================
DIVIDER
========================================= */

.summary-divider {

height: 2px;

background: var(--cart-black);

margin: 20px 0;

}

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

.summary-total {

display: flex;

justify-content: space-between;

align-items: center;

margin-bottom: 22px;

}

.summary-total span {

font-size: 17px;

font-weight: 800;

}

.summary-total strong {

font-size: 25px;

font-weight: 950;

}

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

.checkout-btn {

width: 100%;

min-height: 56px;

display: flex;

justify-content: space-between;

align-items: center;

gap: 10px;

padding: 0 19px;

border: 2px solid var(--cart-black);

border-radius: 16px;

background: var(--cart-black);

color: var(--cart-white);

font-size: 15px;

font-weight: 900;

cursor: pointer;

transition: .2s ease;

}

.checkout-btn:hover {

transform: translateY(-2px);

}

.checkout-btn i {

font-size: 17px;

}

/* =========================================
SECURITY
========================================= */

.secure-checkout {

display: flex;

justify-content: center;

align-items: center;

gap: 7px;

margin-top: 16px;

font-size: 12px;

font-weight: 700;

opacity: .65;

}

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

.empty-cart {

text-align: center;

padding: 55px 20px;

background: var(--cart-grey);

border: 2px solid var(--cart-black);

border-radius: 25px;

}

.empty-cart-icon {

width: 70px;

height: 70px;

display: flex;

align-items: center;

justify-content: center;

margin: 0 auto 18px;

border: 2px solid var(--cart-black);

border-radius: 50%;

font-size: 25px;

}

.empty-cart h2 {

margin: 0 0 8px;

font-size: 23px;

}

.empty-cart p {

margin: 0 0 22px;

opacity: .65;

}

.empty-cart a {

display: inline-flex;

padding: 13px 20px;

background: var(--cart-black);

color: var(--cart-white);

border: 2px solid var(--cart-black);

border-radius: 999px;

text-decoration: none;

font-weight: 800;

}

/* =========================================
DARK MODE
========================================= */

body.dark-mode {

--cart-grey: #151515;

--cart-white: #000000;

--cart-black: #ffffff;

}

body.dark-mode .cart-summary,
body.dark-mode .cart-container > *,
body.dark-mode .empty-cart,
body.dark-mode .continue-shopping {

color: #ffffff;

}

body.dark-mode .checkout-btn {

background: #ffffff;

color: #000000;

}

body.dark-mode .empty-cart a {

background: #ffffff;

color: #000000;

}

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

@media (max-width: 800px) {

.cart-page {

    width: 92%;

    padding-top: 25px;

}


.cart-header {

    align-items: flex-start;

    flex-direction: column;

    margin-bottom: 25px;

}


.cart-header h1 {

    font-size: 40px;

}


.continue-shopping {

    width: 100%;

    justify-content: center;

    box-sizing: border-box;

}


.cart-layout {

    grid-template-columns: 1fr;

    gap: 20px;

}


.cart-summary {

    position: static;

}

}

@media (max-width: 480px) {

.cart-page {

    width: 94%;

}


.cart-header h1 {

    font-size: 34px;

}


.cart-summary {

    padding: 18px;

    border-radius: 20px;

}


.cart-container > * {

    padding: 14px;

    border-radius: 18px;

}

}