.cart-page {
    padding: 72px 0 110px;
    background: var(--norka-white);
}

.cart-page-heading {
    margin-bottom: 42px;
}

.cart-page-heading h1,
.cart-summary h2,
.cart-empty h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}

.cart-page-heading h1 {
    font-size: clamp(54px, 7vw, 86px);
}

.cart-flash {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid var(--store-border);
    font-size: 13px;
}

.cart-flash.is-success {
    background: #f1f6ef;
}

.cart-flash.is-error {
    background: #fff1ef;
}

.cart-empty {
    padding: 70px 30px;
    text-align: center;
    background: var(--norka-ivory);
    border: 1px solid var(--store-border);
}

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

.cart-empty p {
    color: var(--norka-muted);
    margin: 12px 0 28px;
}

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

.cart-items {
    border-top: 1px solid var(--store-border);
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--store-border);
}

.cart-item-image {
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    background: var(--norka-ivory);
}

.cart-item-image img,
.cart-item-placeholder {
    width: 100%;
    height: 100%;
}

.cart-item-image img {
    object-fit: cover;
}

.cart-item-placeholder {
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 54px;
    color: rgba(37,37,37,.18);
}

.cart-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-item-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 600;
}

.cart-item-variant,
.cart-item-sku {
    margin-top: 7px;
    color: var(--norka-muted);
    font-size: 12px;
}

.cart-item-total {
    white-space: nowrap;
}

.cart-item-bottom {
    margin-top: 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.cart-item-quantity-form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.cart-item-quantity-form label {
    display: grid;
    gap: 6px;
    color: var(--norka-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cart-item-quantity-form input {
    width: 76px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--store-border);
    background: white;
}

.cart-link-button,
.cart-remove-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cart-remove-button {
    color: #9d3f35;
}

.cart-summary {
    position: sticky;
    top: 118px;
    padding: 30px;
    background: var(--norka-ivory);
    border: 1px solid var(--store-border);
}

.cart-summary h2 {
    font-size: 36px;
}

.cart-summary-row {
    margin-top: 28px;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
}

.cart-summary-note {
    margin-top: 18px;
    color: var(--norka-muted);
    font-size: 12px;
    line-height: 1.6;
}

.cart-checkout-button {
    width: 100%;
    margin-top: 24px;
}

.cart-checkout-button:disabled {
    opacity: .55;
}

.cart-continue-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cart-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    max-width: 360px;
    padding: 15px 18px;
    background: var(--norka-graphite);
    color: white;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    font-size: 13px;
}

.cart-toast.is-error {
    background: #8a332c;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .cart-page {
        padding-top: 46px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 14px;
    }

    .cart-item-top,
    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-quantity-form {
        flex-wrap: wrap;
    }
}
