/* ═══════════════════════════════════════════════
   CARRITO — CAPO'S LUXURY
   css/carrito.css
   ═══════════════════════════════════════════════ */

.cart-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

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

/* ── Lista de Items ── */
.cart-items {
    background: #fff;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 25px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

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

.item-img {
    width: 100px;
    aspect-ratio: 1/1;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-brand {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 800;
}

.item-name {
    font-size: 16px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

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

.item-meta {
    font-size: 12px;
    color: #888;
}

/* Cantidad */
.item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.qty-btn:hover { background: #eee; }

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
}

/* Precio */
.item-subtotal {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    min-width: 100px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
}

.btn-remove:hover { color: #ff4444; }

/* ── Resumen ── */
.cart-summary {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.btn-checkout:hover { opacity: 0.9; }

.btn-continue {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

.btn-continue:hover { color: var(--gold); }

/* Empty State */
.cart-empty {
    text-align: center;
    padding: 100px 0;
}

.cart-empty p {
    font-size: 18px;
    color: #888;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 15px;
    }

    .btn-remove { grid-row: 1; grid-column: 3; }
    .item-subtotal { grid-column: 2 / 4; text-align: left; }
}
