/* TUROPA CABECERA v2 | Solo afecta a clases tdt-v2 */
#header .tdt-v2-header{position:relative;background:#fff;border-bottom:1px solid #eaeaea;z-index:15}
#header .tdt-v2-inner{max-width:1320px;min-height:108px;padding:16px 22px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px}
#header .tdt-v2-logo{display:block;max-width:min(520px,68vw);flex:0 1 420px;line-height:1}
#header .tdt-v2-logo img{display:block;width:100%;height:auto;max-height:84px;object-fit:contain;object-position:left center}
#header .tdt-v2-actions{position:static!important;top:auto!important;right:auto!important;transform:none!important;display:flex!important;align-items:center;gap:17px;margin-left:auto;flex-shrink:0;z-index:18}
#header .tdt-v2-icon-button{border:0;background:transparent;color:#1d2342;width:39px;height:42px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:6px;text-decoration:none;transition:color .16s ease}
#header .tdt-v2-icon-button:hover,#header .tdt-v2-icon-button:focus-visible{color:#C75125}
#header .tdt-v2-icon-button svg,#header .tdt-v2-search-form svg{height:25px;width:25px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
#header .tdt-v2-cart{position:relative;display:flex;align-items:center;min-width:38px;min-height:42px}
#header .tdt-v2-cart #_desktop_cart,#header .tdt-v2-cart .blockcart{position:relative!important;display:flex;align-items:center;margin:0!important;float:none!important;top:auto!important;right:auto!important;transform:none!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:38px}
#header .tdt-v2-cart .blockcart .header{position:relative;display:flex;align-items:center;justify-content:center;margin:0!important;padding:0!important;background:transparent!important;min-width:38px;height:42px}
#header .tdt-v2-cart .blockcart .header a{color:#1d2342;display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-decoration:none}
#header .tdt-v2-cart .blockcart .header:hover a,#header .tdt-v2-cart .blockcart .header:hover{color:#C75125}
#header .tdt-v2-cart .ti-shopping-cart{font-size:25px!important;line-height:1!important;color:#1d2342}
#header .tdt-v2-cart .cart-products-count{position:absolute!important;right:-4px!important;top:0!important;background:#C75125!important;color:#fff!important;border-radius:50%!important;font-size:10px!important;min-width:17px!important;height:17px!important;line-height:17px!important;text-align:center!important;display:block!important;padding:0 3px!important;z-index:1}
#header .tdt-v2-search-panel{background:#f8f9fb;box-shadow:0 10px 24px rgba(10,22,117,.10);border-top:1px solid #e6e8ee}
#header .tdt-v2-search-panel[hidden]{display:none!important}
#header .tdt-v2-search-inner{max-width:1320px;margin:auto;padding:24px 22px;display:flex;align-items:center;gap:14px}
#header .tdt-v2-search-form{display:flex;align-items:center;flex:1;min-width:0;margin:0!important;background:#fff;border:2px solid #0A1675;border-radius:4px;height:60px;padding:0 10px 0 18px;color:#0A1675}
#header .tdt-v2-search-form input{flex:1;min-width:0;height:100%;padding:0 15px!important;outline:0!important;box-shadow:none!important;border:0!important;background:transparent!important;color:#222!important;font-size:18px!important}
#header .tdt-v2-search-submit{background:#0A1675!important;color:white!important;border:0!important;border-radius:3px;padding:12px 26px!important;font-weight:700;cursor:pointer}
#header .tdt-v2-search-submit:hover{background:#C75125!important}
#header .tdt-v2-search-close{display:inline-flex;align-items:center;justify-content:center;font-size:32px;width:36px;height:42px;background:none;border:0;color:#3b3b3b;cursor:pointer}
#header .tdt-v2-sr-only{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#header .tdt-v2-menu{position:relative;z-index:9}
/* Evitar descolocar el dropdown de Leo, que puede estar insertado junto al módulo */
#header .tdt-v2-cart .leo-dropdown-cart,#header .tdt-v2-cart .cart-dropdown,#header .tdt-v2-cart .leo-blockcart .cart-block{z-index:100}
@media(max-width:767px){
 #header .tdt-v2-inner{padding:12px 14px;min-height:72px;gap:12px}
 #header .tdt-v2-logo{flex:0 1 220px;max-width:47vw}
 #header .tdt-v2-logo img{max-height:62px}
 #header .tdt-v2-actions{gap:3px!important}
 #header .tdt-v2-icon-button{width:33px;height:36px;padding:5px}
 #header .tdt-v2-icon-button svg{width:22px;height:22px}
 #header .tdt-v2-cart .ti-shopping-cart{font-size:22px!important}
 #header .tdt-v2-search-inner{padding:12px 10px;gap:6px}
 #header .tdt-v2-search-form{height:50px;padding:0 8px}
 #header .tdt-v2-search-form input{font-size:14px!important;padding:0 7px!important}
 #header .tdt-v2-search-submit{padding:10px!important;font-size:12px}
}
@media(max-width:390px){#header .tdt-v2-icon-button{width:29px}#header .tdt-v2-actions{gap:0!important}#header .tdt-v2-logo{max-width:43vw}}

/* v3: ancho completo y logo realmente centrado respecto al viewport */
#header .tdt-v2-header{width:100%}
#header .tdt-v2-inner{width:100%;max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:112px;padding:14px clamp(20px,3vw,66px)!important;gap:20px}
#header .tdt-v2-balance{min-width:0}
#header .tdt-v2-logo{grid-column:2;justify-self:center;max-width:min(480px,45vw);width:min(480px,45vw);flex:none!important}
#header .tdt-v2-logo img{width:100%;object-position:center center;max-height:90px}
#header .tdt-v2-actions{grid-column:3;justify-self:end;margin-left:0!important;gap:18px}
#header .tdt-v2-search-inner,#header .tdt-v2-suggest-wrap{max-width:none!important;width:100%;padding-left:clamp(20px,4vw,82px);padding-right:clamp(20px,4vw,82px)}
#header .tdt-v2-search-inner{padding-top:22px;padding-bottom:10px}
#header .tdt-v2-search-panel{position:relative;z-index:30}
#header .tdt-v2-suggest-wrap{padding-bottom:12px}
#header .tdt-v2-suggestions{background:#fff;border:1px solid #dfe2ec;box-shadow:0 8px 22px rgba(0,0,0,.08);border-radius:3px;max-height:360px;overflow:auto}
#header .tdt-v2-suggestions[hidden]{display:none!important}
#header .tdt-v2-suggestion{display:flex;gap:14px;align-items:center;padding:10px 16px;color:#222!important;text-decoration:none!important;border-bottom:1px solid #f0f1f5}
#header .tdt-v2-suggestion:hover,#header .tdt-v2-suggestion:focus{background:#f2f4ff}
#header .tdt-v2-suggestion img{width:48px;height:58px;object-fit:contain;flex-shrink:0}
#header .tdt-v2-suggestion-text{display:flex;flex-direction:column;gap:4px;font-size:15px}
#header .tdt-v2-suggestion-text small{color:#666;font-size:12px}
#header .tdt-v2-suggest-message{padding:16px;color:#666;font-size:14px}
@media(max-width:767px){
 #header .tdt-v2-inner{min-height:72px;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px!important}
 #header .tdt-v2-balance{display:none}
 #header .tdt-v2-logo{grid-column:1;justify-self:start;width:auto;max-width:min(200px,42vw)}
 #header .tdt-v2-logo img{max-height:58px}
 #header .tdt-v2-actions{grid-column:2;gap:3px}
 #header .tdt-v2-search-inner,#header .tdt-v2-suggest-wrap{padding-left:10px;padding-right:10px}
}

/* v4: indicadores de busqueda, cart flotante de Leo oculto y precio unitario cero espurio */
#header .tdt-v2-search-loading{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 18px;color:#0A1675;font-size:14px;font-weight:600;background:#fff;border:1px solid #e3e5f2}
#header .tdt-v2-search-loading[hidden]{display:none!important}
#header .tdt-v2-search-spinner{display:inline-block;width:19px;height:19px;border-radius:50%;border:2.5px solid #d8dceb;border-top-color:#0A1675;animation:tdt-v2-spin .65s linear infinite;flex-shrink:0}
@keyframes tdt-v2-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#header .tdt-v2-search-spinner{animation-duration:1.5s}}
/* El carrito flotante inferior no es el dropdown de la cabecera */
body .leo-fly-cart.solo,body .leo-fly-cart-icon-wrapper{display:none!important}
/* PrestaShop presenta en ciertos productos un precio unitario 0,00 €/1 no util. */
#header .tdt-v2-cart .unit-price-cart,.leo-dropdown-cart .unit-price-cart{display:none!important}
