/* =========================================================
   Fix del botón Discover flotante para esta página
   (gana por especificidad a preworkout.css sin tocarlo)
   ========================================================= */

.pw-products__grid .pw-product-card .pw-card__btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translate(-50%, 50%) !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    z-index: 999 !important;
}

/* =========================================================
   Botones Energy / Nutrition / Wellness — mismo ancho (320px,
   el que ya usa Wellness) y más separados de las cards de arriba
   ========================================================= */

.pw-cat-btn {
    width: 320px !important;
    min-width: 320px !important;
}

.pw-categories {
    margin-top: 120px !important;
}

/* Más separación entre el título "ENERGY DRINKS" y las cards */
.section-title-wrap {
    margin-bottom: 80px !important;
}


/* =========================================================
   3 tarjetas por fila, centradas si sobran menos de 3,
   con separación real entre filas — versión autocontenida
   ========================================================= */

.pw-products__grid.pw-products__grid--3col {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    column-gap: 28px !important;
    row-gap: 80px !important;
}

.pw-products__grid.pw-products__grid--3col > .pw-product-card {
    box-sizing: border-box !important;
    flex: 0 1 calc((100% - 56px) / 3) !important;
    max-width: calc((100% - 56px) / 3) !important;
}

/* Separación entre bloques .pw-products__grid apilados */
.pw-products__grid + .pw-products__grid {
    margin-top: 80px !important;
}


/* =========================================================
   PROPORCIONES DE LAS CARDS = IGUAL QUE EN NUTRITION
   Reaplica las medidas de nutrition.css a las cards de las
   páginas de producto, donde preworkout.css las deforma
   (logo demasiado grande, foto con otra proporción...).
   Solo toca el interior de la card; el ancho/columnas de arriba
   no cambian. Las cards --tall / --wide conservan su propio
   tamaño de foto.
   ========================================================= */

/* Card base */
.pw-products__grid .pw-product-card {
    display: flex !important;
    flex-direction: column !important;
    background: #0a0a0a !important;
    border-radius: 24px !important;
    overflow: visible !important;
}

/* Foto: solo se redondean las esquinas superiores. NO se toca su altura,
   proporción ni el posicionamiento de la imagen/vídeo (los define
   preworkout.css; forzarlos hacía que la foto colapsara y desapareciera). */
.pw-products__grid .pw-product-card .pw-card__photo {
    overflow: hidden !important;
    border-radius: 24px 24px 0 0 !important;
}

/* Contenedor del logo: centrado sobre fondo oscuro.
   (La altura la fija pw-cards-no-info.css cuando no hay bloque de info) */
.pw-products__grid .pw-product-card .pw-card__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: #0a0a0a !important;
    overflow: hidden !important;
}

/* Logo: tamaño controlado por ALTURA, nunca por anchura */
.pw-products__grid .pw-product-card .pw-card__logo img {
    display: block !important;
    height: 38px !important;
    width: auto !important;
    max-width: 90% !important;
    object-fit: contain !important;
}

/* Botón Discover: mismo ancho que en nutrition */
.pw-products__grid .pw-product-card .pw-card__btn a {
    position: relative !important;
    display: block !important;
    width: 180px !important;
    line-height: 0 !important;
}

.pw-products__grid .pw-product-card .pw-card__btn img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}