/* LENAVITA V16 — stability + consistency patch. */

/* ---------- Homepage: restore V13 sticky storytelling ---------- */
body.home .lv5-scroll-story{overflow:visible!important}
body.home .lv5-story-panel{overflow:hidden!important}

/* ---------- Mobile header: center logo on the physical viewport ---------- */
@media(max-width:980px){
  .lv4-header-main-inner.lv-container{width:100%!important;max-width:none!important;margin:0!important;padding-left:14px!important;padding-right:14px!important}
  .lv4-header-main-inner{position:relative!important}
  .lv4-logo{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;z-index:3!important}
  .lv4-mobile-toggle{z-index:4!important}.lv4-header-actions{z-index:4!important;margin-left:auto!important}
}
body.woocommerce-checkout:not(.woocommerce-order-received) .lv4-header-main-inner.lv-container{width:min(calc(100% - 28px),1280px)!important;margin-inline:auto!important;padding:0!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .lv4-logo{position:static!important;transform:none!important}

/* ---------- Component-level horizontal containment (not page-wide hiding) ---------- */
body.single-product .lv11-product-page{max-width:100%!important;overflow-x:clip!important}
body.woocommerce-checkout:not(.woocommerce-order-received) .lv14-checkout-page{max-width:100%!important;overflow-x:clip!important}
body.woocommerce-shop .lv8-shop-page,body.tax-product_cat .lv8-shop-page,body.tax-product_tag .lv8-shop-page{max-width:100%!important;overflow-x:clip!important}
body.woocommerce-checkout .lv14-checkout-form,body.woocommerce-checkout .lv14-checkout-flow,body.woocommerce-checkout .lv14-checkout-step,body.woocommerce-checkout .lv14-checkout-summary{min-width:0!important;max-width:100%!important}
body.woocommerce-checkout .select2-container,body.woocommerce-checkout .select2-selection{max-width:100%!important;min-width:0!important}
@media(max-width:760px){
  body.single-product .lv11-mobile-gallery{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  body.single-product .lv11-mobile-gallery-cell{flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important}
  body.single-product .lv11-product-page .lv-container{max-width:100%!important}
}

/* ---------- Checkout money: value and currency are one inline unit ---------- */
.lv14-summary-lines .is-total>span{display:grid!important;gap:3px!important}
.lv14-summary-lines .is-total>strong,[data-lv13-summary-total],[data-lv14-subtotal],.lv14-summary-product>b,.lv14-cart-totals dd,.lv-cart-drawer .woocommerce-Price-amount{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
.lv14-summary-lines .woocommerce-Price-amount,.lv14-summary-lines .woocommerce-Price-amount bdi,.lv14-summary-lines .woocommerce-Price-currencySymbol,[data-lv13-summary-total] .woocommerce-Price-amount,[data-lv13-summary-total] bdi,[data-lv13-summary-total] .woocommerce-Price-currencySymbol{display:inline!important;white-space:nowrap!important;word-break:keep-all!important}
.lv14-summary-lines .woocommerce-Price-currencySymbol,[data-lv13-summary-total] .woocommerce-Price-currencySymbol{margin-left:.22em!important}
.lv14-summary-lines .is-total>strong{display:block!important;min-width:max-content!important;text-align:right!important;line-height:1.15!important}

/* ---------- Filter drawer: one component, always from the left ---------- */
body .lv7-filter-drawer .lv7-filter-panel,body .lv7-filter-drawer .lv8-filter-panel,body .lv7-filter-drawer .lv15-filter-panel,body .lv7-filter-drawer .lv16-filter-panel{left:0!important;right:auto!important;transform-origin:left center!important;box-shadow:18px 0 55px rgba(0,0,0,.12)!important;border-left:0!important;border-right:1px solid #e8e4e0!important}
.lv16-filter-categories nav button{appearance:none;border:0;background:transparent;position:relative;padding:5px 0;font:500 11px/1.2 Arial,sans-serif;color:#25201e;cursor:pointer}
.lv16-filter-categories nav button.is-active{font-weight:700;color:#1d1917}.lv16-filter-categories nav button.is-active:after{content:"";position:absolute;left:18%;right:18%;bottom:0;height:1px;background:#541e2b}
.lv16-filter-view-all{display:inline-block;margin-top:13px;font:500 9px/1.2 Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;color:#625d59}.lv16-filter-view-all[hidden]{display:none!important}
.lv16-filter-types button{appearance:none;min-height:38px;border:1px solid #eee9e5;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;font-size:10px;line-height:1.25;color:#34302d;cursor:pointer}
.lv16-filter-types button.is-active{border-color:#541e2b;color:#541e2b;font-weight:650}
.lv16-filter-form details[hidden]{display:none!important}

/* ---------- Cart drawer: robust structure after fragment refresh ---------- */
.lv-cart-drawer[hidden]{display:none!important}.lv-cart-drawer:not([hidden]){display:block!important}
.lv-cart-drawer-panel{display:flex!important;flex-direction:column!important;background:#fff!important}
.lv-cart-drawer-body.widget_shopping_cart_content{display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important}
.lv-cart-drawer .woocommerce-mini-cart__empty-message{padding:28px 0!important;margin:0!important;font-size:11px!important;color:#625d59!important}
.lv-cart-drawer .woocommerce-mini-cart-item{clear:both!important}
.lv-cart-drawer .woocommerce-mini-cart-item>a:not(.lv14-mini-image):not(.remove){float:none!important;width:auto!important}

/* ---------- Cart hero: block-cart pages now route through the theme template ---------- */
.lv14-cart-hero{margin-top:0!important}.lv14-cart-hero-media .lv14-video,.lv14-cart-hero-media .lv14-video>video{width:100%!important;height:100%!important}

/* ---------- Live search category media: no empty grey placeholder ---------- */
.lv16-search-categories>div{display:grid!important;grid-template-columns:1fr!important;gap:0!important;background:transparent!important}
.lv16-search-category-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:16px!important;align-items:center!important;min-height:72px!important;padding:12px 0!important;border-bottom:1px solid #ece8e4!important;background:#fff!important}
.lv16-search-category-card.has-media{grid-template-columns:minmax(0,1fr) minmax(160px,34%) auto!important}
.lv16-search-category-copy{display:grid;gap:4px;min-width:0}.lv16-search-category-copy strong{font-size:11px!important}.lv16-search-category-copy small{font-size:8.5px!important;color:#8a8581!important}
.lv16-search-category-media{display:block;width:100%;height:68px;overflow:hidden;background:#f4f2ef}.lv16-search-category-media img,.lv16-search-category-media video{display:block;width:100%!important;height:100%!important;object-fit:cover!important}.lv16-search-category-media .lv14-video{height:100%!important}.lv16-search-category-media .lv14-video-controls{right:5px!important;bottom:5px!important}.lv16-search-category-media .lv14-video-controls button{width:25px!important;height:25px!important}.lv16-search-category-card>b{font:400 18px/1 Arial,sans-serif!important;align-self:center!important}
@media(max-width:760px){.lv16-search-category-card.has-media{grid-template-columns:minmax(0,1fr) 112px auto!important}.lv16-search-category-media{height:62px}}
