/*
Theme Name: Ekommart Child
Theme URI: https://lofassi.com/
Description: Child theme personalizado para LO'FASSI
Author: LO'FASSI
Template: ekommart
Version: 1.0.0
Text Domain: ekommart-child
*/


/*
 * ==========================================================
 * LO'FASSI - HOME
 * ==========================================================
 */

.lofassi-home {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/*
 * ==========================================================
 * HERO
 * ==========================================================
 */

.lofassi-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;

    left: 50%;
    right: 50%;

    margin: 0 -50vw;
    padding: 0;

    overflow: hidden;
    background: #f5f5f5;
}


/* SLIDES */

.lofassi-slide {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;

    opacity: 0;
    text-decoration: none;
}

.lofassi-slide.is-active {
    display: block;
    opacity: 1;
}


/*
 * Antes de que JavaScript inicialice el slider,
 * mostramos inmediatamente el primer banner.
 */

.lofassi-hero:not(.is-ready) .lofassi-slide:first-of-type {
    display: block;
    opacity: 1;
}


/*
 * Una vez inicializado el slider,
 * solamente permanece visible el slide activo.
 */

.lofassi-hero.is-ready .lofassi-slide {
    display: none;
    opacity: 0;
}

.lofassi-hero.is-ready .lofassi-slide.is-active {
    display: block;
    opacity: 1;
}


/* IMÁGENES DEL HERO */

.lofassi-slide picture {
    display: block;
    width: 100%;
}

.lofassi-slide img {
    display: block;
    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}


/* FLECHAS */

.lofassi-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 54px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: rgba(0, 0, 0, .18);
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    transition: background .2s ease;
}

.lofassi-arrow:hover,
.lofassi-arrow:focus {
    background: rgba(0, 0, 0, .48);
    color: #fff;
}

.lofassi-prev {
    left: 20px;
}

.lofassi-next {
    right: 20px;
}


/* INDICADORES */

.lofassi-dots {
    position: absolute;
    z-index: 20;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 9px;
}

.lofassi-dots button {
    display: block;

    width: 10px;
    height: 10px;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 1px solid #fff;
    border-radius: 50%;

    background: rgba(0, 0, 0, .15);

    cursor: pointer;
}

.lofassi-dots button.is-active {
    background: #fff;
}


/* HERO MOBILE */

@media (max-width: 767px) {

    .lofassi-arrow {
        width: 34px;
        height: 44px;
        font-size: 22px;
    }

    .lofassi-prev {
        left: 5px;
    }

    .lofassi-next {
        right: 5px;
    }

    .lofassi-dots {
        bottom: 10px;
        gap: 7px;
    }

    .lofassi-dots button {
        width: 8px;
        height: 8px;
    }
}


/*
 * ==========================================================
 * CATEGORÍAS PRINCIPALES
 * ==========================================================
 */

.lofassi-categories {
    width: 100%;
    padding: 28px;
    background: #fff;
}

.lofassi-categories-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr);

    grid-template-rows:
        minmax(0, 1fr)
        minmax(0, 1fr);

    grid-template-areas:
        "dresses tops coats"
        "dresses bottoms coats";

    gap: 10px;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}


/* POSICIONES */

.lofassi-category-dresses {
    grid-area: dresses;
}

.lofassi-category-tops {
    grid-area: tops;
}

.lofassi-category-bottoms {
    grid-area: bottoms;
}

.lofassi-category-coats {
    grid-area: coats;
}


/* TARJETAS */

.lofassi-category {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #f5f5f5;
}


/* IMÁGENES */

.lofassi-category img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}


/* EFECTO HOVER */

@media (hover: hover) {

    .lofassi-category:hover img {
        transform: scale(1.015);
    }
}


/* CATEGORÍAS MOBILE */

@media (max-width: 767px) {

    .lofassi-categories {
        padding: 10px;
    }

    .lofassi-categories-grid {
        display: grid;

        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;

        grid-template-areas:
            "dresses dresses"
            "tops tops"
            "bottoms bottoms"
            "coats coats";

        gap: 8px;

        max-width: none;
    }

    .lofassi-category {
        height: auto;
    }

    .lofassi-category img {
        width: 100%;
        height: auto;
        object-fit: initial;
    }
}


/*
 * ==========================================================
 * VIDEO DE TEMPORADA
 * ==========================================================
 */

.lofassi-video-section {
    width: 100%;
    padding: 20px 28px 30px;
    background: #fff;
}

.lofassi-video-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    aspect-ratio: 16 / 9;

    background: #000;
    overflow: hidden;
}


/* VIDEO */

.lofassi-video {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    background: #000;

    cursor: pointer;
}

.lofassi-video img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    margin: 0;
    padding: 0;
}


/* BOTÓN PLAY */

.lofassi-video-play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 50px;

    border-radius: 12px;

    background: #ff0000;

    transition:
        transform .2s ease,
        background .2s ease;
}

.lofassi-video-play span {
    width: 0;
    height: 0;

    margin-left: 4px;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
}


/* HOVER */

@media (hover: hover) {

    .lofassi-video:hover .lofassi-video-play {
        transform: translate(-50%, -50%) scale(1.08);
        background: #e60000;
    }
}


/* IFRAME CUANDO SE REPRODUCE */

.lofassi-video-container iframe {
    display: block;

    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;

    border: 0;
}


/* VIDEO MOBILE */

@media (max-width: 767px) {

    .lofassi-video-section {
        padding: 10px 10px 20px;
    }

    .lofassi-video-play {
        width: 60px;
        height: 42px;
        border-radius: 10px;
    }

    .lofassi-video-play span {
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-left-width: 12px;
    }
}


/*
 * ==========================================================
 * ESTABILIDAD DEL FOOTER / CLS
 * ==========================================================
 */

body.page-template-page-home-lofassi #media_image-2 {
    min-height: 38px;
}

body.page-template-page-home-lofassi #media_image-2 img {
    display: block;

    width: 204px;
    height: 38px;
    max-width: 100%;

    aspect-ratio: 204 / 38;
}


/*
 * ==========================================================
 * ELIMINAR ESPACIO BAJO EL HEADER
 * ==========================================================
 */

body.page-template-page-home-lofassi #masthead {
    margin-bottom: 0 !important;
}