/* V99 - Solo pantallas públicas de productos. No cambia el menú flotante V85. */
.tdh-photo,.td-image,.tdc-picture{position:relative!important;isolation:isolate}
.tdv99-free-flag{position:absolute;z-index:4;top:10px;left:0;display:inline-flex;align-items:center;gap:3px;padding:7px 10px;background:#0a9155;color:#fff!important;font-size:10px;font-weight:900;line-height:1.15;letter-spacing:.01em;border-radius:0 6px 6px 0;box-shadow:0 3px 8px #00391f25;white-space:nowrap;pointer-events:none}
.tdh-product-text>em,.td-content>.td-chip{display:none!important}
.tdv75-curated .tdh-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tdv75-curated .tdh-header>a{font-weight:800;color:#0b4baa;font-size:14px;text-decoration:none}
/* Naranja solo para el disparador principal, sin tocar posiciones ni submenús. */
.td-premium-header .td-primary-nav .td-nav-entry:first-child>.td-nav-entry-btn,
.td-premium-header .td-primary-nav>.td-nav-entry:first-child>.td-nav-entry-btn,
.td-premium-header .td-primary-nav .td-allcategories{background:#ff7900!important;color:#fff!important;border-radius:3px}
.tdv99-security-catalog{max-width:1320px;margin:auto;padding:22px 18px 50px}
.tdv99-security-catalog .td-title h1{font-size:clamp(24px,3vw,34px);color:#082b5b}
.tdv99-security-catalog .td-content h2{font-size:13px;line-height:1.4;min-height:38px;max-height:60px;overflow:hidden;margin:0;color:#102e56}
@media(max-width:600px){.tdv99-free-flag{font-size:9px;padding:6px 7px}}

/* V100 - Envío gratis discreto, junto al precio. Sin banderines ni filas extra. */
.tdv99-free-flag{display:none!important}
.td-item:has(.tdv99-free-flag) .td-price::after,
.tdh-product:has(.tdv99-free-flag) .tdh-product-text>strong::after,
.tdc-card:has(.tdv99-free-flag) .tdc-price::after{
 content:"Envío gratis";display:inline-block;vertical-align:middle;margin-left:8px;
 color:#087c4c;font-size:10px;font-weight:750;line-height:1.2;letter-spacing:0;
 white-space:nowrap;text-transform:none;
}
/* No recuperar las etiquetas antiguas debajo del precio. */
.tdh-product-text>em,.td-content>.td-chip{display:none!important}
@media(max-width:520px){
 .td-item:has(.tdv99-free-flag) .td-price::after,
 .tdh-product:has(.tdv99-free-flag) .tdh-product-text>strong::after,
 .tdc-card:has(.tdv99-free-flag) .tdc-price::after{font-size:9px;margin-left:5px}
}


/* V101 — Tarjetas de venta compactas, envío fuera del precio y de las imágenes. */
.td-premium-header nav.td-primary-nav.td-v83-nav > .td-nav-entry:first-child,
.td-premium-header nav.td-primary-nav.td-v83-nav > .td-nav-entry:first-child > .td-nav-entry-btn,
.td-premium-header nav.td-primary-nav.td-v83-nav > .td-nav-entry:first-child > a,
.td-premium-header nav.td-primary-nav.td-v83-nav > a.td-allcategories{
 background:#ff7900!important;color:#fff!important;border-radius:2px!important;
}
.td-premium-header nav.td-primary-nav.td-v83-nav > .td-nav-entry:first-child:hover > .td-nav-entry-btn,
.td-premium-header nav.td-primary-nav.td-v83-nav > .td-nav-entry:first-child:focus-within > .td-nav-entry-btn{background:#ec7000!important;color:white!important}
/* La etiqueta ya existe en PHP y solo se muestra para free_shipping=1. */
.tdv99-free-flag{
 display:inline-flex!important;position:absolute!important;z-index:3!important;
 top:7px!important;right:7px!important;left:auto!important;
 padding:4px 7px!important;border-radius:5px!important;
 background:#06844a!important;color:#fff!important;
 font-family:inherit!important;font-size:10px!important;font-weight:750!important;
 line-height:1.2!important;letter-spacing:0!important;
 max-width:calc(100% - 14px)!important;white-space:nowrap!important;
 box-shadow:0 1px 4px rgba(0,0,0,.12)!important;
}
.td-item:has(.tdv99-free-flag) .td-price::after,
.tdh-product:has(.tdv99-free-flag) .tdh-product-text>strong::after,
.tdc-card:has(.tdv99-free-flag) .tdc-price::after{content:none!important;display:none!important}
/* Mismo tamaño de precio en inicio, resultados y categorías; no crear segunda línea. */
.tdh-product .tdh-product-text>strong,
.td-item .td-price,
.tdc-card .tdc-price{
 font-size:clamp(12px,1.12vw,16px)!important;line-height:1.3!important;
 letter-spacing:-.3px!important;white-space:nowrap!important;
 font-weight:800!important;max-width:100%!important;
}
.tdh-product .tdh-product-text,.td-item .td-content,.tdc-card .tdc-cardcontent{
 min-width:0!important;overflow-wrap:break-word!important;
}
.tdh-product .tdh-name,.td-item h3,.tdc-card h2{
 overflow-wrap:anywhere!important;word-break:normal!important;
 position:relative!important;z-index:1!important;
}
/* La fotografía nunca debe ocupar las líneas de marca, título, SKU o precio. */
.tdc-card .tdc-picture{
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:relative!important;box-sizing:border-box!important;
 height:200px!important;min-height:200px!important;max-height:200px!important;
 padding:12px!important;overflow:hidden!important;
}
.tdc-card .tdc-picture img{
 display:block!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;position:static!important;margin:0!important;
}
.tdc-card .tdc-cardcontent{position:relative!important;z-index:1!important;background:#fff!important}
.tdc-card .tdc-cardcontent>a{display:block;min-width:0}
@media(max-width:600px){
 .tdc-card .tdc-picture{height:145px!important;min-height:145px!important;max-height:145px!important}
 .tdv99-free-flag{font-size:9px!important;padding:3px 5px!important}
 .tdh-product .tdh-product-text>strong,.td-item .td-price,.tdc-card .tdc-price{font-size:12px!important;letter-spacing:-.45px!important}
}
