/* ═══════════════════════════════════════
   Page
═══════════════════════════════════════ */
.cart-page {
    min-height: calc(100vh - var(--nav-height));
    padding: calc(var(--nav-height) + 48px) 0 96px;
}

.cart-breadcrumb {
    margin-bottom: 32px;
}

.cart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 56px;
}

/* ═══════════════════════════════════════
   Layout
═══════════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* ═══════════════════════════════════════
   Item row
═══════════════════════════════════════ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

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

.cart-item-image-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    overflow: hidden;
    display: block;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.cart-item-image-wrap:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 28px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
    transition: color .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-title:hover { color: var(--gold); }

.cart-item-meta {
    font-size: 12px;
    color: var(--text-subtle);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cart-item-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    color: var(--text);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: color .2s;
}

.cart-item-remove:hover { color: var(--text-muted); }

/* Remove animation */
.cart-item--removing {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .25s ease, transform .25s ease;
}

/* ═══════════════════════════════════════
   Summary panel
═══════════════════════════════════════ */
.cart-summary {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.cart-summary-inner {
    border: 1px solid var(--border);
    padding: 32px;
    background: var(--surface);
}

.cart-summary-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.cart-summary-row-name {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-summary-row-price {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.cart-summary-total span:first-child {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 11px;
}

.cart-summary-total span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
}

.cart-checkout-btn {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.cart-summary-note {
    font-size: 11px;
    color: var(--text-subtle);
    text-align: center;
    line-height: 1.6;
}

.cart-summary-note i {
    color: var(--gold);
}

/* ═══════════════════════════════════════
   Empty state
═══════════════════════════════════════ */
.cart-empty {
    padding: 120px 0;
    text-align: center;
}

.cart-empty-icon {
    font-size: 48px;
    color: var(--text-subtle);
    margin-bottom: 28px;
}

.cart-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
}

.cart-empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════
   Адаптив
═══════════════════════════════════════ */
@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .cart-item {
        gap: 16px;
    }

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

    .cart-item-title {
        font-size: 17px;
    }

    .cart-item-price {
        font-size: 18px;
    }

    .cart-summary-inner {
        padding: 24px;
    }
}
