/* ====== LISTA DEL CARRITO ====== */
.lista-carrito {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.carrito-vacio {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.carrito-vacio p {
    margin-bottom: 1rem;
}

.item-carrito {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    gap: 1rem;
}

.item-carrito .producto-imagen {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.item-carrito .producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.item-precio-unitario {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0.2rem 0;
}

.item-subtotal {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0.2rem 0 0 0;
}

/* ====== CONTROLES DE CANTIDAD ====== */
.item-controles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cantidad {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.btn-cantidad:hover {
    background: var(--dark-green);
}

.btn-cantidad:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.cantidad {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.btn-eliminar {
    background: #f44336;
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.btn-eliminar:hover {
    background: #d32f2f;
}

.carrito-footer {
    padding: 1.5rem;
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
}

.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

/* ====== CARRUSEL GRANDE ====== */
.carrusel-grande {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carrusel-container {
    position: relative;
    height: 100%;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carrusel-slide.active {
    opacity: 1;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrusel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 2rem;
}

.carrusel-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.carrusel-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.carrusel-prev, .carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.carrusel-prev:hover, .carrusel-next:hover {
    background: var(--white);
}

.carrusel-prev {
    left: 1rem;
}

.carrusel-next {
    right: 1rem;
}

/* ====== FILTROS RÁPIDOS ====== */
.filtros-rapidos {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filtros-rapidos h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.filtro-btn {
    background: var(--light-green);
    border: 2px solid #4caf50;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.filtro-btn:hover {
    background: #4caf50;
    color: var(--white);
    transform: translateY(-2px);
}

/* ====== SECCIÓN PRODUCTOS ====== */
.seccion-productos {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-green);
}

.productos-header h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.contador-productos {
    color: var(--text-light);
    font-size: 1rem;
}