/* Archivo: products-page.css
   Funcion: Estilo especifico del listado de productos (productos.php), misma direccion
   "natural/organico" que el resto de paginas ya migradas (ver homepage.css, about.css,
   institutional.css, stores.css, announcements.css, faq-page.css): tonos tierra, formas
   organicas suaves, acentos botanicos y algo de movimiento ambiental. Se carga
   UNICAMENTE en productos.php (ver includes/header.php) y todas las reglas van
   prefijadas con body.page-products. */

@keyframes organic-drift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.06) rotate(4deg); }
}

@keyframes gentle-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
}

/* ---------- Banner de cabecera: formas organicas con movimiento lento ---------- */
body.page-products .page-hero::before {
    border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
    animation: organic-drift 15s ease-in-out infinite;
}

body.page-products .page-hero::after {
    border-radius: 58% 42% 35% 65% / 55% 65% 35% 45%;
    animation: organic-drift 19s ease-in-out infinite reverse;
}

/* ---------- Icono de hoja junto al "eyebrow" ---------- */
body.page-products .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.page-products .leaf-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-earth-clay);
    animation: gentle-sway 4s ease-in-out infinite;
    transform-origin: 70% 70%;
}

/* ---------- Titulos con mas presencia + subrayado verde a tierra ---------- */
body.page-products .section-title h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    letter-spacing: -0.01em;
}

body.page-products .section-title h2::after {
    background: linear-gradient(90deg, var(--color-primary), var(--color-earth-clay));
}

/* ---------- Chip de categoria activo: tierra en vez de verde ---------- */
body.page-products .filter-chip.is-active {
    background: var(--color-earth-clay);
}

@media (hover: hover) {
    body.page-products .filter-chip:hover {
        border-color: var(--color-earth-clay);
    }
}

/* ---------- Tarjetas de producto: acento superior tierra al pasar el raton ---------- */
@media (hover: hover) {
    body.page-products .card:hover {
        border-top-color: var(--color-earth-clay);
    }
}

/* ---------- Secciones por categoria (ver productos.php): "Todos" muestra todas seguidas, con
   su propio titulo; filtrar por una categoria oculta el resto de secciones enteras (ver
   filters.js), no solo las tarjetas sueltas. ---------- */
body.page-products .products-section + .products-section {
    margin-top: 48px;
}

body.page-products .products-section-title {
    font-size: 1.6rem;
    margin: 0 0 22px;
    padding-bottom: 10px;
    color: var(--color-dark);
    position: relative;
}

body.page-products .products-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-earth-clay));
}
