/*
=========================================================
HOME PRODUCTS TABS
=========================================================
*/

.home-products-tabs {
    padding: 40px 0 20px;
    overflow: hidden;

}

.home-products-tabs .container {

    width: 100%;
    max-width: var(--max-page-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);

}

/*
=========================================================
HEADER
=========================================================
*/

.home-products-tabs__header {

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 18px;
    flex-wrap: wrap;

}

.home-products-tabs__heading {

    max-width: 700px;

}

.home-products-tabs__title {

    margin: 0;
    font-size: var(--h2-size);
    font-family: var(--header-font);
    color: var(--bazinga-light);
    text-transform: uppercase;
    line-height: 1.1;

}

.home-products-tabs__subtitle {

    margin-top: 12px;
    color: var(--bazinga-text-secondary);
    font-size: 17px;
    line-height: 1.6;

}

/*
=========================================================
TABS
=========================================================
*/

.home-products-tabs__nav {

    display: flex;
    flex-wrap: wrap;
    gap: 12px;

}

.home-products-tabs__button {

    border: none;
    /* El foco lo aporta :focus-visible global (base.css). */

    height: 48px;

    padding: 0 24px;

    border-radius: 100px;

    background: var(--bazinga-medium-surface);

    color: var(--bazinga-text-secondary);

    cursor: pointer;

    transition: .25s;

    font-size: 15px;

    font-weight: 600;

}

.home-products-tabs__button:hover {

    background: var(--bazinga-purple);

    color: #FFF;

    transform: translateY(-2px);

}

.home-products-tabs__button.is-active {

    background: var(--bazinga-purple);

    color: #FFF;

    box-shadow: 0 10px 25px rgba(109, 40, 217, .25);

}

/*
=========================================================
CONTENT
=========================================================
*/

.home-products-tabs__content {

    position: relative;

    min-height: 450px;

}

/*
=========================================================
LOADER
=========================================================
*/

.home-products-tabs__loader {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px;

}

/*
=========================================================
SKELETON
=========================================================
*/

.product-skeleton {

    border-radius: 18px;

    overflow: hidden;

    background: var(--bazinga-medium-surface);

    padding: 18px;

}

.product-skeleton__image {

    aspect-ratio: 1;

    border-radius: 12px;

    margin-bottom: 18px;

    animation: skeleton 1.3s infinite linear;

}

.product-skeleton__title {

    width: 80%;

    height: 18px;

    border-radius: 50px;

    margin-bottom: 15px;

    animation: skeleton 1.3s infinite linear;

}

.product-skeleton__price {

    width: 35%;

    height: 18px;

    border-radius: 50px;

    animation: skeleton 1.3s infinite linear;

}

.product-skeleton__image,
.product-skeleton__title,
.product-skeleton__price {

    background: linear-gradient(90deg,
            #2d2d33 25%,
            #424248 50%,
            #2d2d33 75%);

    background-size: 200% 100%;

}

@keyframes skeleton {

    0% {

        background-position: 200% 0;

    }

    100% {

        background-position: -200% 0;

    }

}

/*
=========================================================
EMPTY
=========================================================
*/

.products-empty {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 320px;

    text-align: center;

}

.products-empty p {

    color: var(--bazinga-text-secondary);

    font-size: 18px;

}

/*
=========================================================
TABLET
=========================================================
*/

@media (max-width:1200px) {

    .home-products-tabs__loader {

        grid-template-columns: repeat(3, 1fr);

    }

}

/*
=========================================================
SMALL TABLET
=========================================================
*/

@media (max-width:992px) {

    .home-products-tabs__header {

        align-items: flex-start;

        flex-direction: column;

    }

    .home-products-tabs__loader {

        grid-template-columns: repeat(2, 1fr);

    }

}

/*
=========================================================
MOBILE
=========================================================
*/

@media(max-width:640px) {

    .home-products-tabs {

        padding: 70px 0;

    }

    .home-products-tabs__title {

        font-size: 34px;

    }

    .home-products-tabs__subtitle {

        font-size: 15px;

    }

    .home-products-tabs__nav {

        overflow-x: auto;

        flex-wrap: nowrap;

        width: 100%;

        padding-bottom: 5px;

        scrollbar-width: none;

    }

    .home-products-tabs__nav::-webkit-scrollbar {

        display: none;

    }

    .home-products-tabs__button {

        flex-shrink: 0;

    }

    .home-products-tabs__loader {

        grid-template-columns: 1fr;

    }

}
/*
=========================================================
ESTADO DE CARGA
El skeleton solo se muestra mientras hay una peticion en
curso; la rejilla la gobierna product-card.css.
=========================================================
*/

.home-products-tabs__loader {
    display: none;
}

.home-products-tabs.is-loading .home-products-tabs__loader {
    display: grid;
}

.home-products-tabs.is-loading .home-products-tabs__products {
    display: none;
}
