/* ============================================
   CARRITO ANALUZ - ESTILOS
   ============================================ */

.carrito-section {
    padding: 60px 20px;
    min-height: 60vh;
    background: var(--color-bg, #faf9f7);
}

.container-carrito {
    max-width: 1200px;
    margin: 0 auto;
}

.carrito-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--color-accent, #8b7355);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.05em;
}

/* CARRITO VACÍO */
.carrito-vacio {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-white, #ffffff);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.carrito-icono {
    font-size: 4rem;
    margin-bottom: 20px;
}

.carrito-vacio h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--color-text, #2c2c2c);
    margin-bottom: 15px;
}

.carrito-vacio p {
    color: var(--color-muted, #6b6b6b);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-primario {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-accent, #8b7355);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent, #8b7355);
}

.btn-primario:hover {
    background: transparent;
    color: var(--color-accent, #8b7355);
}

/* GRID CARRITO */
.carrito-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* TABLA */
.tabla-carrito {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.tabla-carrito thead {
    background: var(--color-cream, #f5f3f0);
}

.tabla-carrito th {
    padding: 20px;
    text-align: left;
    color: var(--color-accent, #8b7355);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.tabla-carrito td {
    padding: 20px;
    border-bottom: 1px solid var(--color-light, #e8e4df);
    color: var(--color-text, #2c2c2c);
}

.producto-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.producto-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.precio-unitario,
.subtotal {
    font-weight: 500;
    color: var(--color-accent, #8b7355);
}

.cantidad form {
    display: flex;
    justify-content: center;
}

.cantidad input[type="number"] {
    width: 60px;
    padding: 10px;
    border: 1px solid var(--color-light, #e8e4df);
    border-radius: 6px;
    background: var(--color-bg, #faf9f7);
    color: var(--color-text, #2c2c2c);
    text-align: center;
    font-size: 1rem;
}

.eliminar button {
    background: transparent;
    color: var(--color-accent, #8b7355);
    border: 1px solid var(--color-accent, #8b7355);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.eliminar button:hover {
    background: var(--color-accent, #8b7355);
    color: white;
}

/* VACIAR CARRITO */
.vaciar-carrito {
    margin-top: 20px;
}

.vaciar-carrito button {
    background: transparent;
    color: var(--color-muted, #6b6b6b);
    border: 1px solid var(--color-light, #e8e4df);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.vaciar-carrito button:hover {
    color: var(--color-accent, #8b7355);
    border-color: var(--color-accent, #8b7355);
}

/* RESUMEN */
.carrito-resumen {
    position: sticky;
    top: 100px;
}

.resumen-box {
    background: var(--color-white, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--color-light, #e8e4df);
}

.resumen-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--color-accent, #8b7355);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light, #e8e4df);
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--color-muted, #6b6b6b);
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 10px;
    border-top: 2px solid var(--color-accent, #8b7355);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text, #2c2c2c);
}

.btn-finalizar {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-accent, #8b7355);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 2px solid var(--color-accent, #8b7355);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-finalizar:hover {
    background: transparent;
    color: var(--color-accent, #8b7355);
}

.btn-seguir {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--color-muted, #6b6b6b);
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--color-light, #e8e4df);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-seguir:hover {
    color: var(--color-accent, #8b7355);
    border-color: var(--color-accent, #8b7355);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .carrito-grid {
        grid-template-columns: 1fr;
    }
    
    .tabla-carrito thead {
        display: none;
    }
    
    .tabla-carrito tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--color-light, #e8e4df);
        border-radius: 8px;
        padding: 15px;
    }
    
    .tabla-carrito td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
    }
    
    .tabla-carrito td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-accent, #8b7355);
    }
    
    .carrito-resumen {
        position: static;
    }
}