/* Layout follows the viewport; group settings remain desktop preferences. */
body .sidebar-toggle{border:0}
.beita-cart-notice{box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:16px 0;padding:20px 24px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;color:#475569;box-shadow:0 2px 8px rgba(31,55,89,.03)}
.beita-cart-tips{background:#f5f9ff;border-color:#dbe8fa}
.beita-cart-notice-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf0f5;color:#334155}
.beita-cart-notice-heading svg{width:20px;height:20px;flex-shrink:0;color:var(--theme-color-1,#2878dc)}
.beita-cart-notice-heading h2{margin:0;font-size:15px;line-height:1.5;font-weight:600}
.beita-cart-rich-content{max-width:100%;min-width:0;font-size:14px;line-height:1.85;overflow-wrap:anywhere;overflow-x:auto;text-align:left}
.beita-cart-rich-content p{margin:0 0 12px;line-height:inherit}
.beita-cart-rich-content>:last-child{margin-bottom:0}
.beita-cart-rich-content h1,.beita-cart-rich-content h2,.beita-cart-rich-content h3{font-size:17px;line-height:1.6;margin:18px 0 10px}
.beita-cart-rich-content>:first-child{margin-top:0}
.beita-cart-rich-content img,.beita-cart-rich-content video,.beita-cart-rich-content iframe{max-width:100%;height:auto}
.beita-cart-rich-content ul{list-style:disc!important;padding-left:24px;margin:8px 0 14px}.beita-cart-rich-content li{list-style:inherit!important;margin:4px 0}.beita-cart-rich-content ol{list-style:decimal!important;padding-left:24px;margin:8px 0 14px}
.beita-cart-rich-content table{max-width:100%;border-collapse:collapse;margin:12px 0}.beita-cart-rich-content td,.beita-cart-rich-content th{border:1px solid #e2e8f0;padding:8px 12px;line-height:1.7}
.beita-cart-rich-content blockquote{margin:12px 0;padding:10px 16px;border-left:3px solid #c5d8f5;background:#f8fafc}
.beita-cart-rich-content pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f1f5f9;border-radius:6px}
.beita-cart-rich-content a{color:var(--theme-color-1,#2878dc);text-decoration:underline;text-underline-offset:3px}
@media(max-width:768px){.beita-cart-notice{margin:12px 0;padding:16px;border-radius:8px}.beita-cart-notice-heading{margin-bottom:12px;padding-bottom:10px}.beita-cart-rich-content{font-size:14px;line-height:1.9}.beita-cart-rich-content td,.beita-cart-rich-content th{padding:6px 8px}}
body .beita-cart-layout{display:flex;flex-wrap:wrap;width:100%;max-width:100%;margin:0;min-width:0}
body .beita-cart-layout>.beita-cart-main{box-sizing:border-box;width:100%;max-width:100%;min-width:0;flex:1 1 100%;padding:calc(var(--beita-cart-nav-height,50px) + 14px) 16px 24px calc(var(--sidebar_width,250px) + 16px)!important}
body .beita-cart-main .products-container{width:100%;min-width:0;padding:0;overflow:visible}
body .beita-cart-main .products-grid{min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--product_item_min_width,260px)),1fr));gap:var(--product_item_gap,16px)}
body .beita-cart-main .product-item{min-width:0;max-width:100%;overflow-wrap:anywhere}
body .beita-cart-main .product-header{gap:10px;flex-wrap:wrap}
body .beita-cart-main .product-title{min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.6;flex:1 1 140px}
body .beita-cart-main .product-stock{flex:0 0 auto;margin:0;white-space:normal}
body .beita-cart-main .product-body{min-width:0;max-width:100%;flex:1}
body .beita-cart-main .product-description{max-width:100%;overflow-x:auto;overflow-wrap:anywhere}
body .beita-cart-main .product-description img,body .beita-cart-main .ewy-elem-quote img{max-width:100%;height:auto}
body .beita-cart-main .product-description table{max-width:100%}
body .beita-cart-main .ewy-elem-quote,body .beita-cart-main .announcement-wrapper{box-sizing:border-box;width:100%;max-width:100%;margin:0 0 12px;overflow-wrap:anywhere}
body .beita-cart-main .ewy-elem-quote{overflow-x:auto}
body .beita-cart-main .product-footer{margin-top:auto;padding-bottom:16px;min-width:0;width:100%;box-sizing:border-box}
body .beita-cart-main .price-main{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;min-width:0}
body .beita-cart-main .btn-buy{display:block;width:calc(100% + 28px);max-width:none;margin-left:-14px;margin-right:-14px;box-sizing:border-box;white-space:normal;min-height:40px}
body .beita-cart-main .pagination{flex-wrap:wrap;gap:4px}
.beita-group-badge,.beita-product-badge{display:inline-block;flex:0 0 auto;max-width:100%;padding:2px 8px;font-size:12px;line-height:1.6;font-weight:500;border-radius:4px;background:#fff1e8;color:#c44f19;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.beita-product-badge{margin-left:8px}
.beita-group-slogan{width:100%;padding:12px 16px;margin-bottom:12px;border:1px solid #e5e9f0;background:#fff;color:#586577;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
body .navtop-standingPosition .page-title{max-width:none;min-width:0;flex:1;flex-wrap:wrap;gap:6px 10px;white-space:normal;overflow:visible;font-size:16px;line-height:1.5}
body .navtop-standingPosition .page-title-name{min-width:0;overflow-wrap:anywhere}
body .navtop-standingPosition .nav-top-page{justify-content:flex-start;gap:12px}
body .navtop-standingPosition .return{position:static;transform:none;flex:0 0 auto;margin-right:0}
body .category-nav{max-width:calc(100vw - 56px);overscroll-behavior:contain;top:calc(60px + var(--beita-cart-nav-height,50px));height:calc(100vh - 60px - var(--beita-cart-nav-height,50px))}
body .category-nav .submenu-content{gap:6px}
body .category-nav .submenu-tag{max-width:45%;height:auto;min-height:20px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1024px){body .beita-cart-layout>.beita-cart-main{padding-left:calc(var(--sidebar_width,250px) + 12px)!important;padding-right:12px!important}}
@media(max-width:768px){
 body .beita-cart-layout>.beita-cart-main{padding:calc(var(--beita-cart-nav-height,56px) + 16px) 12px 24px!important;width:100%;flex-basis:100%}
 body .beita-cart-main .products-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
 body .navtop-standingPosition{height:auto;min-height:56px}
 body .navtop-standingPosition .nav-top-page{padding:10px 12px}
 body .navtop-standingPosition .return{min-width:44px;font-size:12px}
 body .category-nav{top:calc(60px + var(--beita-cart-nav-height,56px));width:min(320px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:calc(100vh - 60px - var(--beita-cart-nav-height,56px));height:calc(100dvh - 60px - var(--beita-cart-nav-height,56px));padding:0 14px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box;box-shadow:8px 0 28px rgba(15,23,42,.16);transition:transform .25s ease;will-change:transform}
 body.sidebar-open .sidebar-wrapper::after{content:"";position:fixed;inset:calc(60px + var(--beita-cart-nav-height,56px)) 0 0;background:rgba(15,23,42,.38);z-index:997}
 body .category-nav{transform:translateX(-105%)}
 body .category-nav.show{transform:translateX(0)}
 body .sidebar-toggle{z-index:1000}
 body .sidebar-toggle{bottom:calc(24px + env(safe-area-inset-bottom));left:14px;min-width:44px;min-height:44px}
 body .beita-cart-main .product-header,body .beita-cart-main .product-body,body .beita-cart-main .product-footer{padding-left:14px;padding-right:14px}
 body .configoption_form{width:100%;max-width:100%;margin:16px auto 0;padding:0 12px;box-sizing:border-box}
 body .configoption_form .row{min-width:0;margin-left:0;margin-right:0}
 body .configoption_form [class*=col-]{min-width:0;max-width:100%}
 body .bottom-total{width:100%;max-width:100%;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 body .order-summary-panel{min-width:0;max-width:calc(100vw - 24px);right:12px}
}
@media(max-width:480px){body .beita-cart-main .products-grid{grid-template-columns:minmax(0,1fr)}body .beita-cart-main .sdesc-row{flex-wrap:wrap;gap:4px}body .beita-cart-main .sdesc-badge{white-space:normal;margin-left:0}body .navtop-standingPosition .beita-group-badge{font-size:11px}}
@media(max-width:768px){
 body .sidebar-toggle{bottom:calc(var(--beita-mobile-nav-height,74px) + 14px);left:14px;z-index:999}
 body #addCartForm{width:100%;max-width:100%;padding:calc(var(--beita-cart-nav-height,56px) + 12px) 10px calc(var(--beita-checkout-height,150px) + var(--beita-mobile-nav-height,74px) + 24px)!important;margin:0;box-sizing:border-box}
 body #addCartForm>.container{width:100%;max-width:none;padding:0!important;margin:0 auto}
 body #addCartForm>.container>.row{display:block;margin:0}
 body #addCartForm .col-xl-12{width:100%;max-width:none;padding:0!important}
 body #addCartForm .card{width:100%;max-width:none;margin:0 0 10px!important;border-radius:8px!important}
 body #addCartForm .card-body{padding:16px 14px!important}
 body #addCartForm .form-group.configureproduct{display:block;margin:0 0 18px}
 body #addCartForm .configureproduct>label{display:block;width:100%;padding:0 0 9px;font-size:16px;font-weight:600}
 body #addCartForm .configureproduct>div{width:100%;padding:0}
 body #addCartForm .products-btn-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%;padding:10px!important;box-sizing:border-box}
 body #addCartForm .products-btn-group .btn-products{display:flex!important;align-items:center;justify-content:center;min-width:0;width:100%;min-height:44px;height:auto;margin:0!important;padding:8px 10px!important;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 body #addCartForm .products-btn-group p{grid-column:1/-1;margin:2px 0 0;font-size:12px;line-height:1.6}
 body #addCartForm .form-control,body #addCartForm .bootstrap-select>.dropdown-toggle{min-height:42px;height:auto}
 body .bottom-total{bottom:var(--beita-mobile-nav-height,74px);z-index:995;background:#fff;box-shadow:0 -3px 14px rgba(15,23,42,.14);padding:9px 12px calc(9px + env(safe-area-inset-bottom))}
 body .bottom-total .price-note{display:none}
 body .bottom-total .price-actions{width:100%;justify-content:space-between;gap:8px}
 body .bottom-total #addToCartBtnTwo{min-height:42px;flex:1;max-width:210px;padding:8px 12px;font-size:14px}
 body .order-summary-panel{left:12px;right:12px;width:auto;bottom:calc(var(--beita-mobile-nav-height,74px) + var(--beita-checkout-height,125px) + 8px);max-height:calc(100vh - 60px - var(--beita-cart-nav-height,56px) - var(--beita-mobile-nav-height,74px) - var(--beita-checkout-height,125px) - 24px);max-height:calc(100dvh - 60px - var(--beita-cart-nav-height,56px) - var(--beita-mobile-nav-height,74px) - var(--beita-checkout-height,125px) - 24px);z-index:994}
 body .order-summary-panel table{table-layout:fixed;width:100%}
 body .order-summary-panel td{overflow-wrap:anywhere}
 body .mobile-nav{height:auto;min-height:60px;padding:9px 0 calc(9px + env(safe-area-inset-bottom));z-index:997}
 body.beita-cart-config .sidebar-toggle{bottom:auto;top:calc(60px + (var(--beita-cart-nav-height,56px) - 44px)/2);left:auto;right:12px;opacity:.95}
 body.beita-cart-config .navtop-standingPosition .page-title{padding-right:50px}
 body .beita-cart-layout>.beita-cart-main{padding-bottom:calc(var(--beita-mobile-nav-height,74px) + 24px)!important}
 body .navtop-standingPosition .page-desc{white-space:normal;overflow-wrap:anywhere;max-width:100%}
 body .category-nav{height:calc(100dvh - 60px - var(--beita-cart-nav-height,56px) - var(--beita-mobile-nav-height,74px));padding-bottom:20px}
 body .order-summary-panel.show{opacity:1}
}
