/* ── Cart Page Styles ── */

/* ── WooCommerce Default Overrides ── */
.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    margin: 0;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    max-width: var(--container, 1240px);
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-cart .woocommerce-message {
    background: var(--sage-light, rgba(0, 168, 107, 0.08));
    border: 1px solid var(--sage, rgba(0, 168, 107, 0.25));
    color: var(--sage-dark, var(--brand-accent));
}

.woocommerce-cart .woocommerce-info {
    background: rgba(0, 114, 255, 0.08);
    border: 1px solid rgba(0, 114, 255, 0.2);
    color: var(--brand-sky);
}

.woocommerce-cart .woocommerce-error {
    background: var(--terracotta-light, rgba(255, 61, 129, 0.08));
    border: 1px solid var(--terracotta, rgba(255, 61, 129, 0.25));
    color: var(--terracotta);
}

.woocommerce-cart .woocommerce-message::before,
.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .woocommerce-error::before {
    display: none;
}

.woocommerce-cart table.shop_table {
    display: none;
}

.woocommerce-cart .cart-collaterals {
    display: none;
}

.cart_totals {
    display: none;
}

.woocommerce-cart {
    background: #ffffff;
    min-height: 100vh;
}

.woocommerce-page .woocommerce {
    margin: 0;
}

/* Legacy page title (kept hidden — replaced by .cart-hero) */
.cart-page-title {
    display: none;
}

/* ============ PAGE HERO ============ */
/* Break out of the parent .container so the hero spans the full viewport. */
.woocommerce-cart .cart-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cart-hero {
    position: relative;
    background: var(--cream, #FAF6F1);
    border-bottom: 1px solid var(--brand-border-light);
    padding: 48px 0 52px;
    overflow: hidden;
}

.cart-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cart-hero-text {
    max-width: 660px;
}

.cart-eyebrow {
    font-family: var(--font-dm, var(--font-sans));
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta, var(--brand-accent-warm));
    margin-bottom: 12px;
}

.cart-hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    margin: 0;
}

.cart-accent {
    color: var(--terracotta, var(--brand-accent-warm));
}

.cart-hero-sub {
    font-size: 16px;
    color: var(--brand-text-muted);
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 540px;
}

.cart-hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border-light);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    box-shadow: var(--shadow-sm);
}

.chs-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--terracotta-light, #F4E0DA);
    color: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chs-icon svg {
    width: 26px;
    height: 26px;
}

.chs-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.chs-text strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-dark);
}

.chs-text span {
    font-size: 13px;
    color: var(--brand-text-muted);
    margin-top: 2px;
}

/* ============ CART LAYOUT ============ */
.cart-section {
    padding: 56px 0 100px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

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

/* Desktop column labels */
.cart-head {
    display: grid;
    grid-template-columns: 1fr 160px 130px;
    gap: 16px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--brand-border-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text-muted);
}

.cart-head .ch-qty {
    text-align: center;
}

.cart-head .ch-total {
    text-align: right;
}

/* Items card */
.cart-items-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* ============ CART ITEM ============ */
.cart-item {
    display: grid;
    grid-template-columns: 1fr 160px 130px;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--brand-border-light);
    transition: opacity var(--transition-fast);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item.removing {
    opacity: 0.3;
    pointer-events: none;
}

.ci-product {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.ci-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--brand-bg-secondary);
    flex-shrink: 0;
}

.ci-img a,
.item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.ci-info {
    min-width: 0;
}

.ci-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text-muted);
    font-weight: 600;
}

.ci-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-dark);
    line-height: 1.35;
    margin: 4px 0 8px;
}

.ci-name a,
.item-name a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ci-name a:hover,
.item-name a:hover {
    color: var(--terracotta, var(--brand-accent-warm));
}

.ci-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--brand-text-muted);
}

.ci-meta p,
.item-variant p {
    margin: 0;
}

.item-variant .variation,
.item-variant .wc-item-meta {
    display: inline-block;
}

.item-variant .wc-item-meta {
    margin: 0;
    padding: 0;
    list-style: none;
}

.backorder_notification {
    font-size: 11px;
    color: var(--gold, var(--brand-highlight));
    margin: 6px 0 0;
    padding: 3px 8px;
    background: var(--gold-light, rgba(255, 184, 0, 0.12));
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 600;
}

.ci-remove.remove-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--brand-text-muted);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.ci-remove svg {
    width: 14px;
    height: 14px;
}

.ci-remove.remove-btn:hover {
    color: var(--terracotta);
}

/* Quantity cell */
.ci-qty-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ci-qty-label {
    display: none;
}

/* ============ PILL QUANTITY CONTROL ============ */

.quantity-control {
    display: inline-flex;
}

.quantity-control .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--brand-card);
}

.quantity-control .qty-wrapper {
    display: inline-flex;
    align-items: center;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-charcoal, var(--brand-dark));
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    padding: 0;
    font-family: var(--font-sans);
}

.qty-btn:hover {
    background: var(--cream, var(--brand-bg-secondary));
    color: var(--terracotta);
}

.qty-btn:active {
    transform: scale(0.95);
}

/* The quantity input inside the pill */
.quantity-control .quantity input[type="number"],
.ci-qty input[type="number"],
.quantity input[type="number"] {
    width: 38px;
    text-align: center;
    font-family: var(--font-dm, var(--font-sans));
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-dark);
    background: none;
    border: none;
    outline: none;
    padding: 0;
    height: 38px;
    -moz-appearance: textfield;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button,
.ci-qty input[type="number"]::-webkit-outer-spin-button,
.ci-qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}

/* WooCommerce quantity label hidden inside pill */
.quantity-control .quantity .screen-reader-text {
    display: none;
}

/* Price cell */
.ci-price-cell {
    text-align: right;
}

.ci-price,
.item-price {
    font-weight: 800;
    font-size: 18px;
    color: var(--brand-dark);
    font-family: var(--font-dm, var(--font-sans));
}

.ci-price .woocommerce-Price-amount,
.item-price .woocommerce-Price-amount {
    font-weight: 800;
}

.ci-price-old {
    display: block;
    font-size: 13px;
    color: var(--brand-text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-top: 2px;
}

/* ============ CART ACTIONS (coupon + continue) ============ */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.coupon-form.promo-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 260px;
    position: relative;
    align-items: center;
}

.coupon-form .coupon-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--brand-text-muted);
    pointer-events: none;
    z-index: 1;
}

.coupon-form .coupon-icon svg {
    width: 18px;
    height: 18px;
}

.coupon-form .promo-input,
.coupon-form .coupon-input {
    flex: 1;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--brand-dark);
    outline: none;
    transition: border-color var(--transition-fast);
    font-family: var(--font-dm, var(--font-sans));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--brand-card);
}

.coupon-form .promo-input:focus,
.coupon-form .coupon-input:focus {
    border-color: var(--brand-dark);
}

.coupon-form .promo-input.error,
.coupon-form .coupon-input.error {
    border-color: var(--terracotta);
    animation: shake 0.5s ease-in-out;
}

.coupon-btn,
.promo-btn {
    padding: 13px 22px;
    background: var(--brand-card);
    color: var(--brand-dark);
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-sans);
}

.coupon-btn:hover,
.promo-btn:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
}

.coupon-btn:active,
.promo-btn:active {
    transform: scale(0.98);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.continue-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.continue-link svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.continue-link:hover {
    gap: 10px;
    color: var(--terracotta);
}

/* ============ ORDER SUMMARY ============ */
.cart-aside {
    position: sticky;
    top: calc(var(--header-height, 72px) + 24px);
}

.cart-summary,
.summary-card {
    background: var(--brand-card);
    border: 1px solid var(--brand-border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--brand-border-light);
    margin-bottom: 20px;
}

.summary-head .sh-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--terracotta-light, #F4E0DA);
    color: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-head .sh-icon svg {
    width: 22px;
    height: 22px;
}

.summary-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-dark);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.summary-head .sh-sub {
    font-size: 12px;
    color: var(--brand-text-muted);
    margin-top: 2px;
}

/* Compact product list */
.summary-products {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brand-border-light);
    max-height: 280px;
    overflow-y: auto;
}

.summary-products:empty {
    display: none;
}

.summary-product-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-border-light);
}

.summary-product-item:last-child {
    border-bottom: none;
}

.summary-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--brand-bg-secondary);
}

.summary-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-product-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.summary-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.summary-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-product-name a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.summary-product-name a:hover {
    color: var(--terracotta, var(--brand-accent-warm));
}

.summary-product-qty {
    font-size: 12px;
    color: var(--brand-text-muted);
}

.summary-product-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
}

.summary-product-total .woocommerce-Price-amount {
    font-weight: 700;
}

.summary-products::-webkit-scrollbar {
    width: 4px;
}

.summary-products::-webkit-scrollbar-track {
    background: transparent;
}

.summary-products::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 2px;
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--brand-muted);
}

.summary-row span {
    color: var(--brand-muted);
}

.summary-row .summary-value {
    color: var(--brand-dark);
    font-weight: 700;
    font-family: var(--font-dm, var(--font-sans));
}

.summary-row.discount-line .summary-value,
.summary-row .summary-value.discount {
    color: var(--sage-dark, var(--brand-accent));
}

.summary-row .free {
    color: var(--sage-dark, var(--brand-accent));
    background: var(--sage-light, var(--brand-bg-secondary));
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: var(--brand-border-light);
    margin: 14px 0;
}

.summary-row.total {
    align-items: baseline;
    padding: 8px 0;
    border-top: none;
    margin-top: 0;
}

.summary-row.total .st-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    display: block;
}

.summary-row.total .st-label small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: var(--brand-text-muted);
    margin-top: 2px;
}

.summary-row.total .st-value,
.summary-row.total .summary-value {
    font-family: var(--font-dm, var(--font-sans));
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.summary-row.total .st-value .woocommerce-Price-amount {
    font-weight: 800;
}

.summary-tax {
    font-size: 12px;
    color: var(--brand-text-muted);
    text-align: center;
    margin: 4px 0 18px;
}

/* Checkout button */
.wc-proceed-to-checkout {
    margin-top: 4px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.2);
    font-family: var(--font-sans);
}

.btn-checkout svg {
    width: 18px;
    height: 18px;
}

.btn-checkout:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 91, 62, 0.35);
    color: #fff;
}

.btn-checkout:active {
    transform: translateY(0);
}

/* Trust badges */
.summary-trust {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--brand-border-light);
}

.summary-trust div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brand-text-muted);
}

.summary-trust svg {
    width: 15px;
    height: 15px;
    color: var(--sage-dark, var(--brand-accent));
}

/* Payment chips */
.pay-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pay-chip {
    font-family: var(--font-dm, var(--font-sans));
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
    background: var(--brand-bg-secondary);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    min-width: 48px;
    text-align: center;
}

/* ============ EMPTY CART STATE ============ */
.cart-empty-wrapper {
    padding: 80px 24px;
    min-height: 0;
}

.empty-cart {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
}

.empty-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
}

.empty-cart h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--brand-dark);
    margin: 0 0 12px;
}

.empty-cart p {
    font-size: 15px;
    color: var(--brand-text-muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.btn-shop:hover,
.btn-shop:focus {
    background: var(--terracotta);
    color: #fff;
    outline: none;
}

.btn-shop svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    transition: transform var(--transition-fast);
}

.btn-shop:hover svg {
    transform: translateX(4px);
}

.woocommerce-cart .return-to-shop {
    display: none !important;
}

.cart-collaterals {
    margin-top: 40px;
}

/* ============ ANIMATIONS & LOADING STATES ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.10s; }
.cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-item:nth-child(4) { animation-delay: 0.20s; }
.cart-item:nth-child(5) { animation-delay: 0.25s; }

.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(40px);
        height: 0;
        padding: 0;
        margin: 0;
        border: none;
        overflow: hidden;
    }
}

/* Skeleton loading (AJAX quantity update) */
.pawwell-cart-updating {
    position: relative;
}

.pawwell-cart-updating::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 2;
}

.pawwell-summary-updating .summary-value,
.pawwell-summary-updating .summary-product-total,
.pawwell-summary-updating .summary-product-qty {
    position: relative;
    color: transparent !important;
}

.pawwell-summary-updating .summary-value::after,
.pawwell-summary-updating .summary-product-total::after,
.pawwell-summary-updating .summary-product-qty::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 14px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--brand-border-light) 25%, var(--brand-bg-secondary) 50%, var(--brand-border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: pawwellSkeletonPulse 1.2s ease-in-out infinite;
}

@keyframes pawwellSkeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pawwell-cart-updating .item-price,
.pawwell-cart-updating .ci-price {
    position: relative;
    color: transparent !important;
}

.pawwell-cart-updating .item-price::after,
.pawwell-cart-updating .ci-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--brand-border);
    border-top-color: var(--brand-dark);
    border-radius: 50%;
    animation: pawwellSpin 0.6s linear infinite;
}

@keyframes pawwellSpin {
    to { transform: rotate(360deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .cart-layout {
        grid-template-columns: 1fr 320px;
        gap: 32px;
    }
}

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

    .cart-aside {
        position: static;
    }

    .cart-head {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .ci-qty-cell,
    .ci-price-cell {
        justify-content: flex-start;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ci-qty-label {
        display: inline;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--brand-text-muted);
        font-weight: 700;
    }

    .ci-price-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

@media (max-width: 640px) {
    .cart-section {
        padding: 40px 0 72px;
    }

    .cart-hero {
        padding: 36px 0 40px;
    }

    .cart-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-form.promo-box {
        min-width: 0;
    }

    .ci-img {
        width: 80px;
        height: 80px;
    }

    .summary-row.total .st-value,
    .summary-row.total .summary-value {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .coupon-btn,
    .promo-btn {
        width: 100%;
    }

    .btn-checkout {
        padding: 15px 24px;
        font-size: 14px;
    }
}
