/* UBD Modular v1 0.6.6 · HOME FIXES · preserves 0.6.4.14 + 0.6.5 cascade */
/* UBD Modular v1 0.6.0 · foundation */
:root{--ubd-ink:#18333A;--ubd-muted:#5F7277;--ubd-paper:#FFFDFC;--ubd-orange:#F3B36F;--ubd-coral:#EF8050;--ubd-yellow:#F5D471;--ubd-green:#BBD68F;--ubd-teal:#8FC7B0;--ubd-line:rgba(24,51,58,.10);--ubd-shadow:0 14px 34px rgba(24,51,58,.09)}
html,body{max-width:100%;overflow-x:hidden}body.ubd-modular-page :where(#ubd-site,#wrapper,#content-wrapper,#main,.container,.row){min-width:0}body.ubd-modular-page img{max-width:100%}
/* Interior header: stop logo/menu collisions */
body:not(#index) .ubd-header-main-grid{grid-template-columns:minmax(150px,190px) minmax(0,1fr) auto!important;gap:clamp(14px,2vw,26px)!important;align-items:center!important}body:not(#index) .ubd-header-logo{min-width:0!important;position:relative!important;z-index:2!important}body:not(#index) .ubd-header-logo img{display:block!important;max-width:175px!important;max-height:58px!important;object-fit:contain!important}body:not(#index) .ubd-header-tools{min-width:0!important;padding-left:0!important}body.ubd-modular-page :where(input,textarea,select){color:var(--ubd-ink)!important}body.ubd-modular-page :where(input,textarea,select)::placeholder{color:#74868A!important;opacity:1!important}
/* Explicit safe contrast, no JS color guessing */
body.ubd-modular-page .btn-primary,body.ubd-modular-page button.btn-primary{background:var(--ubd-coral)!important;border-color:var(--ubd-coral)!important;color:#fff!important}body.ubd-modular-page .btn-secondary,body.ubd-modular-page button.btn-secondary{background:var(--ubd-ink)!important;border-color:var(--ubd-ink)!important;color:#fff!important}
@media(max-width:991px){body:not(#index) .ubd-header-main-grid{grid-template-columns:minmax(0,1fr) auto!important}body:not(#index) .ubd-header-tools{grid-column:1/-1!important}}

/* UBD Modular v1 · 0.6.3 · cumulative authority */
:root{--ubd61-ink:#18333A;--ubd61-muted:#5F7277;--ubd61-paper:#FFFDFC;--ubd61-coral:#EF8050;--ubd61-yellow:#F5D471;--ubd61-green:#BBD68F;--ubd61-teal:#8FC7B0;--ubd61-line:rgba(24,51,58,.10);--ubd61-shadow:0 14px 34px rgba(24,51,58,.09)}

/* Expert: bottom app navigation is part of the approved Modular language, on every viewport. */
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-mod-bottom-nav,
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-catalog-bottom-nav{
  position:fixed!important;left:50%!important;right:auto!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;z-index:2140!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;gap:6px!important;width:min(calc(100vw - 28px),520px)!important;height:66px!important;margin:0!important;padding:7px 10px!important;overflow:visible!important;transform:translateX(-50%)!important;border:1px solid rgba(24,51,58,.10)!important;border-radius:25px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 18px 46px rgba(24,51,58,.18)!important;backdrop-filter:blur(14px)!important
}
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-mod-bottom-nav>* ,
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-catalog-bottom-nav>*{
  display:grid!important;place-items:center!important;width:100%!important;height:48px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:15px!important;background:transparent!important;color:var(--ubd61-ink)!important;box-shadow:none!important;text-decoration:none!important
}
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-mod-bottom-nav svg,
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-catalog-bottom-nav svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important}
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-mod-bottom-main,
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body .ubd-catalog-bottom-main{height:58px!important;margin-top:-12px!important;overflow:visible!important;background:#EFC25E!important;color:#4B382E!important;box-shadow:0 10px 24px rgba(239,194,94,.30)!important}
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body{padding-bottom:max(92px,calc(82px + env(safe-area-inset-bottom)))!important}

/* Index expert: footer + site mode become one coherent closing area. */
html:not(.ubd-mode-simple) body#index .ubd-mod-footer{padding:20px 0 0!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-footer-grid{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;grid-template-areas:'brand links' 'newsletter payments' 'copyright copyright'!important;gap:12px!important;align-items:stretch!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-footer-brand{grid-area:brand!important;grid-row:auto!important;min-height:0!important;padding:22px!important;border:1px solid var(--ubd61-line)!important;border-radius:24px!important;background:#FFF7F0!important;box-shadow:var(--ubd61-shadow)!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-footer-links{grid-area:links!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-footer-links details{min-width:0!important;height:100%!important;margin:0!important;border-radius:18px!important;box-shadow:none!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-newsletter{grid-area:newsletter!important;min-height:0!important;padding:20px!important;border:1px solid var(--ubd61-line)!important;border-radius:22px!important;background:#fff!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-newsletter form{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-newsletter button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:126px!important;background:var(--ubd61-teal)!important;color:#fff!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-payments{grid-area:payments!important;display:grid!important;place-items:center!important;min-height:0!important;padding:20px!important;border:1px solid var(--ubd61-line)!important;border-radius:22px!important;background:#fff!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-payments img{display:block!important;max-width:min(100%,360px)!important;max-height:64px!important;margin:auto!important;object-fit:contain!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-copyright{grid-area:copyright!important;padding:11px 14px!important;border:0!important;background:transparent!important;box-shadow:none!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-site-mode{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;width:min(calc(100% - 16px),1200px)!important;margin:12px auto 94px!important;padding:16px 18px!important;border:1px solid var(--ubd61-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 26px rgba(24,51,58,.07)!important}
html:not(.ubd-mode-simple) body#index .ubd-mod-site-mode strong{font-size:18px!important;line-height:1!important}

/* 0.6.3: el hero NO tiene una variante sencilla. Simple y Experto heredan exactamente la misma geometría del hero base. */

/* Expert category: description centered and subcategories are a clean white gallery at the bottom. */
html:not(.ubd-catalog-simple) body#category #left-column,
html:not(.ubd-catalog-simple) body#category #right-column,
html:not(.ubd-catalog-simple) body#category #search_filters_brands,
html:not(.ubd-catalog-simple) body#category #search_filters_suppliers{display:none!important}
html:not(.ubd-catalog-simple) body#category #content-wrapper{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding-inline:clamp(10px,2vw,24px)!important}
html:not(.ubd-catalog-simple) body#category .ubd-category-description{max-width:1040px!important;margin:0 auto!important;text-align:center!important}
html:not(.ubd-catalog-simple) body#category .ubd-category-description>:first-child{max-width:960px!important;margin-inline:auto!important}
html:not(.ubd-catalog-simple) body#category .ubd-category-description :where(h2,h3,h4,p,li,strong,a){text-align:center!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-bottom{width:100%!important;margin:28px 0 4px!important;padding:22px!important;border:1px solid var(--ubd61-line)!important;border-radius:24px!important;background:#FBFAF8!important;box-shadow:0 10px 28px rgba(24,51,58,.05)!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-head{display:block!important;margin:0 0 18px!important;text-align:center!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-head span{display:block!important;margin-bottom:5px!important;color:#C75D3C!important;font-size:10px!important;font-weight:900!important;letter-spacing:.11em!important;text-transform:uppercase!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-head h2{margin:0!important;color:var(--ubd61-ink)!important;font-size:clamp(22px,3vw,32px)!important;line-height:1!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-list{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;list-style:none!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-list>li{min-width:0!important;margin:0!important;padding:0!important;list-style:none!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories a{display:flex!important;flex-direction:column!important;align-items:center!important;gap:10px!important;height:100%!important;padding:14px 8px!important;border:1px solid rgba(24,51,58,.08)!important;border-radius:20px!important;background:#fff!important;color:var(--ubd61-ink)!important;text-align:center!important;text-decoration:none!important;box-shadow:0 7px 18px rgba(24,51,58,.05)!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-image{display:grid!important;place-items:center!important;width:106px!important;height:106px!important;padding:8px!important;overflow:hidden!important;border:1px solid rgba(24,51,58,.08)!important;border-radius:50%!important;background:#fff!important;box-shadow:0 8px 20px rgba(24,51,58,.07)!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:auto!important;border-radius:50%!important;object-fit:contain!important;object-position:center!important;background:#fff!important}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-name{min-height:34px!important;color:var(--ubd61-ink)!important;font-size:12px!important;font-weight:900!important;line-height:1.2!important}
@media(max-width:1100px){html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-list{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:699px){html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}html:not(.ubd-catalog-simple) body#category .ubd-subcategories .subcategory-image{width:92px!important;height:92px!important}}

/* Expert product: native gallery modal is fully interactive again. */
html:not(.ubd-catalog-simple) body#product #product-modal{z-index:2147483000!important;padding:12px!important}
html:not(.ubd-catalog-simple) body#product #product-modal .modal-dialog{width:min(96vw,1180px)!important;max-width:min(96vw,1180px)!important;margin:1.5vh auto!important}
html:not(.ubd-catalog-simple) body#product #product-modal .modal-content{overflow:hidden!important;border:0!important;border-radius:24px!important;background:#fff!important;box-shadow:0 30px 90px rgba(0,0,0,.32)!important}
html:not(.ubd-catalog-simple) body#product #product-modal .modal-header{display:flex!important;justify-content:flex-end!important;min-height:54px!important;padding:8px 12px!important;border:0!important}
html:not(.ubd-catalog-simple) body#product #product-modal .modal-header .close{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#F6F2EE!important;color:var(--ubd61-ink)!important;font-size:28px!important;opacity:1!important}
html:not(.ubd-catalog-simple) body#product #product-modal .modal-body{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 118px!important;gap:16px!important;align-items:center!important;min-height:70vh!important;padding:14px 18px 20px!important;background:#fff!important}
html:not(.ubd-catalog-simple) body#product #product-modal figure{display:grid!important;place-items:center!important;min-width:0!important;margin:0!important;padding:0!important}
html:not(.ubd-catalog-simple) body#product #product-modal .js-modal-product-cover{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:76vh!important;margin:auto!important;object-fit:contain!important;object-position:center!important}
html:not(.ubd-catalog-simple) body#product #product-modal .image-caption{display:none!important}
html:not(.ubd-catalog-simple) body#product #product-modal #thumbnails{display:block!important;min-width:0!important;max-height:72vh!important;overflow:auto!important}
html:not(.ubd-catalog-simple) body#product #product-modal .product-images{display:grid!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important}
html:not(.ubd-catalog-simple) body#product #product-modal .thumb-container{display:block!important;margin:0!important;padding:0!important}
html:not(.ubd-catalog-simple) body#product #product-modal .js-modal-thumb{display:block!important;width:86px!important;height:86px!important;padding:4px!important;border:2px solid transparent!important;border-radius:14px!important;background:#fff!important;object-fit:contain!important;cursor:pointer!important}
html:not(.ubd-catalog-simple) body#product #product-modal .js-modal-thumb.selected{border-color:var(--ubd61-coral)!important}
html:not(.ubd-catalog-simple) body#product #product-modal .js-modal-arrows{display:none!important}
html:not(.ubd-catalog-simple) body#product #product-modal .ubd-modal-gallery-nav{position:absolute!important;top:50%!important;z-index:8!important;display:grid!important;place-items:center!important;width:46px!important;height:46px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:var(--ubd61-ink)!important;box-shadow:0 10px 24px rgba(24,51,58,.18)!important;transform:translateY(-50%)!important}
html:not(.ubd-catalog-simple) body#product #product-modal .ubd-modal-gallery-prev{left:24px!important}.ubd-modal-gallery-next{right:142px!important}

/* Product description: always visible; old nav/tab chrome is gone. */
html:not(.ubd-catalog-simple) body#product .tvproduct-description-tab{display:none!important}
html:not(.ubd-catalog-simple) body#product .ubd-product-content-stack{display:grid!important;gap:16px!important;width:100%!important;margin-top:20px!important}
html:not(.ubd-catalog-simple) body#product .ubd-product-description-always,
html:not(.ubd-catalog-simple) body#product .ubd-product-extra-content,
html:not(.ubd-catalog-simple) body#product .ubd-product-attachments,
html:not(.ubd-catalog-simple) body#product .ubd-product-reviews-content{width:100%!important;padding:clamp(18px,3vw,28px)!important;border:1px solid var(--ubd61-line)!important;border-radius:22px!important;background:#fff!important;color:var(--ubd61-ink)!important;box-shadow:0 10px 28px rgba(24,51,58,.05)!important}
html:not(.ubd-catalog-simple) body#product .ubd-product-description-always :where(p,li,span,strong,a){color:inherit!important;line-height:1.6!important}

/* Product purchase info: Puntos + Kueski always side-by-side. PayPal stays alone and centered. */
html:not(.ubd-catalog-simple) body#product .tvwishlist-compare-wrapper-page{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important}
html:not(.ubd-catalog-simple) body#product .tvcart-btn-model{grid-column:1/-1!important}
html:not(.ubd-catalog-simple) body#product .tvproduct-stock-social,
html:not(.ubd-catalog-simple) body#product .product-additional-info{display:contents!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper,
html:not(.ubd-catalog-simple) body#product .product-additional-info>.row:has(kueskipay-widget){grid-column:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:176px!important;height:100%!important;margin:0!important;padding:44px 16px 16px!important;overflow:hidden!important;border:1px solid rgba(24,51,58,.09)!important;border-radius:22px!important;box-shadow:0 10px 26px rgba(24,51,58,.07)!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper{background:#F7D878!important}
html:not(.ubd-catalog-simple) body#product .product-additional-info>.row:has(kueskipay-widget){background:#C6DEA4!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper::before,
html:not(.ubd-catalog-simple) body#product .product-additional-info>.row:has(kueskipay-widget)::before{top:12px!important;left:14px!important;padding:6px 10px!important;background:rgba(255,255,255,.88)!important;color:var(--ubd61-ink)!important;font-size:10px!important;font-weight:950!important;letter-spacing:.05em!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-card-modern{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:center!important;gap:13px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-icon-container{display:grid!important;place-items:center!important;width:54px!important;height:54px!important;margin:0!important;border-radius:17px!important;background:rgba(255,255,255,.76)!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-content-detail{min-width:0!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-main-msg{margin:0 0 6px!important;color:var(--ubd61-ink)!important;font-size:clamp(14px,1.5vw,18px)!important;font-weight:900!important;line-height:1.2!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-sub-msg{margin:0!important;color:#536267!important;font-size:clamp(11px,1.1vw,14px)!important;font-weight:650!important;line-height:1.45!important}
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .points-badge,
html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .voucher-value{color:#E97935!important;font-weight:950!important}
html:not(.ubd-catalog-simple) body#product .product-additional-info>.row:has(kueskipay-widget)>[class*=col-]{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;padding:0!important}
html:not(.ubd-catalog-simple) body#product kueskipay-widget{display:block!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--ubd61-ink)!important}
html:not(.ubd-catalog-simple) body#product #ps_checkout-payment-method-logo-block-container{grid-column:1/-1!important;display:grid!important;place-items:center!important;width:100%!important;min-height:150px!important;margin:0!important;padding:44px 18px 18px!important;border:1px solid rgba(70,126,177,.18)!important;border-radius:22px!important;background:#F0F7FD!important;box-shadow:0 10px 26px rgba(24,51,58,.06)!important;text-align:center!important}
html:not(.ubd-catalog-simple) body#product #ps_checkout-payment-method-logo-block-container::before{content:'Pago seguro'!important;top:12px!important;left:14px!important;background:#E0F0FF!important;color:#174F83!important}
html:not(.ubd-catalog-simple) body#product #ps_checkout-payment-method-logo-block-title{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;margin:0 auto 12px!important;color:#174F83!important;text-align:center!important}
html:not(.ubd-catalog-simple) body#product #ps_checkout-payment-method-logos-container{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:10px!important;width:100%!important;margin:0 auto!important;text-align:center!important}
html:not(.ubd-catalog-simple) body#product #ps_checkout-payment-method-logos-container :where(.paypal-mark,.paypal-marks,div){margin-inline:auto!important;text-align:center!important}
@media(max-width:620px){html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper,html:not(.ubd-catalog-simple) body#product .product-additional-info>.row:has(kueskipay-widget){min-height:166px!important;padding:40px 10px 12px!important;border-radius:18px!important}html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-card-modern{grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;gap:7px!important}html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-icon-container{width:42px!important;height:42px!important}html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-main-msg{font-size:12px!important}html:not(.ubd-catalog-simple) body#product #loyalty_product_wrapper .loyalty-sub-msg{font-size:10px!important;line-height:1.35!important}}

/* Expert cart: real side padding and delete button stays inside its card. */
html:not(.ubd-catalog-simple) body#cart .cart-grid{width:min(100%,1460px)!important;margin:0 auto!important;padding-inline:clamp(10px,2vw,24px)!important;box-sizing:border-box!important}
html:not(.ubd-catalog-simple) body#cart .cart-grid-body,
html:not(.ubd-catalog-simple) body#cart .cart-grid-right{min-width:0!important;padding-inline:8px!important}
html:not(.ubd-catalog-simple) body#cart .cart-overview{padding:0 clamp(10px,1.5vw,18px) 18px!important;overflow:visible!important}
html:not(.ubd-catalog-simple) body#cart .cart-items{margin:0!important;padding:0!important;list-style:none!important}
html:not(.ubd-catalog-simple) body#cart .cart-item{box-sizing:border-box!important;width:100%!important;margin:0 0 16px!important;padding:clamp(14px,1.8vw,20px)!important;overflow:hidden!important;border:1px solid var(--ubd61-line)!important;border-radius:22px!important;background:#fff!important;box-shadow:0 10px 26px rgba(24,51,58,.05)!important}
html:not(.ubd-catalog-simple) body#cart .product-line-grid{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
html:not(.ubd-catalog-simple) body#cart .tv-cart-delete-icon-wrapper{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:50px!important;padding-right:4px!important}
html:not(.ubd-catalog-simple) body#cart .cart-line-product-actions{display:flex!important;justify-content:flex-end!important;width:100%!important}
html:not(.ubd-catalog-simple) body#cart .remove-from-cart{position:static!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border-radius:14px!important;background:#FFF0E7!important;color:#E8734F!important;text-decoration:none!important}
html:not(.ubd-catalog-simple) body#cart .remove-from-cart i{margin:0!important;color:#E8734F!important}
@media(max-width:767px){html:not(.ubd-catalog-simple) body#cart .cart-grid{padding-inline:7px!important}html:not(.ubd-catalog-simple) body#cart .cart-grid-body,html:not(.ubd-catalog-simple) body#cart .cart-grid-right{padding-inline:0!important}html:not(.ubd-catalog-simple) body#cart .cart-overview{padding-inline:7px!important}html:not(.ubd-catalog-simple) body#cart .cart-item{padding:12px!important}}

/* Cart success popup: presentation only, native add-to-cart remains untouched. */
.ubd-cart-success-backdrop{position:fixed;inset:0;z-index:2147482500;display:grid;place-items:center;padding:16px;background:rgba(24,51,58,.42);backdrop-filter:blur(5px)}
.ubd-cart-success{position:relative;width:min(94vw,620px);max-height:min(86vh,760px);overflow:auto;padding:22px;border-radius:26px;background:#fff;color:var(--ubd61-ink);box-shadow:0 30px 90px rgba(0,0,0,.28)}
.ubd-cart-success-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#F6F2EE;color:var(--ubd61-ink);font-size:22px}
.ubd-cart-success-head{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;padding-right:42px}.ubd-cart-success-head img{width:76px;height:76px;padding:6px;border-radius:18px;background:#FFF7F0;object-fit:contain}.ubd-cart-success-kicker{display:inline-flex;margin-bottom:5px;color:#4B8D74;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.ubd-cart-success h2{margin:0;color:var(--ubd61-ink);font-size:clamp(24px,5vw,38px);line-height:.95}.ubd-cart-success-meta{margin:7px 0 0;color:#60757A;font-size:12px;font-weight:700}.ubd-cart-success-attrs{display:grid;gap:7px;margin:16px 0 0;padding:14px;border-radius:18px;background:#FBFAF8}.ubd-cart-success-attrs:empty{display:none}.ubd-cart-success-attr{display:grid;grid-template-columns:minmax(90px,.4fr) minmax(0,1fr);gap:10px;color:#52676C;font-size:11px;line-height:1.35}.ubd-cart-success-attr strong{color:var(--ubd61-ink)}.ubd-cart-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.ubd-cart-success-actions>*{display:flex;align-items:center;justify-content:center;min-height:50px;padding:11px 14px;border:0;border-radius:15px;font-size:12px;font-weight:900;text-decoration:none}.ubd-cart-success-continue{background:#F6F2EE;color:var(--ubd61-ink)}.ubd-cart-success-cart{background:var(--ubd61-coral);color:#fff!important}.ubd-cart-success-backdrop[hidden]{display:none!important}
@media(max-width:520px){.ubd-cart-success{padding:18px}.ubd-cart-success-head{grid-template-columns:64px minmax(0,1fr)}.ubd-cart-success-head img{width:64px;height:64px}.ubd-cart-success-actions{grid-template-columns:1fr}}

/* 0.6.1 refinements: expert nav must not wait for landing interaction. */
html:not(.ubd-mode-simple).ubd-landing-nav-pending body#index #ubd-modular-bonito .ubd-mod-bottom-nav,
html:not(.ubd-mode-simple) body#index #ubd-modular-bonito .ubd-mod-bottom-nav.ubd-nav-hidden{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateX(-50%)!important
}
html.ubd-catalog-simple body#product .ubd-product-content-stack{display:none!important}

@media(max-width:699px){
  html:not(.ubd-catalog-simple) body#product #product-modal{padding:6px!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .modal-dialog{width:100%!important;max-width:100%!important;margin:1vh auto!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .modal-body{grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr) auto!important;gap:10px!important;min-height:72vh!important;padding:8px 10px 14px!important}
  html:not(.ubd-catalog-simple) body#product #product-modal #thumbnails{max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .product-images{display:flex!important;gap:7px!important;width:max-content!important;min-width:100%!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .js-modal-thumb{width:68px!important;height:68px!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .ubd-modal-gallery-prev{left:14px!important}
  html:not(.ubd-catalog-simple) body#product #product-modal .ubd-modal-gallery-next{right:14px!important}
}


/* ==========================================================================
   UBD Modular v1 · 0.6.2 FINAL OVERRIDES
   ========================================================================== */

/* CATEGORÍA · Miniaturas visuales ARRIBA, junto al título. */
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top{
  width:100%!important;
  margin:0!important;
  padding:16px clamp(12px,2vw,20px)!important;
  overflow:hidden!important;
  border:1px solid var(--ubd61-line)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(24,51,58,.05)!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .ubd-subcategories-head{
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 14px!important;
  text-align:left!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .ubd-subcategories-head span{
  margin:0!important;
  color:#C75D3C!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .ubd-subcategories-head h2{
  margin:0!important;
  color:var(--ubd61-ink)!important;
  font-size:clamp(18px,2.2vw,26px)!important;
  line-height:1!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  list-style:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list>li{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top a{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  padding:4px 4px 8px!important;
  color:var(--ubd61-ink)!important;
  text-align:center!important;
  text-decoration:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-image{
  display:grid!important;
  place-items:center!important;
  width:clamp(74px,8vw,112px)!important;
  height:clamp(74px,8vw,112px)!important;
  margin:0 auto!important;
  padding:7px!important;
  overflow:hidden!important;
  border:1px solid rgba(24,51,58,.09)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(24,51,58,.06)!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-image:empty::before{
  content:'🎁';
  font-size:26px;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:auto!important;
  border-radius:50%!important;
  background:#fff!important;
  object-fit:contain!important;
  object-position:center!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-name{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  min-height:2.45em!important;
  overflow:hidden!important;
  color:var(--ubd61-ink)!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1.22!important;
  text-align:center!important;
  text-wrap:balance!important;
}

/* CATEGORÍA · Al final solamente enlaces de texto, en columnas. */
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom{
  width:100%!important;
  margin:30px 0 6px!important;
  padding:20px clamp(16px,2.5vw,28px)!important;
  border-top:1px solid var(--ubd61-line)!important;
  border-bottom:1px solid var(--ubd61-line)!important;
  background:#fff!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-head{
  margin-bottom:14px!important;
  text-align:center!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-head span{
  display:block!important;
  margin-bottom:4px!important;
  color:#C75D3C!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-head h2{
  margin:0!important;
  color:var(--ubd61-ink)!important;
  font-size:clamp(19px,2.4vw,28px)!important;
  line-height:1!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom ul{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px 18px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom li{
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom a{
  display:block!important;
  padding:7px 2px!important;
  color:var(--ubd61-muted)!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.3!important;
  text-align:center!important;
  text-decoration:none!important;
}
html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom a:hover{
  color:#C75D3C!important;
  text-decoration:underline!important;
}

/* La descripción se mantiene centrada. */
html:not(.ubd-catalog-simple) body#category .ubd-category-description,
html:not(.ubd-catalog-simple) body#category .ubd-category-description :where(h2,h3,h4,h5,h6,p,li,strong,a,span){
  text-align:center!important;
}

/* Marcas / Proveedores: respaldo CSS. El JS 0.6.2 también retira bloques dinámicos. */
html:not(.ubd-catalog-simple) body#category :is(
  #search_filters_brands,#search_filters_suppliers,
  .block-categories-brand,.block-categories-supplier,
  [data-ubd-legacy-brand-supplier]
){display:none!important}

/* CARRITO · la acción de borrar vive ABAJO y dentro de la tarjeta. */
html:not(.ubd-catalog-simple) body#cart .product-line-grid-right.product-line-actions{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}
html:not(.ubd-catalog-simple) body#cart .ubd-cart-quantity-row{
  width:100%!important;
  margin:0!important;
}
html:not(.ubd-catalog-simple) body#cart .ubd-cart-line-bottom-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:100%!important;
  max-width:100%!important;
  margin:12px 0 0!important;
  padding:10px 0 0!important;
  overflow:hidden!important;
  border-top:1px solid rgba(24,51,58,.08)!important;
  box-sizing:border-box!important;
}
html:not(.ubd-catalog-simple) body#cart .ubd-cart-line-bottom-actions .cart-line-product-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
html:not(.ubd-catalog-simple) body#cart .ubd-cart-line-bottom-actions .remove-from-cart{
  position:static!important;
  inset:auto!important;
  flex:0 0 44px!important;
  width:44px!important;
  max-width:44px!important;
  height:44px!important;
  margin:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html:not(.ubd-catalog-simple) body#cart .tv-cart-delete-icon-wrapper{display:none!important}

/* SIMPLE · El HERO es EXACTAMENTE el mismo componente visual que Experto.
   Sólo se neutralizan las reglas que antes modificaban su composición. */
html.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-search{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
}
html.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-copy>.ubd-mod-hero-chips>a:first-child{
  display:inline-flex!important;
}
html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media{
  place-items:stretch end!important;
  box-sizing:content-box!important;
}
html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media>a{
  position:absolute!important;
  inset:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  overflow:visible!important;
}
html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media img.ubd-hero-slide{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:auto!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:right center!important;
}

/* Desktop: mismos valores que el hero experto vigente. */
@media(min-width:700px){
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero{
    position:relative!important;
    display:block!important;
    min-height:clamp(610px,72vw,760px)!important;
    height:auto!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:var(--mb-paper)!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-copy{
    position:relative!important;
    z-index:2!important;
    display:grid!important;
    order:initial!important;
    align-content:center!important;
    width:min(50%,650px)!important;
    min-height:clamp(610px,72vw,760px)!important;
    height:auto!important;
    padding:clamp(40px,6vw,78px) clamp(22px,5vw,70px)!important;
    padding-right:clamp(14px,2vw,30px)!important;
    background:transparent!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    order:initial!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:0!important;
    overflow:visible!important;
    opacity:1!important;
    background:transparent!important;
    pointer-events:auto!important;
  }
}

/* Móvil: mismos valores que el hero experto vigente (slide primero). */
@media(max-width:699px){
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:auto!important;
    padding:12px!important;
    overflow:visible!important;
    background:var(--mb-paper)!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media{
    position:relative!important;
    inset:auto!important;
    z-index:1!important;
    order:1!important;
    display:block!important;
    width:100%!important;
    min-height:clamp(330px,96vw,510px)!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:20px!important;
    opacity:1!important;
    isolation:isolate!important;
    background:transparent!important;
    pointer-events:auto!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media>a{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media img.ubd-hero-slide,
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media>a img{
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:auto!important;
    height:100%!important;
    max-width:none!important;
    object-fit:contain!important;
    object-position:right bottom!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-copy{
    position:relative!important;
    z-index:2!important;
    order:2!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding:24px 15px 18px!important;
    align-content:start!important;
    background:transparent!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-copy>.ubd-mod-hero-buttons{
    display:none!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile{
    position:absolute!important;
    right:clamp(14px,4vw,22px)!important;
    bottom:82px!important;
    left:clamp(14px,4vw,22px)!important;
    z-index:13!important;
    display:grid!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile{
    position:absolute!important;
    right:clamp(16px,5vw,26px)!important;
    bottom:18px!important;
    left:clamp(16px,5vw,26px)!important;
    z-index:12!important;
    display:grid!important;
  }
}
@media(max-width:389px){
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media{
    min-height:clamp(320px,103vw,430px)!important;
  }
  html.ubd-modular-ready.ubd-mode-simple body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile{
    bottom:78px!important;
  }
}

/* Responsive category */
@media(max-width:980px){
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top{
    padding:14px 10px!important;
  }
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 2px 7px!important;
    scrollbar-width:none!important;
    scroll-snap-type:x proximity!important;
  }
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list::-webkit-scrollbar{display:none!important}
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-list>li{
    flex:0 0 94px!important;
    width:94px!important;
    scroll-snap-align:start!important;
  }
  html:not(.ubd-catalog-simple) body#category .ubd-subcategories-top .subcategory-image{
    width:78px!important;
    height:78px!important;
  }
  html:not(.ubd-catalog-simple) body#category .ubd-subcategory-links-bottom ul{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px 12px!important;
  }
}

/* UBD Modular v1 · 0.6.4
   Autoridad responsive global: bottom navigation + Authentication.
   Se carga después de los CSS de módulos para evitar geometrías distintas por página. */

:root{
  --ubd63-ink:#18333A;
  --ubd63-muted:#62767A;
  --ubd63-paper:#FBF8F3;
  --ubd63-line:rgba(24,51,58,.11);
  --ubd63-orange:#E7923C;
  --ubd63-yellow:#EFC25E;
  --ubd63-teal:#5DA084;
  --ubd63-shadow:0 16px 38px rgba(24,51,58,.10);
}

/* =========================================================
   MENÚ INFERIOR · UNA SOLA GEOMETRÍA
   ========================================================= */
body .ubd-mod-bottom-nav,
body .ubd-catalog-bottom-nav{
  box-sizing:border-box!important;
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  z-index:2140!important;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:center!important;
  gap:5px!important;
  width:min(calc(100vw - 24px),520px)!important;
  height:64px!important;
  margin:0!important;
  padding:7px 8px!important;
  overflow:visible!important;
  transform:translateX(-50%)!important;
  border:1px solid rgba(24,51,58,.11)!important;
  border-radius:23px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 16px 42px rgba(24,51,58,.18)!important;
  -webkit-backdrop-filter:blur(16px)!important;
  backdrop-filter:blur(16px)!important;
}
body .ubd-mod-bottom-nav > *,
body .ubd-catalog-bottom-nav > *{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-width:0!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  background:transparent!important;
  color:var(--ubd63-ink)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent!important;
}
body .ubd-mod-bottom-nav svg,
body .ubd-catalog-bottom-nav svg{
  display:block!important;
  width:23px!important;
  height:23px!important;
  max-width:23px!important;
  max-height:23px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
}
body .ubd-mod-bottom-nav .ubd-mod-bottom-main,
body .ubd-catalog-bottom-nav .ubd-catalog-bottom-main{
  height:54px!important;
  min-height:54px!important;
  margin-top:-10px!important;
  overflow:visible!important;
  border-radius:17px!important;
  background:var(--ubd63-yellow)!important;
  color:#49392E!important;
  box-shadow:0 10px 23px rgba(239,194,94,.30)!important;
}
body .ubd-mod-bottom-nav .ubd-mod-bottom-main svg,
body .ubd-catalog-bottom-nav .ubd-catalog-bottom-main svg{
  width:29px!important;
  height:29px!important;
  max-width:29px!important;
  max-height:29px!important;
}
html:not(.ubd-mode-simple):not(.ubd-catalog-simple) body,
html.ubd-commerce-ready body,
html.ubd-account-ready body{
  padding-bottom:max(88px,calc(80px + env(safe-area-inset-bottom)))!important;
}

@media (max-width:699px){
  body .ubd-mod-bottom-nav,
  body .ubd-catalog-bottom-nav{
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:calc(6px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    height:62px!important;
    padding:7px 7px!important;
    transform:none!important;
    border-radius:21px!important;
  }
  body .ubd-mod-bottom-nav > *,
  body .ubd-catalog-bottom-nav > *{
    height:45px!important;
    min-height:45px!important;
    border-radius:13px!important;
  }
  body .ubd-mod-bottom-nav svg,
  body .ubd-catalog-bottom-nav svg{
    width:22px!important;
    height:22px!important;
    max-width:22px!important;
    max-height:22px!important;
  }
  body .ubd-mod-bottom-nav .ubd-mod-bottom-main,
  body .ubd-catalog-bottom-nav .ubd-catalog-bottom-main{
    height:52px!important;
    min-height:52px!important;
    margin-top:-9px!important;
  }
  body .ubd-mod-bottom-nav .ubd-mod-bottom-main svg,
  body .ubd-catalog-bottom-nav .ubd-catalog-bottom-main svg{
    width:28px!important;
    height:28px!important;
    max-width:28px!important;
    max-height:28px!important;
  }
}
@media (max-width:359px){
  body .ubd-mod-bottom-nav,
  body .ubd-catalog-bottom-nav{
    left:max(5px,env(safe-area-inset-left))!important;
    right:max(5px,env(safe-area-inset-right))!important;
    gap:3px!important;
    padding-inline:5px!important;
  }
}

/* =========================================================
   LOGIN · UNA SOLA TARJETA, SIN CAPAS APILADAS
   ========================================================= */
html.ubd-commerce-login-ready body#authentication #wrapper,
html.ubd-commerce-login-ready body.page-authentication #wrapper{
  padding:10px 0 24px!important;
  background:#F7F8F5!important;
}
html.ubd-commerce-login-ready body#authentication #wrapper > .container,
html.ubd-commerce-login-ready body.page-authentication #wrapper > .container,
html.ubd-commerce-login-ready body#authentication #wrapper .tv-left-layout,
html.ubd-commerce-login-ready body.page-authentication #wrapper .tv-left-layout{
  width:min(calc(100% - 20px),1180px)!important;
  max-width:1180px!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}
html.ubd-commerce-login-ready body#authentication #content-wrapper,
html.ubd-commerce-login-ready body.page-authentication #content-wrapper{
  float:none!important;
  width:min(100%,590px)!important;
  max-width:590px!important;
  margin:0 auto!important;
  padding:0!important;
}
html.ubd-commerce-login-ready body#authentication #main,
html.ubd-commerce-login-ready body.page-authentication #main{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
html.ubd-commerce-login-ready body#authentication #content,
html.ubd-commerce-login-ready body.page-authentication #content{
  display:flex!important;
  flex-direction:column!important;
  gap:15px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(20px,4vw,30px)!important;
  overflow:visible!important;
  border:1px solid var(--ubd63-line)!important;
  border-radius:28px!important;
  background:#fff!important;
  box-shadow:var(--ubd63-shadow)!important;
  color:var(--ubd63-ink)!important;
}
html.ubd-commerce-login-ready .form-title{
  order:0!important;
  margin:0!important;
  padding:0 2px 4px!important;
  text-align:center!important;
}
html.ubd-commerce-login-ready .form-title h1{
  margin:0!important;
  color:var(--ubd63-ink)!important;
  font-family:Manrope,Arial,sans-serif!important;
  font-size:clamp(29px,6vw,38px)!important;
  font-weight:900!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
  text-transform:none!important;
}
html.ubd-commerce-login-ready .form-title h1:after{
  content:"Accede a tus pedidos y datos guardados"!important;
  display:block!important;
  max-width:360px!important;
  margin:8px auto 0!important;
  color:var(--ubd63-muted)!important;
  font-family:Manrope,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.45!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* Este bloque adicional era el que hacía sentir el login saturado. */
html.ubd-commerce-login-ready .ubd-login-fast-intro{display:none!important}

html.ubd-commerce-login-ready .ets_solo_social_wrapper.ubd-login-google-first{
  order:1!important;
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html.ubd-commerce-login-ready .ets_solo_social_wrapper .ets_solo_wrapper_content{
  gap:7px!important;
}
html.ubd-commerce-login-ready .ets_solo_social_wrapper .ets_solo_social_title,
html.ubd-commerce-login-ready .ets_solo_social_wrapper .ets_solo_social_desc{
  margin:0!important;
  color:var(--ubd63-muted)!important;
  font-size:11px!important;
  line-height:1.4!important;
  text-align:center!important;
}
html.ubd-commerce-login-ready .ets_solo_social_wrapper .ets_solo_social_btn{
  min-height:52px!important;
  padding:0 16px!important;
  border:1px solid var(--ubd63-line)!important;
  border-radius:15px!important;
  background:#fff!important;
  color:var(--ubd63-ink)!important;
  font-size:14px!important;
  font-weight:850!important;
  box-shadow:0 7px 18px rgba(24,51,58,.07)!important;
}
html.ubd-commerce-login-ready .ets_solo_social_wrapper .svg_gl{
  width:29px!important;
  height:29px!important;
}
html.ubd-commerce-login-ready .ets_solo_social_wrapper .svg_gl svg{
  width:26px!important;
  height:26px!important;
}

html.ubd-commerce-login-ready .ubd-login-email-heading{
  order:2!important;
  grid-template-columns:1fr auto 1fr!important;
  gap:9px!important;
  margin:1px 0!important;
  color:var(--ubd63-muted)!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
}
html.ubd-commerce-login-ready .login-form{
  order:3!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html.ubd-commerce-login-ready .login-form:before{display:none!important}
html.ubd-commerce-login-ready #login-form{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
html.ubd-commerce-login-ready #login-form .form-group.row,
html.ubd-commerce-login-ready #login-form .form-group{
  display:block!important;
  width:100%!important;
  margin:0 0 13px!important;
  padding:0!important;
}
html.ubd-commerce-login-ready #login-form .form-control-label{
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 6px!important;
  padding:0!important;
  color:var(--ubd63-ink)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-align:left!important;
}
html.ubd-commerce-login-ready #login-form .js-input-column{
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
html.ubd-commerce-login-ready #login-form .js-input-column > input.form-control{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid var(--ubd63-line)!important;
  border-radius:14px!important;
  background:var(--ubd63-paper)!important;
  color:var(--ubd63-ink)!important;
  font-size:16px!important; /* evita zoom automático de iOS */
  box-shadow:none!important;
}
html.ubd-commerce-login-ready #login-form .input-group{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid var(--ubd63-line)!important;
  border-radius:14px!important;
  background:var(--ubd63-paper)!important;
  box-shadow:none!important;
}
html.ubd-commerce-login-ready #login-form .input-group .form-control{
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ubd63-ink)!important;
  font-size:16px!important;
  box-shadow:none!important;
}
html.ubd-commerce-login-ready #login-form button[data-action="show-password"]{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:70px!important;
  height:52px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-left:1px solid var(--ubd63-line)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--ubd63-ink)!important;
  font-size:10px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
html.ubd-commerce-login-ready #login-form .forgot-password{
  margin:2px 0 14px!important;
  padding:0!important;
  text-align:right!important;
}
html.ubd-commerce-login-ready #login-form .forgot-password a{
  color:var(--ubd63-teal)!important;
  font-size:12px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
html.ubd-commerce-login-ready #login-form .form-footer{
  margin:0!important;
  padding:0!important;
}
html.ubd-commerce-login-ready #submit-login{
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 18px!important;
  border:0!important;
  border-radius:15px!important;
  background:var(--ubd63-orange)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  box-shadow:0 11px 24px rgba(231,146,60,.20)!important;
}
html.ubd-commerce-login-ready .no-account{
  order:4!important;
  margin:0!important;
  padding:10px 4px 0!important;
  border:0!important;
  border-top:1px solid var(--ubd63-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ubd63-muted)!important;
  text-align:center!important;
}
html.ubd-commerce-login-ready .no-account a{
  color:var(--ubd63-ink)!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
}

@media(max-width:699px){
  html.ubd-commerce-login-ready body#authentication #wrapper,
  html.ubd-commerce-login-ready body.page-authentication #wrapper{
    padding-top:5px!important;
  }
  html.ubd-commerce-login-ready body#authentication #content-wrapper,
  html.ubd-commerce-login-ready body.page-authentication #content-wrapper{
    width:100%!important;
  }
  html.ubd-commerce-login-ready body#authentication #content,
  html.ubd-commerce-login-ready body.page-authentication #content{
    gap:13px!important;
    padding:18px 16px 20px!important;
    border-radius:22px!important;
  }
  html.ubd-commerce-login-ready .form-title h1{
    font-size:30px!important;
  }
  html.ubd-commerce-login-ready .form-title h1:after{
    margin-top:6px!important;
    font-size:11px!important;
  }
  html.ubd-commerce-login-ready .ets_solo_social_wrapper .ets_solo_social_btn,
  html.ubd-commerce-login-ready #submit-login{
    min-height:50px!important;
  }
}

/* Evita que Bootstrap/ThemeVolty vuelvan a ensanchar las columnas del login. */
html.ubd-commerce-login-ready #login-form [class*="col-md-"]{
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* =========================================================
   0.6.4 · AUTORIDAD FINAL DE MENÚ / CARRITO
   - No mueve nodos del DOM.
   - No usa MutationObserver.
   - En móvil evita translateX para que Safari no desborde el drawer.
   - El carrito siempre conserva una salida visible aunque una capa auxiliar falle.
   ========================================================= */

/* Capas cerradas nunca pueden tapar la página. */
body .ubd-mod-menu-backdrop[hidden],
body .ubd-catalog-shell-backdrop[hidden],
body .ubd-shipping-drawer[hidden],
body#cart .ubd-cart-extras__overlay[hidden]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Drawer: geometría estable en tablet/escritorio angosto. */
@media (max-width:991px){
  body .ubd-mod-menu-backdrop,
  body .ubd-catalog-shell-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:2147482600!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
  }

  body .ubd-mod-menu-sheet,
  body .ubd-catalog-shell-menu{
    box-sizing:border-box!important;
    position:fixed!important;
    top:auto!important;
    right:auto!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    left:50%!important;
    z-index:2147482700!important;
    width:min(620px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    max-height:min(74dvh,680px)!important;
    margin:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    transform:translate(-50%,calc(100% + 28px)) scale(.985)!important;
    transform-origin:bottom center!important;
    visibility:hidden!important;
    opacity:0!important;
  }

  body .ubd-mod-menu-sheet.is-open,
  body .ubd-catalog-shell-menu.is-open{
    transform:translate(-50%,0) scale(1)!important;
    visibility:visible!important;
    opacity:1!important;
  }

  body.ubd-shell-menu-open,
  body.ubd-menu-drawer-open-v1911{
    overflow:hidden!important;
    touch-action:none!important;
  }

  body.ubd-shell-menu-open :is(.ubd-mod-bottom-nav,.ubd-catalog-bottom-nav),
  body.ubd-menu-drawer-open-v1911 :is(.ubd-mod-bottom-nav,.ubd-catalog-bottom-nav),
  body.ubd-shell-menu-open :is(.ubd-anniversary-bar-v1929,.ubd-delivery-notice-v179,.ubd-delivery-reopen-v179,.ubd-cart-extras__pill),
  body.ubd-menu-drawer-open-v1911 :is(.ubd-anniversary-bar-v1929,.ubd-delivery-notice-v179,.ubd-delivery-reopen-v179,.ubd-cart-extras__pill){
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* iPhone/móvil: anclaje por ambos laterales, sin traslación horizontal. */
@media (max-width:699px){
  body .ubd-mod-menu-sheet,
  body .ubd-catalog-shell-menu{
    right:max(8px,env(safe-area-inset-right))!important;
    left:max(8px,env(safe-area-inset-left))!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(70dvh,620px)!important;
    padding:13px!important;
    border-radius:26px!important;
    transform:translateY(calc(100% + 24px)) scale(.985)!important;
    transform-origin:bottom center!important;
  }

  body .ubd-mod-menu-sheet.is-open,
  body .ubd-catalog-shell-menu.is-open{
    transform:translateY(0) scale(1)!important;
  }

  body .ubd-mod-menu-grid,
  body .ubd-catalog-shell-menu-grid{
    min-width:0!important;
    max-width:100%!important;
  }

  body .ubd-mod-menu-grid > *,
  body .ubd-catalog-shell-menu-grid > *{
    min-width:0!important;
    max-width:100%!important;
  }
}

/* Carrito /un-pedido: nunca dejar el contenido principal invisible. */
html.ubd-commerce-cart-ready body#cart #wrapper,
html.ubd-commerce-cart-ready body#cart #content-wrapper,
html.ubd-commerce-cart-ready body#cart #main,
html.ubd-commerce-cart-ready body#cart .cart-grid,
html.ubd-commerce-cart-ready body#cart .cart-grid-body,
html.ubd-commerce-cart-ready body#cart .cart-grid-right{
  visibility:visible!important;
  opacity:1!important;
}

html.ubd-commerce-cart-ready body#cart #wrapper,
html.ubd-commerce-cart-ready body#cart #content-wrapper,
html.ubd-commerce-cart-ready body#cart #main{
  min-height:1px!important;
}

html.ubd-commerce-cart-ready body#cart .ubd-catalog-shell-menu:not(.is-open),
html.ubd-commerce-cart-ready body#cart .ubd-shipping-drawer:not(.is-open),
html.ubd-commerce-cart-ready body#cart .ubd-cart-extras:not(.is-open) .ubd-cart-extras__overlay{
  pointer-events:none!important;
}


/* =========================================================
   UBD Modular v1 · 0.6.4.14 · CATEGORÍA MÓVIL LIMPIA
   Corrige únicamente <=699px:
   - Hero excesivamente alto.
   - Subcategorías inyectadas dentro del encabezado sin solaparse.
   - Toolbar catálogo sin contador atrapado entre Asistente y Ordenar.
   - Cápsula de entrega más discreta sobre el catálogo.
   Escritorio no cambia.
   ========================================================= */
@media (max-width:699px){
  /* 1) Hero: compacto, legible y sin un gran vacío debajo del título. */
  html.ubd-category-ready body#category .ubd-category-head{
    gap:12px!important;
    margin-bottom:14px!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 82px!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:15px 15px 16px!important;
    overflow:hidden!important;
    border-radius:22px!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero-copy{
    min-width:0!important;
    align-self:center!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero .ubd-eyebrow{
    display:block!important;
    margin:0 0 5px!important;
    font-size:10px!important;
    line-height:1!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero h1{
    margin:0!important;
    max-width:100%!important;
    font-size:clamp(34px,10.5vw,46px)!important;
    line-height:.92!important;
    overflow-wrap:anywhere!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero-media{
    display:grid!important;
    place-items:center!important;
    justify-self:end!important;
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:82px!important;
    min-height:82px!important;
    max-height:82px!important;
    margin:0!important;
    padding:5px!important;
    overflow:hidden!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.48)!important;
  }

  html.ubd-category-ready body#category .ubd-category-hero-media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  /* 2) Subcategorías: el JS coloca el carrusel justo después del H2.
        Al convertir el head en bloque, título y carrusel dejan de competir
        en la misma fila y desaparece el texto cortado/encimado. */
  html.ubd-category-ready body#category .ubd-subcategories-top{
    width:100%!important;
    margin:0!important;
    padding:14px!important;
    overflow:hidden!important;
    border-radius:22px!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-subcategories-head{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    text-align:left!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-subcategories-head > span{
    display:block!important;
    margin:0 0 5px!important;
    font-size:10px!important;
    line-height:1!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-subcategories-head > h2{
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:22px!important;
    line-height:1.05!important;
    text-align:left!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-shell{
    display:block!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    padding:0!important;
    clear:both!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-hint{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    width:max-content!important;
    max-width:100%!important;
    min-height:0!important;
    margin:0 0 9px auto!important;
    padding:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#C75D3C!important;
    font-size:9px!important;
    font-weight:900!important;
    line-height:1.15!important;
    letter-spacing:.075em!important;
    text-align:right!important;
    text-transform:uppercase!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-hint span{
    min-width:0!important;
    white-space:normal!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-hint b{
    flex:0 0 auto!important;
    font-size:15px!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-viewport{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-nav{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-auto-columns:clamp(118px,36vw,138px)!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:2px 26px 7px 1px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-nav::-webkit-scrollbar{
    display:none!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-nav > a{
    gap:7px!important;
    min-width:0!important;
    min-height:0!important;
    padding:8px 7px 10px!important;
    border-radius:18px!important;
    scroll-snap-align:start!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-media{
    width:74px!important;
    height:74px!important;
    padding:5px!important;
  }

  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-nav strong{
    min-height:2.35em!important;
    font-size:11px!important;
    line-height:1.16!important;
  }

  /* Ya hay gesto horizontal y pista textual; quitamos adornos que se montaban
     sobre la última tarjeta en pantallas estrechas. */
  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-fade,
  html.ubd-category-ready body#category .ubd-subcategories-top .ubd-submenu-icon-next{
    display:none!important;
  }

  /* El carrusel nuevo sustituye al listado nativo en móvil. */
  html.ubd-category-ready body#category .ubd-subcategories-top[data-ubd-submenu-icons-ready="true"] > .subcategory-list{
    display:none!important;
  }

  /* 3) Barra de productos: dos acciones útiles, sin la cifra encajada al centro. */
  html.ubd-category-ready body#category #js-product-list-top.products-selection{
    min-height:0!important;
    height:auto!important;
    margin:0 0 13px!important;
    padding:7px!important;
    overflow:visible!important;
    border-radius:18px!important;
  }

  html.ubd-category-ready body#category #js-product-list-top.products-selection.ubd-products-toolbar-v1918{
    grid-template-columns:minmax(0,1fr) minmax(132px,42%)!important;
    align-items:stretch!important;
    gap:7px!important;
  }

  html.ubd-category-ready body#category #js-product-list-top .ubd-product-count,
  html.ubd-category-ready body#category #js-product-list-top .ubd-products-count,
  html.ubd-category-ready body#category #js-product-list-top .total-products,
  html.ubd-category-ready body#category #js-product-list-top [class*="product-count"]{
    display:none!important;
    visibility:hidden!important;
  }

  html.ubd-category-ready body#category #js-product-list-top .ubd-products-assistant-v1918 a{
    min-height:42px!important;
    width:100%!important;
    padding:8px 10px!important;
    border-radius:14px!important;
    font-size:10.5px!important;
  }

  html.ubd-category-ready body#category #js-product-list-top .products-sort-order .select-title{
    min-height:42px!important;
    width:100%!important;
    padding:8px 10px!important;
    border-radius:14px!important;
    font-size:10.5px!important;
  }

  /* Si queda la fila nativa dentro de la columna de orden, no debe reservar
     espacio para el contador eliminado. */
  html.ubd-category-ready body#category #js-product-list-top > .row,
  html.ubd-category-ready body#category #js-product-list-top .ubd-sort-column > .row{
    min-width:0!important;
    margin:0!important;
  }

  html.ubd-category-ready body#category #js-product-list-top .ubd-product-sort,
  html.ubd-category-ready body#category #js-product-list-top .ubd-sort-column{
    flex:0 0 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }

  /* 4) El aviso conserva su función pero ocupa menos pantalla del catálogo. */
  html.ubd-category-ready body#category .ubd-delivery-notice-v179.is-compact{
    width:min(246px,calc(100vw - 24px))!important;
  }

  html.ubd-category-ready body#category .ubd-delivery-notice-v179.is-compact .ubd-notice-expand{
    min-height:35px!important;
  }

  html.ubd-category-ready body#category .ubd-delivery-notice-v179.is-compact .ubd-notice-expand > strong{
    font-size:9.5px!important;
  }
}

@media (max-width:380px){
  html.ubd-category-ready body#category .ubd-category-hero{
    grid-template-columns:minmax(0,1fr) 72px!important;
  }
  html.ubd-category-ready body#category .ubd-category-hero-media{
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:72px!important;
    min-height:72px!important;
    max-height:72px!important;
  }
  html.ubd-category-ready body#category #js-product-list-top.products-selection.ubd-products-toolbar-v1918{
    grid-template-columns:minmax(0,1fr) minmax(120px,43%)!important;
  }
}

/* ======================================================================
   UBD Modular v1 · 0.6.4.7 · ESTABILIDAD DE PRODUCTO + BUSCADOR
   Esta hoja vive en EL TEMA y se carga al final para prevalecer sobre
   estilos de módulos sin alterar su lógica, inputs, eventos ni checkout.
   ====================================================================== */

/* ----------------------------------------------------------------------
   1) PUNTOS BONITOS / KUESKI / PAGO SEGURO
   Una ficha por fila SIEMPRE. El tema controla tarjeta, tipografía,
   espaciado y saltos; los módulos conservan exclusivamente sus datos.
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product .ubd-commerce-trust {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-auto-flow:row !important;
  gap:14px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:22px 0 10px !important;
  padding:0 !important;
}

html.ubd-product-ready body#product .ubd-commerce-trust > .ubd-commerce-trust-card {
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:center !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:126px !important;
  height:auto !important;
  margin:0 !important;
  padding:18px clamp(18px,3vw,28px) 20px !important;
  overflow:hidden !important;
  border:1px solid rgba(23,56,62,.10) !important;
  border-radius:22px !important;
  box-shadow:0 12px 28px rgba(23,56,62,.07) !important;
  box-sizing:border-box !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  color:#17383E !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust > .ubd-commerce-trust-points { background:#F7D878 !important; }
html.ubd-product-ready body#product .ubd-commerce-trust > .ubd-commerce-trust-kueski { background:#C6DEA4 !important; }
html.ubd-product-ready body#product .ubd-commerce-trust > .ubd-commerce-trust-payments { background:#EEF6FD !important; }

html.ubd-product-ready body#product .ubd-commerce-trust .ubd-commerce-trust-label {
  align-self:flex-start !important;
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  max-width:100% !important;
  min-height:34px !important;
  margin:0 0 14px !important;
  padding:7px 13px !important;
  border:0 !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.86) !important;
  color:#17383E !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.15 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  text-align:left !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
}

/* Elimina etiquetas/tarjetas que estilos anteriores dibujaban dentro. */
html.ubd-product-ready body#product .ubd-commerce-trust #loyalty_product_wrapper::before,
html.ubd-product-ready body#product .ubd-commerce-trust .row:has(kueskipay-widget)::before,
html.ubd-product-ready body#product .ubd-commerce-trust kueskipay-widget::before,
html.ubd-product-ready body#product .ubd-commerce-trust #ps_checkout-payment-method-logo-block-container::before,
html.ubd-product-ready body#product .ubd-commerce-trust #ps_checkout-express-button-container::before,
html.ubd-product-ready body#product .ubd-commerce-trust #paypal-button-container::before {
  display:none !important;
  content:none !important;
}

/* Neutraliza las envolturas originales: la única tarjeta es la del tema. */
html.ubd-product-ready body#product .ubd-commerce-trust :where(
  #loyalty_product_wrapper,
  .row,
  [class*="col-"],
  kueskipay-widget,
  #ps_checkout-payment-method-logo-block-container,
  #ps_checkout-express-button-container,
  #paypal-button-container
) {
  float:none !important;
  position:static !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

/* Puntos Bonitos: misma métrica visual que Kueski. */
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper,
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper * {
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  box-sizing:border-box !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-card-modern {
  display:grid !important;
  grid-template-columns:62px minmax(0,1fr) !important;
  align-items:center !important;
  gap:16px !important;
  width:min(100%,780px) !important;
  max-width:780px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-icon-container {
  display:grid !important;
  place-items:center !important;
  width:62px !important;
  min-width:62px !important;
  height:62px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.72) !important;
  box-shadow:none !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-content-detail {
  display:grid !important;
  gap:5px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-main-msg,
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-sub-msg {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:#17383E !important;
  text-align:left !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  white-space:normal !important;
  overflow:visible !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-wrap:pretty !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-main-msg {
  font-size:clamp(16px,1.8vw,21px) !important;
  font-weight:850 !important;
  line-height:1.3 !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper .loyalty-sub-msg {
  font-size:clamp(13px,1.45vw,16px) !important;
  font-weight:650 !important;
  line-height:1.5 !important;
  color:#50686D !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-points #loyalty_product_wrapper :where(
  .points-badge,#loyalty_points,#total_loyalty_points,.voucher-value
) {
  display:inline !important;
  margin:0 !important;
  padding:0 !important;
  font-family:inherit !important;
  font-size:1.18em !important;
  font-weight:950 !important;
  line-height:inherit !important;
  letter-spacing:0 !important;
  white-space:normal !important;
}

/* Kueski: el host queda totalmente plano; el Shadow DOM se estiliza por JS del tema. */
html.ubd-product-ready body#product .ubd-commerce-trust-kueski kueskipay-widget {
  display:block !important;
  width:min(100%,780px) !important;
  max-width:780px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 auto !important;
  padding:0 !important;
  color:#17383E !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  --kp-text-align:center;
  --kp-padding-y:0;
}

/* Pago seguro hereda exactamente el mismo ritmo vertical. */
html.ubd-product-ready body#product .ubd-commerce-trust-payments #ps_checkout-payment-method-logo-block-container {
  display:grid !important;
  place-items:center !important;
  gap:10px !important;
  width:min(100%,780px) !important;
  margin:0 auto !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
}
html.ubd-product-ready body#product .ubd-commerce-trust-payments #ps_checkout-payment-method-logo-block-title {
  margin:0 !important;
  color:#50686D !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  text-align:center !important;
}

/* ----------------------------------------------------------------------
   2) ETS EXTRA OPTIONS
   Sin alturas artificiales. Sin dos filas horizontales. Sin márgenes
   negativos. Tarjetas naturales y grid sólido para que nunca se monten.
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product .block-product-attribute-custom .from-group-option {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  overflow:hidden !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-template-rows:none !important;
  grid-auto-flow:row !important;
  grid-auto-columns:auto !important;
  align-items:stretch !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  scroll-snap-type:none !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio,.checkbox) {
  display:flex !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:11px 9px !important;
  overflow:hidden !important;
  border-radius:17px !important;
  box-sizing:border-box !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio,.checkbox) > label,
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio,.checkbox) > label.control-label,
html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio,.checkbox) > label.control-label > div:first-child {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom img.ets_zoom_img {
  display:block !important;
  width:clamp(78px,8vw,104px) !important;
  height:clamp(78px,8vw,104px) !important;
  min-width:0 !important;
  max-width:104px !important;
  max-height:104px !important;
  flex:0 0 auto !important;
  margin:0 auto 2px !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:14px !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom .attr-text {
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.28 !important;
  text-align:center !important;
  white-space:normal !important;
  text-overflow:clip !important;
  overflow:visible !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom :where(
  .product-discount,.attribute_price_save,.price
) {
  display:block !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  margin:4px 0 0 !important;
  padding:0 !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow:visible !important;
}
html.ubd-product-ready body#product .block-product-attribute-custom .ets_attr_desc_small {
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  margin:6px 0 0 !important;
  padding:6px 0 0 !important;
  font-size:10px !important;
  line-height:1.32 !important;
  white-space:normal !important;
  overflow:visible !important;
}

@media (min-width:700px) and (max-width:1050px) {
  html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:699px) {
  html.ubd-product-ready body#product .block-product-attribute-custom {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:12px 0 !important;
    padding:11px !important;
    overflow:hidden !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom .from-group-option {
    padding:10px !important;
    overflow:hidden !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:none !important;
    grid-auto-flow:row !important;
    grid-auto-columns:auto !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio,.checkbox) {
    min-height:0 !important;
    height:auto !important;
    padding:9px 7px 10px !important;
    border-radius:15px !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom img.ets_zoom_img {
    width:76px !important;
    height:76px !important;
    max-width:76px !important;
    max-height:76px !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom .attr-text {
    font-size:10.5px !important;
    line-height:1.24 !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom :where(.product-discount,.attribute_price_save,.price) {
    font-size:12.5px !important;
  }
}

@media (max-width:380px) {
  html.ubd-product-ready body#product .block-product-attribute-custom,
  html.ubd-product-ready body#product .block-product-attribute-custom .from-group-option {
    padding-left:8px !important;
    padding-right:8px !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom .ubd-eto-modular-track {
    gap:8px !important;
  }
  html.ubd-product-ready body#product .block-product-attribute-custom img.ets_zoom_img {
    width:68px !important;
    height:68px !important;
    max-width:68px !important;
    max-height:68px !important;
  }
}

/* ----------------------------------------------------------------------
   3) BUSCADOR FLOTANTE DEL HEADER
   ---------------------------------------------------------------------- */
.ubd-theme-search-overlay {
  position:fixed !important;
  inset:0 !important;
  z-index:2147483600 !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  padding:max(78px,calc(58px + env(safe-area-inset-top))) 12px 24px !important;
  background:rgba(23,56,62,.36) !important;
  backdrop-filter:blur(10px) !important;
  -webkit-backdrop-filter:blur(10px) !important;
  box-sizing:border-box !important;
}
.ubd-theme-search-overlay[hidden] { display:none !important; }
.ubd-theme-search-dialog {
  position:relative !important;
  width:min(680px,100%) !important;
  max-width:680px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:18px !important;
  border:1px solid rgba(255,255,255,.82) !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 26px 70px rgba(23,56,62,.24) !important;
  box-sizing:border-box !important;
}
.ubd-theme-search-head {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin:0 0 13px !important;
}
.ubd-theme-search-head strong {
  color:#17383E !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}
.ubd-theme-search-close {
  display:grid !important;
  place-items:center !important;
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(23,56,62,.10) !important;
  border-radius:12px !important;
  background:#F6F8F6 !important;
  color:#17383E !important;
  font-size:24px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.ubd-theme-search-form {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:9px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}
.ubd-theme-search-input {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:54px !important;
  margin:0 !important;
  padding:0 16px !important;
  border:1px solid #DDE5E1 !important;
  border-radius:15px !important;
  outline:0 !important;
  background:#FBFCFB !important;
  color:#17383E !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:650 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
.ubd-theme-search-input:focus {
  border-color:#5EA58A !important;
  background:#fff !important;
  box-shadow:0 0 0 4px rgba(94,165,138,.12) !important;
}
.ubd-theme-search-submit {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:112px !important;
  height:54px !important;
  margin:0 !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:15px !important;
  background:#17383E !important;
  color:#fff !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1 !important;
  cursor:pointer !important;
}
html.ubd-theme-search-open,
html.ubd-theme-search-open body { overflow:hidden !important; }

@media (max-width:520px) {
  .ubd-theme-search-overlay {
    padding:max(68px,calc(50px + env(safe-area-inset-top))) 9px 18px !important;
  }
  .ubd-theme-search-dialog {
    padding:14px !important;
    border-radius:20px !important;
  }
  .ubd-theme-search-form {
    grid-template-columns:minmax(0,1fr) !important;
  }
  .ubd-theme-search-submit {
    width:100% !important;
    min-width:0 !important;
  }
}

/* ----------------------------------------------------------------------
   4) CONTENCIÓN EXTRA DE PRODUCTO
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product :where(
  .tv-product-page-content,
  .product-actions,
  #add-to-cart-or-refresh,
  .product-add-to-cart,
  .ubd-commerce-trust,
  .block-product-attribute-custom
),
html.ubd-product-ready body#product :where(
  .tv-product-page-content,
  .product-actions,
  #add-to-cart-or-refresh,
  .product-add-to-cart,
  .ubd-commerce-trust,
  .block-product-attribute-custom
) * {
  max-width:100% !important;
  box-sizing:border-box !important;
}


/* ======================================================================
   4) CHECKOUT · NO MOSTRAR BOTONES TÉCNICOS VACÍOS
   Respeta display:none inline que colocan Stripe/PayPal/Kueski/transferencia
   y el botón nativo de confirmación mientras PrestaShop lo mantiene oculto.
   ====================================================================== */
body#checkout #checkout-payment-step button[type="submit"][style*="display:none"],
body#checkout #checkout-payment-step button[type="submit"][style*="display: none"] {
  display:none !important;
}
body#checkout #checkout-payment-step .js-payment-option-form button[id^="pay-with-payment-option-"] {
  min-width:0 !important;
  min-height:0 !important;
  width:0 !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
body#checkout #checkout-payment-step .js-payment-option-form button[id^="pay-with-payment-option-"][style*="display:none"],
body#checkout #checkout-payment-step .js-payment-option-form button[id^="pay-with-payment-option-"][style*="display: none"] {
  display:none !important;
}

/* ======================================================================
   5) CARRITO · CESTO SIEMPRE DENTRO DE LA TARJETA
   El JS mueve el enlace real (mismo href/data-action) a este slot estable.
   ====================================================================== */
body#cart .cart-item,
body#cart .product-line-grid {
  position:relative !important;
}
body#cart .product-line-grid {
  min-width:0 !important;
  max-width:100% !important;
  padding-bottom:54px !important;
  overflow:visible !important;
}
body#cart .ubd-cart-delete-stable-slot {
  position:absolute !important;
  right:0 !important;
  bottom:0 !important;
  z-index:12 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  width:auto !important;
  min-width:44px !important;
  height:44px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}
body#cart .ubd-cart-delete-stable-slot .remove-from-cart,
body#cart .ubd-cart-delete-stable-slot [data-link-action="delete-from-cart"] {
  position:static !important;
  inset:auto !important;
  display:grid !important;
  place-items:center !important;
  visibility:visible !important;
  opacity:1 !important;
  flex:0 0 44px !important;
  width:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  border:1px solid rgba(232,115,79,.18) !important;
  border-radius:13px !important;
  background:#FFF0E7 !important;
  color:#D95F3F !important;
  text-decoration:none !important;
  box-shadow:none !important;
  overflow:hidden !important;
  cursor:pointer !important;
}
body#cart .ubd-cart-delete-stable-slot .remove-from-cart svg,
body#cart .ubd-cart-delete-stable-slot [data-link-action="delete-from-cart"] svg {
  display:block !important;
  width:21px !important;
  height:21px !important;
  max-width:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
}
body#cart .ubd-cart-delete-stable-slot .remove-from-cart:hover,
body#cart .ubd-cart-delete-stable-slot [data-link-action="delete-from-cart"]:hover {
  background:#FFE2D5 !important;
  color:#B94B31 !important;
}
@media(max-width:575px){
  body#cart .product-line-grid{padding-bottom:48px !important}
  body#cart .ubd-cart-delete-stable-slot{height:40px !important;min-width:40px !important}
  body#cart .ubd-cart-delete-stable-slot .remove-from-cart,
  body#cart .ubd-cart-delete-stable-slot [data-link-action="delete-from-cart"]{
    flex-basis:40px !important;width:40px !important;min-width:40px !important;max-width:40px !important;height:40px !important;min-height:40px !important;border-radius:12px !important
  }
}


/* ======================================================================
   0.6.4.8 · ATRIBUTOS DE PRODUCTO · ESPACIADO ESTABLE LABEL / VALUE
   Corrige "Bebida:Café" / "Color Mantel:Azul" tanto en carrito como
   en el resumen de /un-pedido. No depende de espacios escritos en Smarty.
   ====================================================================== */
body#checkout #cart-summary-product-list .product-line-info > .label,
body#cart .product-line-grid-body .product-line-info > .label {
  display:inline !important;
  margin:0 .62em 0 0 !important;
  padding:0 !important;
  vertical-align:baseline !important;
  white-space:normal !important;
}
body#checkout #cart-summary-product-list .product-line-info > .value,
body#cart .product-line-grid-body .product-line-info > .value {
  display:inline !important;
  margin:0 !important;
  padding:0 !important;
  min-width:0 !important;
  vertical-align:baseline !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}
body#checkout #cart-summary-product-list .product-line-info,
body#cart .product-line-grid-body .product-line-info:has(> .label + .value) {
  line-height:1.5 !important;
}
@media (max-width:575px) {
  body#checkout #cart-summary-product-list .product-line-info > .label,
  body#cart .product-line-grid-body .product-line-info > .label {
    margin-right:.55em !important;
  }
}

/* ======================================================================
   0.6.4.9 · LOGIN LIMPIO + SOCIAL LOGIN EN POPUP
   - Un solo login nativo visible en /iniciar-sesion.
   - ETS Social Login conserva únicamente el widget lateral SLW.
   - Cerrado por defecto, botón naranja "Entrar", popup sólo con Google.
   ====================================================================== */

/* Las dos variantes duplicadas de ETS no deben competir con el login nativo. */
html.ubd-commerce-login-ready body#authentication .ets_solo_social_wrapper.alw,
html.ubd-commerce-login-ready body#authentication .ets_solo_social_wrapper.lgp,
html.ubd-commerce-login-ready body#authentication .ubd-login-fast-intro,
html.ubd-commerce-login-ready body#authentication .ubd-login-email-heading {
  display:none !important;
}

/* El formulario nativo queda como única tarjeta de credenciales. */
html.ubd-commerce-login-ready body#authentication #content {
  gap:18px !important;
  padding:clamp(22px,4vw,32px) !important;
  border:1px solid #e2e8e5 !important;
  border-radius:28px !important;
  background:#fff !important;
  box-shadow:0 18px 48px rgba(23,52,60,.09) !important;
}
html.ubd-commerce-login-ready body#authentication .login-form {
  order:1 !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
}
html.ubd-commerce-login-ready body#authentication #login-form .form-control-label {
  margin:0 0 7px !important;
  color:#17343c !important;
  font-family:Manrope,Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.35 !important;
}
html.ubd-commerce-login-ready body#authentication #login-form .form-control,
html.ubd-commerce-login-ready body#authentication #login-form input {
  min-height:52px !important;
  border:1px solid #dbe3df !important;
  border-radius:14px !important;
  background:#fbfcfb !important;
  color:#17343c !important;
  font-family:Manrope,Arial,sans-serif !important;
  box-shadow:none !important;
}
html.ubd-commerce-login-ready body#authentication #login-form .input-group .form-control {
  border-radius:14px 0 0 14px !important;
}
html.ubd-commerce-login-ready body#authentication #login-form button[data-action="show-password"] {
  min-height:52px !important;
  border:1px solid #dbe3df !important;
  border-left:0 !important;
  border-radius:0 14px 14px 0 !important;
  background:#eef3f0 !important;
  color:#17343c !important;
  font-family:Manrope,Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:900 !important;
}
html.ubd-commerce-login-ready body#authentication #submit-login {
  width:100% !important;
  min-height:54px !important;
  border-radius:15px !important;
  background:#4b8b61 !important;
  border-color:#4b8b61 !important;
  color:#fff !important;
  font-family:Manrope,Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:900 !important;
  box-shadow:0 10px 24px rgba(75,139,97,.20) !important;
}
html.ubd-commerce-login-ready body#authentication .no-account {
  order:2 !important;
  margin:2px 0 0 !important;
  text-align:center !important;
  font-family:Manrope,Arial,sans-serif !important;
}

/* ---------- ÚNICO SOCIAL LOGIN: botón lateral naranja ---------- */
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 {
  position:fixed !important;
  top:50% !important;
  right:0 !important;
  left:auto !important;
  bottom:auto !important;
  z-index:9900 !important;
  display:block !important;
  width:auto !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  transform:translateY(-50%) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  pointer-events:none !important;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget {
  position:static !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  width:72px !important;
  min-width:72px !important;
  height:auto !important;
  min-height:78px !important;
  margin:0 !important;
  padding:10px 7px !important;
  transform:none !important;
  border:0 !important;
  border-radius:18px 0 0 18px !important;
  background:#f28a39 !important;
  color:#fff !important;
  box-shadow:0 10px 28px rgba(28,46,51,.18) !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  text-align:center !important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget:hover {
  background:#e97d2f !important;
  transform:translateX(-2px) !important;
  box-shadow:0 13px 30px rgba(28,46,51,.22) !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget .ets_solo_title {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:2px !important;
  margin:0 !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1.1 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget .material-icons {
  display:block !important;
  margin:0 !important;
  color:#fff !important;
  font-size:25px !important;
  line-height:1 !important;
}

/* Cerrado significa CERRADO, aunque CSS/JS del módulo añada active. */
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649:not(.ubd-social-open-v0649) > .ets_solo_wrapper_content.slw,
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649:not(.ubd-social-open-v0649) > .ets_solo_account_close {
  display:none !important;
}

/* Fondo/modal controlados por el tema. */
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_account_close.overlay {
  position:fixed !important;
  inset:0 !important;
  z-index:10000 !important;
  display:block !important;
  width:100vw !important;
  height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  background:rgba(12,30,35,.52) !important;
  backdrop-filter:blur(5px) !important;
  -webkit-backdrop-filter:blur(5px) !important;
  border:0 !important;
  pointer-events:auto !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_wrapper_content.slw {
  position:fixed !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  z-index:10002 !important;
  display:block !important;
  width:min(420px,calc(100vw - 28px)) !important;
  max-width:420px !important;
  min-width:0 !important;
  max-height:min(78vh,520px) !important;
  height:auto !important;
  margin:0 !important;
  padding:28px !important;
  transform:translate(-50%,-50%) !important;
  overflow:auto !important;
  border:1px solid #e1e8e4 !important;
  border-radius:24px !important;
  background:#fff !important;
  color:#17343c !important;
  box-shadow:0 28px 90px rgba(10,28,33,.28) !important;
  pointer-events:auto !important;
  text-align:center !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_account_close.button {
  position:fixed !important;
  top:calc(50% - min(39vh,260px) + 14px) !important;
  left:calc(50% + min(210px,calc(50vw - 14px)) - 48px) !important;
  right:auto !important;
  z-index:10003 !important;
  display:grid !important;
  place-items:center !important;
  width:34px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:#eef3f0 !important;
  color:#17343c !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  font-size:0 !important;
  opacity:1 !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_account_close.button::before {
  content:"×" !important;
  position:static !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  background:transparent !important;
  color:#17343c !important;
  font-family:Arial,sans-serif !important;
  font-size:25px !important;
  font-weight:400 !important;
  line-height:1 !important;
  transform:none !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_account_close.button::after {
  display:none !important;
  content:none !important;
}

/* Dentro del popup sólo Google; se elimina el login email duplicado del módulo. */
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .solo-login-form,
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_or,
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_desc {
  display:none !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_title {
  display:block !important;
  margin:0 0 18px !important;
  color:#17343c !important;
  font-family:inherit !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social {
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_item.google {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_btn {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  width:100% !important;
  min-height:54px !important;
  margin:0 !important;
  padding:11px 16px !important;
  border:1px solid #dfe5e2 !important;
  border-radius:15px !important;
  background:#fff !important;
  color:#17343c !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:850 !important;
  line-height:1.2 !important;
  box-shadow:0 8px 22px rgba(23,52,60,.08) !important;
  cursor:pointer !important;
}
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_btn .svg_gl,
.ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_social_btn .svg_gl svg {
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  margin:0 !important;
}
html.ubd-social-modal-open-v0649,
html.ubd-social-modal-open-v0649 body {
  overflow:hidden !important;
}

@media (max-width:600px) {
  .ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget {
    width:62px !important;
    min-width:62px !important;
    min-height:68px !important;
    border-radius:16px 0 0 16px !important;
  }
  .ets_solo_social_wrapper.slw.ubd-social-entry-v0649 .ets_solo_slide_widget .ets_solo_title {
    font-size:11px !important;
  }
  .ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_wrapper_content.slw {
    width:calc(100vw - 24px) !important;
    padding:24px 18px 20px !important;
    border-radius:20px !important;
  }
  .ets_solo_social_wrapper.slw.ubd-social-entry-v0649.ubd-social-open-v0649 > .ets_solo_account_close.button {
    top:calc(50% - min(39vh,260px) + 11px) !important;
    left:auto !important;
    right:22px !important;
  }
}


/* ================================================================
   UBD Modular v1 0.6.4.12 · HOME MÓVIL · HERO SIN SOLAPAMIENTOS
   Última autoridad: elimina el botón verde fantasma (Asistente) y
   mantiene 3 chips + Calcular envío en bandas separadas.
   ================================================================ */
@media (max-width:699px) {
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile {
    position:absolute !important;
    left:clamp(14px,4vw,22px) !important;
    right:clamp(14px,4vw,22px) !important;
    bottom:16px !important;
    z-index:20 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:0 !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
    overflow:visible !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile::before,
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile::after {
    display:none !important;
    content:none !important;
  }
  /* Asistente ya existe en otros accesos: no debe quedar oculto detrás de los chips. */
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile > a:first-child {
    display:none !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile > a:nth-child(2) {
    position:relative !important;
    inset:auto !important;
    z-index:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:50px !important;
    height:auto !important;
    margin:0 !important;
    padding:12px 16px !important;
    border:0 !important;
    border-radius:18px !important;
    background:#ef8050 !important;
    color:#fff !important;
    box-shadow:0 12px 26px rgba(24,51,58,.16) !important;
    transform:none !important;
    line-height:1.2 !important;
    text-align:center !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile {
    position:absolute !important;
    left:clamp(14px,4vw,22px) !important;
    right:clamp(14px,4vw,22px) !important;
    bottom:82px !important;
    z-index:21 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:7px !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
    overflow:visible !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile::before,
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile::after {
    display:none !important;
    content:none !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile > a {
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    height:auto !important;
    margin:0 !important;
    padding:8px 7px !important;
    border:1px solid rgba(23,52,60,.08) !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.97) !important;
    color:#17343c !important;
    box-shadow:0 8px 20px rgba(24,51,58,.12) !important;
    transform:none !important;
    font-size:clamp(9px,2.55vw,11px) !important;
    line-height:1.15 !important;
    text-align:center !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
}
@media (max-width:359px) {
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile {
    left:10px !important;
    right:10px !important;
    bottom:78px !important;
    gap:5px !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-chips-mobile > a {
    min-height:40px !important;
    padding:7px 4px !important;
    font-size:8.5px !important;
  }
  html.ubd-modular-ready body#index #ubd-modular-bonito .ubd-mod-hero-media .ubd-mod-hero-buttons-mobile {
    left:10px !important;
    right:10px !important;
    bottom:14px !important;
  }
}
