/* AL Shop mobile B2B and smart search */
html{max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
.alshop-smart-mobile-results{display:none;position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:2100;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.16);max-height:min(68vh,520px);overflow:auto}
.alshop-smart-mobile-results.is-open{display:block}
.alshop-smart-title{padding:10px 14px 8px;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#64748b;background:#f8fafc;border-bottom:1px solid #eef2f7}
.alshop-smart-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px 13px;border-bottom:1px solid #eef2f7;color:#111827!important;text-decoration:none!important;background:#fff}
.alshop-smart-item:hover,.alshop-smart-item:focus{background:#fff7ed}
.alshop-smart-img{width:56px;height:56px;object-fit:contain;border-radius:9px;background:#f8fafc;border:1px solid #eef2f7;padding:4px}
.alshop-smart-name{font-size:14px;font-weight:800;line-height:1.35;color:#172033;overflow-wrap:anywhere}
.alshop-smart-price{font-size:14px;font-weight:950;color:#047857;white-space:nowrap}
.alshop-smart-old{display:block;font-size:11px;font-weight:700;color:#94a3b8;text-decoration:line-through;text-align:right}
.alshop-smart-footer{display:block;padding:12px 14px;text-align:center;font-size:14px;font-weight:900;color:#9a5b12!important;background:#fffaf2;text-decoration:none!important}
.alshop-smart-empty{padding:20px 14px;text-align:center;color:#64748b;font-size:14px}
.alshop-smart-correction{padding:9px 14px;font-size:13px;color:#475569;background:#fffbeb;border-bottom:1px solid #fde68a}

@media (max-width: 768px){
    html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
    body.b2b-page-active{width:100%!important;max-width:100vw!important;overflow-x:hidden!important}
    body.b2b-page-active .aiz-main-wrapper,
    body.b2b-page-active .b2b-page,
    body.b2b-page-active .b2b-wrap,
    body.b2b-page-active .b2b-layout,
    body.b2b-page-active main,
    body.b2b-page-active .b2b-panel{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
    body.b2b-page-active .b2b-page{padding:10px 0 calc(92px + env(safe-area-inset-bottom))!important;font-size:16px!important;line-height:1.5!important}
    body.b2b-page-active .b2b-wrap{padding:0 10px!important;margin:0!important}
    body.b2b-page-active .b2b-hero{padding:18px 16px!important;border-radius:16px!important}
    body.b2b-page-active .b2b-hero h1{font-size:27px!important;line-height:1.18!important}
    body.b2b-page-active .b2b-hero p{font-size:16px!important;line-height:1.5!important}
    body.b2b-page-active .b2b-brandline{font-size:13px!important}
    body.b2b-page-active .b2b-badge{font-size:14px!important;padding:9px 11px!important}
    body.b2b-page-active .b2b-layout{display:block!important;margin-top:12px!important}
    body.b2b-page-active .b2b-filter{padding:13px!important;margin-bottom:12px!important}
    body.b2b-page-active .b2b-filter-grid,
    body.b2b-page-active .b2b-filter-grid-2,
    body.b2b-page-active .b2b-submit-row,
    body.b2b-page-active .b2b-extra-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
    body.b2b-page-active .b2b-input,
    body.b2b-page-active .b2b-select,
    body.b2b-page-active textarea.b2b-input{width:100%!important;max-width:100%!important;min-width:0!important;min-height:52px!important;height:52px!important;padding:0 14px!important;border-radius:12px!important;font-size:17px!important;line-height:1.35!important;box-sizing:border-box!important}
    body.b2b-page-active textarea.b2b-input{height:112px!important;min-height:112px!important;padding-top:13px!important;padding-bottom:13px!important}
    body.b2b-page-active .b2b-input::placeholder,
    body.b2b-page-active textarea.b2b-input::placeholder{font-size:16px!important}
    body.b2b-page-active .b2b-btn,
    body.b2b-page-active .b2b-small-btn{min-height:52px!important;height:auto!important;padding:12px 14px!important;border-radius:12px!important;font-size:16px!important;line-height:1.3!important;white-space:normal!important;touch-action:manipulation!important}
    body.b2b-page-active .b2b-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
    body.b2b-page-active .b2b-count,
    body.b2b-page-active .b2b-help{font-size:15px!important;line-height:1.5!important}
    body.b2b-page-active .b2b-export{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:8px!important}
    body.b2b-page-active .b2b-products{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;width:100%!important}
    body.b2b-page-active .b2b-card{width:100%!important;max-width:100%!important;min-width:0!important;border-radius:17px!important}
    body.b2b-page-active .b2b-img{height:215px!important;padding:16px!important}
    body.b2b-page-active .b2b-body{padding:16px!important;gap:11px!important}
    body.b2b-page-active .b2b-title{font-size:18px!important;line-height:1.42!important;min-height:0!important}
    body.b2b-page-active .b2b-meta,
    body.b2b-page-active .b2b-sku{font-size:14px!important;line-height:1.4!important}
    body.b2b-page-active .b2b-badges-row span{font-size:13px!important}
    body.b2b-page-active .b2b-prices{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
    body.b2b-page-active .b2b-price-box{min-width:0!important;padding:11px!important}
    body.b2b-page-active .b2b-price-label{font-size:13px!important}
    body.b2b-page-active .b2b-price{font-size:20px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
    body.b2b-page-active .b2b-actions{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:9px!important}
    body.b2b-page-active .b2b-actions>.b2b-qty{height:52px!important;min-width:0!important;font-size:18px!important}
    body.b2b-page-active .b2b-mobile-summary-toggle{display:flex!important;left:9px!important;right:9px!important;bottom:calc(9px + env(safe-area-inset-bottom))!important;min-height:64px!important;height:auto!important;padding:11px 16px!important;border-radius:16px!important;font-size:17px!important;z-index:2140!important}
    body.b2b-page-active .b2b-mobile-summary-toggle strong{font-size:18px!important}
    body.b2b-page-active .b2b-mobile-summary-toggle span{font-size:14px!important;line-height:1.3!important;text-align:right!important}
    body.b2b-page-active .b2b-mobile-backdrop{z-index:2145!important}
    body.b2b-page-active.b2b-drawer-open .b2b-mobile-backdrop{display:block!important;position:fixed!important;inset:0!important;opacity:1!important;pointer-events:auto!important;background:rgba(15,23,42,.52)!important}
    body.b2b-page-active .b2b-summary{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-width:100%!important;max-height:94vh!important;max-height:94dvh!important;border-radius:22px 22px 0 0!important;z-index:2150!important;transform:translateY(105%)!important;transition:transform .22s ease!important;padding-bottom:env(safe-area-inset-bottom)!important;background:#fff!important}
    body.b2b-page-active.b2b-drawer-open .b2b-summary{transform:translateY(0)!important}
    body.b2b-page-active.b2b-drawer-open{overflow:hidden!important;touch-action:none!important}
    body.b2b-page-active .b2b-summary-head{padding:18px 16px 15px!important;gap:12px!important;position:sticky!important;top:0!important;z-index:2!important;background:#fff!important}
    body.b2b-page-active .b2b-summary-head h3{font-size:25px!important;line-height:1.2!important}
    body.b2b-page-active .b2b-summary-head p{font-size:16px!important;line-height:1.45!important}
    body.b2b-page-active .b2b-drawer-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;min-width:46px!important;border-radius:12px!important;font-size:30px!important;line-height:1!important}
    body.b2b-page-active .b2b-summary-body{max-height:calc(94dvh - 84px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:14px 13px calc(18px + env(safe-area-inset-bottom))!important;font-size:16px!important}
    body.b2b-page-active .b2b-cart-lines{max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:11px!important;padding:0!important}
    body.b2b-page-active .b2b-cart-line{padding:13px!important;border-radius:14px!important}
    body.b2b-page-active .b2b-cart-name{font-size:16px!important;line-height:1.4!important;-webkit-line-clamp:3!important}
    body.b2b-page-active .b2b-cart-x{width:44px!important;height:44px!important;min-width:44px!important;border-radius:11px!important;font-size:27px!important;line-height:1!important}
    body.b2b-page-active .b2b-cart-meta-line{font-size:14px!important;line-height:1.35!important;flex-wrap:wrap!important}
    body.b2b-page-active .b2b-cart-edit-row{display:grid!important;grid-template-columns:auto 48px minmax(58px,1fr) 48px minmax(78px,auto)!important;gap:7px!important;align-items:center!important;width:100%!important}
    body.b2b-page-active .b2b-cart-qty-label{font-size:14px!important;font-weight:900!important}
    body.b2b-page-active .b2b-cart-edit-row .b2b-mini{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important;font-size:29px!important;line-height:1!important;font-weight:950!important;touch-action:manipulation!important}
    body.b2b-page-active .b2b-cart-edit-row .b2b-qty{width:100%!important;height:48px!important;min-width:58px!important;border-radius:12px!important;font-size:19px!important;padding:0 5px!important}
    body.b2b-page-active .b2b-line-total{font-size:15px!important;line-height:1.3!important}
    body.b2b-page-active .b2b-empty{font-size:16px!important;padding:17px!important}
    body.b2b-page-active .b2b-total-row{font-size:15px!important;line-height:1.4!important}
    body.b2b-page-active .b2b-total-row.big{font-size:20px!important}
    body.b2b-page-active .b2b-min-warning{font-size:15px!important;line-height:1.45!important;padding:11px!important}
    body.b2b-page-active .b2b-form{gap:10px!important}
    body.b2b-page-active input[type=number]{appearance:textfield!important;-moz-appearance:textfield!important}
    body.b2b-page-active input[type=number]::-webkit-inner-spin-button,
    body.b2b-page-active input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}

    .agm-mobile-search{position:relative!important;z-index:2050!important}
    .agm-mobile-search-form{position:relative!important}
    .agm-mobile-search-form input[name="keyword"]{font-size:16px!important}
    .alshop-smart-item{grid-template-columns:52px minmax(0,1fr) auto;padding:10px}
    .alshop-smart-img{width:52px;height:52px}
    .alshop-smart-name{font-size:15px}
    .alshop-smart-price{font-size:14px}
}

@media (max-width: 390px){
    body.b2b-page-active .b2b-wrap{padding:0 8px!important}
    body.b2b-page-active .b2b-hero{padding:16px 14px!important}
    body.b2b-page-active .b2b-prices{grid-template-columns:1fr!important}
    body.b2b-page-active .b2b-actions{grid-template-columns:82px minmax(0,1fr)!important}
    body.b2b-page-active .b2b-cart-edit-row{grid-template-columns:1fr 48px minmax(56px,1fr) 48px!important}
    body.b2b-page-active .b2b-cart-qty-label{grid-column:1/-1!important}
    body.b2b-page-active .b2b-line-total{grid-column:1/-1!important;text-align:right!important;font-size:16px!important}
    body.b2b-page-active .b2b-export{grid-template-columns:1fr!important}
}

/* AL Shop Online — category selector and complete smart search */
.agm-header .agm-search-form{position:relative!important}
.agm-header .agm-search-category.alshop-category-trigger{cursor:pointer!important;user-select:none!important;border:0!important;border-left:1px solid #e4e8ef!important;outline:0!important;transition:background-color .15s ease,color .15s ease!important}
.agm-header .agm-search-category.alshop-category-trigger:hover,
.agm-header .agm-search-category.alshop-category-trigger:focus,
.agm-header .agm-search-category.alshop-category-trigger[aria-expanded="true"]{background:#f7f8fa!important;color:#f4511e!important}
.alshop-category-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(340px,calc(100vw - 24px));max-height:430px;overflow-y:auto;background:#fff;border:1px solid #e3e7ed;border-radius:14px;box-shadow:0 20px 50px rgba(23,31,45,.18);padding:8px;z-index:2405;display:none}
.alshop-category-menu.is-open{display:block}
.alshop-category-menu-head{display:flex;align-items:center;justify-content:space-between;padding:9px 11px 10px;font-size:13px;font-weight:800;color:#687181;border-bottom:1px solid #edf0f4;margin-bottom:5px}
.alshop-category-menu button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;border:0;background:#fff;color:#222b38;border-radius:10px;padding:11px 12px;font-size:14px;font-weight:650;text-align:left;cursor:pointer;transition:background-color .12s ease,color .12s ease}
.alshop-category-menu button:hover,.alshop-category-menu button:focus,.alshop-category-menu button.is-selected{background:#fff2ed;color:#f4511e;outline:0}
.alshop-category-menu button i{font-size:18px}
.alshop-category-loading{padding:22px 14px;text-align:center;color:#737b87;font-size:14px}
.agm-search-wrap .typed-search-box{z-index:2300!important;overflow:hidden!important;max-height:min(72vh,720px)!important}
.agm-search-wrap .typed-search-box #search-content{max-height:min(68vh,660px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
.alshop-smart-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 8px;font-size:13px;color:#687181;border-bottom:1px solid #edf0f4}
.alshop-smart-summary strong{color:#1f2937;font-size:14px}
.alshop-smart-category-label{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#f6f7f9;color:#4b5563;font-weight:700}
.alshop-smart-footer{position:sticky;bottom:0;z-index:2;background:#fff!important;border-top:1px solid #e7ebf0!important;padding:13px 15px!important;font-size:14px!important;font-weight:800!important;color:#f4511e!important;text-align:center!important}
.alshop-smart-item{min-height:70px}
.alshop-smart-name{line-height:1.35}

.alshop-search-results-page{background:#f6f7f9;padding:24px 0 46px;min-height:60vh}
.alshop-results-shell{background:#fff;border:1px solid #e6eaf0;border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(31,41,55,.05)}
.alshop-results-form{display:grid;grid-template-columns:minmax(0,1fr) 250px 130px;gap:10px;margin-bottom:22px}
.alshop-results-query{position:relative}
.alshop-results-query i{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:21px;color:#667085}
.alshop-results-query input,.alshop-results-form select{width:100%;height:50px;border:1px solid #dfe4ea;border-radius:12px;background:#fff;font-size:15px;color:#1f2937;outline:0}
.alshop-results-query input{padding:0 15px 0 45px}
.alshop-results-form select{padding:0 38px 0 13px}
.alshop-results-query input:focus,.alshop-results-form select:focus{border-color:#f4511e;box-shadow:0 0 0 3px rgba(244,81,30,.11)}
.alshop-results-form button{height:50px;border:0;border-radius:12px;background:#f4511e;color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.alshop-results-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:3px 2px 18px;border-bottom:1px solid #edf0f4;margin-bottom:18px}
.alshop-results-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900;color:#f4511e;margin-bottom:5px}
.alshop-results-heading h1{font-size:25px;line-height:1.25;color:#1f2937;margin:0 0 6px;font-weight:850}
.alshop-results-heading p{margin:0;color:#687181;font-size:14px}
.alshop-results-correction{display:block;max-width:360px;padding:11px 13px;border-radius:11px;background:#fff4ef;color:#b93812;font-size:13px;text-decoration:none}
.alshop-results-grid>.col{display:flex}
.alshop-results-grid .agm-product-card{width:100%;border:1px solid #e8ebef;border-radius:14px;overflow:hidden}
.alshop-results-pagination{display:flex;justify-content:center;margin-top:24px}
.alshop-results-empty{text-align:center;padding:60px 20px}
.alshop-results-empty>i{font-size:52px;color:#c2c8d0;margin-bottom:12px}
.alshop-results-empty h2{font-size:22px;color:#1f2937;margin-bottom:8px}
.alshop-results-empty p{font-size:15px;color:#687181;margin:0}

@media(max-width:991px){
    .alshop-results-form{grid-template-columns:1fr 220px}
    .alshop-results-form button{grid-column:1/-1}
    .alshop-results-heading{display:block}
    .alshop-results-correction{margin-top:12px;max-width:none}
}
@media(max-width:767px){
    .alshop-search-results-page{padding:12px 0 28px}
    .alshop-results-shell{padding:12px;border-radius:14px}
    .alshop-results-form{grid-template-columns:1fr;gap:9px;margin-bottom:17px}
    .alshop-results-form button{grid-column:auto}
    .alshop-results-query input,.alshop-results-form select,.alshop-results-form button{height:52px;font-size:16px}
    .alshop-results-heading h1{font-size:21px}
    .alshop-results-heading p{font-size:15px}
    .alshop-results-grid{margin-left:-6px!important;margin-right:-6px!important}
    .alshop-results-grid>.col{padding-left:6px!important;padding-right:6px!important;margin-bottom:12px!important}
    .agm-mobile-search .alshop-smart-mobile-results{max-height:70vh!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
}
