/* Use each source's native cards and leave product actions under their owner. */
.abg { --abg-line: #d4dedb; --abg-ink: #172b25; --abg-green: #176148; container:abg / inline-size; width:100%; min-width:0; clear:both; margin:1rem 0 2rem; color:var(--abg-ink); scroll-margin-top:5rem; }
.abg *, .abg *::before, .abg *::after { box-sizing:border-box; }
.abg:has(.abg-display[open]),.abg:not([data-abg-rail="1"]):has(.abg-filters[open]) { position:relative; z-index:3; }
.abg .abg-layout { --abg-rail:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"search search" "filters display" "results results"; gap:.5rem; align-items:start; }
.abg .abg-sidebar { grid-area:filters; position:relative; min-width:0; }
.abg .abg-bar { display:contents; }
.abg .abg-results { grid-area:results; position:relative; min-width:0; }
.abg .abg-bar:has(.abg-display[open]),.abg .abg-display[open],.abg .abg-sidebar:has(.abg-filters[open]) { z-index:5; }
.abg .abg-query { flex:1 1 15rem; grid-area:search; min-width:0; margin:0; padding:0; position:relative; }
.abg .abg-query-box { display:flex; min-width:0; }
.abg .abg-query input[type=search] { flex:1 1 auto; width:1%; min-width:0; height:2.65rem; border:1px solid var(--abg-line); border-radius:.5rem 0 0 .5rem; padding:.45rem .7rem; background:white; color:var(--abg-ink); }
.abg .abg-query button,.abg .abg-panel-body noscript button { border:0; border-radius:.4rem; background:var(--abg-green); color:white; font:inherit; font-weight:600; padding:.5rem .85rem; cursor:pointer; }
.abg .abg-query button { border-radius:0 .5rem .5rem 0; }
.abg .abg-options { min-width:0; margin:0; padding:0; }
.abg .abg-display { grid-area:display; position:relative; }
.abg .abg-panel { min-width:0; margin:0; }
.abg .abg-panel summary { cursor:pointer; border:1px solid var(--abg-line); border-radius:.5rem; padding:.55rem .8rem; min-height:2.65rem; line-height:1.4; font-weight:600; background:#f6f8f7; }
.abg .abg-panel[open] > summary { color:var(--abg-green); border-color:var(--abg-green); }
.abg .abg-panel-body { position:absolute; inset-block-start:calc(100% + .2rem); inset-inline-end:0; z-index:5; display:grid; align-items:start; gap:.7rem; padding:.8rem; max-block-size:min(32rem,60vh); max-block-size:min(32rem,60dvh); overflow:auto; overscroll-behavior:contain; background:#f7faf8; border:1px solid var(--abg-line); border-radius:.5rem; box-shadow:0 .35rem 1rem #172b2526; }
.abg .abg-filters .abg-panel-body { inset-inline-start:0; inset-inline-end:auto; width:100cqi; grid-template-columns:minmax(0,1fr); }
.abg .abg-display .abg-panel-body { width:min(36rem,100cqi); grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
@container abg (min-width:48rem) {
  .abg .abg-layout { --abg-rail:1; grid-template-columns:clamp(12rem,21%,16rem) minmax(0,1fr); grid-template-rows:max-content 1fr; grid-template-areas:"filters tools" "filters results"; gap:.5rem clamp(.75rem,2cqi,1.5rem); }
  .abg .abg-bar { grid-area:tools; display:flex; flex-wrap:wrap; align-items:start; gap:.45rem .75rem; position:relative; min-width:0; }
  .abg .abg-display { position:static; margin-inline-start:auto; }
  .abg .abg-query { max-width:34rem; }
  .abg .abg-display .abg-panel-body { width:min(36rem,100%); }
  .abg-compact .abg-layout:not(:has(.abg-filters[open])) { grid-template-columns:max-content minmax(0,1fr); grid-template-areas:"filters tools" "results results"; }
  .abg .abg-filters .abg-panel-body { position:static; width:auto; max-block-size:none; overflow:visible; margin-block-start:.25rem; box-shadow:none; }
}
/* The menu is anchored below the whole trigger row, even if either label wraps. */
.abg .abg-display-short,.abg .abg-setting [hidden] { display:none!important; }
.abg .abg-local { display:grid; gap:.35rem; min-width:0; }
/* The parent theme sets an important white foreground on all buttons. */
.abg .abg-local button { min-width:0; min-height:2.75rem; padding:.4rem .55rem; border:1px solid var(--abg-line); border-radius:.35rem; background:white; color:var(--abg-ink)!important; font:inherit; font-weight:500; line-height:1.25; cursor:pointer; white-space:normal; overflow-wrap:anywhere; }
.abg .abg-local button:disabled { background:#f3f5f4; color:#5d6963!important; opacity:1; cursor:default; }
.abg .abg-local-toggle { display:flex; align-items:center; justify-content:space-between; gap:.35rem; text-align:start; }
.abg .abg-local-toggle::after { content:""; width:.45rem; height:.45rem; flex:0 0 .45rem; border:solid var(--abg-green); border-width:0 2px 2px 0; transform:rotate(45deg); }
.abg .abg-local-toggle[aria-expanded=true]::after { transform:rotate(225deg); }
.abg .abg-counter { grid-template-columns:2.75rem minmax(0,1fr) 2.75rem; }
.abg .abg-counter > button:not(.abg-local-toggle) { font-size:1.12rem; font-weight:700; }
.abg .abg-local-choices { display:grid; grid-column:1/-1; gap:.25rem; }
.abg .abg-segments { grid-template-columns:repeat(2,minmax(0,1fr)); }
.abg .abg-numbers { grid-template-columns:repeat(auto-fit,minmax(min(100%,2.9rem),1fr)); }
.abg .abg-local-choices button[aria-pressed=true] { background:var(--abg-green); color:white!important; border-color:var(--abg-green); }
@container abg (width < 48rem) {
  .abg .abg-sidebar,.abg .abg-display { align-self:stretch; }
  .abg .abg-sidebar,.abg .abg-options { display:grid; }
  .abg .abg-panel > summary { min-height:44px; height:100%; }
  .abg .abg-display .abg-panel-body { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .abg .abg-setting:is([data-abg-setting=view],[data-abg-setting=sort]),.abg .abg-setting:has(.abg-local-toggle[aria-expanded=true]) { grid-column:1/-1; }
  .abg[data-view=grid] .abg-setting:is([data-abg-setting=detail],[data-abg-setting=preview]),.abg[data-view=list] .abg-setting:is([data-abg-setting=rows],[data-abg-setting=cols]) { display:none; }
}
@container abg (max-width:27rem) {
  .abg .abg-display-short { display:inline!important; }
  .abg .abg-display-wide { display:none; }
  .abg .abg-setting:is([data-abg-setting=cols],[data-abg-setting=rows]) { grid-column:1/-1; }
}
@container abg (max-width:19rem) {
  .abg .abg-display .abg-panel-body { grid-template-columns:minmax(0,1fr); }
}
.abg .abg-field { display:grid; align-content:start; align-self:stretch; gap:.25rem; min-width:0; font-weight:600; font-size:.85rem; }
.abg .abg-field select,.abg .abg-field input { width:100%; min-height:2.45rem; padding:.4rem; color:var(--abg-ink); border:1px solid var(--abg-line); border-radius:.35rem; font:inherit; font-weight:400; background:white; }
.abg .abg-facet select { max-height:6.4rem; }
.abg .abg-facet [hidden] { display:none!important; }
.abg .abg-picker,.abg .abg-picker-line { min-width:0; }
.abg .abg-picker-line { position:relative; }
.abg .abg-picker-line::after { content:""; position:absolute; inset-inline-end:.8rem; top:42%; width:.42rem; height:.42rem; border:solid var(--abg-green); border-width:0 2px 2px 0; transform:rotate(45deg); pointer-events:none; }
.abg .abg-picker input { padding-inline:.65rem 1.9rem; cursor:pointer; }
.abg .abg-picker-line:has(.abg-pick-count:not([hidden])) input { padding-inline-end:3.6rem; }
.abg .abg-picker input::placeholder { color:var(--abg-ink); opacity:1; font-weight:600; }
.abg .abg-picker input:focus { cursor:text; }
.abg .abg-pick-count { position:absolute; inset-inline-end:1.7rem; top:50%; transform:translateY(-50%); font-size:.76rem; padding:0 .36rem; border-radius:1rem; color:var(--abg-green); background:#e4f2eb; pointer-events:none; }
.abg .abg-choices { position:relative; max-block-size:min(14rem,40vh); overflow:auto; overscroll-behavior:contain; margin-block-start:.15rem; border:1px solid var(--abg-line); border-radius:.35rem; background:white; font-weight:400; }
.abg .abg-choice { cursor:pointer; display:flex; align-items:center; gap:.55rem; padding:.5rem .6rem; overflow-wrap:anywhere; }
.abg .abg-choice::before { content:""; flex:0 0 1rem; text-align:center; color:var(--abg-green); }
.abg .abg-choice[aria-selected=true]::before { content:"✓"; font-weight:700; }
.abg .abg-choice[aria-selected=true] { font-weight:600; }
.abg .abg-choice:is(:hover,.is-active) { background:#e6f2ec; }
.abg .abg-no-choices { padding:.55rem .65rem; font-weight:400; }
.abg .abg-feedback { font-size:.88rem; margin:.45rem 0; }
.abg[aria-busy=true] .abg-feedback:not(:empty) { position:absolute; inset-block-start:0; inset-inline-end:0; z-index:1; margin:0; padding:.2rem .65rem; border:1px solid var(--abg-line); border-radius:1rem; background:white; }
.abg .abg-feedback:empty,.abg .abg-comparison:empty { display:none; }
.abg .abg-chips { display:flex; flex-wrap:wrap; gap:.4rem; flex-basis:100%; }
.abg .abg-chips a,.abg .abg-clear { color:var(--abg-green); font-size:.88rem; }
.abg .abg-chips a { padding:.2rem .5rem; border:1px solid var(--abg-line); border-radius:1rem; }
.abg ul[data-abg-items] { display:grid!important; grid-template-columns:repeat(var(--abg-cols),minmax(0,1fr))!important; width:100%!important; float:none!important; gap:clamp(.4rem,1.4vw,1.15rem); margin:.7rem 0!important; padding:0!important; }
.abg ul[data-abg-items]::before,.abg ul[data-abg-items]::after { display:none!important; }
.abg ul[data-abg-items]>li { min-width:0; width:auto!important; max-width:100%; float:none!important; clear:none!important; margin:0!important; overflow-wrap:anywhere; }
/* Layout belongs to the shared row, independent of each provider's outer tile styles. */
.abg[data-view=list] ul[data-abg-items] { grid-template-columns:minmax(0,1fr)!important; row-gap:.65rem; }
.abg[data-view=list] { --abg-media:min(7rem,31%); --abg-row-estimate:9rem; }
.abg[data-view=list][data-preview=small] { --abg-media:min(5rem,24%); --abg-row-estimate:7rem; }
.abg[data-view=list][data-preview=large] { --abg-media:min(10.5rem,38%); --abg-row-estimate:12rem; }
.abg[data-view=list] ul[data-abg-items] > li.abg-row,.abg .abg-row-layout { display:grid; grid-template-columns:var(--abg-media) minmax(0,1fr); align-items:start; column-gap:clamp(.45rem,1.1vw,.8rem); }
.abg[data-view=list] ul[data-abg-items] > li.abg-row { padding:.6rem; text-align:start; }
.abg .abg-row-layout { grid-column:1/-1; width:100%; min-width:0; }
.abg .abg-row-media { grid-area:1/1; min-width:0; }
.abg .abg-row-body { grid-area:1/2; min-width:0; display:flex; flex-direction:column; align-self:stretch; gap:.18rem; }
.abg[data-view=list] ul[data-abg-items] .abg-row-media .product-info { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"photo"; gap:.2rem; padding:0; margin:0; background:none; }
.abg[data-view=list] ul[data-abg-items] .abg-row-media :is(.woocommerce-loop-product__link,.abch-evg-product-link) { grid-area:photo; position:relative; display:block; margin:0; padding:0; }
.abg .abg-row-media .abch-evg-product-media { display:block; }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-media a img { display:block; float:none; width:100%!important; max-width:100%!important; height:auto!important; aspect-ratio:1; margin:0!important; padding:.38rem!important; background:#f6f3ed; object-fit:contain; }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-media :is(.button:not(.abchpc-cart-control),.abch-evg-add) { position:static; inset:auto; display:flex; align-items:center; justify-content:center; width:100%!important; min-width:0; min-height:2.75rem; margin:0; padding:.35rem!important; border:0; border-radius:.25rem; color:white!important; background:var(--abc-red-deep,#b93642); font-size:.8rem; line-height:1.2; white-space:normal; text-align:center; }
.abg .abg-row-media .abch-evg-product-actions { display:flex; flex-direction:column; align-items:stretch; border:0; padding:0; gap:.2rem; }
.abg .abg-row-media .abch-evg-text-link { order:1; align-self:center; }
.abg[data-view=list] ul[data-abg-items] > .abg-row .abg-row-media .button.abchpc-cart-control { grid-area:photo; place-self:end end; position:static; inset:auto; display:inline-flex; align-items:center; justify-content:center; width:2.75rem!important; min-width:0; height:2.75rem; min-height:0; margin:0; padding:0!important; border:1px solid currentColor; border-radius:50%; background:#fff; color:var(--abc-red-deep,#b93642)!important; transform:none; }
.abg[data-view=list] ul[data-abg-items] > .abg-row .abg-row-media .abchpc-cart-control:not(:hover):not(:focus-visible):not(.abchpc-is-added) { background:#fff; }
.abg[data-view=list] ul[data-abg-items] > .abg-row .abg-row-media .button.abchpc-cart-control:is(:hover,:focus-visible,.abchpc-is-added) { background:var(--abc-red-deep,#b93642); color:white!important; }
.abg[data-view=list] ul[data-abg-items] > .abg-row .abg-row-media .button.abchpc-cart-control.abchpc-is-added { background:#34745f; }
.abg[data-view=list] .abg-row-media .abchpc-cart-control .abchpc-cart-icon { display:block; }
.abg[data-view=list] .abg-row-media .abchpc-cart-control > .screen-reader-text { position:absolute!important; clip:rect(0,0,0,0)!important; clip-path:inset(50%)!important; width:1px!important; height:1px!important; overflow:hidden!important; white-space:nowrap!important; }
@media (hover:hover) and (pointer:fine) {
  .abg .abg-row:not(:hover):not(:focus-within) .abchpc-cart-control:not(.abchpc-is-added):not(.is-loading) { opacity:0; pointer-events:none; }
}
.abg[data-view=list] ul[data-abg-items] .abg-row .abchpf-family-chip { position:static; inset:auto; align-self:start; width:auto; max-width:100%; margin:0; }
.abg .abg-row-title { display:block; align-self:start; color:var(--abc-navy,#21384c); text-decoration:none; }
.abg .abg-row-title:hover { text-decoration:underline; }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-title h2 { display:block; margin:0!important; padding:0!important; border:0; min-height:0; background:none; color:inherit; font-size:1rem!important; line-height:1.22; font-weight:750; overflow-wrap:break-word; }
.abg .abg-row-description { margin:0; color:var(--abg-ink); font-size:.91rem; line-height:1.4; overflow-wrap:anywhere; }
.abg[data-detail=normal] .abg-row-description { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.abg .abg-row-specs { display:flex; flex-wrap:wrap; gap:.25rem 1rem; margin:0; font-size:.84rem; }
.abg .abg-row-specs div { display:flex; flex-wrap:wrap; gap:.25rem; }
.abg .abg-row-specs dt { font-weight:600; }
.abg .abg-row-specs dd { margin:0; }
.abg .abg-row-facts { display:flex; flex-wrap:wrap; align-items:stretch; justify-content:flex-start; gap:.35rem .45rem; margin-block-start:auto; padding-block-start:.2rem; }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-facts :is(.price,.abg-row-price) { order:-1; display:inline-flex!important; flex:0 1 auto; flex-wrap:wrap; align-self:stretch; align-content:center; align-items:baseline; gap:.1rem .3rem; min-width:0; min-height:2rem; width:auto; max-width:100%; margin:0; padding:.2rem .45rem; font-size:1.06rem; line-height:1.2; font-weight:750; background:#fbf7f0; }
.abg .abg-row-price,.abg .abg-row-sku,.abg .abg-row-brand { color:var(--abc-navy,#21384c); }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-facts :is(.abchpc-shelf-sku,.abg-row-sku,.abg-row-brand) { position:static; inset:auto; display:inline-flex!important; flex:0 1 auto; align-self:stretch; align-items:center; gap:.22rem; min-width:0; max-width:100%; min-height:2rem; margin:0; padding:.2rem .45rem; background:#f6f7f6; color:inherit; font-size:.85rem; line-height:1.25; overflow-wrap:anywhere; }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-facts :is(.abchpc-shelf-sku,.abchpc-shelf-unit) { visibility:visible; opacity:1; transform:none; }
.abg .abg-row-facts .abchpc-shelf-sku::before { content:"Код: "; }
.abg .abg-row-facts .abg-compare-add { order:1; margin:0; }
.abg[data-view=list][data-mode=all] [data-abg-items]>li:nth-child(n+9) { contain-intrinsic-size:auto var(--abg-row-estimate); }
.abg[data-mode=all] [data-abg-items]>li:nth-child(n+9) { content-visibility:auto; contain-intrinsic-size:auto 19rem; }
.abg .abg-compare-add,.abg .abg-comparison button { border:1px solid var(--abg-line); border-radius:.35rem; background:white; color:var(--abg-green); padding:.35rem .5rem; margin:.3rem .25rem; font-size:.84rem; cursor:pointer; }
.abg .abg-compare-add[aria-pressed=true] { background:#e5f3ec; }
.abg .abg-comparison { max-width:100%; overflow:auto; margin:.7rem 0; padding:.6rem; background:#f6f8f7; }
.abg .abg-comparison table { width:100%; border-collapse:collapse; font-size:.85rem; }
.abg .abg-comparison :is(td,th) { padding:.45rem; border:1px solid var(--abg-line); text-align:start; }
.abg .abg-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.35rem; padding:.75rem 0; }
.abg .abg-pages :is(a,strong) { display:inline-grid; min-width:2.4rem; min-height:2.4rem; place-items:center; padding:.35rem .65rem; border:1px solid var(--abg-line); border-radius:.4rem; color:var(--abg-green); }
.abg .abg-pages strong { color:white; background:var(--abg-green); }
.abg :focus-visible { outline:2px solid var(--abg-green); outline-offset:2px; }
@media(max-width:700px) {
  .abg ul[data-abg-items] { grid-template-columns:repeat(var(--abg-phone),minmax(0,1fr))!important; }
  .abg .abg-panel summary,.abg .abg-pages a,.abg .abg-picker input,.abg .abg-choice { min-height:44px; }
}
