/* =========================================================
   UNOSKREATIVOS
   TIENDA — DISEÑO VISUAL
   ========================================================= */


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.store-shell {
    margin-top: 42px;
}


/* =========================================================
   NAVEGACIÓN DE CATEGORÍAS
   ========================================================= */

.store-category-nav {
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;

    padding: 2px 0 16px;

    scrollbar-width: thin;
    scrollbar-color: var(--accent) #111;

    -webkit-overflow-scrolling: touch;
}

.store-category-nav::-webkit-scrollbar {
    height: 5px;
}

.store-category-nav::-webkit-scrollbar-track {
    background: #111;
}

.store-category-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
}


/* =========================================================
   BOTONES / ENLACES DE CATEGORÍAS
   ========================================================= */

.store-category-link {
    flex: 0 0 auto;

    min-height: 44px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);

    background: #0b0b0b;
    color: #d8d8d8;

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.store-category-link:hover,
.store-category-link:focus-visible {
    border-color: var(--accent);
    color: var(--accent);

    transform: translateY(-2px);

    outline: none;
}

.store-category-link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}


/* =========================================================
   SUBCATEGORÍAS
   ========================================================= */

.store-subcategory-slot {
    min-height: 1px;
    margin: 8px 0 24px;
}


/* =========================================================
   GRID PRINCIPAL — DESKTOP
   ========================================================= */

.store-category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   TARJETA
   ========================================================= */

.store-category-grid .store-category-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px;

    background:
        linear-gradient(
            150deg,
            #111111 0%,
            #0c0c0c 52%,
            #080808 100%
        );

    box-shadow:
        0 18px 45px rgba(0,0,0,.22);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.store-category-grid .store-category-card:hover {
    transform: translateY(-5px);

    border-color: rgba(204,255,0,.42);

    box-shadow:
        0 24px 55px rgba(0,0,0,.38),
        0 0 0 1px rgba(204,255,0,.06);
}


/* =========================================================
   IMAGEN — DESKTOP
   Más horizontal para evitar tarjetas demasiado altas
   ========================================================= */

.store-category-grid .store-category-media {
    width: 100%;
    height: auto;

    flex: 0 0 auto;

    aspect-ratio: 1 / 1;

    position: relative;
    overflow: hidden;

    background: #0b0b0b;

    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.store-category-grid .store-category-media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 68%,
            rgba(0,0,0,.12) 100%
        );
}

.store-category-grid .store-category-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.001);

    transition:
        transform .4s ease,
        filter .4s ease;
}

.store-category-grid .store-category-card:hover
.store-category-media img {
    transform: scale(1.035);
}


/* =========================================================
   CUERPO DE LA TARJETA
   ========================================================= */

.store-category-grid .store-category-body {
    width: 100%;
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px 24px 26px;
}


/* =========================================================
   NUMERACIÓN / KICKER
   ========================================================= */

.store-category-grid .store-category-kicker {
    margin-bottom: 12px;

    color: var(--accent);

    font-size: 10px;
    line-height: 1.2;

    font-weight: 950;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.store-category-grid .store-category-card h3 {
    margin: 0 0 12px;

    color: var(--white);

    font-size:
        clamp(1.55rem, 2.1vw, 2rem);

    line-height: .98;

    font-weight: 900;

    letter-spacing: -.6px;

    text-transform: uppercase;

    text-wrap: balance;

    overflow-wrap: normal;
    word-break: normal;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.store-category-grid .store-category-card p {
    margin: 0 0 18px;

    color: #b7b7b7;

    font-size: .92rem;
    line-height: 1.6;
}


/* =========================================================
   ETIQUETAS
   ========================================================= */

.store-category-grid .store-category-meta {
    margin-top: 0;
    margin-bottom: 18px;

    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 7px;
}

.store-category-grid .store-category-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;

    padding: 6px 10px;

    border: 1px solid #303030;
    border-radius: 999px;

    background: rgba(255,255,255,.012);

    color: #bcbcbc;

    font-size: 9px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   ACCIÓN GENERADA POR EL MÓDULO
   ========================================================= */

.store-category-grid
.store-category-card
.store-category-action,
.store-category-grid
.store-category-card
.store-category-cta {
    margin-top: auto;

    color: var(--accent);

    font-size: 10px;

    font-weight: 950;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   ÁREA DE PRODUCTOS
   ========================================================= */

.store-products-slot {
    margin-top: 30px;

    border: 1px dashed #303030;

    background:
        rgba(255,255,255,.015);

    padding: 24px;

    color: #777;

    font-size: 12px;
    line-height: 1.6;
}

.store-products-slot strong {
    display: block;

    margin-bottom: 5px;

    color: var(--white);

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   DESKTOP GRANDE
   ≥ 1280px
   ========================================================= */

@media (min-width: 1280px) {

    .store-category-grid {
        gap: 20px;
    }

    .store-category-grid .store-category-body {
        padding:
            25px
            24px
            27px;
    }

}


/* =========================================================
   TABLET / LAPTOP
   ≤ 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .store-category-grid {
        gap: 16px;
    }

    .store-category-grid .store-category-body {
        padding: 22px;
    }

    .store-category-grid .store-category-card h3 {
        font-size:
            clamp(1.4rem, 2.5vw, 1.8rem);
    }

}


/* =========================================================
   TABLET
   ≤ 900px
   ========================================================= */

@media (max-width: 900px) {

    .store-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .store-category-grid .store-category-media {
        aspect-ratio: 4 / 3;
    }

}


/* =========================================================
   MÓVIL
   ≤ 560px
   ========================================================= */

@media (max-width: 560px) {

    /* -----------------------------------------
       Navegación
       ----------------------------------------- */

    .store-category-nav {
        width: calc(100vw - 8%);

        margin-right: -4vw;

        padding-bottom: 14px;
    }


    /* -----------------------------------------
       Grid
       ----------------------------------------- */

    .store-category-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 16px;
    }


    /* -----------------------------------------
       Tarjeta
       ----------------------------------------- */

    .store-category-grid .store-category-card {
        width: 100%;
        min-height: 0;

        display: flex;
        flex-direction: column;

        border-radius: 18px;

        overflow: hidden;
    }


    /* -----------------------------------------
       Imagen móvil
       Mantener 1:1
       ----------------------------------------- */

    .store-category-grid .store-category-media {
        width: 100%;
        height: auto;

        flex: 0 0 auto;

        aspect-ratio: 1 / 1;

        overflow: hidden;

        border-right: 0;
        border-bottom:
            1px solid var(--line);
    }

    .store-category-grid .store-category-media img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* -----------------------------------------
       Contenido
       ----------------------------------------- */

    .store-category-grid .store-category-body {
        width: 100%;

        padding: 20px;

        display: flex;
        flex-direction: column;
    }


    /* -----------------------------------------
       Categoría
       ----------------------------------------- */

    .store-category-grid
    .store-category-kicker {
        margin-bottom: 10px;

        font-size: 10px;
        line-height: 1.3;

        letter-spacing: 1.5px;
    }


    /* -----------------------------------------
       Título
       ----------------------------------------- */

    .store-category-grid
    .store-category-card h3 {
        margin-bottom: 12px;

        font-size:
            clamp(
                1.45rem,
                7vw,
                2rem
            );

        line-height: 1;

        letter-spacing: -.4px;

        overflow-wrap: normal;
        word-break: normal;
    }


    /* -----------------------------------------
       Descripción
       ----------------------------------------- */

    .store-category-grid
    .store-category-card p {
        margin-bottom: 18px;

        font-size: .92rem;
        line-height: 1.6;
    }


    /* -----------------------------------------
       Etiquetas
       ----------------------------------------- */

    .store-category-grid
    .store-category-meta {
        margin-top: 0;
        margin-bottom: 16px;

        display: flex;
        flex-wrap: wrap;

        gap: 7px;
    }

    .store-category-grid
    .store-category-meta span {
        min-height: 28px;

        padding: 7px 9px;

        font-size: 9px;
        line-height: 1.2;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ≤ 380px
   ========================================================= */

@media (max-width: 380px) {

    .store-category-grid {
        gap: 14px;
    }

    .store-category-grid .store-category-body {
        padding: 18px;
    }

    .store-category-grid
    .store-category-card h3 {
        font-size:
            clamp(
                1.35rem,
                7vw,
                1.8rem
            );
    }

    .store-category-grid
    .store-category-card p {
        font-size: .89rem;
    }

}