/*
Theme Name: Astra Child
Theme URI: https://botasfutsal.com
Description: Child theme for Astra - Botas Futsal
Author: Botas Futsal
Template: astra
Version: 1.0.3
Text Domain: astra-child
*/

/* ===================================
   CARACTERISTICA LANDING
=================================== */

/* =========================
   CONTENEDOR GENERAL
========================= */

.tax-fs_caracteristica .ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fs-caracteristica {
    width: 100%;
}

/* =========================
   HERO (Mobile First)
========================= */

.fs-caracteristica__hero {
    display:flex;
    flex-direction:row;
    justify-content:center;
    padding: 30px 0 10px;
    text-align: center;
}

.fs-caracteristica__hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.fs-caracteristica__description {
    max-width: 680px;
    margin: 0 auto;
    opacity: .85;
    font-size: 14px;
    line-height: 1.6;
}

/* Desktop mejora tipografía */
@media (min-width: 768px) {
    .fs-caracteristica__hero h1 {
        font-size: 32px;
    }

    .fs-caracteristica__description {
        font-size: 15px;
    }
}

/* =========================
   SELECTOR PILLS (Mobile scroll)
========================= */
.fs-container {
  display: flex;
  flex-wrap: wrap; /* Permite que bajen si no caben en una fila */
  gap: 10px;      /* Ajusta este valor para el espaciado deseado */
}
.fs-caracteristica__selector {
    display: flex;
    gap: 14px;                 /* separación uniforme */
    padding: 28px 0;           /* más aire arriba y abajo */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}


.fs-caracteristica__selector::-webkit-scrollbar {
    display: none;
}

.fs-caracteristica__pill {
    flex: 0 0 auto;
    padding: 10px 18px;        /* más equilibrado */
    border-radius: 4px;        /* más moderno */
    border: 1px solid #e5e5e5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
    color: #333;
    white-space: nowrap;
}

.fs-caracteristica__pill:hover {
    border-color: #84cc16;
    color: #84cc16;
}

.fs-caracteristica__pill.is-active {
    background: #84cc16;
    color: #fff;
    border-color: #84cc16;
}

/* Desktop centrado */
@media (min-width: 768px) {
    .fs-caracteristica__selector {
        justify-content: center;
        overflow: visible;
        gap: 18px;             /* más separación en desktop */
        padding: 36px 0;
    }
}

/* =========================
   GRID PRODUCTOS (Mobile first)
========================= */

.fs-caracteristica__grid {
    padding: 40px 0;
}

.fs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Tablet */
@media (min-width: 640px) {
    .fs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .fs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .fs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }
}

/* =========================
   CARD PRODUCTO
========================= */

.fs-card {
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fs-card:hover {
    transform: translateY(-4px);
}

.fs-card__image {
    position: relative;
    overflow: hidden;
}

.fs-card__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;

    /* Lazy avanzado */
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.fs-card__title {
    font-size: 16px !important;
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Desktop tipografía */
@media (min-width: 1024px) {
    .fs-card__title {
        font-size: 18px !important;
    }
}

/* =========================
   ANIMACIÓN SUAVE ENTRADA
========================= */

.fs-card {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp .5s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ESPACIADO GENERAL
========================= */

.tax-fs_caracteristica .site-main {
    padding-bottom: 80px;
}

.fs-card__meta {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    opacity: .6;
}

.fs-card__colors-count::before {
    content: "🎨 ";
}

.fs-card__sizes-count::before {
    content: "👟 ";
}