:root {
    --primary-red: #FF3008;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

.title{
    padding: 1rem;
    
}
/* ===== DROPDOWN DESKTOP ===== */
.dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu {
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-gray);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    padding-left: 25px;
}

/* ===== MENÚ MÓVIL - VERSIÓN FUNCIONAL ===== */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9998;
    padding-top: 70px;
    overflow-y: auto;
}

#mobile-menu.active {
    display: block;
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Botón hamburguesa POSICIONADO */
#mobile-menu-btn {
    z-index: 9999;
    position: relative;
}

/* ===== ARREGLOS PARA EL MENÚ MÓVIL ===== */
#mobile-menu-btn {
    position: relative;
    z-index: 10001 !important;
}

#mobile-menu {
    padding-top: 80px !important;
}

/* Dropdowns móviles */
.mobile-dropdown-content {
    display: none;
    background: #f8f9fa !important;
    padding-left: 20px;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Items de dropdown */
.mobile-dropdown-content a {
    display: block !important;
    padding: 12px 15px !important;
    color: #495057 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #e9ecef !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.mobile-dropdown-content a:hover {
    background: #e9ecef !important;
    padding-left: 20px !important;
    color: #212529 !important;
}

/* Rotación del ícono dropdown */
.mobile-dropdown > a i.fa-chevron-down {
    transition: transform 0.3s ease !important;
}

.mobile-dropdown.active > a i.fa-chevron-down {
    transform: rotate(180deg) !important;
}

/* AÑADIDO del cliente */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform .2s;
}

/* Animación para dropdowns */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* El contenedor del menú */
#mobile-menu .flex.flex-col {
    position: relative;
    z-index: 9999;
}

/* Asegurar que los textos sean visibles */
#mobile-menu a {
    color: #333 !important;
    font-weight: 500 !important;
}

/* Íconos dentro del menú */
#mobile-menu i {
    color: #666 !important;
    width: 20px;
    text-align: center;
}

/* Separación entre items */
#mobile-menu .border-gray-100 {
    border-color: #dee2e6 !important;
}

/* Desktop: ocultar menú móvil */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

/* ===== ESTILOS GENERALES REUTILIZABLES ===== */
.product-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-hover {
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.link-underline {
    position: relative;
}

.link-underline:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width .3s ease;
}

.link-underline:hover:after {
    width: 100%;
}

/* ===== ESTILOS ESPECÍFICOS DE PÁGINAS ===== */
.products-grid {
    margin-left: 0 !important;
    padding: 1rem;
}

.show-pic {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0px 4px 18px rgba(0,0,0,0.2);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
}

/* Menú Móvil - Agregar al final de style.css */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-dropdown-content {
    display: none;
}

.mobile-dropdown-content a {
    display: block;
    padding: 8px 40px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-dropdown-content a:hover {
    background: #f9fafb;
    color: #dc2626;
}

#all-products-section {
    min-height: 400px;
    background: #f9f9f9;
}
/* En tu archivo CSS o en un style tag */
.price-quantity-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}