/* BENNET V0.7.9 — correções finais solicitadas após v078
   Carregado depois dos estilos V88/v078; reversão isolada por remoção do link.
   NÃO muda identidade comercial, preço ou processamento de pedidos. */

/* #1 + #10: preditiva, sem segundo X do próprio browser e imagem inteira. */
.bj-search-input-wrap input[type="text"]::-webkit-search-cancel-button {display:none}
.bj-search-result {min-width:0;gap:13px}
.bj-search-result img,
.bj-search-image-placeholder {
  width:62px!important;height:86px!important;flex:0 0 62px;
  display:block;object-fit:contain!important;object-position:center!important;
  background:#f6f2ef;border-radius:5px;
}
.bj-search-result span:not(.bj-search-image-placeholder){min-width:0;overflow-wrap:anywhere;line-height:1.45}
.bj-search-result strong{margin-left:auto;white-space:nowrap}
.bj-search-input-wrap button {flex:0 0 30px;width:30px;height:30px}

/* #2 + #9: manter a transição correta, nunca esconder logotipo ou navegação. */
#site-top-bar{z-index:1200;isolation:isolate}
#site-top-bar .site-header__inner{position:relative}
#site-top-bar .header-logo{grid-area:logo;justify-self:center;align-self:center;min-width:0;z-index:2;opacity:1!important;visibility:visible!important;transform:none!important}
#site-top-bar .header-logo .logo-stack__main{opacity:1!important;visibility:visible!important;filter:none!important;transform:none!important}
#site-top-bar.is-scrolled .site-header{background:#fff!important;border-bottom-color:var(--color-border)!important}
#site-top-bar.is-scrolled .header-logo .logo-stack__main,
#site-top-bar.is-scrolled .header-logo .logo-stack__sub{color:#1a1a1a!important;text-shadow:none!important}
#site-top-bar.is-scrolled .header-icon-btn svg{stroke:#1a1a1a!important}
#site-top-bar.is-scrolled .header-nav__link{color:#1a1a1a!important}
body.header-overlay #site-top-bar:not(.is-scrolled) .site-header{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body.header-overlay #site-top-bar:not(.is-scrolled) .header-logo,
body.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-nav__link,
body.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-icon-btn{filter:drop-shadow(0 1px 2px rgba(0,0,0,.32))}
body.header-overlay #site-top-bar:not(.is-scrolled) .logo-stack__main,
body.header-overlay #site-top-bar:not(.is-scrolled) .logo-stack__sub{color:#fff!important}
@media(min-width:1024px){
  .site-header__inner{grid-template-areas:"left logo actions" "nav nav nav";grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
  .header-left{grid-area:left}
  .header-actions{grid-area:actions}
  .header-nav{grid-area:nav}
  #site-top-bar .header-logo{min-height:34px}
}
@media(max-width:1023.98px){
  #site-top-bar .site-header{height:var(--header-height)!important;min-height:55px;max-height:var(--header-height)}
  #site-top-bar .site-header__inner{height:100%;padding:0 12px!important;grid-template-areas:"left logo actions";grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px}
  #site-top-bar .header-left{grid-area:left;display:flex;justify-content:flex-start;align-items:center}
  #site-top-bar .header-actions{grid-area:actions;display:flex;justify-content:flex-end;align-items:center}
  #site-top-bar .header-logo{grid-area:logo}
  body.header-overlay #site-top-bar:not(.is-scrolled) .site-header{background:transparent!important}
  body.header-overlay #site-top-bar:not(.is-scrolled) .header-icon-btn svg{stroke:#fff!important}
  body.header-overlay #site-top-bar:not(.is-scrolled) .cart-count{background:#c4622d!important;color:#fff!important}
  body.header-overlay main{margin-top:calc(-1 * var(--header-height) - 1px)!important}
}

/* #7: menu com "ponte" de hover; submenus não desaparecem no vão de 8px. */
@media(min-width:1024px) and (hover:hover){
  .header-nav__item{position:relative}
  .header-nav__item>.mega-menu{top:calc(100% - 2px)!important;z-index:1600;}
  .header-nav__item>.mega-menu::before{content:"";position:absolute;left:0;right:0;top:-16px;height:17px;background:transparent}
  .header-nav__item:hover>.mega-menu,.header-nav__item:focus-within>.mega-menu{display:block!important}
}

/* #3: marketing desativado por padrão; apenas diálogo invocado pelo link no rodapé. */
.bj-privacy-banner,.bj-privacy-settings{display:none!important}
.bj-privacy-footer-control{text-align:center;padding:6px 16px 18px;background:#f8f6f4}
.bj-privacy-footer-link{font:inherit;font-size:12px;color:#555;text-decoration:underline;cursor:pointer}
.bj-privacy-dialog-backdrop{position:fixed;inset:0;z-index:2147483000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px}
.bj-privacy-dialog{position:relative;max-width:440px;width:100%;padding:30px 22px 22px;border-radius:12px;background:#fff;color:#222;box-shadow:0 12px 40px #0004}
.bj-privacy-dialog strong{font-size:1rem}.bj-privacy-dialog p{font-size:.83rem;line-height:1.5;margin:12px 0 16px}
.bj-privacy-dialog-close{position:absolute;right:10px;top:8px;font-size:24px;width:34px;height:34px}

/* #4 + #8: cards progressivos com escala e afastamento corretos. */
.promo-prog__inner{width:min(100%,740px);max-width:740px;margin:0 auto}
.promo-prog__title{max-width:620px;margin:12px auto 30px;line-height:1.3}
.promo-prog__tiers{max-width:620px;display:flex;align-items:stretch;justify-content:center;gap:clamp(25px,4vw,46px);flex-wrap:nowrap}
.promo-prog__tiers .promo-tier-wrap{position:relative;min-width:0;flex:0 1 235px;display:flex;align-items:stretch}
.promo-prog__tiers .promo-tier{min-width:0;width:100%;height:auto;min-height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 14px}
.promo-prog__plus{position:absolute;left:calc(-1 * clamp(25px,4vw,46px) / 2 - 12px);top:50%;transform:translateY(-50%);margin:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px}
.promo-tier__badge{white-space:nowrap}
.promo-prog__note{margin-top:22px}
@media(max-width:600px){
  .promo-prog{padding:44px 20px 48px}
  .promo-prog__title{font-size:clamp(1.35rem,5vw,1.85rem);margin:12px auto 20px;line-height:1.4}
  .promo-prog__tiers{flex-direction:column;align-items:center;gap:0;max-width:290px;margin:0 auto}
  .promo-prog__tiers .promo-tier-wrap{width:100%;max-width:270px;flex:0 0 auto;display:flex;flex-direction:column;align-items:center}
  .promo-prog__tiers .promo-tier{width:100%;min-height:116px;height:auto;margin:0}
  .promo-prog__plus{position:relative;top:auto;left:auto;transform:none;align-self:center;flex:none;width:26px;height:26px;margin:14px 0 18px;z-index:1}
  .promo-tier__badge{z-index:2}
  .promo-prog__note{margin:20px auto 14px}
}

/* #5 + #11: drawer fora do stacking context do header, cabeçalho e rodapé íntegros. */
/* V106: drawer acima do banner de consentimento (2147483000) — no mobile EU o
   banner cobria o botão Finalizar compra do drawer (E2E it-mobile 12/11). */
.cart-drawer{z-index:2147483100!important;position:fixed!important;inset:0!important;isolation:isolate}
.cart-drawer__panel{top:0!important;right:0!important;bottom:0!important;height:100dvh!important;min-height:0;width:min(100%,420px)!important;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:#fff}
.cart-drawer__header{flex:0 0 auto;position:relative;z-index:2;align-items:center;padding:16px!important;min-height:70px;background:#fff}
.cart-drawer__header h2{display:block;line-height:1.25}
.cart-drawer .free-shipping-meter{flex:0 0 auto;max-height:none;overflow:visible}
.cart-drawer__items{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden;padding:12px 16px}
.cart-item__info{flex:1;min-width:0}
.cart-item__title{overflow-wrap:anywhere}
.cart-item__row{flex-wrap:wrap;gap:8px}
.cart-drawer__footer{flex:0 0 auto;min-height:0;max-height:min(55dvh,480px);overflow-y:auto;overscroll-behavior:contain;padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
.cart-drawer__footer .cart-tools{display:flex;gap:8px}
.cart-drawer__footer .cart-tool-toggle{min-width:0;white-space:normal}
.cart-drawer.is-open~.bj-whatsapp-float{opacity:0;pointer-events:none}
.bj-cart-shipping-error{font-size:.78rem;color:#a33;margin:8px 0}
.bj-cart-shipping-quote{display:grid;gap:7px;padding:10px 0;font-size:.78rem}
.bj-cart-shipping-quote>div{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px;border:1px solid #e5e1de;border-radius:8px;background:white}
.bj-cart-shipping-quote span{display:flex;flex-direction:column;gap:3px}
.bj-cart-shipping-quote small{font-size:.67rem;color:#777;line-height:1.4}
.bj-cart-coupon-status{font-size:.74rem;color:#7a4929;line-height:1.5;margin:6px 0}
@media(max-width:480px){
  .cart-drawer__panel{width:min(100vw,420px)!important}
  .cart-drawer__header{min-height:64px}
  .cart-drawer__footer{max-height:53dvh;padding:10px 12px calc(12px + env(safe-area-inset-bottom))}
  .cart-drawer__items{padding-inline:12px}
  .cart-item{gap:10px}.cart-item__img{width:62px;height:82px}
}

/* #6: botão WA do número já configurado no rodapé original. */
.bj-whatsapp-float{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:1250;width:54px;height:54px;border-radius:50%;background:#18c65b;color:white;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px #0003;transition:transform .2s ease,opacity .2s ease}
.bj-whatsapp-float:hover{transform:translateY(-2px)}
body:has(.cart-drawer.is-open) .bj-whatsapp-float,
body:has(.bj-dialog-backdrop) .bj-whatsapp-float,
body:has(.bj-search-layer) .bj-whatsapp-float,
body:has(.bj-privacy-dialog-backdrop) .bj-whatsapp-float{display:none}
@media(max-width:1023px){body.template-product:has(.bj-pdp-sticky) .bj-whatsapp-float{bottom:calc(85px + env(safe-area-inset-bottom))}}

/* #13: foto inteira no mobile e thumbs sobre galeria, fora da área que rola. */
.product-gallery{position:relative;min-width:0}
.product-gallery__main{min-width:0;scroll-behavior:smooth;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;touch-action:pan-x pan-y}
.product-gallery__main [data-gallery-slide]{flex:0 0 100%;width:100%;height:100%;scroll-snap-align:start}
.product-gallery__main [data-gallery-slide]>img{object-fit:contain!important;object-position:center center!important;background:transparent!important;width:100%;height:100%;display:block}
.product-gallery>.g-side-thumbs{position:absolute;z-index:10;top:50%;left:8px;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;max-height:76%;overflow-y:auto;pointer-events:auto}
.product-gallery>.g-side-thumbs button{flex:none}
@media(max-width:1023px){
  .product-gallery{width:100%;max-width:100%;}
  .product-gallery__main{aspect-ratio:3/4;max-height:none!important;min-height:0;width:100%;background:#f7f4ef!important}
  .product-gallery__main [data-gallery-slide]>img{object-fit:contain!important}
  .product-gallery>.g-side-thumbs{left:8px;top:50%;transform:translateY(-50%);max-height:70%}
}

/* #14 + #15 + #16 + #17: controles mais espaçados e descrição centralizada. */
.product-info__sizes{min-width:0}
.product-info__sizes>.bj-discover-size,
.product-info__sizes>p:has(.bj-discover-size){margin:17px 0 12px}
.product-info__sizes>.bjp-troca{margin:12px 0 18px;line-height:1.55}
.product-info__sizes-header{margin:14px 0 10px}
.product-info__sizes .size-grid{margin-bottom:15px}
.bj-shipping-estimate h3{display:flex;align-items:center;justify-content:center;gap:8px}
.bj-shipping-estimate h3 svg{width:17px;height:17px;flex:none;color:#c4622d}
.product-accordion summary.accordion-btn{position:relative;display:flex;justify-content:center!important;align-items:center;text-align:center;padding:16px 32px}
.product-accordion summary.accordion-btn .bj-accordion-heading{text-align:center;min-width:0}
.product-accordion summary.accordion-btn .accordion-icon{position:absolute;right:8px;top:50%;transform:translateY(-50%)}

/* #18: setas reais + carrossel navegável; sem botão visualmente habilitado quando no limite. */
.bj-related-rail{position:relative;max-width:100%;min-width:0}
.bj-related-rail .related-carousel{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;touch-action:pan-x pan-y;scrollbar-width:none}
.bj-related-rail .related-track{display:flex;align-items:stretch;width:max-content;min-width:100%;max-width:none;gap:10px}
.bj-related-rail .related-carousel__item{scroll-snap-align:start}
.bj-related-rail .related-arrow{z-index:3}
.bj-related-rail .related-arrow:disabled{opacity:.25;pointer-events:none}

/* #19: espaçamento lateral global de conteúdo, sem cortar hero/corredores full-bleed. */
*,*::before,*::after{box-sizing:border-box}
.product-page,.product-info,.product-accordion,.accordion-content__inner,.bj-reviews-v078{min-width:0;max-width:100%}
.product-accordion{width:100%;min-width:0;}
.product-accordion .accordion-content{max-width:100%;min-width:0;overflow:visible}
.product-accordion .accordion-content__inner{padding-inline:clamp(16px,4vw,32px)!important;overflow-wrap:anywhere;word-break:normal;line-height:1.7}
.product-description *{max-width:100%;box-sizing:border-box}
.product-description img,.product-description video,.product-description iframe{display:block;max-width:100%!important;height:auto!important;margin-inline:auto}
.product-description table{display:block;max-width:100%;width:max-content;overflow-x:auto;margin-inline:auto}
.product-description p{overflow-wrap:break-word;hyphens:auto}
@media(max-width:600px){
  .product-info{padding-inline:clamp(17px,5vw,24px)!important}
  .product-accordion .accordion-content__inner{padding-inline:20px!important}
  .bj-reviews-v078,.related-wrap,.section__header{max-width:100%;min-width:0}
  .bj-shipping-estimate{max-width:100%;}
  .bj-shipping-estimate form>*{min-width:0}
}

.bj-coupon-estimate{max-width:215px;font-size:.67rem;color:#7a4929;line-height:1.35;margin-top:5px}
