/* BENNET V078: camada cirúrgica após o CSS V88, sem alterar a folha original. */
html,body{max-width:100%;overflow-x:clip}
#site-top-bar{width:100%;z-index:1000}
.site-header{transition:background-color .26s ease,border-color .26s ease,box-shadow .26s ease}
/* Header da HOME sobre o hero somente no topo, visual original V88 */
body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header{background:transparent!important;border-bottom-color:transparent!important}
body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header__inner{color:#fff}
body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-icon-btn,body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-nav__link,
body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header .logo-stack__main,body.template-index.header-overlay #site-top-bar:not(.is-scrolled) .site-header .logo-stack__sub{color:#fff!important}
body.template-index.header-overlay #site-top-bar.is-scrolled .site-header{background:#fff!important}
/* Produto: o V88 tem header claro, sem aplicar a sobreposição da HOME */
body.template-product.header-overlay #site-top-bar .site-header{background:#fff!important;border-bottom:1px solid var(--color-border)!important}
body.template-product.header-overlay main{margin-top:0!important}
/* Busca preditiva dentro da mesma tela */
.bj-search-layer{position:fixed;inset:0;z-index:2147482000;display:block;color:#191919}
.bj-search-backdrop{position:absolute;inset:0;background:#0007}
.bj-search-panel{position:relative;background:#fff;width:100%;max-height:min(85dvh,700px);overflow:auto;padding:22px max(16px,calc((100vw - 720px)/2));box-shadow:0 12px 30px #0002}
.bj-search-input-wrap{display:flex;align-items:center;gap:12px;border:1px solid #c4622d;border-radius:30px;padding:8px 12px;min-height:48px}
.bj-search-input-wrap svg{width:21px;height:21px;flex:none}.bj-search-input-wrap input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px}
.bj-search-input-wrap button{font-size:22px;width:28px;height:28px;border-radius:50%;background:#f8f6f4;flex:none}
.bj-search-results{max-height:52dvh;overflow:auto}.bj-search-results>p{padding:16px;color:#666;font-size:.86rem}
.bj-search-result{display:flex;gap:12px;align-items:center;padding:9px 3px;border-bottom:1px solid #eee;text-decoration:none;font-size:.85rem}
.bj-search-result img{width:54px;height:72px;object-fit:cover;border-radius:5px;flex:none}.bj-search-result span{flex:1;min-width:0}.bj-search-result strong{white-space:nowrap;color:#c4622d;font-size:.84rem}
.bj-search-all{display:block;text-align:center;padding:14px;color:#c4622d;font-weight:700;font-size:.82rem}
/* Quickshop: botão fora do link; clique não pode acionar a PDP */
.product-card__media{position:relative}.product-card__media-link{position:absolute;inset:0;display:block;z-index:1}
.product-card__media-link .product-card__img{pointer-events:none}
.product-card__media>.product-card__cart-icon{z-index:5;position:absolute;right:10px;bottom:10px}
/* Correção VPS v0.7.8 (homologação): o banner de consentimento (z-index
   2147483000) cobria o ATC do quickshop e os diálogos novos (z 300/2147482900)
   em telas estreitas, impedindo o clique. Com qualquer camada interativa
   aberta o banner cede (display:none) e retorna ao fechar — o consentimento
   continua pendente e o tracking segue bloqueado até decisão do usuário. */
body:has(.qs-modal.is-open) .bj-privacy-banner,
body:has(.cart-drawer.is-open) .bj-privacy-banner,
body:has(.mobile-menu-drawer.is-open) .bj-privacy-banner,
body:has(.bj-search-layer) .bj-privacy-banner,
body:has(.bj-dialog-backdrop) .bj-privacy-banner,
body:has(.qs-modal.is-open) .bj-privacy-settings,
body:has(.cart-drawer.is-open) .bj-privacy-settings,
body:has(.mobile-menu-drawer.is-open) .bj-privacy-settings,
body:has(.bj-search-layer) .bj-privacy-settings,
body:has(.bj-dialog-backdrop) .bj-privacy-settings{display:none}
/* Coleções: mesma proporção sem cortar a modelo */
.collections-swiper .swiper-wrapper{align-items:stretch;justify-content:center;gap:16px}
.collections-swiper .collection-card{position:relative;flex:0 0 min(30vw,310px);aspect-ratio:3/4;height:auto;min-width:0;overflow:hidden;background:#eae5df}
.collections-swiper .collection-card__img{width:100%;height:100%;object-fit:contain;object-position:center center;transform:none!important}
.collections-swiper .collection-card__overlay{pointer-events:none}
.section__header{max-width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
.section__link{flex:none;white-space:nowrap}
/* Logos full-bleed: grupo triplo para cobertura total mesmo no desktop 4K. */
.media-logos{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);overflow:hidden}
.media-logos__viewport{width:100%;max-width:100%;mask-image:none!important;-webkit-mask-image:none!important}
.media-logos__track{display:flex;gap:0;min-width:max-content}
.media-logos__group{gap:clamp(28px,4vw,68px);padding-right:clamp(28px,4vw,68px);flex:none}
.media-logos__logo{width:auto;height:clamp(30px,3vw,45px);object-fit:contain}
@media(prefers-reduced-motion:reduce){.media-logos__track{animation:none;overflow-x:auto;max-width:100vw}}
/* Newsletter visível, clicável e alinhada */
.newsletter-section{padding-inline:16px}
.newsletter-form{width:min(100%,570px);max-width:570px;margin:22px auto 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.newsletter-form__input{width:100%;min-width:0;height:52px;border:1px solid #ccc;background:#fff;padding:0 16px;border-radius:8px;font:inherit;font-size:15px}
.newsletter-form__input:focus{outline:2px solid #c4622d;outline-offset:1px}
.newsletter-form__btn{min-width:125px;height:52px;border-radius:8px;background:var(--color-accent);color:#fff;opacity:1;font-weight:700;white-space:nowrap}
.newsletter-form__btn:disabled{opacity:.55;cursor:not-allowed}
.newsletter-form .bj-newsletter-consent{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:center;gap:10px;margin-top:6px;font-size:.78rem;line-height:1.4;text-align:left;cursor:pointer}
.bj-newsletter-consent input{flex:none;width:16px;height:16px;accent-color:#c4622d;margin-top:2px}
.bj-newsletter-status{grid-column:1/-1;text-align:center;color:#333;font-size:.82rem}
/* Banner de privacidade menos intrusivo; mantém decisão prévia obrigatória para ads */
.bj-privacy-banner--compact{left:auto;right:12px;bottom:12px;width:min(360px,calc(100vw - 24px));max-width:unset;padding:12px 14px;border-radius:10px;font:400 12px/1.35 system-ui,sans-serif;box-shadow:0 3px 18px #0003;transition:bottom .25s ease}
.bj-privacy-banner--compact p{margin:4px 0 8px;max-height:3em;overflow:auto}
.bj-privacy-banner--compact .bj-privacy-actions button{padding:7px 13px;font-size:12px}
/* Correção VPS v0.7.8 (homologação): a barra sticky da PDP (z 1100, bottom:0)
   ficava sob o banner de consentimento (z 2147483000) no mobile. O banner
   sobe acima da barra quando ela está ativa — ambos permanecem visíveis e
   clicáveis; o consentimento não é dispensado. */
body:has(.bj-pdp-sticky) .bj-privacy-banner--compact{bottom:calc(78px + env(safe-area-inset-bottom))}
body:has(.bj-pdp-sticky) .bj-privacy-settings{bottom:calc(82px + env(safe-area-inset-bottom))}
/* Desconto progressivo: os dois tiers não podem ultrapassar o contêiner */
.promo-prog__inner{width:min(100%,700px);margin-inline:auto}.promo-prog__tiers{display:flex;justify-content:center;align-items:stretch;gap:12px;flex-wrap:wrap;max-width:100%}
.promo-prog__tiers .promo-tier-wrap{min-width:0;flex:0 1 210px}.promo-prog__tiers .promo-tier{min-width:0;width:100%;height:100%}
.promo-prog__title{overflow-wrap:break-word}
/* PDP limpa e proporcional, sem barras visíveis/caixa cinza isolada */
.product-page{min-width:0}.product-gallery,.product-info{min-width:0}
.product-gallery__main{scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y!important;background:#fff!important}
.product-gallery__main::-webkit-scrollbar{display:none}
.product-gallery__main [data-gallery-slide]{min-width:0;overflow:hidden}
.product-gallery__main [data-gallery-slide]>img{width:100%;height:100%;object-fit:cover!important;object-position:center top;background:#fff!important}
.product-gallery__main .g-side-thumbs{position:absolute;z-index:4;pointer-events:auto}
.bj-atc-attention,.size-grid.bj-attention{outline:2px solid #d44836;outline-offset:4px;animation:bjAttention .7s ease}
@keyframes bjAttention{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 6px #d4483630}}
.bj-discover-size{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c4622d;background:#fff7f1;color:#ad4e1a;border-radius:30px;min-height:36px;padding:7px 17px;font-weight:600;font-size:.82rem}
.bj-preorder-modal,.bj-size-calc{background:#fff;color:#222;width:min(460px,100%);max-height:90dvh;overflow:auto;padding:28px 30px;border-radius:18px;position:relative;box-shadow:0 14px 50px #0003}
.bj-preorder-modal h2,.bj-size-calc h2{font:600 1.55rem var(--font-display);margin-bottom:12px;padding-right:30px}
.bj-preorder-modal p,.bj-size-calc p{font-size:.86rem;line-height:1.5;margin-bottom:12px}
.bj-preorder-price{background:#f3efeb;border-radius:12px;padding:17px;margin:12px 0 18px;display:flex;align-items:center;flex-direction:column;gap:5px}
.bj-preorder-price del{color:#777;font-size:.78rem}.bj-preorder-price strong{font:600 1.6rem var(--font-display)}.bj-preorder-price span{background:#c4622d;color:#fff;border-radius:20px;padding:4px 9px;font-size:.65rem}
.bj-preorder-modal .btn{width:100%;padding:12px}.bj-preorder-notify{display:block;border:1px solid #ddd;border-radius:12px;padding:11px;margin:10px 0 0;width:100%;font-size:.8rem}
.bj-size-calc-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.bj-size-calc-methods button{border:1px solid #ddd;background:#f1eeea;border-radius:12px;min-height:64px;font-weight:600;font-size:.82rem}
.bj-size-calc-methods .is-active{border-color:#c4622d;background:#fff0e9;color:#ae4f24}
.bj-size-calc label{display:block;font-size:.83rem;font-weight:600;margin:15px 0}.bj-size-calc label input{display:block;width:100%;min-width:0;margin-top:5px;padding:12px;border:1px solid #ddd;border-radius:9px;font:inherit}
.bj-size-calc .btn{width:100%;margin-top:12px}.bj-size-calc-hint{background:#f8f5f2;padding:10px;border-radius:8px;color:#555}
.bj-size-calc-result{text-align:center;background:#f4f1ee;padding:22px;border-radius:14px}
.bj-size-calc-result>strong{display:block;font:400 4rem var(--font-logo);color:#c4622d}.bj-size-calc-repeat{margin-top:14px;text-decoration:underline;font-size:.8rem}
.bj-shipping-estimate{border:1px solid #dedbd9;background:#f8f6f3;border-radius:12px;padding:16px;margin-top:18px;font-size:.85rem}
.bj-shipping-estimate h3{font-weight:700;font-size:.86rem;margin-bottom:12px}
.bj-shipping-estimate form{display:flex;gap:8px}.bj-shipping-estimate input{min-width:0;flex:1;border:1px solid #ddd;border-radius:8px;padding:12px;font-size:1rem}
.bj-shipping-estimate form button{border-radius:8px;background:#c4622d;color:#fff;padding:11px 16px;font-weight:700}
.bj-shipping-estimate form button:disabled{opacity:.5}
.bj-shipping-options{margin-top:10px;display:grid;gap:6px}.bj-shipping-options>div{background:#fff;border:1px solid #e5e5e5;border-radius:8px;display:flex;align-items:center;justify-content:space-between;padding:10px;gap:10px}
.bj-shipping-options span{display:grid;gap:2px}.bj-shipping-options small{font-size:.68rem;color:#888}.bj-shipping-options b{white-space:nowrap;font-size:.84rem}
/* Sticky cart mobile: só após o CTA principal sair acima da viewport */
.bj-pdp-sticky{position:fixed;z-index:1100;left:0;right:0;bottom:0;background:#fffc;border-top:1px solid #ddd;box-shadow:0 -4px 20px #0002;padding:9px max(12px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom));display:none;gap:8px;align-items:center}
.bj-pdp-sticky select{flex:0 0 37%;min-width:0;border:1px solid #ddd;background:#fff;padding:10px;border-radius:24px;font-size:.8rem}
.bj-pdp-sticky select.bj-sticky-error{border:2px solid #ce4935;background:#fff0ed}
.bj-pdp-sticky .btn{flex:1;min-width:0;height:44px;min-height:44px;padding:10px;font-size:.78rem}
/* Avaliações reais agrupadas por Shopify product_id */
.bj-reviews-v078{grid-column:1/-1;width:100%;min-width:0;margin-top:42px;padding-top:30px}
.bj-reviews-overview{display:flex;align-items:center;gap:30px;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap}
.bj-rating-score{display:grid;gap:3px;text-align:center}.bj-rating-score strong{font-size:3.3rem;line-height:1}.bj-rating-score span,.bj-review-stars{color:#efa90b;letter-spacing:.04em}.bj-rating-score small{color:#999}
.bj-rating-bars{display:grid;gap:4px;min-width:185px}.bj-rating-bars>div{display:grid;grid-template-columns:37px 130px 24px;gap:6px;align-items:center;font-size:.72rem}
.bj-rating-bars>div>div{height:5px;background:#ddd;border-radius:6px}.bj-rating-bars i{display:block;height:100%;background:#333;border-radius:5px}
.bj-review-write{background:#28263c;color:#fff;padding:10px 16px;border-radius:4px;font-weight:600;font-size:.8rem}
.bj-review-grid{columns:3 230px;column-gap:14px}.bj-review-card{break-inside:avoid;border:1px solid #e0e0e0;border-radius:5px;padding:13px;margin:0 0 14px;display:flex;flex-direction:column;gap:8px;line-height:1.5;font-size:.79rem}
.bj-review-card>small{color:#888}.bj-review-card p{overflow-wrap:anywhere}.bj-review-media{display:flex;flex-wrap:wrap;gap:6px}.bj-review-media img{width:105px;height:135px;object-fit:cover}.bj-review-like{text-align:left;font-size:.75rem;color:#777}
/* Mobile e telas estreitas: corrigir cortes e overflow */
@media(max-width:1023px){
 .site-header__inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px;padding-inline:12px}
 .header-logo{min-width:0}.header-left,.header-actions{min-width:0;gap:0;margin:0}.header-icon-btn{width:37px;height:42px;flex:none}
 .header-actions{justify-content:flex-end}.header-nav{display:none!important}
 .product-page{display:grid;grid-template-columns:minmax(0,1fr)!important;max-width:100%}
 .product-gallery__main{width:100%;aspect-ratio:3/4;height:auto;max-height:none;overflow-x:auto;scrollbar-width:none}
 .product-info{width:100%;min-width:0;padding:20px 16px}
 .bj-pdp-sticky{display:flex}
 .filters-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;max-width:100%;padding-inline:12px}
 .filters-row>.size-filter{min-width:0;width:100%;max-width:100%;margin:0}
 .filters-row .size-filter__toggle{width:100%;min-width:0;font-size:.75rem;padding-inline:10px;overflow:hidden}
 .filters-row .size-filter__toggle-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .size-filter__panel{max-width:100%;padding-inline:12px}
 .size-filter__chips{display:flex;flex-wrap:wrap;max-width:100%;gap:6px}
 .product-grid{max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-inline:9px}
 .product-card{min-width:0}.product-card__info{min-width:0}.product-card__name{overflow-wrap:anywhere}
 .hero-slider,.hero-swiper,.hero-slide,.hero-slide__media{max-width:100%;min-width:0}
 .hero-slide__media picture,.hero-slide__media img{max-width:100%;display:block}
 .benefits-bar__track{max-width:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px}
 .benefit{flex:0 0 min(76vw,280px);scroll-snap-align:start;min-width:0}
 .section__header{padding-inline:12px}.section__header .section__title{min-width:0;font-size:clamp(1.15rem,5vw,1.75rem)}
 .collections-swiper{width:100%;max-width:100%;overflow-x:auto;scrollbar-width:none}
 .collections-swiper .swiper-wrapper{width:max-content;max-width:none;justify-content:flex-start;gap:10px;padding:0 12px}
 .collections-swiper .collection-card{flex:0 0 min(73vw,290px);height:auto;aspect-ratio:3/4;max-width:290px}
 .promo-prog__tiers{flex-wrap:wrap;gap:12px}.promo-prog__tiers .promo-tier-wrap{flex:1 1 min(45%,185px)}
 .bj-shipping-estimate{margin-inline:0}.bj-reviews-v078{padding-inline:16px}
}
@media(max-width:480px){
 .header-logo .logo-stack__main{font-size:1.16rem}.header-logo .logo-stack__sub{font-size:.48rem}
 .header-icon-btn{width:33px}.site-header__inner{padding-inline:7px}
 .promo-prog__tiers .promo-tier-wrap{flex:1 1 100%;max-width:270px}
 .newsletter-form{grid-template-columns:minmax(0,1fr);gap:9px}.newsletter-form__btn{width:100%}
 .bj-preorder-modal,.bj-size-calc{padding:21px 17px;width:100%}
 .bj-rating-bars>div{grid-template-columns:25px minmax(95px,1fr) 20px}
 .bj-search-panel{padding:12px}.bj-search-result{gap:8px}.bj-search-result strong{font-size:.72rem}
}
.bj-preorder-mini{text-align:center;margin:6px auto 12px;font-size:.76rem;color:#666}
.bj-preorder-mini p{margin:0 0 3px}.bj-preorder-mini strong{color:#bd5b2b}
.bj-preorder-mini button{text-decoration:underline;color:#777;font-size:.72rem}
.bj-review-media video{width:120px;max-height:180px;object-fit:contain}

/* Auditoria v078: o header mobile deve sobrepor o hero/PDP somente no topo,
   preservando fundo sólido e contraste após rolar. Não afeta desktop. */
@media(max-width:1023px){
 body.template-index.header-overlay main,
 body.template-product.header-overlay main{margin-top:calc(-1 * var(--header-height))!important}
 body.template-product.header-overlay #site-top-bar:not(.is-scrolled) .site-header{background:transparent!important;border-color:transparent!important}
 body.template-product.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-icon-btn,
 body.template-product.header-overlay #site-top-bar:not(.is-scrolled) .site-header .logo-stack__main,
 body.template-product.header-overlay #site-top-bar:not(.is-scrolled) .site-header .logo-stack__sub{color:#fff!important;text-shadow:0 1px 5px #0008}
 body.template-product.header-overlay #site-top-bar:not(.is-scrolled) .site-header .header-icon-btn svg{stroke:#fff!important}
}
.bj-review-like-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.bj-review-like-error{color:#a33;font-size:.72rem}

/* V127 — filtro "Estilo preferido": no mobile o texto encolhe com ellipsis e o
   badge do estilo selecionado permanece inteiro (antes: label clipava o badge). */
.size-filter__toggle-label{flex-wrap:nowrap}
.size-filter__toggle-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
.size-filter__active-badge{flex-shrink:0}
