/* Team Bear — Ficha Producto v2.0.0 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');
#tb-producto-wrap *{box-sizing:border-box;font-family:'DM Sans',system-ui,sans-serif}
#tb-producto-wrap{max-width:1080px;margin:0 auto;padding:20px 16px 40px}
.tb-grid{display:grid!important;grid-template-columns:68px 1fr 1.15fr!important;gap:20px;align-items:start;margin-bottom:28px}
/* THUMBNAILS */
.tb-thumbs{display:flex;flex-direction:column;gap:8px}
.tb-thumb{width:62px;height:62px;border-radius:10px;overflow:hidden;border:1.5px solid #e0e8f0;cursor:pointer;background:#f5f8fb;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.tb-thumb img{width:100%;height:100%;object-fit:contain;padding:4px;display:block}
.tb-thumb.on{border-color:#2F4156;border-width:2px}
/* GALERÍA */
.tb-gallery{position:relative}
.tb-main-wrap{border-radius:16px;background:#f5f8fb;width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;cursor:zoom-in}
.tb-main-wrap img{width:100%;height:100%;object-fit:contain;display:block;padding:10px;transition:transform .1s ease,opacity .25s}
.tb-img-placeholder{font-size:80px}
.tb-bdg-best{position:absolute;top:10px;left:10px;background:#2F4156;color:#CBD9E6;font-size:10px;font-weight:500;padding:3px 10px;border-radius:50px;z-index:2;pointer-events:none}
.tb-bdg-ahorro{position:absolute;top:10px;right:10px;background:#1a6b3c;color:#fff;font-size:10px;font-weight:500;padding:3px 9px;border-radius:50px;z-index:2;pointer-events:none}
.tb-zoom-hint{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.45);color:#fff;font-size:10px;padding:3px 8px;border-radius:50px;display:flex;align-items:center;gap:4px;pointer-events:none}
.tb-zoom-hint i{font-size:11px}
.tb-vendidos{font-size:11px;color:#666;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px}
.tb-vendidos i{font-size:13px;color:#E57C2B}
/* DETALLE */
.tb-detail{display:flex;flex-direction:column;gap:13px}
.tb-cat{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:1.5px;color:#567C8D}
.tb-title{font-size:21px;font-weight:500;color:#1D3557;line-height:1.25;margin-top:4px}
.tb-meta{font-size:11px;color:#888;display:flex;gap:12px;flex-wrap:wrap}
.tb-divider{height:0.5px;background:#e0e8f0}
.tb-attr-label{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.7px;color:#aaa;margin-bottom:7px}
.tb-attr-label strong{color:#2F4156;font-size:12px;text-transform:none;letter-spacing:0}
.tb-pills{display:flex;gap:6px;flex-wrap:wrap}
.tb-pill{padding:7px 14px;border-radius:50px;border:1.5px solid #d0dce8;background:#fff;font-size:12px;font-weight:500;color:#1D3557;cursor:pointer;transition:all .15s;line-height:1}
.tb-pill:hover{border-color:#567C8D}
.tb-pill.on{background:#2F4156;color:#CBD9E6;border-color:#2F4156}
/* EP */
.tb-ep{border:1.5px solid #e0e8f0;border-radius:14px;overflow:hidden}
.tb-ep-opts{display:grid;grid-template-columns:1fr 1fr}
.tb-ep-opt{padding:10px 12px;cursor:pointer;display:flex;align-items:flex-start;gap:8px;background:#fff;border-right:0.5px solid #e0e8f0;transition:background .15s}
.tb-ep-opt:last-child{border-right:none}
.tb-ep-opt.on{background:#EEF3F8}
.tb-ep-radio{width:15px;height:15px;border-radius:50%;border:2px solid #c8d8e8;flex-shrink:0;margin-top:2px;display:flex;align-items:center;justify-content:center;transition:all .15s}
.tb-ep-opt.on .tb-ep-radio{border-color:#2F4156;background:#2F4156}
.tb-ep-opt.on .tb-ep-radio::after{content:'';width:5px;height:5px;border-radius:50%;background:#CBD9E6}
.tb-ep-titulo{font-size:12px;font-weight:500;color:#1D3557;display:flex;align-items:center;gap:5px;flex-wrap:wrap;line-height:1.3}
.tb-ep-sub{font-size:10px;color:#888;margin-top:3px;line-height:1.4}
.tb-ep-badge{background:#1a6b3c;color:#fff;font-size:10px;font-weight:500;padding:1px 6px;border-radius:50px}
/* PRECIO */
.tb-precio-box{background:#EEF3F8;border-radius:14px;padding:14px 16px;border:0.5px solid #CBD9E6}
.tb-precio-antes{font-size:13px;color:#888;margin-bottom:4px;display:flex;align-items:center;gap:8px}
.tb-precio-antes s{font-size:15px;color:#aaa}
.tb-precio-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.tb-precio{font-size:34px;font-weight:500;color:#2F4156;line-height:1}
.tb-off-badge{background:#2F4156;color:#CBD9E6;font-size:12px;font-weight:500;padding:4px 10px;border-radius:8px}
.tb-ahorro-txt{font-size:12px;color:#1a6b3c;font-weight:500}
.tb-pgr{font-size:11px;color:#567C8D;margin-top:4px}
.tb-precio-label{font-size:11px;color:#888;margin-top:2px}
.tb-cuotas{font-size:12px;color:#567C8D;font-weight:500;margin-top:6px}
/* CANTIDAD + CTA */
.tb-qty-cta{display:flex;gap:10px;align-items:center}
.tb-qty{display:flex;align-items:center;border:1.5px solid #CBD9E6;border-radius:10px;overflow:hidden;height:44px;flex-shrink:0}
.tb-qty button{width:40px;height:100%;border:none;background:transparent;font-size:18px;font-weight:500;cursor:pointer;color:#2F4156;display:flex;align-items:center;justify-content:center;transition:background .15s}
.tb-qty button:hover{background:#d8e8f4}
.tb-qty-num{width:40px;text-align:center;font-size:14px;font-weight:500;color:#2F4156;border-left:0.5px solid #CBD9E6;border-right:0.5px solid #CBD9E6;height:100%;display:flex;align-items:center;justify-content:center}
.tb-btn-cart{flex:1;border:none;border-radius:10px;height:44px;font-size:13px;font-weight:500;cursor:pointer;background:#2F4156;color:#CBD9E6;display:flex;align-items:center;justify-content:center;gap:7px;transition:all .2s;padding:0 12px}
.tb-btn-cart:hover{background:#1D3557;transform:translateY(-1px)}
.tb-btn-buy{width:100%;border:1.5px solid #2F4156;border-radius:10px;height:40px;font-size:13px;font-weight:500;cursor:pointer;background:transparent;color:#2F4156;display:flex;align-items:center;justify-content:center;gap:7px;transition:all .15s}
.tb-btn-buy:hover{background:#EEF3F8}
/* BARRA ENVÍO */
.tb-ship-bar{background:#f0faf4;border:0.5px solid #c3e6cb;border-radius:10px;padding:10px 12px}
.tb-ship-bar.done{background:#eafaf1;border-color:#a8dfc0}
.tb-ship-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:11px;color:#1a6b3c;font-weight:500}
.tb-progress{background:#d4edda;border-radius:50px;height:5px;overflow:hidden}
.tb-fill{background:#1a6b3c;height:100%;border-radius:50px;transition:width .4s}
.tb-ship-nota{font-size:10px;color:#888;margin-top:5px}
/* STOCK */
.tb-stock-hot{font-size:11px;font-weight:500;background:#FEF3E2;color:#92400e;border-radius:10px;padding:8px 12px;display:flex;align-items:center;gap:6px}
/* TRUST */
.tb-trust{display:flex;gap:0;border:0.5px solid #CBD9E6;border-radius:10px;overflow:hidden}
.tb-trust-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-right:0.5px solid #CBD9E6;text-align:center}
.tb-trust-item:last-child{border-right:none}
.tb-trust-ico{font-size:18px}
.tb-trust-item span{font-size:10px;color:#888;line-height:1.3}
/* GARANTÍA */
.tb-garantia{background:#EEF3F8;border-radius:10px;padding:10px 12px;display:flex;gap:10px;align-items:flex-start;border:0.5px solid #CBD9E6}
.tb-garantia-title{font-size:12px;font-weight:500;color:#2F4156;margin-bottom:2px}
.tb-garantia-sub{font-size:11px;color:#888;line-height:1.5}
/* TABS */
.tb-tabs{display:flex;border-bottom:0.5px solid #e0e8f0;margin:20px 0 14px}
.tb-tab{padding:9px 16px;font-size:12px;font-weight:500;border:none;border-bottom:2px solid transparent;color:#888;background:transparent;cursor:pointer}
.tb-tab.on{border-bottom-color:#2F4156;color:#2F4156}
.tb-tab-content{font-size:13px;color:#555;line-height:1.7}
/* SPECS */
.tb-specs-grid{display:grid;grid-template-columns:1fr 1fr;border:0.5px solid #e0e8f0;border-radius:10px;overflow:hidden}
.tb-spec-row{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:0.5px solid #e0e8f0;font-size:12px;border-right:0.5px solid #e0e8f0}
.tb-spec-row:nth-child(even){border-right:none}
.tb-spec-row:nth-last-child(-n+2){border-bottom:none}
.tb-spec-key{color:#888}
.tb-spec-val{font-weight:500;color:#2F4156;text-align:right}
/* BANNER */
.tb-banner-dh{background:#1D3557;border-radius:14px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:20px}
.tb-banner-dh span{font-size:12px;color:#9fb8d8}
.tb-banner-dh strong{color:#C9A96E}
.tb-banner-dh a{font-size:12px;font-weight:500;color:#C9A96E;text-decoration:none;white-space:nowrap}
.tb-banner-dh a:hover{text-decoration:underline}
/* LIGHTBOX */
.tb-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:100000;display:none;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.tb-lightbox.show{display:flex}
.tb-lb-img{max-width:90vw;max-height:80vh;object-fit:contain;border-radius:12px;user-select:none}
.tb-lb-close{position:fixed;top:16px;right:20px;background:rgba(255,255,255,.15);border:none;color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center}
.tb-lb-dots{display:flex;gap:8px}
.tb-lb-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);cursor:pointer;transition:background .15s}
.tb-lb-dot.on{background:#fff}
.tb-lb-prev,.tb-lb-next{position:fixed;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:none;color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:24px;display:flex;align-items:center;justify-content:center}
.tb-lb-prev{left:16px}
.tb-lb-next{right:16px}
.tb-lb-prev:hover,.tb-lb-next:hover{background:rgba(255,255,255,.3)}
/* === FIX TABS: forzar colores Navy sobre Astra/Woo === */
#tb-producto-wrap .tb-tab,#tb-producto-wrap .tb-tab:hover,#tb-producto-wrap .tb-tab:focus{background:transparent!important;color:#888!important;border:none!important;border-bottom:2px solid transparent!important;box-shadow:none!important;border-radius:0!important;text-shadow:none!important}
#tb-producto-wrap .tb-tab.on{color:#2F4156!important;border-bottom-color:#2F4156!important;background:transparent!important}
/* === RESPONSIVE MÓVIL === */
@media(max-width:768px){
  #tb-producto-wrap{padding:14px 14px 32px}
  .tb-grid{display:flex!important;flex-direction:column;gap:18px}
  .tb-gallery{order:1;width:100%}
  .tb-detail{order:2;width:100%}
  .tb-main-wrap{aspect-ratio:1/1;border-radius:14px}
  .tb-thumbs{flex-direction:row!important;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:2px}
  .tb-thumb{width:58px;height:58px;flex-shrink:0}
  .tb-zoom-hint{display:none}
  .tb-bdg-best{top:8px;left:8px;font-size:9px;padding:3px 9px}
  .tb-bdg-ahorro{top:8px;right:8px;font-size:9px;padding:3px 8px}
  .tb-title{font-size:19px}
  .tb-precio{font-size:30px}
  .tb-ep-opts{grid-template-columns:1fr}
  .tb-ep-opt:first-child{border-right:none;border-bottom:0.5px solid #e0e8f0}
  .tb-qty-cta{flex-direction:column;align-items:stretch;gap:10px}
  .tb-qty{align-self:flex-start}
  .tb-btn-cart{width:100%;height:50px;font-size:15px}
  .tb-qty{height:48px}
  .tb-btn-buy{height:48px;font-size:15px}
  .tb-specs-grid{grid-template-columns:1fr}
  .tb-spec-row{border-right:none}
  .tb-spec-row:last-child{border-bottom:none}
  .tb-trust{flex-wrap:wrap}
  .tb-trust-item{flex:1 1 50%;border-bottom:0.5px solid #CBD9E6}
  .tb-trust-item:nth-child(2n){border-right:none}
  .tb-tabs{overflow-x:auto;scrollbar-width:none}
  .tb-tabs::-webkit-scrollbar{display:none}
  .tb-tab{white-space:nowrap;flex-shrink:0}
}
/* === Iconos SVG trust + tamaño aumentado === */
.tb-trust-ico svg{width:24px;height:24px}
.tb-trust-item{padding:14px 8px}
.tb-trust-item span:last-child{font-size:11px}
#tb-producto-wrap{font-size:15px}
.tb-title{font-size:24px}
.tb-precio{font-size:38px}
.tb-pill{font-size:13px;padding:8px 16px}
.tb-btn-cart{height:50px;font-size:14px}
.tb-btn-buy{height:46px;font-size:14px}
.tb-spec-row{padding:11px 14px;font-size:13px}
.tb-tab{font-size:13px;padding:11px 18px}
.tb-tab-content{font-size:14px}
/* Fix botón carrito delgado + iconos */
.tb-btn-cart{height:52px!important;min-height:52px!important;font-size:15px!important;padding:0 16px!important}
.tb-trust-ico svg{width:26px!important;height:26px!important;display:block;margin:0 auto}
.tb-trust-ico{display:flex;justify-content:center;font-size:24px}
@media(max-width:768px){.tb-btn-cart{height:54px!important;min-height:54px!important}}
/* Badge Ahorras más llamativo */
.tb-bdg-ahorro{background:#16a34a!important;color:#fff!important;font-size:12px!important;font-weight:700!important;padding:6px 14px!important;box-shadow:0 4px 12px rgba(22,163,74,.4)!important;letter-spacing:.3px}
.tb-bdg-best{background:#2F4156!important;font-size:11px!important;font-weight:600!important;padding:5px 13px!important;box-shadow:0 4px 12px rgba(47,65,86,.3)!important}
