/* =========================================================
   01 - TIENDA
   Rutas: /tienda/, categorías, etiquetas y marcas de producto, y fichas de producto
   (is_shop, is_product_taxonomy, is_product en ekipa-assets.php)
   Diseño: Astra (modelo visual de WeBeando), D-02 + D-09, integra D-01, 2026-10-17
   Ámbito: contenido principal de archivos WooCommerce y fichas.
   No añade contenido, recursos, fuentes ni comportamiento de compra.
   ========================================================= */

/* 01 · VARIABLES Y BASE */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container {
    --ekp-ink: #111827;
    --ekp-deep: #0B1220;
    --ekp-muted: #4B5563;
    --ekp-line: #E5E7EB;
    --ekp-soft: #F9FAFB;
    --ekp-photo: #F3F4F6;
    --ekp-warm: #FFF7ED;
    --ekp-warm-line: #FED7AA;
    --ekp-accent: #F97316;
    --ekp-link: #C2410C;
    --ekp-link-hover: #9A3412;
    --ekp-wa: #107C41;
    --ekp-wa-hover: #0B6333;
    /* PUENTE ASTRA: retirar solo estas nueve líneas si se adopta la paleta propuesta. */
    --ast-global-color-0: #C2410C;
    --ast-global-color-1: #9A3412;
    --ast-global-color-2: #111827;
    --ast-global-color-3: #4B5563;
    --ast-global-color-4: #FFFFFF;
    --ast-global-color-5: #F9FAFB;
    --ast-global-color-6: #0B1220;
    --ast-global-color-7: #E5E7EB;
    --ast-global-color-8: #111827;
    box-sizing: border-box;
    padding: clamp(12px, 2vw, 24px);
    background: #FFFFFF;
    color: var(--ekp-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #primary {
    float: none;
    width: 100%;
    min-width: 0;
    margin-block: 24px 40px;
    padding: 0;
    border: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *::before,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *::after {
    box-sizing: border-box;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
    font-family: inherit;
}

/* 02 · ENLACES Y ESTADOS (incluye controles existentes) */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container a {
    color: var(--ekp-link);
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container a:visited {
    color: var(--ekp-link);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container a:is(:hover, :focus-visible) {
    color: var(--ekp-link-hover);
    text-decoration-thickness: 2px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container :is(button, input, select, textarea) {
    max-width: 100%;
    color: var(--ekp-ink);
    background-color: #FFFFFF;
    border: 1px solid var(--ekp-muted);
    border-radius: 4px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container :is(button, input[type="submit"], .button) {
    color: #FFFFFF;
    background: var(--ekp-link);
    min-height: 44px;
    white-space: normal;
    border-radius: 4px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container :is(button, input[type="submit"], .button):is(:hover, :focus-visible) {
    color: #FFFFFF;
    background: var(--ekp-link-hover);
}
/* Se conserva un foco doble para fondos claros y controles oscuros. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container :focus-visible {
    outline: 3px solid var(--ekp-ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #FFFFFF;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ::selection {
    color: #FFFFFF;
    background: var(--ekp-link);
}

/* 03 · LISTADO: CABECERA, MIGAS, RECUENTO, ORDEN Y REJILLA */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-breadcrumb {
    margin: 0 0 20px;
    color: var(--ekp-muted);
    font-size: .875rem;
    line-height: 1.6;
    white-space: normal;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-breadcrumb a {
    color: var(--ekp-muted);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-breadcrumb a:is(:hover, :focus-visible) {
    color: var(--ekp-link-hover);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header {
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
}
/* R2: R4/R6: título de ficha separado de los encabezados en mayúsculas. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header__title,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header h2,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .related.products > h2 {
    margin: 0 0 20px;
    color: var(--ekp-ink);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-align: left;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header__title {
    padding-bottom: 16px;
    border-bottom: 4px solid var(--ekp-accent);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-result-count {
    float: none;
    margin: 0 0 20px;
    color: var(--ekp-muted);
    font-size: .875rem;
}
/* Ocultación visual y de teclado; retirar también el hook en WooCommerce. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-ordering {
    display: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    clear: both;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products::before,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products::after {
    content: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-pagination {
    margin-top: 32px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-pagination ul li {
    border: 0;
    overflow: visible;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-pagination :is(a, span.current, span.dots) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--ekp-line);
    border-radius: 4px;
    color: var(--ekp-ink);
    background: #FFFFFF;
    font-weight: 900;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-pagination :is(a:hover, a:focus-visible, span.current) {
    color: #FFFFFF;
    background: var(--ekp-link);
    border-color: var(--ekp-link);
}

/* 04 · TARJETA: ARCHIVOS Y RELACIONADOS */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product {
    display: flex;
    flex-direction: column;
    float: none;
    clear: none;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ekp-line);
    border-radius: 10px;
    background: #FFFFFF;
    text-align: left;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
    transition: border-color 160ms ease;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product:is(:hover, :focus-within) {
    border-color: var(--ekp-accent);
}
/* R2: R7: marco blanco; se conserva el borde exterior E5E7EB de la tarjeta. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap {
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border-radius: 9px 9px 0 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap > a:not(.ast-on-card-button) {
    display: block;
    aspect-ratio: 1;
    border-radius: 9px 9px 0 0;
}
/* R2: R7: foto completa sobre blanco, con 6 px de relleno en todos los anchos. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 6px;
    background: #FFFFFF;
    border-radius: 9px 9px 0 0;
}
/* No se recorta el foco del enlace que envuelve la imagen. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap > a:focus-visible {
    outline-offset: -6px;
    box-shadow: inset 0 0 0 3px #FFFFFF;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .ast-on-card-button {
    display: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 16px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .ast-woo-product-category {
    display: block;
    margin: 0 0 8px;
    color: var(--ekp-link);
    opacity: 1;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .ast-loop-product__link {
    color: var(--ekp-ink);
    text-decoration: none;
    margin-bottom: 16px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.35;
    text-transform: none;
    overflow-wrap: anywhere;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .ast-loop-product__link:is(:hover, :focus-visible) {
    color: var(--ekp-link-hover);
    text-decoration: underline;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 44px;
    margin: auto 0 0;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #FFFFFF;
    background: var(--ekp-ink);
    font-size: .875rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .button:is(:hover, :focus-visible) {
    color: #FFFFFF;
    background: var(--ekp-deep);
    border-color: var(--ekp-accent);
}

/* 05 · BANDA DE INTRODUCCIÓN: .term-description ES EL ENVOLTORIO DE WOOCOMMERCE */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description {
    max-width: none;
    margin: 24px 0;
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--ekp-warm-line);
    border-left: 4px solid var(--ekp-accent);
    border-radius: 10px;
    background: var(--ekp-warm);
    color: var(--ekp-ink);
    text-align: left;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description p {
    max-width: 70ch;
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.65;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description p:last-child {
    margin-bottom: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .ekp-catalog-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .ekp-catalog-intro-actions > p {
    margin: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-whatsapp,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 13px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: .9375rem;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    white-space: normal;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-whatsapp {
    background: var(--ekp-wa);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-whatsapp:is(:hover, :focus-visible) {
    color: #FFFFFF;
    background: var(--ekp-wa-hover);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-secondary {
    background: var(--ekp-ink);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description .ekp-btn-secondary:is(:hover, :focus-visible) {
    color: #FFFFFF;
    background: var(--ekp-deep);
    border-color: var(--ekp-accent);
}
/* Solo el ejemplo sin URL: no simula una ruta operativa. No bajar la opacidad. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .term-description a[aria-disabled="true"] {
    border-style: dashed;
    border-color: #FFFFFF;
    cursor: not-allowed;
}

/* 06 · FICHA: GALERÍA, RESUMEN, DATOS Y WHATSAPP D-01 */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product {
    display: flow-root;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}
/* R2: R1/R2/R7: reserva para miniaturas antes/después del slider; columnas desde 922 px. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .woocommerce-product-gallery {
    float: left;
    width: 48%;
    min-width: 0;
    margin: 0 0 32px;
    padding: 0 0 76px;
    background: #FFFFFF;
    border: 1px solid var(--ekp-line);
    border-radius: 10px;
    /* I-01 / I-02: el HTML trae opacity:0 y transition:.25s inline. */
    opacity: 1 !important;
    transition: none !important;
    position: relative;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .summary {
    float: right;
    width: 48%;
    min-width: 0;
    margin: 0 0 32px;
    padding: 0;
    color: var(--ekp-ink);
}
/* R2: R9: conservar el foco exterior de migas y CTA dentro del resumen. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .summary,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary .woocommerce-breadcrumb {
    overflow: visible;
}
/* R2: R1: I-03 libera la altura inline; la proporción pasa a 4:3 hasta 921 px. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-viewport {
    aspect-ratio: 1;
    /* I-03: FlexSlider calcula height en línea a partir de cada foto. */
    height: auto !important;
    width: 100%;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__wrapper {
    margin: 0;
}
/* Antes de FlexSlider: solo la primera imagen a tamaño completo, sin fila fantasma.
 * Tras inicializarse, .flex-viewport envuelve el wrapper y deja de coincidir. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    width: 100%;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image {
    display: none;
}
/* R2: R1/R7: mismo marco que viewport e imagen; blanco y cuadrado solo en escritorio. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__image > a {
    display: block;
    aspect-ratio: 1;
    background: #FFFFFF;
    width: 100%;
}
/* R2: R1/R7: contain sin filtros y solo 6 px de relleno. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    margin: 0;
    border-radius: 9px;
    background: #FFFFFF;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__image > a:focus-visible {
    outline-offset: -6px;
    box-shadow: inset 0 0 0 3px #FFFFFF;
}
/* R2: R1/R9: una fila; 76 px reservan imagen, foco y barra fina sin salto al iniciar. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 8px;
    list-style: none;
    position: absolute;
    inset: auto 0 0;
    align-items: flex-start;
    height: 76px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-padding-inline: 8px;
}
/* R2: R1: los clearfix del tema no deben convertirse en huecos de la fila flex. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs::before,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs::after {
    content: none;
}
/* R2: R1: miniaturas de 48 px, sin porcentajes ni segunda fila. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs li {
    float: none;
    width: 48px;
    min-width: 0;
    margin: 0;
    flex: 0 0 48px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 4px;
    border: 2px solid var(--ekp-line);
    border-radius: 4px;
    background: #FFFFFF;
    opacity: 1;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs img:is(.flex-active, :hover, :focus-visible) {
    border-color: var(--ekp-link);
}
/* R2: R9: foco doble interior en miniaturas para sobrevivir al overflow de la tira. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs :is(a, button) {
    display: block;
    width: 48px;
    min-height: 48px;
    padding: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-control-thumbs :focus-visible {
    outline-offset: -6px;
    box-shadow: inset 0 0 0 3px #FFFFFF;
}
/* R2: R4: caja natural y saltos entre palabras; anywhere solo rescata cadenas sin espacios. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .product_title {
    margin: 0 0 12px;
    padding: 0;
    color: var(--ekp-ink);
    font-size: clamp(22px, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
}
/* R2: R4/R9: una categoría compacta según el nuevo DOM; permite envolver al ampliar texto. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .single-product-category {
    display: block;
    margin: 0 0 4px;
    color: var(--ekp-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: uppercase;
    white-space: normal;
}
/* R2: R3: retirado el selector del precio vacío; Claude elimina el nodo en origen. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-details__short-description {
    max-width: 68ch;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.7;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-details__short-description p {
    margin: 0 0 16px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .product_meta {
    display: grid;
    gap: 8px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid var(--ekp-line);
    border-radius: 9px;
    background: var(--ekp-soft);
    color: var(--ekp-muted);
    font-size: .875rem;
    line-height: 1.6;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .product_meta > span {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .product_meta .sku {
    color: var(--ekp-ink);
    font-weight: 700;
}
/* R2: R3: conjunto tras el H1, sin estilos inline ni reordenación visual. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary .ekp-product-cta {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    overflow: visible;
}
/* R2: R3/R9: caja natural, ancho completo, mínimo 48 px y altura libre para varias líneas. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary a.ekp-btn-hero {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #FFFFFF;
    background: var(--ekp-wa);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    align-items: center;
    justify-content: center;
    word-break: normal;
    hyphens: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary a.ekp-btn-hero:is(:hover, :focus-visible) {
    color: #FFFFFF;
    background: var(--ekp-wa-hover);
}
/* R2: R3: nota estable dentro del CTA; retirados los selectores del marcado viejo. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary .ekp-product-cta .ekp-product-support-note {
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    color: var(--ekp-muted);
    background: transparent;
    font-size: .8125rem;
    line-height: 1.4;
    text-align: center;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .ekp-product-support-note em {
    font-style: normal;
}

/* 07 · PESTAÑAS Y ATRIBUTOS: EL JS EXISTENTE CONSERVA LA SELECCIÓN DE PANEL */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs {
    clear: both;
    margin: 0 0 40px;
    padding-top: 16px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    margin: 0 0 24px;
    padding: 6px 6px 12px;
    border-bottom: 1px solid var(--ekp-line);
    list-style: none;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs::before,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs::after,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li::before,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li::after {
    content: none;
}
/* R2: R8: base de 9rem por control; texto ajustable y salto de fila solo si no caben. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex: 1 1 9rem;
    max-width: 100%;
}
/* R2: R8/R9: mínimo 44 px, texto ajustable y foco exterior en lista sin recorte. */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li a {
    display: flex;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--ekp-line);
    border-bottom: 3px solid transparent;
    border-radius: 4px;
    color: var(--ekp-ink);
    background: var(--ekp-soft);
    font-size: .875rem;
    font-weight: 900;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li a:is(:hover, :focus-visible) {
    color: var(--ekp-link-hover);
    background: var(--ekp-warm);
    border-bottom-color: var(--ekp-link);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li.active a,
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs ul.tabs li a[aria-selected="true"] {
    color: #FFFFFF;
    background: var(--ekp-ink);
    border-bottom-color: var(--ekp-accent);
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs .panel {
    margin: 0;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--ekp-line);
    border-radius: 10px;
    color: var(--ekp-ink);
    background: #FFFFFF;
    line-height: 1.7;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs .panel p {
    max-width: 75ch;
    margin: 0 0 16px;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs .panel p:last-child {
    margin-bottom: 0;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .woocommerce-tabs .panel h2 {
    margin: 0 0 20px;
    color: var(--ekp-ink);
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container table.shop_attributes {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid var(--ekp-line);
    font-size: .9375rem;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container table.shop_attributes :is(th, td) {
    padding: 12px;
    border: 1px solid var(--ekp-line);
    color: var(--ekp-ink);
    background: #FFFFFF;
    font-style: normal;
    line-height: 1.6;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container table.shop_attributes th {
    width: 36%;
    background: var(--ekp-soft);
    font-weight: 900;
}
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container table.shop_attributes td p {
    margin: 0;
    padding: 0;
}
/* R2: R8: retiradas las reglas provisionales de estrellas; Claude elimina valoraciones. */

/* 08 · RELACIONADOS */
body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .related.products {
    clear: both;
    margin: 40px 0 0;
    padding: 28px 0 0;
    border-top: 4px solid var(--ekp-accent);
}

/* 09 - MOVIL Y ADAPTACION: LISTADO 1024 / 768 / 420; R2: R2 FICHA 921 / 922 */
/* R2: R2: ficha independiente a 921/922; no cambia la rejilla del listado. */
@media (max-width: 1024px) {
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}
@media (max-width: 921px) {
    /* R2: R1/R2: una columna; ancho útil máximo 346,6667 px para un marco 4:3 de 260 px. */
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .woocommerce-product-gallery,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .summary {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container > div.product > .woocommerce-product-gallery {
        max-width: calc(1040px / 3 + 2px);
        margin-inline: auto;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery .flex-viewport,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__image > a,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
        aspect-ratio: 4 / 3;
        max-height: 260px;
    }
    /* R2: R4/R5: jerarquía compacta sin ocultar ni recortar líneas. */
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .product_title {
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 1.2;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container div.product .summary .woocommerce-breadcrumb {
        margin: 0 0 8px;
        padding: 0;
        font-size: 12px;
        line-height: 1.4;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    /* R2: R6: H1/H2 del listado y relacionados a un máximo de 24 px, en mayúsculas. */
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header__title,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .woocommerce-products-header h2,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .related.products > h2 {
        font-size: 24px;
        word-break: normal;
        overflow-wrap: anywhere;
        hyphens: none;
    }
}
@media (max-width: 768px) {
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #primary {
        margin-block: 12px 28px;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .ekp-catalog-intro-actions {
        flex-direction: column;
        align-items: stretch;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container .ekp-catalog-intro-actions a {
        width: 100%;
    }
    /* R2: R8: retirado el apilado obligatorio; flex-wrap decide si caben ambas pestañas. */
}
@media (max-width: 420px) {
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container {
        padding: 12px 0;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products {
        gap: 12px;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .astra-shop-summary-wrap {
        padding: 10px;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
    }
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container ul.products li.product .button {
        padding-inline: 6px;
        font-size: .8125rem;
    }
    /* R2: R7: los 6 px ya se aplican en el bloque 04 a todos los anchos. */
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container table.shop_attributes :is(th, td) {
        padding: 8px;
    }
}
/* R2: R9: se conservan I-04 / I-05: anular también transiciones/animaciones inline del tema o plugins.
 * El desplazamiento del slider controlado por JS requiere la revisión indicada en notas. */
@media (prefers-reduced-motion: reduce) {
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *::before,
    body.woocommerce:is(.archive, .post-type-archive-product, .single-product):not(.page):not(.home) #main .ast-woocommerce-container *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto;
    }
}



