/* NATURAX FORCE - compra directa en productos.html. Respeta el estilo y las tarjetas originales. */
#compra-directa .nf-format-price{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;background:#f6faf3;border:1px solid #dfebd8;border-radius:12px;padding:10px 11px;margin:7px 0;box-sizing:border-box;width:100%}
#compra-directa .nf-format-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.35}
#compra-directa .nf-format-text strong{font-size:15px;color:#163a26}
#compra-directa .nf-format-text small{font-size:12px;color:#627368}
#compra-directa .nf-add-button{width:auto!important;min-width:96px;max-width:120px;padding:9px 13px!important;cursor:pointer;font-size:12px!important;white-space:nowrap;border:0}
#compra-directa .nf-large-order{margin:8px 0 4px;font-size:12px;color:#627368;line-height:1.55}
#compra-directa .nf-large-order a{color:#206b41;font-weight:750}
#compra-directa .directBuyIntro{margin-bottom:18px}
#compra-directa .directProductCard .directActions{display:block!important;width:100%;margin-top:8px}
#compra-directa .nf-cta-toast{display:block;min-height:20px;color:#24683a;font-size:12px;font-weight:750;margin-top:4px}
#compra-directa .nf-cart{margin-top:22px;padding:24px;border:1px solid #cfe3ca;border-radius:18px;background:#fff;box-shadow:0 11px 34px rgba(13,45,20,.08)}
#compra-directa .nf-cart h3{margin:0 0 5px;color:#102d1e;font-size:clamp(23px,2.5vw,29px)}
#compra-directa .nf-cart-info{margin:0 0 15px;color:#607165;font-size:14px}
#compra-directa .nf-cart-empty{margin:8px 0;color:#697b6b}
#compra-directa .nf-cart-list{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
#compra-directa .nf-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e8eee4}
#compra-directa .nf-cart-title{color:#173b25;font-weight:750;font-size:14px;line-height:1.35}
#compra-directa .nf-cart-unit{color:#5b7061;font-size:12px;display:block;font-weight:500}
#compra-directa .nf-stepper{display:flex;gap:9px;align-items:center;border:1px solid #c8dec9;border-radius:9px;padding:3px;background:#f7faf5}
#compra-directa .nf-stepper button{border:0;border-radius:6px;background:white;min-width:30px;min-height:32px;font-size:19px;color:#164c2e;cursor:pointer}
#compra-directa .nf-stepper output{min-width:19px;text-align:center;font-weight:750;font-variant-numeric:tabular-nums}
#compra-directa .nf-cart-total-item{font-weight:750;white-space:nowrap;color:#142c1c;font-variant-numeric:tabular-nums;font-size:14px}
#compra-directa .nf-cart-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.78fr);gap:18px;margin-top:16px}
#compra-directa .nf-promo label,#compra-directa .nf-zip label{display:block;font-weight:750;font-size:13px;color:#183724;margin-bottom:5px}
#compra-directa .nf-promo input,#compra-directa .nf-zip input{border:1px solid #c9d9c5;border-radius:10px;background:white;padding:11px 13px;width:100%;max-width:320px;box-sizing:border-box;font:inherit;color:#1b2c1f;text-transform:uppercase}
#compra-directa .nf-zip input{text-transform:none;max-width:170px}
#compra-directa .nf-promo-description,#compra-directa .nf-shipping-info{font-size:12px;color:#586f5e;line-height:1.55;display:block;margin:5px 0 12px}
#compra-directa .nf-price-summary{background:#f7faf5;border:1px solid #e0edde;border-radius:12px;padding:15px 17px;align-self:start}
#compra-directa .nf-summary-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#405b48;margin:7px 0}
#compra-directa .nf-summary-row strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:#173925}
#compra-directa .nf-summary-total{border-top:1px solid #c9dac5;padding-top:12px;font-size:18px;font-weight:850;color:#11371e}
#compra-directa .nf-summary-total strong{font-size:21px;color:#205c31}
#compra-directa .nf-summary-notice{font-size:12px;color:#566b5b;line-height:1.5;margin:11px 0 0}
#compra-directa .nf-checkout-button{width:100%;display:flex;gap:8px;align-items:center;justify-content:center;margin-top:15px;border:0;border-radius:999px;padding:14px;font-size:15px;cursor:pointer;font-weight:800;color:#082015;background:linear-gradient(125deg,#eadb54,#69d631)}
#compra-directa .nf-checkout-button:disabled{background:#dfe6d9;color:#596c5c;cursor:not-allowed}
#compra-directa .nf-feedback{font-size:13px;line-height:1.55;padding:10px 12px;margin-top:12px;border:1px solid transparent;border-radius:9px;display:none}
#compra-directa .nf-feedback[data-type="error"]{display:block;background:#fff1ee;border-color:#efbeb5;color:#8b271c}
#compra-directa .nf-feedback[data-type="info"]{display:block;background:#eef8ec;border-color:#b9d8b5;color:#204f2a}
#compra-directa .nf-direct-notice{font-size:12px;color:#597060;margin-top:7px}
#compra-directa .nf-cart header{background:transparent!important;color:#123721!important;position:static!important}
#compra-directa button:focus-visible,#compra-directa input:focus-visible{outline:3px solid #76ae4a;outline-offset:2px}
#compra-directa .nf-checkout-status{display:inline-block;font-size:12px;font-weight:700;padding:6px 10px;border-radius:999px;background:#edf2e9;color:#566857;margin-top:6px}
#compra-directa .nf-checkout-status[data-ready="yes"]{background:#e6f7de;color:#216b34}
@media(max-width:740px){#compra-directa .nf-cart{padding:17px 13px}#compra-directa .nf-cart-bottom{grid-template-columns:1fr}#compra-directa .nf-cart-item{gap:7px;grid-template-columns:minmax(0,1fr) auto}#compra-directa .nf-cart-total-item{grid-column:1 / -1;text-align:right;margin-top:-2px}#compra-directa .nf-format-price{gap:7px}#compra-directa .nf-add-button{min-width:90px}}

/* ===== 2026-10-19: right sidebar cart + responsive drawer ===== */
/* The main product card still matches the existing Naturax design. */
#compra-directa.directBuyBlock{overflow:visible!important;box-sizing:border-box}
#compra-directa .nf-shop-layout{min-width:0}
#compra-directa .nf-shop-products{min-width:0}
#compra-directa .nf-shop-products .directBuyGrid{margin-top:0!important;justify-content:flex-start!important}
#compra-directa .nf-format-text strong{font-size:16px;font-weight:850;font-variant-numeric:tabular-nums}
#compra-directa .nf-racix-image-options{align-items:center;gap:8px!important}
#compra-directa .nf-racix-image-choice{display:inline-flex;align-items:center;gap:6px;border:1px solid #d5e6cd;background:#f3f9ee;padding:4px 10px 4px 5px;border-radius:999px;font-weight:850;font-size:12px;color:#16351f;cursor:pointer;min-height:40px}
#compra-directa .nf-racix-image-choice.is-selected{border-color:#49a42a;background:#e8f9d9;box-shadow:0 0 0 2px rgba(80,170,49,.15)}
#compra-directa .directProductCard .nf-racix-image-choice img{display:block!important;width:32px!important;height:32px!important;aspect-ratio:1/1!important;object-fit:cover!important;border:0!important;border-radius:50%!important;background:transparent!important;flex-shrink:0!important}
#compra-directa .nf-racix-image-choice:hover{border-color:#64b73c}
#compra-directa .nf-racix-image-choice:focus-visible{outline:3px solid #79b34b;outline-offset:2px}
#compra-directa .nf-cart-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
#compra-directa .nf-cart-close,#compra-directa .nf-cart-mobile-open{display:none}
#compra-directa #nf-cart-empty[hidden],#compra-directa #nf-cart-list[hidden],#nf-cart-backdrop[hidden]{display:none!important}
#compra-directa .nf-cart-backdrop{display:none}
@media(min-width:1101px){
  #compra-directa .nf-shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:18px;align-items:start}
  #compra-directa .nf-shop-products .directProductCard{flex:0 1 calc(50% - 8px)!important;max-width:calc(50% - 8px)!important;min-width:0!important}
  #compra-directa .nf-cart{position:sticky!important;top:90px;margin:0!important;max-height:calc(100vh - 105px);overflow-y:auto;overscroll-behavior:contain;padding:18px 15px!important;scrollbar-width:thin}
  #compra-directa .nf-cart h3{font-size:23px!important}
  #compra-directa .nf-cart-info{font-size:12px!important}
  #compra-directa .nf-cart-list{gap:2px!important}
  #compra-directa .nf-cart-item{grid-template-columns:minmax(0,1fr) auto;gap:5px 7px;padding:10px 0}
  #compra-directa .nf-cart-total-item{grid-column:1 / -1;text-align:right}
  #compra-directa .nf-cart-bottom{display:flex;flex-direction:column;gap:12px;margin-top:12px}
  #compra-directa .nf-price-summary{width:100%;box-sizing:border-box;padding:12px!important}
  #compra-directa .nf-promo input{max-width:100%}
  #compra-directa .nf-direct-notice{line-height:1.45}
  #compra-directa .nf-zip input{max-width:100%}
}
@media(min-width:1500px){
  /* Expand only into the unused right-hand margin, never to the left. */
  #compra-directa.directBuyBlock{width:calc(100% + clamp(0px, 50vw - 598px, 380px));max-width:none}
  #compra-directa .nf-shop-layout{grid-template-columns:minmax(0,1fr) 316px}
  #compra-directa .nf-shop-products .directProductCard{flex:0 1 calc(33.333% - 11px)!important;max-width:calc(33.333% - 11px)!important;min-width:0!important}
}
@media(max-width:1100px){
  #compra-directa .nf-shop-layout{display:block}
  #compra-directa .nf-shop-products .directBuyGrid{margin-top:18px!important;justify-content:center!important}
  #compra-directa .nf-cart{position:fixed!important;bottom:0;left:0;right:0;z-index:2002;width:100%;max-width:570px;margin:0 auto!important;max-height:min(88vh,870px);max-height:min(88dvh,870px);overflow-y:auto;overscroll-behavior:contain;padding:19px 16px calc(24px + env(safe-area-inset-bottom,0px))!important;border-radius:23px 23px 0 0!important;box-shadow:0 -20px 70px rgba(4,25,12,.25)!important;transform:translateY(106%);visibility:hidden;pointer-events:none;transition:transform .22s ease,visibility .22s ease;box-sizing:border-box}
  body.nf-cart-open #compra-directa .nf-cart{visibility:visible;pointer-events:auto;transform:translateY(0)}
  body.nf-cart-open{overflow:hidden}
  #compra-directa .nf-cart-close{display:inline-flex;border:1px solid #d8e6d3;width:36px;height:36px;flex:0 0 36px;align-items:center;justify-content:center;border-radius:50%;background:#f2f8ed;color:#164328;font-size:24px;cursor:pointer}
  #compra-directa .nf-cart-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:2000;cursor:pointer;background:rgba(3,19,9,.62);border:0;width:100vw;height:100vh}
  #compra-directa .nf-cart-mobile-open{display:flex!important;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:1998;border:0;border-radius:999px;background:linear-gradient(115deg,#e8db51,#67cf38);color:#0d2515;font-weight:850;font-size:15px;padding:13px 20px;box-shadow:0 12px 30px rgba(9,45,20,.23);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(120%);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;max-width:540px;margin:0 auto}
  #compra-directa .nf-cart-mobile-open.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
  #compra-directa .nf-cart-mobile-open strong{white-space:nowrap;font-variant-numeric:tabular-nums}
  #compra-directa .nf-cart-bottom{grid-template-columns:1fr}
}
@media(max-width:760px){
  #compra-directa .nf-cart-item{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
  #compra-directa .nf-cart-total-item{grid-column:1/-1;text-align:right}
}
@media(prefers-reduced-motion:reduce){
  #compra-directa .nf-cart,#compra-directa .nf-cart-mobile-open{transition:none!important}
}
/* Avoid creating an extra scroll container or a transformed containing block:
   both prevent the cart from staying in the correct viewport position. */
html,body{overflow-x:clip!important}
#compra-directa.directBuyBlock,#compra-directa.directBuyBlock:hover{transform:none!important}
/* On touch layouts a backdrop-filter would pin fixed controls to the card, not to the viewport. */
@media(max-width:1100px){
  #compra-directa.directBuyBlock,#compra-directa.directBuyBlock:hover{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

#compra-directa .nf-format-price.nf-racix-current-price{border-color:#a6d58d;background:#eff9e8}


/* 2026-10-20: cesta en caja independiente, a la derecha del catálogo. */
#compra-directa.nf-commerce-root{margin-top:22px;min-width:0;overflow:visible;transform:none!important}
#compra-directa .nf-commerce-header{margin:0!important;overflow:hidden!important;transform:none!important}
#compra-directa .nf-shop-layout{margin-top:22px;min-width:0;align-items:stretch}
#compra-directa .nf-shop-products{
  box-sizing:border-box;min-width:0;padding:15px;
  border:1px solid rgba(20,80,42,.14);border-radius:23px;
  background:linear-gradient(180deg,#fff 0%,#fbfdf8 100%);
  box-shadow:0 14px 34px rgba(7,45,20,.08)
}
#compra-directa .nf-shop-products .directBuyGrid{margin-top:0!important}
#compra-directa .nf-shop-products .directMiniText{margin:15px 3px 2px}
#compra-directa .nf-cart-shell{min-width:0;align-self:stretch;position:relative}
#compra-directa .nf-cart{
  box-sizing:border-box;
  border:1px solid #bdd8b3!important;
  border-top:4px solid #73cb3f!important;
  border-radius:23px!important;
  background:#fff!important;
  box-shadow:0 15px 38px rgba(7,45,20,.13)!important
}
@media(min-width:1101px){
  #compra-directa .nf-shop-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 306px!important;gap:23px!important;align-items:stretch}
  #compra-directa .nf-cart{position:sticky!important;top:90px!important;max-height:calc(100vh - 105px);overflow-y:auto;margin:0!important}
}
@media(min-width:1500px){
  #compra-directa.nf-commerce-root{width:calc(100% + clamp(0px,50vw - 598px,380px));max-width:none}
  #compra-directa .nf-shop-layout{grid-template-columns:minmax(0,1fr) 316px!important}
  #compra-directa .nf-shop-products .directProductCard{flex:0 1 calc(33.333% - 11px)!important;max-width:calc(33.333% - 11px)!important}
}
@media(max-width:1100px){
  #compra-directa .nf-shop-layout{display:block!important}
  #compra-directa .nf-shop-products{padding:15px}
  #compra-directa .nf-cart-shell{display:contents}
  #compra-directa .nf-cart{border-radius:23px 23px 0 0!important;border-top:4px solid #73cb3f!important}
}
@media(max-width:760px){
  #compra-directa .nf-shop-products{padding:11px;border-radius:18px}
}

/* Oferta por tramos: una linea por tramo y espacio para futuros codigos. */
#compra-directa .nf-offer-tiers{display:flex;flex-direction:column;gap:5px}
#compra-directa .nf-offer-row{margin:0!important;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;line-height:1.45!important}
#compra-directa .nf-offer-row strong{font-size:inherit!important;color:#c7f51b!important}
/* Las dos cajas horizontales terminan en el mismo borde derecho. */
#calculadora-dosis-promo{box-sizing:border-box}
@media(min-width:1500px){
  #calculadora-dosis-promo{width:calc(100% + clamp(0px,50vw - 598px,380px));max-width:none}
}

/* 2026-10-20: misma linea de cierre (marca roja) para las dos cajas superiores. */
#compra-directa .nf-commerce-header{box-sizing:border-box}
@media(min-width:1500px){
  #compra-directa .nf-commerce-header{
    width:calc(100% - clamp(0px,50vw - 598px,380px))!important;
    max-width:none!important;
  }
  #calculadora-dosis-promo{width:auto!important;max-width:100%!important}
}
@media(min-width:1101px) and (max-width:1499px){
  #compra-directa .nf-commerce-header{width:100%!important}
}
/* Compactar el bloque de ofertas y asegurar sus tres lineas. */
#compra-directa .directBuyIntro{grid-template-columns:minmax(0,1.22fr) minmax(345px,.78fr)!important;align-items:center!important}
#compra-directa .directBuyCallout{padding:15px 16px!important}
#compra-directa .directBuyCalloutTop{gap:7px!important}
#compra-directa .directBuyCalloutTop strong{font-size:clamp(12px,.96vw,15px)!important;line-height:1.25!important}
#compra-directa .nf-offer-row{font-size:13px!important;white-space:nowrap;flex-wrap:nowrap!important}
@media(max-width:900px){#compra-directa .directBuyIntro{grid-template-columns:1fr!important}#compra-directa .nf-offer-row{white-space:normal;flex-wrap:wrap!important}}
/* Cesta sin explicaciones repetidas, con dos acciones de compra y Amazon como alternativa. */
#compra-directa .nf-cart{padding:15px 13px!important}
#compra-directa .nf-cart h3{font-size:21px!important}
#compra-directa .nf-cart-info{font-size:12px!important;line-height:1.4;margin-bottom:9px!important}
#compra-directa .nf-cart-bottom{display:flex!important;flex-direction:column!important;gap:9px!important;margin-top:10px!important}
#compra-directa .nf-promo-description{margin:4px 0 0!important;font-size:11px}
#compra-directa .nf-promo-description:empty{display:none!important}
#compra-directa .nf-price-summary{padding:11px!important}
#compra-directa .nf-summary-row{margin:5px 0!important}
#compra-directa .nf-summary-total{padding-top:8px!important}
#compra-directa .nf-summary-notice{font-size:11px!important;text-align:center;margin:9px 0!important}
#compra-directa .nf-checkout-button{margin-top:10px!important;padding:12px!important}
#compra-directa .nf-whatsapp-checkout{display:flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:999px;background:#1a8c49;color:white!important;text-decoration:none;font-weight:800;font-size:13px;margin-top:9px;padding:7px 10px;box-sizing:border-box}
#compra-directa .nf-whatsapp-checkout img{width:19px;height:19px;object-fit:contain}
#compra-directa .nf-whatsapp-checkout[aria-disabled="true"]{opacity:.5;pointer-events:none}
#compra-directa .nf-transfer-note{display:block;text-align:center;font-size:11px;color:#55735b;margin:4px 0 0}
#compra-directa .nf-cart-legal{text-align:center;font-size:11px;margin:9px 0 0;color:#5b7562}
#compra-directa .nf-cart-legal a{color:#266335}
#compra-directa .nf-cart-qty-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1100px){#compra-directa .nf-cart{padding:18px 16px calc(22px + env(safe-area-inset-bottom,0px))!important}}

/* 20-10-2026: contacto profesional compacto, separado de Amazon. */
#compra-directa .nf-bulk-help{
  display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;
  padding:13px 14px;margin:15px 1px 1px;border:1px solid #d0e3ca;border-radius:14px;
  background:#f5faf2;box-shadow:0 4px 12px rgba(20,80,42,.035);
}
#compra-directa .nf-bulk-help p{flex:1 1 240px;margin:0!important;font-size:13px;line-height:1.45;color:#325a3d}
#compra-directa .nf-bulk-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px 13px}
#compra-directa .nf-bulk-whatsapp{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;border-radius:999px;background:#e2f3db;color:#16482d;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
#compra-directa .nf-bulk-whatsapp:hover{background:#ceeabe}
#compra-directa .nf-bulk-whatsapp img{display:block;width:18px;height:18px;object-fit:contain}
#compra-directa .nf-bulk-email{font-size:12px;font-weight:700;color:#27643e;text-decoration:underline;white-space:nowrap}
@media(max-width:760px){
 #compra-directa .nf-bulk-help{padding:12px;gap:10px}
 #compra-directa .nf-bulk-actions{justify-content:flex-start}
 #compra-directa .nf-bulk-email{white-space:normal;overflow-wrap:anywhere}
}

/* NATURAX FORCE: aviso visible, sin impedir la compra. */
#compra-directa .nf-shipping-warning{
  margin:11px 0 13px;padding:9px 10px;
  border:1px solid #e5a4a0;border-radius:9px;
  background:#fff8f7;color:#ab2221;
  line-height:1.45;font-size:12px;text-align:left;
}
#compra-directa .nf-shipping-warning > strong{display:block;color:#a21d1b;font-size:12px;margin-bottom:4px}
#compra-directa .nf-shipping-warning span{display:block}
#compra-directa .nf-shipping-warning a{color:#8b1c1b;text-decoration:underline;font-weight:750}

#compra-directa .nf-shipping-warning a strong{display:inline;color:inherit;font-size:inherit;margin:0}
