/* ==============================> CABECERA */

header .elementor-sticky--active {
    box-shadow: 0 0 10px 1px #8181813b;
}

div:where(.elementor-location-header) {
    margin-bottom: 0px;
}

header .elementor-widget-off-canvas .e-off-canvas__content {
    overflow: visible;
}

header .wd-nav.wd-style-bg>li:is(:hover, .wd-opened, .current-menu-item)>a:before {
    opacity: 1 !important;
}

/* ==============================> CARRITO */

header #fkcart-mini-toggler {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

header #fkcart-mini-toggler:after {
    content: "Carrito de compras";
    font-size: 12px;
    line-height: 14px;
    color: #434343;
    text-align: center;
}

header .whatsapp-cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
	font-size: 12px;
    line-height: 14px;
    text-align: center;
}

header .whatsapp-cabecera i {
    font-size: 32px;
}



/* ==============================> MENU DE CATEGORIAS */

.menu-categorias-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    overflow-y: scroll;
}

.menu-categorias-wrapper * {
    box-sizing: border-box;
}

/* === Vistas === */
.menu-categorias-wrapper .menu-categorias-vista {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.menu-categorias-wrapper .menu-categorias-vista.activa {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Lista de categorías === */
.menu-categorias-wrapper .menu-categorias-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-categorias-wrapper .menu-categorias-item {
    border-bottom: 1px solid #e5e5e5;
    margin: 0 !important;
}

.menu-categorias-wrapper .menu-categorias-item:last-child {
    border-bottom: none;
}

/* === Links y botones === */
.menu-categorias-wrapper .menu-categorias-link {
    background: transparent !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 16px 20px !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #333 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.menu-categorias-wrapper .menu-categorias-link:hover,
.menu-categorias-wrapper .menu-categorias-link:focus {
    background-color: var(--e-global-color-primary) !important;
    color: #fff !important;
    outline: none;
}

.menu-categorias-wrapper .menu-categorias-link:active {
    background-color: var(--e-global-color-primary) !important;
    color: #fff !important;
    transition: none;
}

/* === Icono de flecha === */
.menu-categorias-wrapper .menu-categorias-icono {
    display: inline-block;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    transition: transform 0.15s ease;
    will-change: transform;
}

.menu-categorias-wrapper .menu-categorias-link:hover .menu-categorias-icono {
    transform: translateX(4px);
    color: #666;
}

.menu-categorias-wrapper .menu-categorias-link:active .menu-categorias-icono {
    transform: translateX(6px);
}

/* === Botón volver === */
.menu-categorias-wrapper .menu-categorias-volver {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #f8f8f8;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--e-global-color-primary);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.menu-categorias-wrapper .menu-categorias-volver:hover {
    background-color: var(--e-global-color-accent);
}

.menu-categorias-wrapper .menu-categorias-volver:active {
    background-color: var(--e-global-color-primary);
    transition: none;
}

/* === Título de categoría padre === */
.menu-categorias-wrapper .menu-categorias-titulo {
    margin: 0;
    padding: 20px 20px 16px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
}

.menu-categorias-wrapper .menu-categorias-titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.menu-categorias-wrapper .menu-categorias-titulo a:hover {
    color: #007bff;
}

/* === Imagen de categoría === */
.menu-categorias-wrapper .menu-categorias-imagen {
    padding: 20px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.menu-categorias-wrapper .menu-categorias-imagen a {
    display: inline-block;
}

.menu-categorias-wrapper .menu-categorias-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* ==============================> CATEGORIAS CON COLUMNAS MULTIFILA */

.categoria-general {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.categoria-general .categoria-listado {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 14px 16px;
    max-height: 460px;
}

.categoria-general .categoria-grupo {
    width: 220px;
}

.categoria-general .categoria-columnas {
    position: relative;
}

.categoria-general .categoria-columnas>h3 {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.categoria-general .categoria-grupo h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 4px;
}

.categoria-general .categoria-grupo ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categoria-general .categoria-grupo ul li {
    margin-bottom: 4px;
}

.categoria-general .categoria-grupo ul li a {
    text-decoration: none;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
}

.categoria-general .categoria-grupo ul li a:hover {
    color: var(--e-global-color-primary);
}

.categoria-general .categoria-imagen {
    flex: 0 0 22%;
    height: -webkit-fill-available;
    display: flex;
    align-items: flex-start;
}

.categoria-general .categoria-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* === Responsive === */
@media (max-width: 640px) {
    .categoria-general {
        border-radius: 0;
        box-shadow: none;
    }

    .categoria-general .menu-categorias-link {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }

    .categoria-general .menu-categorias-volver {
        padding: 14px 16px;
        font-size: 15px;
    }

    .categoria-general .menu-categorias-titulo {
        padding: 18px 16px 14px;
        font-size: 18px;
    }

    .categoria-general .menu-categorias-imagen {
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .categoria-general .categoria-general {
        flex-direction: column;
    }

    .categoria-general .categoria-listado {
        flex-wrap: nowrap;
        max-height: none;
        gap: 20px;
    }

    .categoria-general .categoria-grupo {
        width: 100%;
    }

    .categoria-general .categoria-imagen {
        max-width: 100%;
    }
}



/* ==============================> CARRUSEL DE TEXTOS INFINITO */

.wd-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    animation: wd-marquee-fadein 0.5s ease forwards;
}

/* -> ANIMACIÓN DE ENTRADA */

@keyframes wd-marquee-fadein {
    to {
        opacity: 1;
    }
}

/* -> PISTA DE DESPLAZAMIENTO */

.wd-marquee-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.wd-marquee-track:hover {
    animation-play-state: paused;
}

/* -> ITEMS INDIVIDUALES */

.wd-marquee-item {
    display: inline-block;
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
    font-weight: 500;
    padding: 0 30px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.wd-marquee-item:hover {
    opacity: 1; 
    transform: scale(1.05);
}

/* -> ANIMACIÓN DE SCROLL */

@keyframes wd-scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-amount));
    }
}

/* -> RESPONSIVE TABLET */

@media (max-width: 768px) {
    .wd-marquee-container {
        padding: 8px 0;
    }
    
    .wd-marquee-item {
        font-size: 13px;
        padding: 0 20px;
    }
}

/* -> RESPONSIVE MÓVIL */

@media (max-width: 480px) {
    .wd-marquee-container {
        padding: 6px 0;
    }
    
    .wd-marquee-item {
        font-size: 12px;
        padding: 0 15px;
    }
}