/* ─── Cart page — COS-inspired minimal design ─── */

/* Reset: buttons & inputs inherit font */
.cart-page button,
.cart-page input,
.cart-page select,
.cart-mobile-footer button,
.cart-mobile-footer input {
    font-family: inherit;
}

/* ─── Container ─── */
.cart-page {
    max-width: max(1280px, min(84vw, 3840px));
    margin: 0 auto;
    padding: 72px 16px 0;
}

/* ─── Header tabs ─── */
.cart-header {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    gap: 24px;
    padding: 12px 16px 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    max-width: max(1280px, min(84vw, 3840px));
    margin: 0 auto;
}
.cart-header__tab {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.cart-header__tab--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: #222;
}
.cart-header__tab:not(.cart-header__tab--active) {
    color: #999;
}
.cart-header__close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #222;
    display: flex;
    align-items: center;
}
.cart-header__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.cart-header__close:hover {
    color: #000;
}

/* ─── 2-column layout (desktop) ─── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    padding-top: 4px;
    padding-bottom: 20px;
}

/* ─── Left: items list ─── */
.cart-items {
    display: flex;
    flex-direction: column;
    padding-top: 44px;
}

/* ═══════════════════════════════════════════
   CART ITEM — 2-row grid
   Row 1: image | info (name + price + variant)
   Row 2: actions spanning full width
   ═══════════════════════════════════════════ */
.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "image info"
        "actions actions";
    gap: 0 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.cart-item__image {
    grid-area: image;
    width: 140px;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
    align-self: start;
}
.cart-item__info {
    grid-area: info;
    min-width: 0;
}

/* Name + price on one line */
.cart-item__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.cart-item__name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    line-height: 1.3;
}
.cart-item__price {
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    text-align: right;
}
.cart-item__unit-price {
    font-size: 0.86rem;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
}
.cart-item__line-total {
    font-weight: 700;
}
.cart-item__variant-text {
    font-size: 0.96rem;
    color: #777;
    margin-top: 4px;
}

/* ─── Actions row ─── */
.cart-item__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

/* Quantity stepper */
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 36px;
    flex-shrink: 0;
}
.cart-qty__btn {
    width: 36px;
    height: 100%;
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.32rem;
    color: #222;
    cursor: pointer;
    text-align: center;
    line-height: 36px;
    padding: 0;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}
.cart-qty__btn:hover {
    background: #f5f5f5;
}
.cart-qty__value {
    width: 36px;
    min-width: 36px;
    text-align: center;
    font-size: 1.02rem;
    font-weight: 500;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    background: transparent;
    padding: 0;
    line-height: 36px;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    field-sizing: content;
}
.cart-qty__value::-webkit-outer-spin-button,
.cart-qty__value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Variant selector */
.cart-variant-select {
    height: 36px;
    padding: 0 28px 0 12px;
    font-size: 0.98rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 80px;
    max-width: 220px;
    text-overflow: ellipsis;
    overflow: hidden;
}
/* Single variant (no dropdown) */
.cart-variant-label {
    height: 36px;
    padding: 0 12px;
    font-size: 0.98rem;
    color: #555;
    display: flex;
    align-items: center;
}

/* Like (heart) button */
.cart-item__like {
    width: 36px;
    height: 36px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    flex-shrink: 0;
}
.cart-item__like:hover {
    background: #f5f5f5;
}
.cart-item__like svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.cart-item__like--active svg {
    fill: #222;
}

/* Remove (×) button */
.cart-item__remove {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 1.32rem;
    flex-shrink: 0;
}
.cart-item__remove:hover {
    background: #f5f5f5;
}

/* ─── Undo delete row ─── */
.cart-undo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.cart-undo__text {
    font-size: 0.82rem;
    color: #777;
}
.cart-undo__btn {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.cart-undo__btn:hover {
    color: #000;
}

/* ─── Right: order summary ─── */
.cart-summary {
    padding-top: 40px;
    background: #fff;
}

.cart-summary__banner {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

.cart-summary__body {
    padding: 20px 0;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.82rem;
}
.cart-summary__row--label {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.cart-summary__row--total {
    border-top: 1px solid #222;
    margin-top: 8px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 0.85rem;
}
.cart-summary__row--total .cart-summary__label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.cart-summary__tax {
    font-size: 0.72rem;
    color: #777;
    font-style: italic;
}

/* Promo code */
.cart-promo {
    padding: 16px 0 0;
}
.cart-promo__toggle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-promo__toggle::before {
    content: '+';
    font-size: 1rem;
}
.cart-promo__form {
    display: none;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}
.cart-promo--open .cart-promo__form {
    display: flex;
}
.cart-promo--open .cart-promo__toggle::before {
    content: '\2212';
}
.cart-promo__input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    outline: none;
}
.cart-promo__input:focus {
    border-color: #222;
}
.cart-promo__submit {
    height: 40px;
    padding: 0 16px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.cart-promo__clear {
    width: 100%;
    padding: 8px 0;
    background: none;
    color: #999;
    border: none;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cart-promo__clear:hover {
    color: #222;
}
.cart-summary__row--promo span {
    color: #2a7d2a;
}
.cart-promo__error {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #c33;
}

/* Checkout button */
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}
.cart-checkout-btn:hover {
    background: #000;
}

/* ─── Empty cart ─── */
.cart-empty {
    text-align: center;
    padding: 116px 20px 60px;
}
.cart-empty__icon svg {
    width: 64px;
    height: 64px;
    stroke: #ccc;
    stroke-width: 1.5;
    fill: none;
}
.cart-empty__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 16px;
    color: #222;
}
.cart-empty__text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
}
.cart-empty__btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

/* ─── Recommendations ─── */
.cart-recs {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.cart-recs__title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cart-recs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cart-recs__item {
    text-decoration: none;
    color: inherit;
}
.cart-recs__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}
.cart-recs__name {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #222;
    line-height: 1.3;
}
.cart-recs__price {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

/* ─── Mobile: sticky footer ─── */
.cart-mobile-footer {
    display: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 899px) {
    .cart-page {
        padding-top: 78px;
    }
    .cart-header {
        top: 78px;
    }
    .cart-header__tab {
        font-size: 1rem;
    }
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Summary: only banner visible, after items */
    .cart-summary {
        position: static;
        order: 1;
    }
    .cart-summary__banner {
        font-size: 1rem;
        padding: 10px 16px;
    }
    .cart-summary__body,
    .cart-summary .cart-promo,
    .cart-summary .cart-checkout-btn,
    .cart-gift--summary,
    .cart-items > .cart-gift {
        display: none;
    }

    /* Cart item mobile */
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 0 12px;
        padding: 16px 0;
    }
    .cart-item__image {
        width: 100px;
    }
    .cart-item__name {
        font-size: 1rem;

    }
    .cart-item__price {
        font-size: 1.1rem;

    }

    /* Actions */
    .cart-qty {
        min-width: auto;
        width: auto;
    }
    .cart-item__actions {
        gap: 4px;
    }
    .cart-item__like {
        width: 36px;
        height: 36px;
    }
    .cart-item__like svg {
        width: 28px;
        height: 28px;
    }
    .cart-item__remove {
        width: 36px;
        height: 36px;
    }
    .cart-qty {
        height: 36px;
    }
    .cart-qty__btn {
        width: 36px;
        font-size: 1.4rem;
        line-height: 36px;
    }
    .cart-qty__value {
        width: 36px;
        min-width: 36px;
        font-size: 1.1rem;
        padding: 0;
        line-height: 36px;
    }
    .cart-variant-select {
        height: 32px;
        font-size: 1.05rem;
        min-width: 60px;

    }
    .cart-variant-label {
        height: 32px;
        font-size: 1.05rem;

    }

    /* Mobile sticky footer */
    .cart-mobile-footer {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 12px 16px;
        z-index: 100;
    }
    .cart-mobile-footer__top {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 4px;
    }
    .cart-mobile-footer__count {
        font-size: 1rem;

        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    .cart-mobile-footer__details-toggle {
        display: none;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: underline;
        background: none;
        border: none;
        cursor: pointer;
        color: #222;
    }
    .cart-mobile-footer__total-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 12px;
    }
    .cart-mobile-footer__total-label {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;

    }
    .cart-mobile-footer__total-label small {
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: #777;
        font-size: 1rem;

    }
    .cart-mobile-footer__total-value {
        font-size: 1.12rem;

        font-weight: 700;
    }
    .cart-mobile-footer .cart-promo {
        margin-bottom: 12px;
    }
    .cart-mobile-footer .cart-checkout-btn {
        margin-top: 0;
        font-size: 1rem;
    }
    .cart-mobile-footer {
        padding: 12px 10px 10px;
    }

    /* Gift & promo mobile bump */
    .cart-gift,
    .cart-gift__text {
        font-size: 1rem;

    }
    .cart-gift--summary {
        font-size: 1rem;

    }
    .cart-promo__toggle {
        font-size: 1rem;

    }
    .cart-promo__input {
        font-size: 1rem;

    }
    .cart-promo__submit {
        font-size: 1rem;

    }
    .cart-promo__clear {
        font-size: 1rem;

    }

    /* Recs */
    .cart-recs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cart-recs {
        margin-bottom: 160px;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .cart-layout {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }
    .cart-item {
        grid-template-columns: 120px 1fr;
    }
    .cart-item__image {
        width: 120px;
    }
    .cart-qty {
        width: 120px;
    }
    .cart-recs__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── Gift box checkbox ─── */
.cart-gift {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid #eee;
    cursor: pointer;
    user-select: none;
    font-size: 0.88rem;
    color: #333;
}
.cart-gift--summary {
    border-top: none;
    margin-top: 0;
    padding: 8px 0 0;
    font-size: 0.82rem;
}
.cart-gift input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #222;
    cursor: pointer;
    flex-shrink: 0;
}
.cart-gift__text {
    font-size: 0.88rem;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════
   Cart Toast Notification
   ═══════════════════════════════════════════════ */
.cart-toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0);
    transition: background .25s ease;
}
.cart-toast-overlay--visible {
    background: rgba(0,0,0,.18);
}
.cart-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    max-width: 360px;
    min-width: 280px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
    will-change: transform, opacity;
}
.cart-toast--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.cart-toast__icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    font-weight: 700;
}
.cart-toast__icon--info {
    background: #f5f5f5;
    font-size: 1.25rem;
}
.cart-toast__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #222;
    margin-bottom: 3px;
}
.cart-toast__name {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}
.cart-toast__qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.cart-toast__qty-label {
    font-size: 0.75rem;
    color: #888;
}
.cart-toast__qty-btn {
    width: 28px; height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: #222;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.cart-toast__qty-btn:hover { background: #eee; }
.cart-toast__qty-val {
    font-size: 0.88rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-toast__actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-toast__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    letter-spacing: .03em;
}
.cart-toast__link:hover { text-decoration: underline; }
.cart-toast__close-link {
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
}
.cart-toast__close-link:hover { color: #222; }

@media (max-width: 600px) {
    .cart-toast {
        left: 50%;
        right: auto;
        max-width: calc(100vw - 32px);
        min-width: 0;
        top: 50%;
    }
}

/* ─── 10 Disappearance Animations (cycling) ─── */
/* All keyframes include translate(-50%,-50%) to keep centering */

/* 1. Atoms — рассыпание на частицы */
@keyframes cart-toast-atoms {
    0%   { opacity: 1; filter: blur(0); transform: translate(-50%,-50%) scale(1); }
    50%  { opacity: .6; filter: blur(4px); transform: translate(-50%,-50%) scale(1.05); }
    100% { opacity: 0; filter: blur(20px); transform: translate(-50%,-50%) scale(1.2); }
}
.cart-toast-out--atoms {
    animation: cart-toast-atoms .45s cubic-bezier(.4,0,1,1) forwards;
}

/* 2. Roll — сворачивание в трубочку */
@keyframes cart-toast-roll {
    0%   { opacity: 1; transform: translate(-50%,-50%) perspective(800px) rotateX(0deg) scaleY(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) perspective(800px) rotateX(90deg) scaleY(0); }
}
.cart-toast-out--roll {
    animation: cart-toast-roll .4s cubic-bezier(.55,.06,.68,.19) forwards;
    transform-origin: center top;
}

/* 3. Vortex — закручивание в воронку */
@keyframes cart-toast-vortex {
    0%   { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }
    70%  { opacity: .5; transform: translate(-50%,-50%) rotate(180deg) scale(.4); }
    100% { opacity: 0; transform: translate(-50%,-50%) rotate(360deg) scale(0); }
}
.cart-toast-out--vortex {
    animation: cart-toast-vortex .45s cubic-bezier(.6,.04,.98,.34) forwards;
}

/* 4. Flip — переворот и уход */
@keyframes cart-toast-flip {
    0%   { opacity: 1; transform: translate(-50%,-50%) perspective(600px) rotateY(0deg); }
    100% { opacity: 0; transform: translate(-50%,-50%) perspective(600px) rotateY(180deg) translateZ(200px); }
}
.cart-toast-out--flip {
    animation: cart-toast-flip .4s cubic-bezier(.55,.06,.68,.19) forwards;
}

/* 5. Melt — плавление вниз */
@keyframes cart-toast-melt {
    0%   { opacity: 1; transform: translate(-50%,-50%) translateY(0) scaleX(1) scaleY(1); border-radius: 12px; }
    60%  { opacity: .7; transform: translate(-50%,-50%) translateY(15px) scaleX(1.15) scaleY(.6); border-radius: 24px; }
    100% { opacity: 0; transform: translate(-50%,-50%) translateY(40px) scaleX(1.3) scaleY(.1); border-radius: 50px; }
}
.cart-toast-out--melt {
    animation: cart-toast-melt .45s cubic-bezier(.4,0,1,1) forwards;
}

/* 6. Zoom — улетает вдаль */
@keyframes cart-toast-zoom {
    0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(0.01) translateY(-60px); }
}
.cart-toast-out--zoom {
    animation: cart-toast-zoom .35s cubic-bezier(.6,.04,.98,.34) forwards;
}

/* 7. Slide — скольжение вправо */
@keyframes cart-toast-slide {
    0%   { opacity: 1; transform: translate(-50%,-50%) translateX(0); }
    100% { opacity: 0; transform: translate(-50%,-50%) translateX(120%); }
}
.cart-toast-out--slide {
    animation: cart-toast-slide .35s cubic-bezier(.55,.06,.68,.19) forwards;
}

/* 8. Shatter — разлом */
@keyframes cart-toast-shatter {
    0%   { opacity: 1; transform: translate(-50%,-50%) scale(1) skew(0deg, 0deg); filter: blur(0); }
    30%  { opacity: .9; transform: translate(-50%,-50%) scale(1.03) skew(5deg, 2deg); }
    60%  { opacity: .5; transform: translate(-50%,-50%) scale(.95) skew(-8deg, -3deg); filter: blur(2px); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(.8) skew(15deg, 8deg); filter: blur(8px); }
}
.cart-toast-out--shatter {
    animation: cart-toast-shatter .4s cubic-bezier(.4,0,1,1) forwards;
}

/* 9. Fold — складывание гармошкой */
@keyframes cart-toast-fold {
    0%   { opacity: 1; transform: translate(-50%,-50%) perspective(600px) rotateX(0deg); max-height: 200px; padding-top: 18px; padding-bottom: 18px; }
    100% { opacity: 0; transform: translate(-50%,-50%) perspective(600px) rotateX(-90deg); max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
}
.cart-toast-out--fold {
    animation: cart-toast-fold .4s cubic-bezier(.55,.06,.68,.19) forwards;
    transform-origin: center top;
}

/* 10. Smoke — растворение дымом */
@keyframes cart-toast-smoke {
    0%   { opacity: 1; transform: translate(-50%,-50%) translateY(0) scale(1); filter: blur(0) contrast(1); }
    40%  { opacity: .7; transform: translate(-50%,-50%) translateY(-10px) scale(1.05); filter: blur(3px) contrast(.8); }
    100% { opacity: 0; transform: translate(-50%,-50%) translateY(-50px) scale(1.15); filter: blur(12px) contrast(.3); }
}
.cart-toast-out--smoke {
    animation: cart-toast-smoke .5s cubic-bezier(.4,0,.6,1) forwards;
}

/* ─── Wishlist grid ─── */
.cart-wishlist {
    padding: 80px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.cart-wishlist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.cart-wishlist__card {
    display: flex;
    flex-direction: column;
}
.cart-wishlist__link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.cart-wishlist__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-wishlist__info {
    padding: 8px 0 4px;
}
.cart-wishlist__name {
    display: block;
    font-size: 0.82rem;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-wishlist__name:hover { text-decoration: underline; }
.cart-wishlist__old-price {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
    margin-top: 2px;
}
.cart-wishlist__price {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}
.cart-wishlist__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.cart-wishlist__btn {
    flex: 1;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.cart-wishlist__btn:hover { background: #444; }
.cart-wishlist__out {
    flex: 1;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}
.cart-wishlist__remove {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    line-height: 28px;
    text-align: center;
    background: none;
    border: 1px solid #ddd;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .2s, border-color .2s;
}
.cart-wishlist__remove:hover { color: #c00; border-color: #c00; }

.cart-wishlist__card--undo {
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    min-height: 200px;
    text-align: center;
}
.cart-wishlist__undo-text {
    font-size: 0.82rem;
    color: #999;
}
.cart-wishlist__undo-btn {
    font-size: 0.8rem;
    color: #222;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}
.cart-wishlist__undo-btn:hover { color: #666; }

@media (max-width: 600px) {
    .cart-items { padding-top: 4px; }
    .cart-wishlist { padding: 70px 12px 40px; }
    .cart-wishlist__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
