/* =============================================
   Bianca – Cart Page Styles
   ============================================= */

body.page-cart {
    padding-bottom: 0;
}

body.page-cart .sticky-reserve {
    display: none !important;
}

.cart-page {
    padding-bottom: 24px;
}

/* ── Step progress ── */
.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 22px 0 28px;
}

.cart-steps__item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
}
.cart-steps__item--active {
    color: var(--maroon);
    font-weight: 700;
}
.cart-steps__item--done {
    color: #2a8a4a;
}

.cart-steps__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: transparent;
    transition: background 0.3s, color 0.3s;
}
.cart-steps__item--active .cart-steps__num {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}
.cart-steps__item--done .cart-steps__num {
    background: #2a8a4a;
    color: #fff;
    border-color: #2a8a4a;
}

.cart-steps__line {
    flex: 1;
    max-width: 100px;
    height: 1.5px;
    background: var(--border);
    margin: 0 12px;
}

/* ── 2-col grid ── */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── Cart main (left) ── */
.cart-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-main__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.cart-main__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.cart-main__count {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Cart items list ── */
.cart-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.cart-item:first-child { border-top: 1px solid var(--border); }

.cart-item__form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

/* image */
.cart-item__img {
    flex-shrink: 0;
    width: 90px; height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f0ea;
    display: block;
}
.cart-item__img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* info */
.cart-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item__name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    display: block;
}
.cart-item__desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}
.cart-item__option {
    display: inline-block;
    background: rgba(92,18,21,.07);
    color: var(--maroon);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 500;
    width: fit-content;
    margin-top: 2px;
}

/* qty control */
.cart-item__qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item__qty-btn {
    background: none;
    border: none;
    width: 32px; height: 36px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--maroon);
    font-family: var(--font-sans);
    transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.cart-item__qty-btn:hover { background: rgba(92,18,21,.06); }
.cart-item__qty-val {
    width: 36px;
    text-align: center;
    border: none;
    border-right: 1.5px solid var(--border);
    border-left: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--text);
    background: transparent;
    padding: 0;
    height: 36px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.cart-item__qty-val::-webkit-outer-spin-button,
.cart-item__qty-val::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-item__qty-submit { display: none; }

/* price col — desktop default */
.cart-item__price-col {
    flex-shrink: 0;
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    margin-inline-start: 8px;
}
.cart-item__del {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--transition), background var(--transition);
    display: flex; align-items: center;
}
.cart-item__del svg { width: 17px; height: 17px; }
.cart-item__del:hover { opacity: 1; background: rgba(192,57,43,.07); }

/* ── Note field ── */
.cart-note {
    margin-top: 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    position: relative;
}
.cart-note__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    cursor: pointer;
}
.cart-note__label svg { width: 15px; height: 15px; stroke: var(--text-muted); }
.cart-note__input {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--text);
    outline: none;
    line-height: 1.7;
}
.cart-note__input::placeholder { color: #b0a090; }
.cart-note__count {
    position: absolute;
    bottom: 10px;
    left: 14px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Delivery row ── */
.cart-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(42, 138, 74, .05);
    border: 1px solid rgba(42, 138, 74, .15);
    border-radius: var(--radius);
    gap: 12px;
    flex-wrap: wrap;
}
.cart-delivery-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.cart-delivery-info svg { width: 16px; height: 16px; stroke: #2a8a4a; flex-shrink: 0; }
.cart-delivery-info strong { color: var(--text); }

.cart-delivery-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a8a4a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.cart-delivery-badge svg { width: 14px; height: 14px; stroke: #fff; }

/* ── Empty state ── */
.cart-page--empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.cart-page--empty .cart-steps {
    display: none;
}

.cart-page--empty .cart-grid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.cart-page--empty .cart-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 961px) {
    .cart-page--empty {
        min-height: calc(100vh - 180px);
    }
}

.cart-empty {
    text-align: center;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.cart-empty svg { width: 64px; height: 64px; stroke: var(--text-muted); opacity: 0.4; }
.cart-empty p { font-size: 16px; }
.btn-back-shop {
    background: var(--maroon);
    color: #fff;
    padding: 11px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}
.btn-back-shop:hover { background: var(--maroon-dark); }

/* ── Summary sidebar (right) ── */
.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-h) + 12px);
}

.cart-summary__title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.cart-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}
.cart-summary__row-label { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.cart-summary__row-val   { font-weight: 600; color: var(--text); white-space: nowrap; }
.cart-summary__row-val--discount { color: #2a8a4a; }

.free-shipping { color: #2a8a4a; font-weight: 600; }

.cart-summary__total {
    border-top: 1.5px solid var(--border);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.cart-summary__total span:first-child { font-size: 14px; color: var(--text-muted); }
.cart-summary__total span:last-child  {
    font-size: 20px;
    font-weight: 800;
    color: var(--maroon);
}

/* ── Coupon ── */
.cart-coupon__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.cart-coupon__form {
    display: flex;
    gap: 8px;
}
.cart-coupon__input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text);
    background: transparent;
    outline: none;
    transition: border-color var(--transition);
    direction: ltr;
    text-align: center;
    letter-spacing: 1px;
}
.cart-coupon__input:focus { border-color: var(--maroon); }
.cart-coupon__btn {
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.cart-coupon__btn:hover { background: var(--maroon-dark); }
.cart-coupon__error {
    font-size: 12px;
    color: #c0392b;
    margin-top: 6px;
}
.cart-coupon__notice {
    font-size: 12px;
    color: #0e3a2f;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(14, 58, 47, 0.08);
}
.cart-coupon__applied {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(42,138,74,.08);
    border: 1px solid rgba(42,138,74,.25);
    border-radius: var(--radius);
    padding: 9px 12px;
    font-size: 12.5px;
    color: #1e7a3a;
    font-weight: 500;
}
.cart-coupon__applied svg { width: 14px; height: 14px; stroke: #2a8a4a; flex-shrink: 0; }
.cart-coupon__badge {
    display: inline-block;
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    border-radius: 999px;
    background: rgba(42, 138, 74, 0.12);
    color: #2a8a4a;
}
.checkout-coupon { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border, #e8e0d8); }
.coupon-remove {
    margin-right: auto;
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.coupon-remove:hover { color: #c0392b; }

/* ── App-style cart (mobile mockup) ── */
.cart-app {
    background: var(--cream, #faf8f5);
}
.cart-app__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.cart-app__header-icon {
    width: 24px;
    height: 24px;
    stroke: #0e3a2f;
}
.cart-app__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.cart-app__items-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 14px;
    margin-bottom: 16px;
}
.cart-app__items-box .cart-item {
    padding: 14px 0;
}
.cart-app__items-box .cart-item:first-child { border-top: none; }
.cart-app__items-box .cart-item:last-child { border-bottom: none; }

.cart-item__unit-price {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}
.cart-item__line-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}
.cart-item__qty-mark {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.cart-item__total-price {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--maroon);
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.cart-item__total-price::-webkit-scrollbar {
    display: none;
}
.cart-item__total-price.price-exit {
    transform: translateY(-70%);
    opacity: 0;
}
.cart-item__total-price.price-enter {
    transform: translateY(70%);
    opacity: 0;
}

.cart-summary__row-val,
.cart-summary__total span:last-child,
.shop-flow-dock__toggle-total,
.shop-flow-dock__grand span:last-child,
.shop-flow-dock__rows dd {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-summary__row-val.price-exit,
.cart-summary__total span:last-child.price-exit,
.shop-flow-dock__toggle-total.price-exit,
.shop-flow-dock__grand span:last-child.price-exit {
    transform: translateY(-50%);
    opacity: 0;
}
.cart-summary__row-val.price-enter,
.cart-summary__total span:last-child.price-enter,
.shop-flow-dock__toggle-total.price-enter,
.shop-flow-dock__grand span:last-child.price-enter {
    transform: translateY(50%);
    opacity: 0;
}

/* Qty & price micro-animations */
@keyframes cartQtyPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes cartPricePulse {
    0%   { transform: scale(1); opacity: 1; }
    40%  { transform: scale(1.06); opacity: 0.85; color: #0e3a2f; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes cartQtyBtnPress {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.88); background: rgba(14, 58, 47, 0.12); }
    100% { transform: scale(1); }
}
.cart-item__qty-val.is-pop {
    animation: cartQtyPop 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cart-item__qty-display.is-pop {
    animation: cartQtyPop 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
    display: inline-block;
}
.cart-item__total-price.is-flash {
    animation: cartPricePulse 0.45s ease;
}
.cart-item__qty-btn.is-press {
    animation: cartQtyBtnPress 0.28s ease;
}
.cart-item__unit-price.is-dim {
    opacity: 0.55;
    transition: opacity 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .cart-item__qty-val.is-pop,
    .cart-item__qty-display.is-pop,
    .cart-item__total-price.is-flash,
    .cart-item__qty-btn.is-press {
        animation: none;
    }
}

.cart-app__summary {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: end;
}
.cart-app__summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}
.cart-app__summary-row .is-free {
    color: #2a8a4a;
    font-weight: 700;
}
.cart-app__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 800;
}
.cart-app__summary-total span:last-child {
    font-size: 20px;
    color: var(--maroon);
}

.cart-cta-btn--green {
    background: #0e3a2f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}
.cart-cta-btn--green:hover {
    background: #0a2d24;
    color: #fff;
}
.cart-cta-btn--app {
    display: none;
    margin-bottom: 10px;
}
.cart-checkout-form {
    margin: 0;
    padding: 0;
}
.cart-checkout-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.cart-secure-note--app {
    display: none;
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .cart-app__summary,
    .cart-cta-btn--app,
    .cart-secure-note--app {
        display: flex;
    }
    .cart-steps { padding-top: 12px; }
}

/* ── CTA button ── */
.cart-cta-btn {
    display: block;
    width: 100%;
    background: var(--maroon);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 700;
    transition: background var(--transition), transform 0.15s;
}
.cart-cta-btn:hover { background: var(--maroon-dark); transform: translateY(-1px); }

.cart-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.cart-secure-note svg { stroke: var(--gold); flex-shrink: 0; }

/* ── Recommendations ── */
.cart-recs {
    margin-top: 52px;
}
.cart-recs__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}
.cart-recs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cart-recs__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
}
.cart-recs__card:hover {
    box-shadow: 0 6px 24px rgba(92,18,21,.10);
    transform: translateY(-2px);
}

.cart-recs__img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f0ea;
    display: block;
}
.cart-recs__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cart-recs__card:hover .cart-recs__img img { transform: scale(1.05); }

.cart-recs__info {
    padding: 12px 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-recs__name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    display: block;
}
.cart-recs__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.cart-recs__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
    display: block;
    margin-top: 4px;
}

.cart-recs__add-form {
    padding: 0 14px 12px;
}
.cart-recs__add-btn {
    width: 100%;
    background: rgba(92,18,21,.07);
    color: var(--maroon);
    border: none;
    border-radius: 8px;
    height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.cart-recs__add-btn svg { width: 16px; height: 16px; }
.cart-recs__add-btn:hover { background: var(--maroon); color: #fff; }
.cart-recs__add-btn:hover svg { stroke: #fff; }

/* ── Trust badges ── */
.cart-trust {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cart-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}
.cart-trust__item svg {
    width: 36px; height: 36px;
    stroke: var(--maroon);
    flex-shrink: 0;
    opacity: 0.8;
}
.cart-trust__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-trust__item strong {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 700;
}
.cart-trust__item span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Mobile sticky checkout bar ── */
.cart-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 24px rgba(0,0,0,.10);
}
.cart-sticky-bar__total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.cart-sticky-bar__label {
    font-size: 11px;
    color: var(--text-muted);
}
.cart-sticky-bar__price {
    font-size: 16px;
    font-weight: 800;
    color: var(--maroon);
    line-height: 1.2;
}
.cart-sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maroon);
    color: #fff;
    border-radius: var(--radius);
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition);
    white-space: nowrap;
    flex: 1;
    max-width: 200px;
}
.cart-sticky-bar__btn:hover { background: var(--maroon-dark); }

.cart-sticky-bar__form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
}
.cart-sticky-bar__form .cart-sticky-bar__btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ── Summary accordion support ── */
.cart-summary__toggle {
    display: none; /* only shown on mobile */
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-sans);
}
.cart-summary__chevron {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.cart-summary__toggle[aria-expanded="true"] .cart-summary__chevron {
    transform: rotate(180deg);
}
/* Desktop: body always visible */
.cart-summary__body { display: contents; }

/* Desktop flex item order */
@media (min-width: 961px) {
    .cart-item__form {
        display: flex;
        align-items: center;
    }
    .cart-item__del       { order: 1; }
    .cart-item__price-col { order: 2; margin-inline-start: 10px; }
    .cart-item__qty       { order: 3; }
    .cart-item__info      { order: 4; flex: 1; }
    .cart-item__img       { order: 5; margin-inline-start: 12px; }
    .cart-item__unit-price {
        font-size: 12px;
    }
    .cart-item__qty-mark {
        display: none;
    }
}
@media (max-width: 960px) {
    .cart-page:not(.cart-page--empty) { padding-bottom: 0; }

    .cart-page.cart-app {
        width: 100%;
        box-sizing: border-box;
    }

    .cart-page--empty .cart-grid {
        padding-inline: 16px;
    }

    .cart-page--empty .cart-main {
        padding: 0;
    }

    .cart-page--empty .cart-empty {
        min-height: calc(100dvh - 120px);
        padding: 32px 16px;
    }

    .cart-steps {
        display: none !important;
    }

    /* App cart item layout (mobile) */
    .cart-app .cart-item__form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) 72px;
        grid-template-rows: auto auto auto;
        gap: 8px 12px;
        align-items: center;
    }
    .cart-app .cart-item__del {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        opacity: 0.45;
        padding: 2px;
    }
    .cart-app .cart-item__info {
        grid-column: 2;
        grid-row: 1;
        gap: 5px;
        min-width: 0;
    }
    .cart-app .cart-item__img {
        grid-column: 3;
        grid-row: 1 / 4;
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }
    .cart-app .cart-item__qty {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }
    .cart-app .cart-item__price-col {
        grid-column: 1 / 3;
        grid-row: 3;
        justify-self: stretch;
        align-self: center;
        text-align: end;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        margin-inline-start: 0;
        padding-inline-end: 10px;
        min-width: 0;
        max-width: none;
    }
    .cart-app .cart-item__line-price {
        justify-content: flex-end;
        flex-wrap: wrap;
        row-gap: 2px;
        width: 100%;
    }
    .cart-app .cart-item__unit-price {
        font-size: 11px;
    }
    .cart-app .cart-item__total-price {
        font-size: 14px;
        overflow: visible;
        max-width: none;
        text-overflow: unset;
    }

    .cart-grid {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        max-width: none;
        padding-inline: 16px;
        box-sizing: border-box;
    }

    .cart-app .cart-main,
    .shop-flow-app .cart-main {
        padding: 0;
        width: 100%;
        min-width: 0;
    }

    .cart-app .cart-app__items-box {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 12px;
    }

    .cart-app .cart-note {
        width: 100%;
        box-sizing: border-box;
    }

    /* Summary becomes accordion card */
    .cart-summary {
        position: static;
        order: 99; /* after items */
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0;
        gap: 0;
        margin-top: 8px;
    }
    .cart-summary__toggle {
        display: flex;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .cart-summary__title {
        font-size: 15px;
        text-align: right;
        border-bottom: none;
        padding-bottom: 0;
        margin: 0;
    }
    .cart-summary__body {
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .cart-summary__body.is-open { display: flex; }

    /* Hide inline CTA (we use sticky bar on mobile) */
    .cart-cta-btn--inline { display: none; }
    .cart-secure-note { display: none; }

    /* Show sticky bar */
    .cart-sticky-bar { display: flex; }

    /* Recommendations: horizontal scroll */
    .cart-recs { overflow: hidden; }
    .cart-recs__title { padding: 0 16px; }
    .cart-recs__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 16px 8px;
        grid-template-columns: unset;
    }
    .cart-recs__grid::-webkit-scrollbar { display: none; }
    .cart-recs__card {
        flex: 0 0 130px;
        scroll-snap-align: start;
        border-radius: var(--radius);
    }
    .cart-recs__img { aspect-ratio: 1/1; }

    /* Trust badges hidden on mobile */
    .cart-trust {
        display: none !important;
    }

    /* Delivery row */
    .cart-delivery-row { border-radius: 0; border-left: none; border-right: none; margin: 0; }
}

@media (max-width: 600px) {
    /* Steps hidden on mobile — see 960px breakpoint */

    .cart-main__header { margin-bottom: 14px; }
    .cart-main__title  { font-size: 18px; }

    /* ── Cart item: 2-row mobile layout ── */
    .cart-item { padding: 14px 0; }
    .cart-item__form {
        display: grid;
        grid-template-columns: 1fr 72px;
        grid-template-rows: auto auto;
        gap: 10px 12px;
        align-items: start;
    }

    /* Row 1 col 1: info */
    .cart-item__info {
        grid-column: 1;
        grid-row: 1;
    }
    /* Row 1 col 2: image */
    .cart-item__img {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }
    /* Row 2 col 1: delete + qty */
    .cart-item__price-col { display: none; } /* price shown inline in info row */
    .cart-item__del {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        padding: 4px;
    }
    .cart-item__qty {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        margin-right: 0;
    }

    /* re-arrange: del and qty in same row */
    .cart-item__form {
        grid-template-columns: auto 1fr 72px;
        grid-template-rows: auto auto;
    }
    .cart-item__del {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
    }
    .cart-item__qty {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-right: 0;
    }
    .cart-item__info  { grid-column: 1 / 3; grid-row: 1; }
    .cart-item__img   { grid-column: 3;     grid-row: 1 / 3; }

    /* show price inside info */
    .cart-item__name { font-size: 14px; }
    .cart-item__total-price { display: block; font-size: 14px; margin-top: 3px; }

    /* note */
    .cart-note { border-radius: var(--radius); margin-top: 12px; }

    /* summary total font */
    .cart-summary__total span:last-child { font-size: 17px; }
}

/* Loyalty points redemption */
.loyalty-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft, #e8eaed);
}

.loyalty-panel__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #111);
}

.loyalty-panel__balance {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted, #5f6368);
}

.loyalty-panel__balance strong {
    color: var(--brand, #4b1c1f);
}

.loyalty-panel__applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(30, 61, 52, 0.08);
    color: var(--success, #1e3d34);
    font-size: 13px;
}

.loyalty-panel__empty,
.loyalty-panel__hint {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #5f6368);
    line-height: 1.5;
}

.loyalty-redeem-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loyalty-redeem-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft, #e8eaed);
    border-radius: 12px;
    background: var(--surface, #fff);
}

.loyalty-redeem-item__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.loyalty-redeem-item__main strong {
    font-size: 13px;
}

.loyalty-redeem-item__meta {
    font-size: 11px;
    color: var(--text-muted, #5f6368);
}

.loyalty-redeem-item__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--brand, #4b1c1f);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile: loyalty lives in main column (sidebar hidden in shop-flow) */
.loyalty-panel-host--mobile {
    display: none;
}

@media (max-width: 960px) {
    .loyalty-panel-host--mobile {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 12px 0 4px;
        padding: 14px 12px;
        background: var(--white, #fff);
        border: 1px solid var(--border, #e8eaed);
        border-radius: 14px;
    }

    .loyalty-panel-host--mobile .loyalty-panel {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .loyalty-panel-host--mobile .loyalty-panel__title {
        font-size: 14px;
    }

    .loyalty-panel-host--mobile .loyalty-panel__balance {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .loyalty-redeem-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .loyalty-redeem-item__main strong {
        font-size: 14px;
        line-height: 1.4;
    }

    .loyalty-redeem-item__meta {
        font-size: 12px;
    }

    .loyalty-redeem-item__btn {
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }

    .loyalty-panel__applied {
        font-size: 13px;
        line-height: 1.5;
    }
}
