.cart-page {
    background: #f7f8fb;
    color: #111827;
}

.cart-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 48px;
}

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

.cart-head span {
    display: block;
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-head h1 {
    margin: 4px 0 0;
    color: #415014;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
}

.cart-continue,
.cart-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    background: #415014;
    color: #ffffff;
    padding: 0 14px;
    font-weight: 800;
    text-decoration: none;
}

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

.cart-items-panel,
.cart-summary {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.cart-items-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eaecf0;
    padding: 18px 20px;
}

.cart-items-top strong,
.cart-summary h2 {
    color: #415014;
    font-size: 20px;
    font-weight: 800;
}

.cart-items-top span {
    color: #667085;
    font-weight: 700;
}

.cart-items {
    display: grid;
}

.cart-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
}

.cart-item + .cart-item {
    border-top: 1px solid #eaecf0;
}

.cart-item-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #f3f4f6;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.cart-item-title {
    display: block;
    color: #415014;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.cart-item-title:hover,
.cart-item-title:focus {
    color: #b42318;
}

.cart-item-sku {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
}

.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #fee4e2;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    cursor: pointer;
}

.cart-line-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cart-line-attrs span {
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    padding: 6px 10px;
    font-size: 13px;
}

.cart-line-attrs strong {
    color: #111827;
}

.cart-item-bottom {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(110px, auto);
    gap: 18px;
    align-items: end;
    margin-top: 18px;
}

.cart-price del {
    display: block;
    color: #98a2b3;
    font-size: 13px;
}

.cart-price span {
    display: block;
    margin-top: 4px;
    color: #027a48;
    font-size: 12px;
    font-weight: 800;
}

.cart-price strong,
.cart-line-total strong,
.cart-summary-total dd {
    color: #b42318;
    font-weight: 800;
}

.cart-quantity {
    display: inline-grid;
    grid-template-columns: 38px 46px 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    max-width: 130px;
}

.cart-quantity button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: 0;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
}

.cart-quantity span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-right: 1px solid #d0d5dd;
    border-left: 1px solid #d0d5dd;
    font-weight: 800;
}

.cart-line-total {
    text-align: right;
}

.cart-line-total span {
    display: block;
    color: #667085;
    font-size: 13px;
}

.cart-summary {
    position: sticky;
    top: 18px;
    padding: 22px;
}

.cart-summary h2 {
    margin: 0 0 18px;
}

.cart-summary dl {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
}

.cart-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #475467;
}

.cart-summary dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
    text-align: right;
}

.cart-summary-total {
    border-top: 1px solid #eaecf0;
    padding-top: 16px;
    color: #111827;
    font-size: 19px;
    font-weight: 800;
}

.cart-checkout,
.cart-clear {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    background: #415014;
    color: #ffffff;
    text-decoration: none;
}

.cart-clear {
    margin-top: 10px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.cart-checkout.disabled,
.cart-clear:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cart-summary-note {
    margin: 16px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.cart-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 56px 20px;
    text-align: center;
}

.cart-empty i {
    color: #98a2b3;
    font-size: 46px;
}

.cart-empty strong {
    color: #101828;
    font-size: 22px;
    font-weight: 800;
}

.cart-empty p {
    margin: 0;
    color: #667085;
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-shell {
        width: min(100% - 16px, 1180px);
        padding-top: 18px;
    }

    .cart-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
    }

    .cart-head h1 {
        font-size: 25px;
        line-height: 1.15;
    }

    .cart-items-panel,
    .cart-summary {
        border-radius: 12px;
        padding: 14px;
    }

    .cart-continue {
        width: 100%;
        min-height: 40px;
        font-size: 13px;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    .cart-item-image {
        width: 76px;
        height: 76px;
    }

    .cart-item-title-row,
    .cart-item-bottom {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .cart-line-total {
        text-align: left;
    }

    .cart-remove {
        align-self: flex-start;
    }

    .cart-coupon {
        padding: 12px;
    }

    .cart-coupon div {
        grid-template-columns: 1fr;
    }

    .cart-coupon button {
        min-height: 40px;
    }
}

.cart-coupon {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.cart-coupon label {
    color: #415014;
    font-weight: 900;
}

.cart-coupon div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.cart-coupon input {
    min-width: 0;
    height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 12px;
}

.cart-coupon button {
    border: 0;
    border-radius: 8px;
    background: #415014;
    color: #fff;
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
}

.cart-coupon-remove {
    min-height: 36px;
    background: #fff5f5 !important;
    color: #b42318 !important;
}

.cart-coupon p {
    margin: 0;
    color: #415014;
    font-size: 13px;
    font-weight: 800;
}

.cart-coupon p.is-error {
    color: #b42318;
}
