/* Adapter for the unchanged public stylesheet of the reusable catalog 1.25.8. */
.ab-shared-catalog [hidden]{display:none!important}.ab-shared-catalog .store-header{background:var(--brand-color);color:var(--primary-ink)}.ab-shared-catalog .store-header .brand,.ab-shared-catalog .store-header .icon-btn,.ab-shared-catalog .store-header .menu-toggle,.ab-shared-catalog .store-header nav,.ab-shared-catalog .store-header nav .active{color:var(--primary-ink)}.ab-shared-catalog .store-header nav .active:after{background:var(--primary-ink)}.ab-shared-catalog .store-header .brand-symbol{color:var(--primary-ink)}.ab-shared-catalog .store-header select{color:var(--primary-ink);border-color:currentColor;background:transparent}.ab-shared-catalog .store-header select option{color:#15233c;background:#fff}.ab-shared-catalog .store-header .theme-toggle{border:1px solid currentColor;border-radius:12px}.ab-shared-catalog .ui-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ab-shared-catalog .heart-filled{fill:currentColor}.ab-shared-catalog .product-name{font:inherit;font-weight:750;border:0;background:none;padding:0;display:block;text-align:left;color:var(--ink);cursor:pointer}.ab-shared-catalog .product-image{cursor:pointer}.ab-shared-catalog .product-image .no-photo{font-size:12px;color:var(--muted)}.ab-shared-catalog .product-info .product-short:empty{display:none}.ab-shared-catalog .product-card-meta{min-height:0}.ab-shared-catalog .product-card .favorite{z-index:3}.ab-shared-catalog .product-badges{pointer-events:none}.ab-shared-catalog .catalog-variant{display:block;font-size:12px;margin:10px 0}.ab-shared-catalog .catalog-variant select{width:100%;min-height:40px;margin-top:5px}.ab-shared-catalog .product-price{min-height:25px}.ab-shared-catalog .product-info>.product-card-actions{margin-top:auto}.ab-shared-catalog .product-info{display:flex;flex-direction:column;flex:1}.ab-shared-catalog .product-card{display:flex;flex-direction:column}.ab-shared-catalog .product-image{flex-shrink:0;aspect-ratio:1;height:auto}.ab-shared-catalog .product-image img{object-fit:contain}.ab-shared-catalog .products-list .product-info{display:flex}.ab-shared-catalog .products-list .product-card{display:grid}.ab-shared-catalog .product-card-actions:has(>:only-child){grid-template-columns:1fr}.ab-shared-catalog .product-short{white-space:normal}.ab-shared-catalog .catalog-disclaimer{text-align:center;margin:38px 0 0;font-size:12px;color:var(--muted)}.catalog-preview-note{padding:12px 20px;margin:0;background:#fff1c2;color:#4a3b04;text-align:center;font-size:13px}.ab-shared-catalog #store-footer-contact a{display:flex;align-items:center;gap:10px;margin:10px 0;overflow-wrap:anywhere}.ab-shared-catalog .footer-brand p{white-space:pre-line;overflow-wrap:anywhere}.ab-shared-catalog .footer-credit-band .developer-credit{color:#fff}.ab-shared-catalog .footer-credit-band .developer-logo img{width:145px;height:auto;object-fit:contain}.ab-shared-catalog .footer-qr{align-self:start}.catalog-qr{width:160px;height:160px;padding:8px;background:#fff;margin:12px 0}.catalog-qr img,.catalog-qr canvas{max-width:100%}.ab-shared-catalog .ab-store-menu{position:fixed;inset:0 0 0 auto;margin:0;width:min(360px,92vw);height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0}.ab-store-menu nav{padding:12px 24px;display:flex;flex-direction:column;gap:20px}.ab-shared-catalog .ab-catalog-confirm{max-width:520px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:20px;padding:24px}.ab-catalog-confirm .dialog-heading{padding:0 0 16px}.ab-confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;flex-wrap:wrap}.ab-shared-catalog #scan-video{width:100%;max-height:300px;background:#000}.ab-shared-catalog #product-dialog{padding:0;max-height:calc(100dvh - 32px);overflow:auto;animation:none}.ab-shared-catalog #product-dialog::backdrop,.ab-shared-catalog #cart-dialog::backdrop,.ab-shared-catalog #checkout-dialog::backdrop{background:#13233e99;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.ab-shared-catalog .detail-info h2{overflow-wrap:anywhere}.ab-shared-catalog .detail-description{white-space:pre-line}.ab-shared-catalog .detail-actions{flex-wrap:wrap}.ab-shared-catalog .detail-actions .qty{min-width:120px}.ab-shared-catalog .detail-actions>.btn{flex:1}.ab-shared-catalog .product-qr{padding:20px 28px;display:flex;align-items:center;gap:20px;border-top:1px solid var(--line)}.ab-shared-catalog .product-qr .catalog-qr{width:128px;height:128px;margin:0}.ab-shared-catalog #cart-dialog[open],.ab-shared-catalog #checkout-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}.ab-shared-catalog #cart-dialog{height:min(760px,calc(100dvh - 24px));padding:0}.ab-shared-catalog #cart-dialog .dialog-heading,.ab-shared-catalog #cart-dialog .cart-bottom{flex-shrink:0}.ab-shared-catalog #cart-lines{flex:1;min-height:0;overflow:auto;max-height:none}.ab-shared-catalog .cart-line{grid-template-columns:76px minmax(0,1fr) auto;align-items:center}.ab-shared-catalog .cart-line>img{width:76px;height:76px;object-fit:contain}.ab-shared-catalog .cart-line .qty input{width:50px}.ab-shared-catalog #checkout-content{flex:1;min-height:0;overflow:auto}.ab-shared-catalog #quote-preview{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.ab-shared-catalog .checkout-bar{position:static;flex-shrink:0;border-radius:0;flex-wrap:wrap}.ab-shared-catalog .checkout-steps .active{color:var(--blue);font-weight:750}.ab-shared-catalog .floating-cart{left:auto;right:24px;transform:none}.ab-shared-catalog .toast{z-index:1100}.ab-shared-catalog .filters:focus{outline:none}.ab-shared-catalog .product-tags{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}.ab-shared-catalog .product-tags span{border:1px solid var(--line);padding:2px 7px;border-radius:7px}.ab-shared-catalog .price-inputs input{width:100%}.ab-shared-catalog .catalog-toolbar{min-width:0}.ab-shared-catalog .empty-state{grid-column:1/-1}
@media(min-width:761px){.ab-shared-catalog .products-list .product-card{grid-template-columns:220px minmax(0,1fr)}.ab-shared-catalog .products-list .product-card-actions{align-self:flex-start;max-width:300px}.ab-shared-catalog .product-detail{min-height:0}}
@media(max-width:760px){.ab-shared-catalog .store-header .header-inner{gap:8px}.ab-shared-catalog .store-header .brand{min-width:0}.ab-shared-catalog .store-header .brand>span:not(.brand-symbol){max-width:100px;font-size:16px;overflow-wrap:anywhere}.ab-shared-catalog .header-preferences{gap:6px}.ab-shared-catalog .header-actions{gap:2px}.ab-shared-catalog .store-header .header-actions .icon-btn{width:34px;height:40px}.ab-shared-catalog .header-language select{max-width:104px;font-size:11px}.ab-shared-catalog .header-theme .icon-btn{width:34px;height:36px}.ab-shared-catalog .store-header .brand-symbol.has-logo{width:90px;max-width:24vw}.ab-shared-catalog .store-header .brand-symbol.has-logo img{height:40px}.ab-shared-catalog .catalog-toolbar{flex-wrap:wrap}.ab-shared-catalog .catalog-toolbar .search-box{flex-basis:100%}.ab-shared-catalog #toggle-view{margin-left:auto}.ab-shared-catalog .floating-cart{right:16px;bottom:max(16px,env(safe-area-inset-bottom));left:auto;max-width:calc(100% - 84px);gap:8px;font-size:12px;padding:12px 16px}.ab-shared-catalog .cart-line{grid-template-columns:56px minmax(0,1fr);gap:10px}.ab-shared-catalog .cart-line>img{width:56px;height:56px}.ab-shared-catalog .cart-line-price{grid-column:2}.ab-shared-catalog .product-qr{padding:16px;gap:14px}.ab-shared-catalog .checkout-bar>.btn{flex:1;font-size:12px;min-width:0}.ab-shared-catalog .detail-actions{position:static}.ab-shared-catalog .products-list .product-card{grid-template-columns:110px minmax(0,1fr)}.ab-shared-catalog .products-list .product-image{height:100%;aspect-ratio:auto}.ab-shared-catalog .products-list .product-info{padding:12px}.ab-shared-catalog .store-footer .footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:390px){.ab-shared-catalog .header-preferences{display:none}.ab-shared-catalog .store-footer .footer-grid{grid-template-columns:1fr}.ab-shared-catalog .store-header .brand-symbol:not(.has-logo){width:28px;height:34px}.ab-shared-catalog .store-header .brand-symbol .ui-icon{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.ab-shared-catalog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.ab-mobile-preferences{padding:24px;display:grid;gap:18px}.ab-mobile-preferences select{display:block;width:100%;margin-top:8px}

.ab-shared-catalog .ab-advertising{text-align:center;max-width:1100px;margin:32px auto;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--muted)}.ab-advertising>p:first-child{font-size:11px;text-transform:uppercase;letter-spacing:.1em}.ab-shared-catalog .adsbygoogle{display:block;min-height:120px}

.ab-shared-catalog .language-picker{position:relative}.ab-lang-flag{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;display:block;width:24px;height:16px;overflow:hidden;border-radius:3px}.ab-shared-catalog #store-language{padding-left:44px}.ab-shared-catalog .product-image{cursor:pointer}

/* WhatsApp storefront adapter: public catalog 1.25.8 geometry, portal data. */
.ab-shared-catalog .store-header,.ab-shared-catalog .store-footer{color:var(--brand-ink)}
.ab-shared-catalog .store-header :is(.brand,.icon-btn,.menu-toggle,nav,nav .active,.brand-symbol,select),.ab-shared-catalog .store-footer :is(a,.text-btn,h3){color:var(--brand-ink)}
.ab-shared-catalog .store-header nav .active:after{background:var(--brand-ink)}
.ab-shared-catalog .btn.primary{background:var(--blue);color:var(--primary-ink);border-color:var(--blue)}
.ab-shared-catalog .category.active{background:var(--blue);color:var(--primary-ink);border-color:var(--blue)}
.ab-shared-catalog :is(.text-btn,.checkout-steps .active){color:var(--ink)}
.ab-shared-catalog :is(input,textarea,select,.product-card,.cart-line,.qty){border-color:var(--shop-outline)}
.ab-shared-catalog :is(input[type=checkbox],input[type=radio]){accent-color:var(--blue)}
.ab-shared-catalog :focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.ab-shared-catalog .footer-credit-band :is(a,p,span){color:#fff}
.ab-platform-credit{display:flex;align-items:center;justify-content:center;padding:22px 24px 0}
.ab-platform-credit img{display:block;width:160px;height:60px;object-fit:contain}
.ab-shared-catalog .catalog-qr,.ab-shared-catalog .footer-qr>img{border-radius:0;overflow:hidden;background:#fff;padding:8px}
.ab-shared-catalog #cart-dialog{height:min(850px,calc(100dvh - 24px))}
.ab-shared-catalog .cart-line{align-items:start;grid-template-columns:76px minmax(0,1fr) auto}
.ab-cart-placeholder{display:grid;place-items:center;width:76px;height:76px;background:var(--raised);border-radius:15px;color:var(--muted)}
.ab-shared-catalog .cart-line .qty{margin-top:10px}
.ab-shared-catalog #cart-total{font-size:clamp(20px,3vw,27px);line-height:1.3}
.ab-shared-catalog .cart-summary-total{flex-wrap:wrap}
.ab-shared-catalog .cart-summary-total strong{margin-left:auto}
.ab-shared-catalog #checkout-dialog{height:min(820px,calc(100dvh - 24px));width:min(760px,calc(100vw - 32px));padding:0}
.ab-shared-catalog #checkout-content{padding:24px;background:var(--canvas);display:block}
.ab-shared-catalog .checkout-section{width:100%;margin:0;padding:24px;min-height:0}
.ab-shared-catalog .checkout-section>label{display:grid;gap:8px;margin:20px 0;font-size:13px}
.ab-shared-catalog .checkout-section :is(input:not([type=checkbox]),textarea){display:block;width:100%;min-width:0;font:inherit;font-size:16px}
.ab-shared-catalog .checkout-section textarea{min-height:108px;resize:vertical}
.ab-shared-catalog .checkout-section>p{font-size:13px;line-height:1.6;color:var(--muted)}
.ab-shared-catalog #checkout-heading{font-size:24px}
.ab-shared-catalog .checkout-steps{padding:0 26px 22px;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}
.ab-shared-catalog .checkout-steps button{min-width:0}
.ab-shared-catalog .checkout-steps button.active b{background:var(--blue);color:var(--primary-ink)}
.ab-shared-catalog .checkout-bar{display:flex;gap:10px;padding:14px 22px;background:var(--surface);border-top:1px solid var(--line)}
.ab-shared-catalog .checkout-bar>.btn{font-size:13px;padding:12px 16px;white-space:normal}
.ab-shared-catalog #review-quote,.ab-shared-catalog #send-quote{margin-left:auto}
.ab-shared-catalog #quote-preview{font-size:13px;line-height:1.7;margin-top:16px;padding:16px;background:var(--raised);border-radius:12px}
.ab-shared-catalog #checkout-selection details{margin:24px 0 16px}
.ab-shared-catalog #checkout-selection summary{cursor:pointer;font-size:13px}
.ab-shared-catalog .ab-recovery-choice{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px}
.ab-shared-catalog .ab-recovery-choice input{width:20px;height:20px;min-height:20px;margin:0;flex-shrink:0}
.ab-cart-added{position:fixed;z-index:2000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(320px,calc(100vw - 40px));padding:24px;display:grid;justify-items:center;gap:12px;text-align:center;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:0 22px 80px #12223c33;pointer-events:none}
.ab-cart-added>img{border-radius:12px;object-fit:contain}.ab-cart-added strong{font-size:15px}.ab-cart-added small{font-size:12px;color:var(--muted)}
.ab-added-check{width:52px;height:52px;border-radius:50%;background:var(--blue);color:var(--primary-ink);display:grid;place-items:center}
.ab-cart-recovery{max-width:920px;margin:16px auto;padding:18px 22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}
.ab-cart-recovery>span{flex:1 1 220px}.ab-cart-recovery .btn{font-size:12px}
.ab-shared-catalog .variant-options{scroll-margin-top:24px}
@media(max-width:760px){
 .ab-shared-catalog .cart-line{grid-template-columns:50px minmax(0,1fr);gap:12px}.ab-cart-placeholder{width:50px;height:56px}
 .ab-shared-catalog .cart-line-price{grid-column:1/-1}.ab-shared-catalog .cart-line>img{width:50px;height:56px}
 .ab-shared-catalog #checkout-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);height:calc(100dvh - 16px)}
 .ab-shared-catalog #checkout-content{padding:14px}.ab-shared-catalog .checkout-section{padding:18px}
 .ab-shared-catalog .checkout-bar{padding:12px 14px max(12px,env(safe-area-inset-bottom));gap:8px}
 .ab-shared-catalog .checkout-bar>.btn{flex:1 1 calc(50% - 8px);font-size:12px;padding:11px 10px}
 .ab-shared-catalog #send-quote{flex-basis:100%}.ab-shared-catalog #back-cart{flex-basis:100%}
 .ab-shared-catalog .catalog-message-lines>div{gap:12px;font-size:13px}.ab-shared-catalog .catalog-message-lines>div>strong{white-space:normal;text-align:right}
 .ab-cart-recovery{margin:12px}.ab-shared-catalog .checkout-steps{padding:0 18px 16px}
}
@media(prefers-reduced-motion:reduce){.ab-cart-added{animation:none;transition:none}}
.ab-shared-catalog:has(dialog[open]){overflow:hidden}
.ab-shared-catalog .checkout-section>label.ab-recovery-choice{display:flex;align-items:center}
html[data-theme] .ab-shared-catalog{--line:var(--shop-outline)}
.ab-shared-catalog :is(.store-header,.store-footer){--primary-ink:var(--brand-ink);--ink:var(--brand-ink);--muted:var(--brand-ink)}
.ab-shared-catalog .footer-credit-band{--primary-ink:#fff;--ink:#fff;--muted:#c4cddd}
.ab-shared-catalog .checkout-section .summary-line.total{flex-wrap:wrap;gap:8px}
.ab-shared-catalog .checkout-section .summary-line.total strong{margin-left:auto;overflow-wrap:anywhere}
@media(max-width:760px){.ab-shared-catalog .checkout-bar>#back-cart,.ab-shared-catalog .checkout-bar>#back-information,.ab-shared-catalog .checkout-bar>#copy-quote{flex:1 1 28%}.ab-shared-catalog .checkout-bar>#review-quote{flex:1 1 40%}}

/* 1.6.1: compact notification, original list geometry, fixed admin view. */
.ab-shared-catalog .ab-cart-added{top:max(14px,env(safe-area-inset-top));left:50%;transform:translate(-50%,0);width:min(410px,calc(100vw - 28px));padding:12px 14px;display:flex;align-items:center;gap:12px;text-align:left;border-radius:20px;box-shadow:0 10px 34px #12223c28;pointer-events:auto;backdrop-filter:blur(18px)}
.ab-cart-added .ab-added-check{width:34px;height:34px;flex:none}.ab-cart-added>div{min-width:0;flex:1;display:grid;gap:2px}.ab-cart-added strong{font-size:12px;line-height:1.4}.ab-cart-added small{font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ab-cart-added>.icon-btn{width:30px;height:30px;flex:none}
.ab-shared-catalog .ab-product-placeholder{width:100%;height:100%;display:grid;place-items:center;min-height:60px;color:var(--muted);background:var(--raised);border-radius:14px}
.ab-shared-catalog .product-image>.ab-product-placeholder{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px)}
.ab-shared-catalog .ab-product-placeholder>.ui-icon{width:58px;height:58px;stroke-width:1.2;opacity:.75}
.ab-shared-catalog .detail-gallery>.ab-product-placeholder{aspect-ratio:1;min-height:180px}.ab-shared-catalog .detail-gallery>.ab-product-placeholder>.ui-icon{width:100px;height:100px}
.ab-shared-catalog .cart-line>.ab-product-placeholder{width:76px;height:76px}.ab-shared-catalog .cart-line>.ab-product-placeholder>.ui-icon{width:32px;height:32px}
.ab-shared-catalog .product-card-meta .product-badges{position:static;display:flex;gap:6px;flex-wrap:wrap;margin:0;max-width:100%}
.ab-shared-catalog .product-card-meta .product-badges:empty{display:none}
.ab-shared-catalog .ab-business-credit{margin:24px 0 0;text-align:center;padding:14px 20px;color:var(--brand-ink);font-size:12px}
.ab-shared-catalog .ab-platform-credit{background:#fff;padding:18px 24px;margin:0}.ab-shared-catalog .ab-platform-credit img{width:160px;height:54px}.ab-shared-catalog .footer-credit-band{margin-top:0}
.ab-shared-catalog .store-desktop-nav a{border-bottom:0!important}.ab-shared-catalog .store-desktop-nav a.active::after{content:"";height:2px;box-shadow:none}
.ab-shared-catalog .store-desktop-nav a.active{box-shadow:none;text-decoration:none}
.ab-shared-catalog .products-list .product-card{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:0;padding:10px}
.ab-shared-catalog .products-list .product-image{width:150px;height:150px;aspect-ratio:1}
.ab-shared-catalog .products-list .product-info{display:grid;grid-template-columns:minmax(0,1fr) 260px;column-gap:22px;row-gap:5px;min-width:0;padding:12px 22px 12px 16px}
.ab-shared-catalog .products-list .product-card-meta{grid-column:1;grid-row:1}.ab-shared-catalog .products-list .product-name{grid-column:1;grid-row:2}.ab-shared-catalog .products-list .product-short{grid-column:1;grid-row:3;margin:0}
.ab-shared-catalog .products-list .product-price{grid-column:2;grid-row:1/3;align-self:center;margin:0}.ab-shared-catalog .products-list .product-card-actions{grid-column:2;grid-row:3/5;align-self:center;margin:0;max-width:none}
@media(max-width:760px){
 .ab-shared-catalog .store-header .header-inner{display:flex;flex-wrap:nowrap;padding:10px 12px;gap:8px;min-height:60px}.ab-shared-catalog .store-header .header-preferences{display:none!important}.ab-shared-catalog .store-header .header-actions{margin-left:auto;gap:3px}.ab-shared-catalog .store-header .brand{flex:1;max-width:calc(100% - 130px)}.ab-shared-catalog .store-header .brand-symbol.has-logo{max-width:100%;width:100px}.ab-shared-catalog .store-header .brand-symbol.has-logo img{height:36px}
 .ab-shared-catalog .products-list .product-card{grid-template-columns:100px minmax(0,1fr);padding:8px;align-items:start}.ab-shared-catalog .products-list .product-image{width:100px;height:115px}.ab-shared-catalog .products-list .product-info{display:grid;grid-template-columns:minmax(0,1fr);padding:5px 9px;gap:4px}
 .ab-shared-catalog .products-list .product-card-meta{grid-column:1;grid-row:1;padding-right:20px}.ab-shared-catalog .products-list .product-name{grid-column:1;grid-row:2}.ab-shared-catalog .products-list .product-price{grid-column:1;grid-row:3}.ab-shared-catalog .products-list .product-card-actions{grid-column:1;grid-row:4;justify-self:end;width:min(100%,260px);margin-top:6px}.ab-shared-catalog .products-list .product-card-actions .btn{min-width:0;padding:10px 8px;font-size:11px}.ab-shared-catalog .products-list .product-short{display:none}
 .ab-shared-catalog .cart-line>.ab-product-placeholder{width:50px;height:56px}.ab-shared-catalog .catalog-toolbar .sort-label{flex:1;min-width:0}.ab-shared-catalog .catalog-toolbar .sort-label select{width:100%}
}


/* 1.6.2: one shared shade throughout cart transitions; never stack backdrops. */
.ab-cart-backdrop{display:none;position:fixed;inset:0;background:#13233e99;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);z-index:1500;pointer-events:none}
.ab-shared-catalog:has(#cart-dialog[open],#checkout-dialog[open]) .ab-cart-backdrop{display:block}
.ab-shared-catalog #cart-dialog::backdrop,.ab-shared-catalog #checkout-dialog::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;animation:none;transition:none}
.ab-shared-catalog #cart-dialog,.ab-shared-catalog #checkout-dialog{animation:none;transition:none}
.ab-shared-catalog .footer-credit-band{padding:26px 24px calc(104px + env(safe-area-inset-bottom));min-height:190px}
.ab-shared-catalog .footer-credit-band .footer-bottom{padding:0;min-height:55px}
.ab-shared-catalog .store-header :is(.icon-btn,.menu-toggle):is(:hover,:focus-visible){background:color-mix(in srgb,var(--brand-ink) 14%,transparent);color:var(--brand-ink);border-color:currentColor}
.ab-shared-catalog .store-desktop-nav a,.ab-shared-catalog .store-desktop-nav a:is(:hover,:focus,.active){text-decoration:none!important;background:none!important;box-shadow:none!important;border:0!important}
.ab-shared-catalog .store-desktop-nav a::before{display:none!important}
.ab-shared-catalog .store-desktop-nav a::after{display:none!important}
.ab-shared-catalog .store-desktop-nav a.active::after{display:block!important;bottom:-10px;height:2px;background:currentColor}
.ab-shared-catalog :is(input,select,textarea){background:var(--surface);color:var(--ink)}
.ab-shared-catalog select option{background:var(--surface);color:var(--ink)}
.ab-shared-catalog .store-header select{background:transparent;color:var(--brand-ink)}
.ab-shared-catalog .store-header select option{background:#fff;color:#182238}
.ab-shared-catalog .store-header .cart-count{background:var(--brand-ink);color:var(--brand-color)}
html[data-theme=light] .ab-shared-catalog{--shop-outline:color-mix(in srgb,var(--chosen-outline) 60%,#73829a)}
html[data-theme=dark] .ab-shared-catalog{--shop-outline:color-mix(in srgb,var(--chosen-outline) 48%,#8796b0)}

/* Equal height within each visible row, independent of every other row. */
.ab-shared-catalog .products-grid:not(.products-list){grid-auto-rows:auto;align-items:stretch}
.ab-shared-catalog .products-grid:not(.products-list)>.product-card{display:flex;flex-direction:column;height:auto;align-self:stretch}
.ab-shared-catalog .products-grid:not(.products-list) .product-image{flex:none;width:100%}
.ab-shared-catalog .products-grid:not(.products-list) .product-info{flex:1;display:flex;flex-direction:column}
.ab-shared-catalog .products-grid:not(.products-list) .product-card-actions{margin-top:auto;padding-top:12px}
.ab-shared-catalog .products-grid:not(.products-list) .product-price{margin-top:auto}
.ab-shared-catalog .products-grid:not(.products-list) .product-price+.product-card-actions{margin-top:0}
/* 1.6.7: desktop product details follow their content, not the image's HTML height. */
@media(min-width:761px){
 .ab-shared-catalog #product-dialog{width:min(900px,calc(100vw - 48px));height:auto;min-height:0;max-height:calc(100dvh - 48px)}
 .ab-shared-catalog .product-detail{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:24px;padding:24px;min-height:0}
 .ab-shared-catalog .detail-gallery{align-self:start;justify-content:flex-start;min-width:0;min-height:0;height:auto;padding:16px}
 .ab-shared-catalog .detail-gallery>.main-photo{display:block;width:100%;height:auto;aspect-ratio:1;max-height:min(340px,48dvh);object-fit:contain;flex:none}
 .ab-shared-catalog .detail-gallery>.ab-product-placeholder{min-height:0;max-height:min(340px,48dvh)}
 .ab-shared-catalog .detail-gallery .thumbs{flex-wrap:wrap;overflow:auto;max-height:112px}
 .ab-shared-catalog .detail-info{padding:22px 0 0;min-width:0}
 .ab-shared-catalog .detail-info h2{font-size:26px;margin:8px 0 14px;padding-right:28px}
 .ab-shared-catalog .detail-info .detail-description{margin-bottom:0}
 .ab-shared-catalog .detail-actions{margin-top:18px}
 .ab-shared-catalog .product-qr{margin:0 24px;padding:12px 0;gap:16px;justify-content:flex-end;text-align:left}
 .ab-shared-catalog .product-qr>div:first-child{display:grid;gap:8px}
 .ab-shared-catalog .product-qr h3{font-size:13px}
 .ab-shared-catalog .product-qr .btn{min-height:38px;padding:8px 12px;font-size:12px}
 .ab-shared-catalog .product-qr .catalog-qr{width:112px;height:112px;padding:0;flex:none}
 .ab-shared-catalog .product-qr .catalog-qr :is(canvas,img){display:block;width:112px;height:112px;max-width:100%}
}
/* 1.6.8: intrinsic dialog height, even with both native modal insets set. */
@media(min-width:761px){
 .ab-shared-catalog #product-dialog,.ab-shared-catalog #product-dialog[open]{position:fixed;inset:0;margin:auto;height:fit-content;block-size:fit-content;min-height:0;min-block-size:0;max-height:calc(100dvh - 48px);max-block-size:calc(100dvh - 48px)}
 .ab-shared-catalog #product-dialog[open]{display:block}
 .ab-shared-catalog #product-content{height:auto;min-height:0;min-block-size:0;flex:none}
}
.ab-shared-catalog .product-description-long{margin:0 24px;padding:20px 0;border-top:1px solid var(--line);color:var(--ink);overflow-wrap:anywhere}
.ab-shared-catalog .product-description-long h3{font-size:17px;line-height:1.4;margin:0 0 12px}
.ab-shared-catalog .product-description-long p{font-size:14px;line-height:1.8;white-space:pre-line;margin:0;color:var(--muted)}
@media(max-width:760px){.ab-shared-catalog .product-description-long{margin:0 19px;padding:18px 0}}
/* Keep confirmation centered on every viewport; override generic mobile sheet margins. */
.ab-shared-catalog #catalog-confirm{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:fit-content;block-size:fit-content;min-height:0;min-block-size:0;max-height:calc(100dvh - 32px);max-block-size:calc(100dvh - 32px);overflow:auto;border-radius:22px;box-sizing:border-box}
.ab-shared-catalog #catalog-confirm[open]{display:block}
.ab-shared-catalog .variant-option-price{display:flex;flex-direction:column;gap:3px}.ab-shared-catalog .variant-option-price del{font-size:12px;font-weight:400;color:var(--muted)}.ab-shared-catalog .variant-option-price small{font-size:10px;font-weight:600;color:var(--ink)}
/* 1.6.10: destructive confirmation owns its contrast in every theme and state. */
.ab-shared-catalog #catalog-confirm[data-destructive=true] [data-confirm]{background:#c5222d;border-color:#c5222d;color:#fff;-webkit-text-fill-color:#fff;filter:none}
.ab-shared-catalog #catalog-confirm[data-destructive=true] [data-confirm]:is(:hover,:focus-visible){background:#a71924;border-color:#a71924;color:#fff;-webkit-text-fill-color:#fff;filter:none}
.ab-shared-catalog #catalog-confirm[data-destructive=true] [data-confirm]:active{background:#86131c;border-color:#86131c;color:#fff;-webkit-text-fill-color:#fff;filter:none}
.ab-shared-catalog #catalog-confirm[data-destructive=true] [data-confirm]:focus-visible{outline:3px solid var(--ink);outline-offset:3px}


/* Catalog toolbar: one continuous field and adjacent filter actions. */
.ab-shared-catalog .catalog-toolbar{align-items:center;gap:10px}
.ab-shared-catalog .catalog-toolbar :is(#open-filters,#clear-active-filters){min-height:44px;height:44px;width:112px;padding:10px 12px;font-size:13px;line-height:1.2;white-space:nowrap;flex:none}
.ab-shared-catalog .catalog-toolbar .ab-clear-active{background:var(--surface);color:var(--ink);border-color:var(--line)}
.ab-shared-catalog .catalog-toolbar .ab-clear-active:is(:hover,:focus-visible){background:var(--raised);border-color:var(--blue)}
.ab-shared-catalog .catalog-toolbar .search-box{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;padding:0;min-height:44px;height:44px;box-sizing:border-box;overflow:hidden;background:linear-gradient(to right,var(--raised) 0 44px,var(--surface) 44px);border-radius:12px}
.ab-shared-catalog .catalog-toolbar .search-box:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.ab-shared-catalog .catalog-toolbar .search-box>.ui-icon{justify-self:center;width:20px;height:20px}
.ab-shared-catalog .catalog-toolbar .search-box input{min-width:0;min-height:0;width:100%;height:100%;border:0;border-radius:0;background:transparent;padding:10px 8px!important;outline:0;box-shadow:none}
.ab-shared-catalog .catalog-toolbar .search-scanners{position:static;transform:none;height:100%;display:flex;align-items:center;background:var(--surface)}
.ab-shared-catalog .catalog-toolbar .search-scanners .icon-btn{width:44px;height:100%;min-width:44px;min-height:0;border:0;border-radius:0;background:transparent}
.ab-shared-catalog .results-meta{gap:10px}
/* QR codes keep square edges; the credit stays close to its logo. */
.ab-shared-catalog :is(.catalog-qr,.catalog-qr img,.catalog-qr canvas,.footer-qr>img){border-radius:0}
.ab-shared-catalog .footer-credit-band .developer-credit{gap:6px}
.ab-shared-catalog .footer-credit-band .developer-logo{padding:0;border:0;border-radius:0;flex:none}
.ab-shared-catalog :is(.direct-whatsapp,#store-footer-contact) .ui-icon{width:18px;height:18px}
@media(max-width:760px){
 .ab-shared-catalog .catalog-toolbar{display:grid;grid-template-columns:auto auto minmax(0,1fr)}
 .ab-shared-catalog .catalog-toolbar .search-box{grid-column:1/-1}
 .ab-shared-catalog .catalog-toolbar:has(#clear-active-filters[hidden]) #open-filters{grid-column:1/3}
 .ab-shared-catalog .catalog-toolbar :is(#open-filters,#clear-active-filters){width:104px;padding:8px 8px;font-size:12px}
 .ab-shared-catalog .catalog-toolbar .sort-label{grid-column:3;min-width:0;display:flex;flex-basis:auto}
 .ab-shared-catalog .catalog-toolbar .sort-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .ab-shared-catalog .catalog-toolbar .sort-label select{width:100%;min-width:0;min-height:44px;font-size:12px;padding:6px}
}

@media(max-width:480px){.ab-shared-catalog #product-grid .product-card-actions .btn{min-width:0;min-height:44px;padding:8px 2px;font-size:10px;line-height:1.2;gap:2px;white-space:normal}.ab-shared-catalog #product-grid .product-card-actions .ui-icon{width:14px;height:14px}}
@media(max-width:360px){.ab-shared-catalog #product-grid .product-card-actions{grid-template-columns:1fr}}

/* Center generated and uploaded QR images inside a uniform square. */
.ab-shared-catalog .catalog-qr{display:grid;place-items:center;box-sizing:border-box}
.ab-shared-catalog .catalog-qr> :is(img,canvas){grid-area:1/1;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;border:0;object-fit:contain;object-position:center}
.ab-shared-catalog .footer-qr .catalog-qr{margin-inline:auto}
.ab-shared-catalog .footer-qr>img{display:block;box-sizing:border-box;object-fit:contain;object-position:center;margin-inline:auto}

/* Scrolling a long product must not hide its close control. */
.ab-shared-catalog #product-dialog .product-close-bar{position:sticky;top:0;z-index:12;height:0;display:flex;justify-content:flex-end;pointer-events:none}
.ab-shared-catalog #product-dialog .product-close-bar>.dialog-close{position:relative;inset:auto;margin:16px 16px 0 0;flex:none;pointer-events:auto}
.ab-shared-catalog .detail-actions{background:var(--surface)}
/* Give the selected order a readable row when both filter actions are visible. */
@media(max-width:480px){.ab-shared-catalog .catalog-toolbar:has(#clear-active-filters:not([hidden])) .sort-label{grid-column:1/-1}}

/* Leave room for wholesale quantities without squeezing the input. */
.ab-shared-catalog .qty{max-width:100%;min-width:0}
.ab-shared-catalog .qty input[type=number]{flex:1;min-width:0;width:8ch;font-variant-numeric:tabular-nums}
.ab-shared-catalog .qty button{flex:none}
.ab-shared-catalog .cart-item-controls{flex-wrap:wrap}
.ab-shared-catalog .cart-item-controls .qty{width:min(180px,100%)}
@media(max-width:480px){.ab-shared-catalog .detail-actions>.qty{flex:1 0 100%;grid-column:1/-1;width:100%;min-width:0}}

/* Keep the heading, generated/custom QR and download on the same axis. */
.ab-shared-catalog .store-footer .footer-qr{align-items:center;text-align:center}

.ab-shared-catalog .detail-gallery:has(>.main-photo.ab-image-pending),.ab-shared-catalog .thumbs button:has(img.ab-image-pending){background:linear-gradient(105deg,var(--raised,#e8edf5) 20%,var(--surface,#fff) 45%,var(--raised,#e8edf5) 70%);background-size:240% 100%;animation:ab-skeleton-sweep 1.4s linear infinite}.ab-shared-catalog .thumbs button:has(img.ab-image-pending){border-color:transparent}.ab-shared-catalog .product-qr{display:flex;justify-content:flex-end;align-items:center;gap:16px;text-align:right;flex-wrap:wrap}.ab-shared-catalog .product-qr .product-gtin[hidden]{display:none!important}.ab-shared-catalog .product-qr canvas{width:112px;height:112px;object-fit:contain}.ab-shared-catalog .product-qr .product-gtin canvas{width:160px;height:auto}.ab-shared-catalog .product-qr .qr-actions{display:grid;gap:8px;justify-items:end}.ab-shared-catalog .product-qr>h3,.ab-shared-catalog .product-qr>p{display:none}@media(prefers-reduced-motion:reduce){.ab-shared-catalog .detail-gallery,.ab-shared-catalog .thumbs button{animation:none!important}}

.ab-shared-catalog .product-share-row{display:flex;margin-top:14px}.ab-shared-catalog .product-share-row>.btn{min-height:42px}.ab-shared-catalog .product-qr{display:flex;justify-content:flex-end;align-items:start;text-align:right}.ab-shared-catalog .product-qr>.product-qr-card{display:grid;gap:8px;justify-items:end}.ab-shared-catalog .product-qr-card .catalog-qr{margin:0;width:112px;height:112px}.ab-shared-catalog .product-qr-card .btn{padding:8px 10px;font-size:12px}.ab-shared-catalog .formatted-description :is(ol,ul){padding-left:24px}

.ab-shared-catalog .product-qr{margin:0 24px;padding:12px 0}.ab-shared-catalog .product-qr .catalog-qr{width:128px;height:128px;padding:0}.ab-shared-catalog .product-qr .catalog-qr :is(canvas,img){display:block;width:128px;height:128px;max-width:100%}@media(max-width:760px){.ab-shared-catalog .product-qr{margin:0 20px;padding:16px 0}}

.ab-shared-catalog .flying-package.has-photo{box-sizing:border-box;background:var(--surface,#fff);border:1px solid var(--line,#dce3ef);padding:3px;overflow:hidden}.ab-shared-catalog .flying-package.has-photo>canvas{display:block;width:100%;height:100%;object-fit:contain}
