.cart-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.cart-hero {
    min-height: 200px;
    display: flex;
    align-items: center;
    padding: 40px 44px;
    border-radius: 12px;
    background: #000000;
    color: #ffffff;
    margin-bottom: 28px;
}

.cart-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.cart-hero p,
.cart-empty p,
.cart-item__top p,
.cart-price span {
    color: #6f7785;
}

.cart-hero p {
    max-width: 540px;
    color: #a0a0a0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.cart-notice,
.cart-empty {
    border: 1px solid #e8e0c0;
    background: #fffdf5;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.cart-empty {
    display: grid;
    gap: 16px;
    min-height: 280px;
    place-items: center;
    text-align: center;
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.cart-empty h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #000000;
}

.cart-empty a,
.cart-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.cart-empty a:hover,
.cart-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cart-empty a:active,
.cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cart-empty a,
.cart-btn--primary {
    background: #fecf0c;
    color: #000000;
    box-shadow: 0 2px 8px rgba(254, 207, 12, 0.3);
}

.cart-empty a:hover,
.cart-btn--primary:hover {
    box-shadow: 0 4px 16px rgba(254, 207, 12, 0.4);
}

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

.cart-items,
.cart-summary,
.cart-item {
    display: grid;
    gap: 18px;
}

.cart-item,
.cart-summary {
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

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

.cart-item__image {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #f5f5f5;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.cart-item__image:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__content {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.cart-item__top,
.cart-item__bottom,
.cart-summary__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cart-item h2 {
    margin: 8px 0 4px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.cart-item h2 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cart-item h2 a:hover {
    color: #333333;
}

.cart-item__type {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #555555;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cart-remove:hover {
    background: #fff0f0;
    color: #991b1b;
}

.cart-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-attrs span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 0.8rem;
    color: #444444;
}

.cart-qty {
    display: inline-grid;
    grid-template-columns: 40px minmax(64px, 88px) 40px;
    min-height: 44px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-qty:focus-within {
    border-color: #fecf0c;
    box-shadow: 0 0 0 3px rgba(254, 207, 12, 0.12);
}

.cart-qty button {
    border: 0;
    background: #f7f7f7;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #333333;
}

.cart-qty button:hover {
    background: #ececec;
}

.cart-qty button:active {
    background: #e0e0e0;
}

.cart-qty input {
    width: 100%;
    border: 0;
    outline: 0;
    text-align: center;
    background: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    color: #000000;
}

.cart-price {
    text-align: right;
}

.cart-price strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000;
}

.cart-price em {
    display: block;
    color: #999999;
    font-style: normal;
    font-weight: 700;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.cart-price span {
    font-size: 0.85rem;
    color: #888888;
}

.cart-summary {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.cart-summary h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
}

.cart-summary__row {
    padding: 14px 0;
    border-bottom: 1px solid #ededed;
}

.cart-summary__row--total {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-summary__row--discount {
    color: #047857;
    font-weight: 800;
}

.cart-summary__row--total strong {
    font-size: 1.35rem;
    font-weight: 900;
    color: #000000;
}

.cart-summary__actions {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.cart-coupon {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #ededed;
}

.cart-coupon label {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.cart-coupon > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cart-coupon input {
    min-width: 0;
    min-height: 42px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-coupon button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 14px;
}

.cart-coupon__remove {
    width: fit-content;
    min-height: auto !important;
    background: transparent !important;
    color: #b91c1c !important;
    padding: 0 !important;
}

#cartCouponStatus {
    min-height: 18px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

#cartCouponStatus.success {
    color: #047857;
}

#cartCouponStatus.error {
    color: #b91c1c;
}

.cart-btn--whatsapp {
    background: #1fa855;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 168, 85, 0.25);
}

.cart-btn--whatsapp:hover {
    box-shadow: 0 4px 16px rgba(31, 168, 85, 0.35);
    background: #1a9449;
}

.cart-btn--ghost {
    background: #f5f5f5;
    color: #000000;
}

.cart-btn--ghost:hover {
    background: #ececec;
}

.cart-btn--muted {
    background: transparent;
    color: #b91c1c;
    border: 1.5px solid #f0d0d0;
}

.cart-btn--muted:hover {
    background: #fff8f8;
    border-color: #e0b0b0;
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .cart-page {
        width: min(100% - 20px, 1180px);
        padding-top: 22px;
    }

    .cart-hero {
        padding: 28px 22px;
        min-height: auto;
    }

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

    .cart-item__top,
    .cart-item__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-price {
        text-align: left;
    }

    .cart-summary {
        padding: 20px;
    }
}
