:root {
    --primary-color: #660708;
    --accent-color: #2c3e50;
    --sidebar-width: 260px;
    --promo-dark: #0a0a0a;
    --gold-accent: #ffc107;
    --cursiva-bold: 'Bold', sans-serif;
    --Bold: 'Bold', sans-serif;
    --BoldItalic: 'BoldItalic', sans-serif;
    --Medium: 'Medium', sans-serif;
    --Regular: 'Regular', sans-serif;
    --amarillo: #D4AF37;
    --primary-red: #660708;
    --dark-red: #3b0000;
    --gold: #D4AF37;
    --black: #1a1a1a;
    --white: #ffffff;
    --white2: white;
    --gray-bg: #f8f9fa;
    --gray-border: #eeeeee;

}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Barra Superior de Contacto */
.top-contact-bar {
    background-color: var(--accent-color);
    min-height: 50px;
    font-size: 0.75rem;
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.top-contact-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.top-contact-bar a:hover {
    color: var(--primary-color);
}

/* Navegación */
.navbar {
    background-color: var(--primary-color) !important;
    z-index: 1030;
    padding: 0.8rem 1rem;
    height: 55px;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    display: block;
}

.navbar-brand,
.nav-link {
    color: #fff !important;
}

.nav-link:hover {
    color: var(--bs-warning) !important;
}

/* Mega Menú Estilo Pantalla Completa y Comportamiento Hover */
.nav-item.dropdown.mega-menu-static {
    position: static;
}

/* Efecto Hover para mostrar el menú */
/* @media (min-width: 1200px) {
    .nav-item.dropdown:hover>.mega-menu-content {
        display: block;
        margin-top: 0;
       
    }
} */
/* --- LÓGICA DE HOVER PARA EL MEGA MENÚ --- */
@media (min-width: 1200px) {

    /* Mantiene el menú abierto cuando el cursor está sobre el item o el contenido */
    .nav-item.dropdown:hover>.mega-menu-content {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }

    /* Ajuste para evitar que el menú se cierre al intentar bajar el mouse */
    .mega-menu-content {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
}

.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    border-radius: 0 0 12px 12px;
    padding: 2.5rem;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    background: white;
    z-index: 1000;
}

.mega-menu-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li a {
    text-decoration: none;
    color: #666;
    font-size: 0.88rem;
    display: block;
    padding: 0.35rem 0;
    transition: all 0.2s;
}

.category-list li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
    background-color: #f9f9f9;
}

/* Buscadores */
.search-container {
    max-width: 400px;
    width: 100%;
}

.btn-navbar-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    height: 31px;
    /* Altura fija para alineación con input */
}

.btn-filter {
    background-color: #34495e;
    color: white;
    border: none;
}

.btn-filter:hover {
    background-color: #465e75;
    color: white;
}

@media (max-width: 575.98px) {
    .navbar-actions-wrapper {
        flex-wrap: wrap;
        width: 100%;
        margin-top: 10px;
    }

    .search-container {
        max-width: 100%;
        margin-bottom: 8px;
    }

    .btn-navbar-action {
        flex: 1;
        /* Hace que filtros y carrito ocupen el mismo espacio abajo */
    }
}

/* Layout Principal */
.main-wrapper {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #dee2e6;
    padding: 2rem 1.2rem;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.aside-section {
    font-family: var(--cursiva-bold);
    font-style: italic;
    color: var(--accent-color);
}

.aside-category {
    font-family: var(--cursiva-bold);
}

.content-area {
    flex-grow: 1;
    padding: .25rem 2rem 2rem 2rem;
    width: 100%;
}

@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }

    .content-area {
        padding: 1rem;
    }
}

/* Grid de 7 columnas personalizado */
@media (min-width: 1400px) {
    .col-xxl-7-cols {
        flex: 0 0 auto;
        width: 14.2857%;
    }
}

/* Banners de Categoría Dinámicos */
.cat-banner {
    height: 100%;
    min-height: 320px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cat-banner:hover {
    transform: scale(1.02);
    color: white;
}

.cat-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.cat-banner-content {
    position: relative;
    z-index: 2;
}

/* Tarjetas de Producto */
.product-card {
    border: thin #eaeaea solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-img-box {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    border-bottom: thin #eaeaea solid;

}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    height: 1.4em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.product-price {
    font-weight: bold;
    color: var(--primary-color);
    display: inline-grid;
}

/* Secciones */
.category-section {
    margin-bottom: 10px;
}

.section-title {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}



.whatsapp-mobile {
    background: #25d366;
    color: white;
    z-index: 999;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 2rem;
    /* padding: 32px; */
    text-decoration: none;
    border-radius: 31px;
    animation-name: pulse;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.pleca-mobile {
    display: none;
}

@media (min-width: 1200px) {
    .escritorio {
        display: flex;
    }


}


@media (max-width: 1024px) {
    .escritorio {
        display: none;
    }

    .pleca-mobile {
        height: 65px;
        background-color: var(--primary-color);
        display: flex;
        justify-content: space-between;
        align-items: center;

    }


    .logo-mobile {
        width: 150px;

    }


}