/* ============================================
   CARRITO - PÁGINA APARTE (UI PREMIUM)
   ============================================ */

.carrito-page {
    padding: 60px 0;
    min-height: 65vh;
}

.carrito-page h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #1A1109;
}

.carrito-page .subtitulo {
    color: #6B5B4F;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Grid carrito */
.carrito-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .carrito-grid {
        grid-template-columns: 1fr 380px;
    }
}

/* Lista de items */
.carrito-items {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.carrito-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #F0E8DC;
    transition: background 0.2s;
}

.carrito-item:last-child {
    border-bottom: none;
}

.carrito-item__imagen {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    background: #F5EDE3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carrito-item__info {
    flex: 1;
}

.carrito-item__nombre {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #1A1109;
}

.carrito-item__personalizacion {
    font-size: 0.75rem;
    color: #6B5B4F;
    margin-bottom: 10px;
    background: #F5EDE3;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
}

.carrito-item__precio {
    font-size: 0.9rem;
    color: #8B5A2B;
    font-weight: 500;
}

/* Controles de cantidad */
.carrito-item__controles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.control-cantidad {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F5EDE3;
    border-radius: 100px;
    padding: 4px;
}

.control-cantidad button {
    background: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #1A1109;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.control-cantidad button:hover:not(:disabled) {
    background: #8B5A2B;
    color: white;
    transform: scale(1.05);
}

.control-cantidad button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.control-cantidad span {
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    font-size: 1rem;
}

.btn-eliminar {
    background: rgba(231, 76, 60, 0.1);
    border: none;
    color: #E74C3C;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-eliminar:hover {
    background: #E74C3C;
    color: white;
    transform: scale(1.02);
}

.btn-editar {
    background: rgba(139, 90, 43, 0.1);
    border: none;
    color: #8B5A2B;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-editar:hover {
    background: #8B5A2B;
    color: white;
    transform: scale(1.02);
}

/* Mensaje de bloqueo */
.bloqueo-mensaje {
    background: #FFF3E0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #E67E22;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #E67E22;
}

/* Resumen premium */
.carrito-resumen {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(139, 90, 43, 0.1);
}

.carrito-resumen h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0E8DC;
    font-size: 1.3rem;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #1A1109;
}

.resumen-linea.total {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #F0E8DC;
    color: #8B5A2B;
}

.descuento-badge {
    color: #27AE60;
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 58, 26, 0.25);
}

.carrito-vacio {
    text-align: center;
    padding: 80px 20px;
}

.carrito-vacio i {
    font-size: 5rem;
    color: #D4A574;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive carrito item */
@media (max-width: 480px) {
    .carrito-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .carrito-item__imagen {
        width: 80px;
        height: 80px;
    }
    
    .carrito-item__controles {
        justify-content: flex-start;
    }
    
    .carrito-items {
        padding: 20px;
    }
}