/* Woo-Customizer Products — estilos del template de producto individual */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.h2pp-product {
    font-family: 'Montserrat', sans-serif;
    color: #2c2e35;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.h2pp-product * { box-sizing: border-box; }

.h2pp-gradient-text {
    background: linear-gradient(90deg, #E1368C 0%, #FFBE36 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h2pp-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E1368C;
    margin-bottom: 8px;
}
.h2pp-eyebrow--center { text-align: center; }
.h2pp-eyebrow--gradient {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 33.54px;
    letter-spacing: 7.043px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #E1368C 0%, #FFBE36 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.h2pp-section { margin: 80px 0; }
.h2pp-section__title { font-size: 28px !important; font-weight: 600 !important; margin: 0 0 20px; line-height: 1.3 !important; }
.h2pp-section__title--center { text-align: center; margin-bottom: 32px; }

/* ── Hero ── */
.h2pp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .h2pp-hero { grid-template-columns: 1fr; }
}
.h2pp-hero__left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ── Gallery ── */
.h2pp-gallery__main {
    position: relative;
    background: #fff4fa;
    border-radius: 22px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.h2pp-gallery__main img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* ── Thumbnails: slider horizontal (con muchas fotos no crece de alto, se navega con flechas) ── */
.h2pp-gallery__thumbs-wrap {
    position: relative;
    margin-top: 20px;
    max-width: 100%;
}
.h2pp-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    max-width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.h2pp-gallery__thumbs::-webkit-scrollbar { display: none; }
.h2pp-gallery__thumb {
    width: 140px; height: 140px;
    padding: 6px;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.h2pp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.h2pp-gallery__thumb--active { border-color: #E1368C; }

.h2pp-gallery__thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(20,20,43,0.12) !important;
    cursor: pointer;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.h2pp-gallery__thumb-nav,
.h2pp-gallery__thumb-nav::before,
.h2pp-gallery__thumb-nav::after {
    content: none !important;
    background-image: none !important;
}
.h2pp-gallery__thumb-nav::before {
    content: '' !important;
    display: block !important;
    width: 8px;
    height: 8px;
    border-top: 2px solid #2c2e35;
    border-right: 2px solid #2c2e35;
}
.h2pp-gallery__thumb-nav--prev { left: -14px; }
.h2pp-gallery__thumb-nav--prev::before { transform: rotate(-135deg); margin-left: 3px; }
.h2pp-gallery__thumb-nav--next { right: -14px; }
.h2pp-gallery__thumb-nav--next::before { transform: rotate(45deg); margin-right: 3px; }
.h2pp-gallery__thumb-nav--hidden { display: none !important; }

/* ── Badge ── */
.h2pp-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.h2pp-badge--top-left { top: 14px; left: 14px; }
.h2pp-badge--top-right { top: 14px; right: 14px; }
.h2pp-badge--bottom-left { bottom: 14px; left: 14px; }
.h2pp-badge--bottom-right { bottom: 14px; right: 14px; }

/* ── What Customers Say ── */
.h2pp-social-proof {
    background: rgba(225,54,140,0.05);
    border-radius: 20px;
    padding: 28px;
}
.h2pp-social-proof__title { font-size: 20px !important; font-weight: 600 !important; margin: 0 0 20px; line-height: 1.3 !important; }
.h2pp-social-proof__list { display: flex; flex-direction: column; gap: 16px; }
.h2pp-social-proof__item { padding-bottom: 16px; border-bottom: 1px solid rgba(225,54,140,0.2); }
.h2pp-social-proof__item:last-child { border-bottom: none; padding-bottom: 0; }
.h2pp-social-proof__name { font-size: 14px; font-weight: 500; margin-left: 8px; color: #2c2e35; }
.h2pp-social-proof__quote { margin: 8px 0 0; color: #364153; font-size: 14px; }
.h2pp-social-proof__link { display: inline-block; margin-top: 16px; color: #E1368C; font-weight: 500; text-decoration: none; }
.h2pp-social-proof__link:hover { text-decoration: underline; }

.h2pp-stars { color: #FFBE36; letter-spacing: 2px; font-size: 16px; }
.h2pp-stars--lg { font-size: 24px; }

/* ── Summary (columna derecha) ── */
.h2pp-summary { display: flex; flex-direction: column; gap: 24px; }
.h2pp-summary__header { display: flex; flex-direction: column; gap: 10px; }
.h2pp-summary__title { font-size: 40px !important; font-weight: 600 !important; letter-spacing: -0.02em; margin: 0; line-height: 1.2 !important; }
.h2pp-summary__rating { display: flex; align-items: center; gap: 10px; }
.h2pp-summary__rating a { color: #364153; font-size: 14px; text-decoration: none; }
.h2pp-summary__rating .star-rating { color: #FFBE36; }
.h2pp-summary__price { font-size: 32px; font-weight: 600; }
.h2pp-summary__price del { opacity: .5; font-size: 22px; margin-right: 8px; }

.h2pp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 500px) { .h2pp-features { grid-template-columns: repeat(2, 1fr); } }
.h2pp-feature {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    background: rgba(225,54,140,0.05);
    border: 1px solid rgba(225,54,140,0.1);
    border-radius: 12px;
    padding: 14px 6px;
}
.h2pp-feature:nth-child(3n+2) { background: rgba(255,190,54,0.05); border-color: rgba(255,190,54,0.1); }
.h2pp-feature__icon { width: 32px; height: 32px; object-fit: contain; }
.h2pp-feature__label { font-size: 13px; font-weight: 500; }

/* ── Purchase type toggle ── */
.h2pp-purchase-type { display: flex; gap: 16px; }
.h2pp-purchase-type__option {
    flex: 1;
    text-align: center;
    background: none;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.h2pp-purchase-type__option--active { border-color: #E1368C; background: rgba(225,54,140,0.1); }
.h2pp-purchase-type__label { font-size: 16px; font-weight: 500; color: #2c2e35; }
.h2pp-purchase-type__price { font-size: 14px; color: #364153; }

/**
 * Toggle nativo "One-time purchase / Subscribe & Save" del motor de
 * suscripciones de WooCommerce (clases wcsatt-*) — no depende de nuestro
 * shortcode [h2pp_purchase_toggle], solo re-viste el HTML real que genera
 * el plugin nativo.
 */
.wcsatt-options-prompt-radios {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 16px 0 0 !important;
    padding: 0 !important;
}
@media (max-width: 500px) {
    .wcsatt-options-prompt-radios { flex-direction: column; }
}
.wcsatt-options-prompt-radio {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    transition: border-color .15s ease, background .15s ease;
    list-style: none;
}
.wcsatt-options-prompt-radio:has(input:checked),
.wcsatt-options-prompt-radio.h2pp-wcsatt-selected {
    border-color: #E1368C;
    background: rgba(225,54,140,0.1);
}
.wcsatt-options-prompt-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #2c2e35 !important;
    margin: 0 !important;
}
.wcsatt-options-prompt-action-input {
    accent-color: #E1368C;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0 !important;
}
.wcsatt-options-prompt-action { display: block; }
.wcsatt-options-prompt-radio .subscription-price del { opacity: .5; margin-right: 6px; }
.wcsatt-options-prompt-radio .subscription-price ins { text-decoration: none; color: #E1368C; font-weight: 700; }

/**
 * Reset visual de la tabla nativa de variaciones de WooCommerce. Sin
 * prefijo ".h2pp-variations-wrap": ese wrapper solo existe cuando ESTE
 * plugin arma el Add to Cart con su propio shortcode/template — si usás el
 * módulo nativo "Add to Cart" de Divi (recomendado), el formulario no tiene
 * ese wrapper, así que estas reglas tienen que aplicar en cualquier caso.
 */
table.variations,
.woocommerce div.product table.variations { display: block !important; width: 100%; border: none; }
table.variations tbody,
table.variations tr,
.woocommerce div.product table.variations tbody,
.woocommerce div.product table.variations tr { display: block !important; width: 100%; }
table.variations th,
table.variations td.label,
.woocommerce div.product table.variations th,
.woocommerce div.product table.variations td.label { display: none !important; }
table.variations td,
.woocommerce div.product table.variations td { display: block !important; width: 100%; padding: 0; margin-bottom: 24px; }
table.variations tr.reset_variations { display: none !important; }

.h2pp-swatch-heading { font-size: 18px; font-weight: 500; margin-bottom: 16px; }

.h2pp-swatches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.h2pp-swatch-group--text .h2pp-swatches { grid-template-columns: repeat(2, 1fr); }
.h2pp-swatch-group--image .h2pp-swatches { grid-template-columns: repeat(2, 1fr); }

/* Reset total: ningún ::before/::after (flechitas, iconos de dropdown, etc. que
 * agrega el estilo genérico de botones de Divi) puede aparecer en un swatch. */
.h2pp-swatch,
.h2pp-swatch::before,
.h2pp-swatch::after {
    content: none !important;
    background-image: none !important;
}
.h2pp-swatch {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 16px 12px !important;
    background: #fff !important;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none !important;
}
.h2pp-swatch--active { border-color: #E1368C !important; background: rgba(225,54,140,0.1) !important; }
a.h2pp-swatch { text-decoration: none !important; color: inherit !important; }
.h2pp-swatch-group--image .h2pp-swatch__image {
    width: 150px; height: 38px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.h2pp-swatch__label { font-size: 16px; font-weight: 500; color: #1e1e1e; }

/* Por si algún plugin/tema mete un select2 (u otro dropdown reforzado) sobre el <select> nativo */
.select2-container { display: none !important; }

.single_variation_wrap { margin-bottom: 20px; }

/* Cantidad: input nativo + steppers agregados por JS */
.h2pp-qty-wrap { display: flex; align-items: center; gap: 20px; }
.h2pp-qty-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}
.single-product .quantity input.qty {
    width: 64px; height: 48px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 600;
}

/* Botones Add to cart / Quick buy (!important porque Divi trae su propio estilo de botón con alta especificidad) */
.single-product .single_add_to_cart_button,
.single-product button[name="h2pp_quick_buy"] {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 20px 40px !important;
    border-radius: 999px !important;
    cursor: pointer;
    border: none !important;
}
.single-product .single_add_to_cart_button {
    background: linear-gradient(90deg, #E1368C 0%, #FFBE36 100%) !important;
    color: #fff !important;
    flex: 1;
}
.single-product button[name="h2pp_quick_buy"] {
    background: #fff !important;
    color: #E1368C !important;
    border: 2px solid #E1368C !important;
}
.single-product .woocommerce-variation-add-to-cart,
.single-product .cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* ── Overview ── */
.h2pp-overview__content { font-size: 16px; line-height: 1.7; color: #364153; }

/* ── How to ── */
.h2pp-howto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .h2pp-howto { grid-template-columns: 1fr; }
}
.h2pp-howto__title { font-size: 34px !important; font-weight: 700 !important; color: #2c2e35; margin: 0 0 24px; line-height: 1.2 !important; }
.h2pp-howto__image img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    margin-left: auto;
}
@media (max-width: 900px) { .h2pp-howto__image img { margin: 0 auto; } }
.h2pp-howto__step h4 { margin: 0 0 10px; font-size: 20px !important; font-weight: 700 !important; color: #2c2e35; line-height: 1.3 !important; }
.h2pp-howto__step p { margin: 0 0 8px; color: #2c2e35; font-size: 16px; line-height: 1.6; }
.h2pp-howto__divider { height: 2px; background: rgba(44,46,53,0.25); margin: 24px 0; }

/* ── Ingredients & Nutrition ── */
.h2pp-ingredients-nutrition__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) { .h2pp-ingredients-nutrition__grid { grid-template-columns: 1fr; } }
.h2pp-ingredients { background: #fff4fa; border-radius: 20px; padding: 28px; }
.h2pp-ingredients h3 { font-size: 20px !important; font-weight: 700 !important; color: #2c2e35; margin: 0 0 16px; line-height: 1.3 !important; }
.h2pp-ingredients__list { margin: 0; padding-left: 20px; color: #364153; }
.h2pp-ingredients__list li { margin-bottom: 6px; font-size: 15px !important; }
.h2pp-key-benefits { margin-top: 20px; background: #fff9ec; border-radius: 14px; padding: 16px 20px; }
.h2pp-key-benefits h4 { margin: 0 0 8px; font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important; }
.h2pp-key-benefits ul { margin: 0; padding-left: 18px; }
.h2pp-key-benefits ul li { font-size: 14px !important; }

.h2pp-nutrition-panel { border: 2px solid #1e1e1e; border-radius: 4px; padding: 20px 24px; background: #fff; }
.h2pp-nutrition-panel__photo { width: 100%; height: auto; display: block; border-radius: 2px; }
.h2pp-nutrition-panel h3 { font-size: 26px !important; font-weight: 800 !important; margin: 0 0 6px; line-height: 1.2 !important; }
.h2pp-nutrition-panel__servings,
.h2pp-nutrition-panel__serving-size { margin: 2px 0; font-size: 14px !important; }
.h2pp-nutrition-panel__divider { border-bottom: 8px solid #1e1e1e; margin: 8px 0; }
.h2pp-nutrition-panel__divider:not(.h2pp-nutrition-panel__divider--thick) { border-bottom-width: 4px; }
.h2pp-nutrition-panel__calories { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0; font-size: 13px !important; }
.h2pp-nutrition-panel__calories strong { font-size: 22px !important; font-weight: 700 !important; }
.h2pp-nutrition-panel__calories-value { font-size: 32px !important; font-weight: 700 !important; }
.h2pp-nutrition-panel__table { width: 100%; border-collapse: collapse; font-size: 14px !important; }
.h2pp-nutrition-panel__table td { padding: 4px 0; border-bottom: 1px solid #ccc; font-size: 14px !important; }
.h2pp-nutrition-panel__dv { text-align: right; font-weight: 600; }
.h2pp-nutrition-panel__footnote { font-size: 11px !important; color: #666; margin-top: 12px; line-height: 1.4 !important; }

/* ── Science ── */
.h2pp-science { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .h2pp-science { grid-template-columns: 1fr; } }
.h2pp-science__image img { width: 100%; border-radius: 20px; object-fit: cover; }
.h2pp-science__content p { color: #364153; line-height: 1.7; }

/* ── FAQ ── */
.h2pp-faq__list {
    max-width: 800px; margin: 0 auto;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(20,20,43,0.05);
    padding: 4px 26px;
}
.h2pp-faq__item { border-top: 1px solid #ececf1; }
.h2pp-faq__item:first-child { border-top: none; }
.h2pp-faq__question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; background: none; border: none; cursor: pointer; text-align: left;
    padding: 22px 0; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: #1c1c28;
}
.h2pp-faq__chevron {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ececf1;
    display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease;
}
.h2pp-faq__question[aria-expanded="true"] .h2pp-faq__chevron { transform: rotate(180deg); }
.h2pp-faq__chevron svg { width: 11px; height: 11px; }
.h2pp-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.h2pp-faq__answer p { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: #6b6b76; }

/* ── Reviews ── */
.h2pp-reviews__summary { text-align: center; margin-bottom: 32px; }
.h2pp-reviews__average { font-size: 28px; font-weight: 700; display: block; }
.h2pp-reviews__count { display: block; color: #6b6b76; font-size: 14px; margin-top: 4px; }
.h2pp-reviews__grid { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.h2pp-reviews__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.h2pp-reviews__grid--cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1200px; }
.h2pp-reviews__grid--cols-4 { grid-template-columns: repeat(4, 1fr); max-width: 1200px; }
@media (max-width: 700px) { .h2pp-reviews__grid { grid-template-columns: 1fr !important; } }

.h2pp-review-card { background: #fff9ec; border-radius: 16px; padding: 20px; }
.h2pp-review-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; position: relative; }
.h2pp-review-card__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.h2pp-review-card__name { display: block; font-size: 14px; font-weight: 600; }
.h2pp-verified-badge {
    margin-left: auto; font-size: 11px; font-weight: 700; color: #E1368C;
    background: rgba(225,54,140,0.1); padding: 4px 10px; border-radius: 999px;
}
.h2pp-review-card__quote { margin: 0; font-size: 14px; color: #364153; }

/* ── Related ── */
.h2pp-related { text-align: center; }
.h2pp-related__subtitle { color: #6b6b76; margin-bottom: 32px; }
.h2pp-related__grid.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0; padding: 0;
    text-align: left;
}
@media (max-width: 900px) { .h2pp-related__grid.products { grid-template-columns: 1fr; } }
.h2pp-related__grid.products li.product {
    background: #fff4fa;
    border-radius: 20px;
    padding: 20px;
}
.h2pp-related__grid.products li.product img { border-radius: 14px; }
.h2pp-related__grid.products li.product .button {
    display: block; text-align: center; margin-top: 12px;
    background: linear-gradient(90deg, #E1368C 0%, #FFBE36 100%);
    color: #fff; border-radius: 999px; padding: 12px; text-decoration: none;
    font-weight: 600;
}
