/* ============================================================
   CART.CSS — MV Moda Femenina
   Cart panel + Checkout modal
   ============================================================ */

/* ── Cart panel — fullscreen ── */

.mv-cart-overlay {
    display: none;
}

.mv-cart-panel {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}

.mv-cart-panel.open {
    transform: translateY(0);
}

/* Desktop: side panel */
@media (min-width: 768px) {
    .mv-cart-panel {
        top: 0; right: 0; bottom: 0; left: auto;
        width: 440px;
        transform: translateX(100%);
        box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    }
        .mv-cart-panel.open {
        transform: translateX(0);
    }
}

/* ── Panel header ── */

.mv-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mv-cart-title {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--ink);
    text-transform: uppercase;
}

.mv-cart-close {
    background: none;
    border: none;
    color: var(--warm-gray);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mv-cart-close:hover {
    color: var(--ink);
}

/* ── Cart content (scrollable) ── */

.mv-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

/* Empty state */
.mv-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    gap: 12px;
    color: var(--warm-gray);
}

.mv-cart-empty-icon {
    font-size: 36px;
}

.mv-cart-empty-text {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
}

.mv-cart-empty-sub {
    font-size: 13px;
    line-height: 1.6;
}

/* ── Cart item ── */

.mv-cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.mv-cart-item-img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    object-position: center top;
    background: var(--cream-3);
    flex-shrink: 0;
    border-radius: 4px;
}

.mv-cart-item-img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

.mv-cart-item-name {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 3px;
    line-height: 1.3;
}

.mv-cart-item-meta {
    font-family: var(--f-italic);
    font-style: italic;
    font-size: 12px;
    color: var(--warm-gray);
    margin-bottom: 4px;
}

.mv-cart-item-price {
    font-family: var(--f-display);
    font-size: 15px;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.mv-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mv-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.mv-qty-btn {
    width: 28px; height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-qty-btn:hover {
    background: var(--cream-3);
}

.mv-qty-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    line-height: 28px;
    color: var(--ink);
}

.mv-cart-remove {
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--warm-gray-2);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    padding-bottom: 1px;
    transition: color 0.2s;
    font-family: var(--f-body);
}

.mv-cart-remove:hover {
    color: var(--bordeaux);
    border-color: var(--bordeaux);
}

.mv-cart-item-total {
    font-family: var(--f-display);
    font-size: 14px;
    color: var(--ink);
    flex-shrink: 0;
    padding-top: 2px;
}

/* ── Cart footer ── */

.mv-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--cream-2);
}

.mv-cart-totals {
    margin-bottom: 16px;
}

.mv-cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--warm-gray);
    padding: 4px 0;
}

.mv-cart-row--total {
    font-family: var(--f-display);
    font-size: 17px;
    color: var(--ink);
    font-weight: 400;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 10px;
}

