/*
Theme Name: GenX Biotech V11
Theme URI: https://genxbiotech.lat
Author: GenX Biotech
Description: Tema premium WooCommerce móvil primero, con presentación de vial estilo limpio, selectores de variantes tipo cápsula, carrito compacto y WhatsApp integrado.
Version: 11.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: genx-v11
*/
:root{
  --gx-green:#176b3a;
  --gx-green-dark:#0f512b;
  --gx-ink:#111;
  --gx-muted:#68706a;
  --gx-soft:#f6f7f6;
  --gx-line:#e6e8e6;
  --gx-white:#fff;
  --gx-radius:22px;
  --gx-shadow:0 18px 50px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--gx-ink);background:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Announcement */
.gx-top{background:var(--gx-green)!important;color:#fff;text-align:center;padding:7px 16px;font-size:11px;line-height:1.3;letter-spacing:.105em;text-transform:uppercase}

/* Header */
.gx-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);border-bottom:1px solid var(--gx-line);backdrop-filter:blur(14px)}
.admin-bar .gx-header{top:32px}
.gx-nav{max-width:1240px;margin:auto;min-height:70px;padding:10px 22px;display:flex;align-items:center;gap:16px}
.gx-logo{display:inline-flex;align-items:center;flex:0 0 auto}
.gx-logo img{display:block;width:176px;max-height:48px;object-fit:contain;object-position:left center}
.gx-menu{display:flex;align-items:center;gap:24px;margin-left:24px;font-size:14px;font-weight:650}
.gx-menu ul{display:flex;gap:24px;list-style:none;margin:0;padding:0}
.gx-actions-head{margin-left:auto;display:flex;align-items:center;gap:8px}
.gx-icon-btn{position:relative;width:44px;height:44px;border:1px solid var(--gx-line);border-radius:999px;background:#fff;display:inline-flex;align-items:center;justify-content:center;transition:.2s;cursor:pointer}
.gx-icon-btn:hover,.gx-icon-btn:focus-visible{border-color:var(--gx-green);transform:translateY(-1px)}
.gx-icon-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9}
.gx-whatsapp{color:var(--gx-green)}
.gx-cart-count{position:absolute;right:-4px;top:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--gx-green);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.gx-menu-toggle{display:none}
.gx-mobile-panel{display:none}

/* Search overlay */
.gx-search-overlay{position:fixed;inset:0;background:rgba(17,17,17,.55);z-index:9999;display:none;align-items:flex-start;justify-content:center;padding:92px 16px}
.gx-search-overlay.is-open{display:flex}
.gx-search-box{width:min(680px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:var(--gx-shadow)}
.gx-search-box form{display:flex;gap:10px}
.gx-search-box input{width:100%;min-height:52px;border:1px solid var(--gx-line);border-radius:14px;padding:0 16px}
.gx-search-box button{border:0;border-radius:14px;background:var(--gx-green);color:#fff;padding:0 20px;font-weight:800}

/* Hero */
.gx-hero{max-width:1240px;margin:auto;padding:54px 22px 50px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:48px}
.gx-kicker{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--gx-green);font-weight:850}
.gx-hero h1{font-size:clamp(44px,7vw,82px);line-height:.95;letter-spacing:-.065em;margin:17px 0 20px;max-width:760px}
.gx-hero p{font-size:18px;color:var(--gx-muted);max-width:610px;margin:0}
.gx-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:27px}
.gx-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.single_add_to_cart_button{
  min-height:50px;background:var(--gx-green)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:13px 23px!important;font-weight:800!important;line-height:1.2!important;display:inline-flex!important;align-items:center;justify-content:center
}
.gx-btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.single_add_to_cart_button:hover{background:var(--gx-green-dark)!important}
.gx-btn.alt{background:#fff!important;color:#111!important;border:1px solid #111!important}
.gx-hero-art{background:linear-gradient(145deg,#fff,#f4f6f4);border-radius:34px;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gx-hero-art img{width:min(76%,420px);height:auto;object-fit:contain;filter:drop-shadow(0 20px 18px rgba(0,0,0,.10))}

/* General sections */
.gx-section{max-width:1240px;margin:auto;padding:66px 22px}
.gx-section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}
.gx-section h2{font-size:clamp(34px,5vw,56px);letter-spacing:-.05em;margin:0}
.gx-section p{color:var(--gx-muted)}
.gx-benefits{background:#111;color:#fff}
.gx-benefit-grid{max-width:1240px;margin:auto;padding:42px 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.gx-benefit-grid p{color:#b9c0bb;margin-bottom:0}
.gx-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gx-category-grid a{min-height:126px;border:1px solid var(--gx-line);border-radius:22px;padding:24px;display:flex;align-items:flex-end;font-size:20px;font-weight:800;transition:.2s}
.gx-category-grid a:hover{background:var(--gx-soft);transform:translateY(-3px)}
.gx-faq details{border-top:1px solid var(--gx-line);padding:20px 0}
.gx-faq details:last-child{border-bottom:1px solid var(--gx-line)}
.gx-faq summary{cursor:pointer;font-weight:800;font-size:18px}
.gx-faq details p{max-width:760px}

/* Product archive: spacious Ramp-like vial presentation */
.woocommerce .woocommerce-breadcrumb,.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{font-size:13px;color:var(--gx-muted)}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:34px!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:0;padding:0 0 22px!important;transition:.22s}
.woocommerce ul.products li.product:hover{transform:translateY(-3px)}
.woocommerce ul.products li.product a img{
  width:100%!important;aspect-ratio:1/1.16;object-fit:contain!important;background:#fff!important;border-radius:22px!important;
  margin:0 0 19px!important;padding:10%!important;filter:drop-shadow(0 16px 15px rgba(0,0,0,.08))
}
.woocommerce-loop-product__title{font-size:20px!important;padding:0!important;margin:0 0 8px!important;letter-spacing:-.02em}
.price{color:#111!important;font-weight:820!important;font-size:17px!important}
.woocommerce ul.products li.product .button{width:100%;margin-top:15px!important}

/* Single product: large clean vial */
.single-product div.product{max-width:1240px;margin:44px auto!important;padding:0 22px}
.woocommerce div.product div.images{padding:4% 4% 2%;background:#fff;border-radius:30px}
.woocommerce div.product div.images img{border-radius:24px;background:#fff;object-fit:contain;filter:drop-shadow(0 22px 20px rgba(0,0,0,.09))}
.woocommerce div.product .summary{padding-top:18px}
.woocommerce div.product .product_title{font-size:clamp(40px,5vw,66px);letter-spacing:-.055em;line-height:1;margin-bottom:18px}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:26px!important;margin:8px 0 18px!important}
.woocommerce-product-details__short-description{color:var(--gx-muted);font-size:17px}
.gx-research-notice{margin:18px 0;padding:13px 15px;background:var(--gx-soft);border-left:3px solid var(--gx-green);font-size:13px}
.woocommerce div.product form.cart{margin-top:20px}

/* Lexen-style variation chips while retaining WooCommerce selects */
.variations{margin-bottom:12px!important}
.variations th,.variations td{display:block!important;width:100%!important;text-align:left!important;padding:0!important}
.variations label{display:block;margin:0 0 10px;font-weight:850;font-size:15px}
.variations select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.gx-variation-chips{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 12px}
.gx-chip{border:1px solid #bcc3be;background:#fff;color:#111;border-radius:14px;min-width:70px;min-height:42px;padding:9px 14px;font-weight:750;cursor:pointer;transition:.18s}
.gx-chip:hover{border-color:var(--gx-green)}
.gx-chip.is-selected{background:var(--gx-green);border-color:var(--gx-green);color:#fff}
.gx-chip:disabled,.gx-chip.is-disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}
.reset_variations{font-size:12px;color:var(--gx-muted)}
.woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.quantity .qty{min-height:48px;border:1px solid var(--gx-line);border-radius:13px;padding:0 10px}

/* Trust row */
.gx-trust-row{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:20px 0}
.gx-trust-item{border:1px solid var(--gx-line);border-radius:14px;padding:11px;font-size:12px;font-weight:750;display:flex;align-items:center;gap:8px}
.gx-trust-dot{width:8px;height:8px;border-radius:50%;background:var(--gx-green);flex:0 0 auto}

/* Related / Frequently bought */
.gx-complements{clear:both;max-width:1240px;margin:40px auto 0;padding:0 22px 60px}
.gx-complements h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}
.related.products{clear:both;padding-top:44px}
.related.products>h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}

/* Footer */
.gx-footer{border-top:1px solid var(--gx-line);padding:46px 22px;color:var(--gx-muted);font-size:13px}
.gx-footer-inner{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:30px}
.gx-footer strong{display:block;color:#111;margin-bottom:10px}
.gx-footer a{display:block;margin:7px 0}
.gx-footer-bottom{max-width:1240px;margin:34px auto 0;padding-top:20px;border-top:1px solid var(--gx-line)}

/* Hide common floating WhatsApp widgets—the header icon replaces them */
.joinchat,.ht-ctc-chat,.qlwapp,.wa__btn_popup,.whatsapp-chat,.floating-whatsapp{display:none!important}

@media(max-width:900px){
  .admin-bar .gx-header{top:46px}
  .gx-menu{display:none}
  .gx-menu-toggle{display:inline-flex}
  .gx-mobile-panel{position:fixed;left:0;right:0;top:0;bottom:0;background:#fff;z-index:10000;padding:22px;transform:translateX(-105%);transition:.25s;display:block}
  .gx-mobile-panel.is-open{transform:translateX(0)}
  .gx-mobile-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
  .gx-mobile-panel nav a{display:block;border-bottom:1px solid var(--gx-line);padding:17px 0;font-size:20px;font-weight:800}
  .gx-hero{grid-template-columns:1fr;padding-top:40px}
  .gx-hero-art{min-height:350px}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gx-benefit-grid{grid-template-columns:repeat(2,1fr)}
  .gx-footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .gx-category-grid{grid-template-columns:1fr}
  .gx-category-grid a{min-height:94px}
}
@media(max-width:560px){
  .gx-top{padding:6px 8px;font-size:9px}
  .gx-nav{min-height:62px;padding:7px 12px;gap:7px}
  .gx-logo img{width:138px;max-height:39px}
  .gx-icon-btn{width:39px;height:39px}
  .gx-icon-btn svg{width:19px;height:19px}
  .gx-account-link{display:none}
  .gx-hero{padding:35px 16px 42px;gap:25px}
  .gx-hero h1{font-size:47px}
  .gx-hero p{font-size:16px}
  .gx-hero-art{min-height:310px;border-radius:25px}
  .gx-actions .gx-btn{width:100%}
  .gx-section{padding:50px 16px}
  .gx-section-head{display:block}
  .woocommerce ul.products{grid-template-columns:1fr!important;gap:42px!important}
  .woocommerce ul.products li.product{padding-bottom:10px!important}
  .woocommerce ul.products li.product a img{aspect-ratio:1/1.08;padding:14%!important}
  .single-product div.product{margin-top:25px!important;padding:0 16px}
  .woocommerce div.product div.images{padding:1% 8% 3%}
  .gx-benefit-grid{grid-template-columns:1fr;padding:36px 16px}
  .gx-trust-row{grid-template-columns:1fr}
  .gx-footer-inner{grid-template-columns:1fr}
}


/* V11.3 — Selector único de concentraciones
   El plugin instalado en la tienda conserva sus botones grandes.
   Se ocultan únicamente los chips duplicados generados por este tema. */
.variations_form .gx-variation-chips{
  display:none!important;
}

/* Mantener visible Mi cuenta / Login en móvil. */
@media(max-width:560px){
  .gx-account-link{
    display:inline-flex!important;
  }
  .gx-logo img{
    width:124px;
  }
  .gx-actions-head{
    gap:5px;
  }
  .gx-icon-btn{
    width:36px;
    height:36px;
  }
}


/* V11.4 — Concentraciones compactas tipo píldora Lexen */

/* Mantener oculto el selector duplicado generado por el tema. */
.variations_form .gx-variation-chips{
  display:none!important;
}

/* Ocultar textos auxiliares que ensucian el selector. */
.variations_form .reset_variations,
.variations_form .woo-selected-variation-item-name,
.variations_form .selected-variation-name,
.variations_form .variation-selected-value,
.variations_form .wvs-selected-item-name{
  display:none!important;
}

/* Contenedores de plugins comunes de muestras/variaciones. */
.variations_form .variable-items-wrapper,
.variations_form .woo-variation-items-wrapper,
.variations_form .cfvsw-swatches-container,
.variations_form .thwvsf-wrapper-ul,
.variations_form .rtwpvs-terms-wrapper,
.variations_form .button-variable-wrapper{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  margin:4px 0 10px!important;
  padding:0!important;
}

/* Opciones compactas tipo píldora. */
.variations_form .variable-item,
.variations_form .cfvsw-swatches-option,
.variations_form .thwvsf-wrapper-item-li,
.variations_form .rtwpvs-term,
.variations_form .button-variable-item{
  width:auto!important;
  min-width:58px!important;
  min-height:36px!important;
  height:auto!important;
  margin:0!important;
  padding:7px 13px!important;
  border:1px solid #c8ceca!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.2!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  transition:.18s ease!important;
}

/* Evitar cajas internas que vuelvan cuadrada la píldora. */
.variations_form .variable-item span,
.variations_form .variable-item .variable-item-contents,
.variations_form .cfvsw-swatches-option span{
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  line-height:1.2!important;
}

/* Seleccionada: verde GenX. */
.variations_form .variable-item.selected,
.variations_form .variable-item[aria-checked="true"],
.variations_form .cfvsw-swatches-option.cfvsw-selected-swatch,
.variations_form .thwvsf-selected,
.variations_form .rtwpvs-term.selected,
.variations_form .button-variable-item.selected{
  background:#176b3a!important;
  border-color:#176b3a!important;
  color:#fff!important;
}

.variations_form .variable-item.selected *,
.variations_form .variable-item[aria-checked="true"] *,
.variations_form .cfvsw-swatches-option.cfvsw-selected-swatch *{
  color:#fff!important;
}

/* Sin globos/tooltips negros al tocar una concentración. */
.variations_form .variable-item::before,
.variations_form .variable-item::after,
.variations_form [data-wvstooltip]::before,
.variations_form [data-wvstooltip]::after{
  display:none!important;
}

/* Espaciado limpio entre selector, precio y compra. */
.variations_form table.variations{
  margin-bottom:8px!important;
}
.woocommerce-variation-price{
  margin-top:14px!important;
}
