.apt-archive-container:has(#apt.apt-catalog){max-width:1480px;margin:auto;padding:24px 24px 48px;background:#faf9fc}
#apt.apt-catalog{--catalog-accent:#6f167e;--catalog-border:#e8e3ec;--catalog-ink:#201b27;width:100%;margin:0;color:var(--catalog-ink)}
#apt.apt-catalog>h1{justify-content:flex-start;font-size:30px;line-height:1.25;letter-spacing:-.025em;margin:14px 0 24px;color:var(--catalog-ink)}
#apt.apt-catalog>h1:before,#apt.apt-catalog>h1:after{display:none}
#apt.apt-catalog .apt-tabs,#apt.apt-catalog .apt-main>.apt-brand-intro,#apt.apt-catalog .apt-brand-logo,#apt.apt-catalog form .apt-sort{display:none!important}
#apt.apt-catalog .apt-layout{grid-template-columns:220px minmax(0,1fr);gap:24px;padding:0;border:0;background:transparent}
#apt.apt-catalog .apt-filters{padding:10px 16px 16px;border:1px solid var(--catalog-border);border-radius:14px;background:#fff}
#apt.apt-catalog summary{font-size:14px}
#apt.apt-catalog .apt-filters label{font-size:12px;line-height:1.45}
#apt.apt-catalog .apt-catalog-price-hint{display:block;line-height:1.5;color:#716879;font-size:11px;margin-top:10px}
#apt.apt-catalog .apt-catalog-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin:0 0 22px;padding:16px;border:1px solid var(--catalog-border);border-radius:14px;background:#fff}
#apt.apt-catalog .apt-catalog-tools label{display:flex;flex:1 1 230px;flex-direction:column;gap:7px;font-size:12px;font-weight:500;margin:0;min-width:0;color:#716879}
#apt.apt-catalog .apt-catalog-tools select{margin:0;width:100%;height:44px;border:1px solid #dcd3e3;border-radius:8px;box-shadow:none;font:inherit;font-size:13px;color:var(--catalog-ink);background-color:#fff;white-space:nowrap}
#apt.apt-catalog .apt-view-switch{display:flex;gap:3px;background:#f4edf7;padding:3px;border:1px solid var(--catalog-border);border-radius:10px}
#apt.apt-catalog .apt-view-switch button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;margin:0;border:0;border-radius:7px;background:transparent;color:#716879;line-height:1.3;font-size:12px;letter-spacing:0;text-transform:none;white-space:nowrap}
#apt.apt-catalog .apt-view-switch [aria-pressed=true]{background:var(--catalog-accent);color:#fff;box-shadow:0 2px 5px #6f167e12}
#apt.apt-catalog .apt-view-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
#apt.apt-catalog .apt-toolbar{padding:12px;margin:0 0 18px;border:1px solid var(--catalog-border);border-radius:12px;background:#fff;gap:12px}
#apt.apt-catalog .apt-search{min-width:160px}
#apt.apt-catalog .apt-pages :is(a,span[aria-disabled]){display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;margin:0;padding:0 8px;border:1px solid var(--catalog-border);border-radius:7px;font-size:12px;font-weight:500;line-height:1;text-decoration:none;background:#fff;color:var(--catalog-ink)}
#apt.apt-catalog .apt-pages [aria-current=page]{color:#fff;background:var(--catalog-accent);border-color:var(--catalog-accent)}
#apt.apt-catalog .apt-pages [aria-disabled]{opacity:.35}
#apt.apt-catalog .apt-pages a:hover{border-color:var(--catalog-accent)}
#apt.apt-catalog .apt-catalog-photo,#apt.apt-catalog .apt-catalog-price{display:none}
#apt.apt-catalog[data-view=grid] .apt-table{display:block!important;table-layout:auto;border:0;background:transparent!important}
#apt.apt-catalog[data-view=grid] .apt-table thead{display:none!important}
#apt.apt-catalog[data-view=grid] .apt-table tbody{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%}
#apt.apt-catalog[data-view=grid] .apt-table tr{display:flex!important;flex-direction:column;position:relative;min-width:0;width:100%!important;height:auto;margin:0;padding:14px!important;border:1px solid var(--catalog-border)!important;border-radius:14px;background:#fff!important;box-shadow:0 3px 18px #27123403;transition:border-color .15s,box-shadow .15s}
@media(hover:hover) and (pointer:fine){
 #apt.apt-catalog[data-view=grid] .apt-table tr:hover{border-color:#d0bdd8!important;box-shadow:0 7px 22px #2712340a}
}
#apt.apt-catalog[data-view=grid] .apt-table tr.apt-is-selected{background:var(--apt-selection-bg)!important;border-color:#b99fc5!important}
#apt.apt-catalog[data-view=grid] .apt-table td{display:block!important;position:static!important;flex:0 0 auto;min-height:0!important;min-width:0;width:100%!important;height:auto;padding:0!important;border:0!important;overflow:visible!important;text-align:left}
#apt.apt-catalog[data-view=grid] .apt-table td:first-child{position:absolute!important;z-index:2;left:12px;top:12px;width:24px!important;height:24px!important}
#apt.apt-catalog[data-view=grid] .apt-table td:nth-child(2){flex:1 0 auto}
#apt.apt-catalog[data-view=grid] .apt-table td:nth-child(3){display:flex!important;align-items:center;gap:7px;padding-top:10px!important;font-size:11px;color:#716879;min-height:28px!important}
#apt.apt-catalog[data-view=grid] .apt-table td:nth-child(3):before{content:'Наличие';font-size:11px;color:#716879}
#apt.apt-catalog[data-view=grid] .apt-table tr.apt-is-unavailable td:nth-child(3){display:none!important}
#apt.apt-catalog[data-view=grid] .apt-table td:last-child{padding-top:10px!important;margin-top:auto}
#apt.apt-catalog[data-view=grid] .apt-catalog-photo{display:flex;align-items:center;justify-content:center;height:168px;margin:10px 6px 15px;overflow:hidden}
#apt.apt-catalog[data-view=grid] .apt-catalog-photo img{display:block!important;position:static!important;width:100%!important;height:100%!important;object-fit:contain;transform:none;margin:0;border-radius:6px}
#apt.apt-catalog[data-view=grid] .apt-logo{display:none!important}
#apt.apt-catalog[data-view=grid] .apt-title{padding:0!important;min-height:44px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px}
#apt.apt-catalog[data-view=grid] .apt-title-line{display:block!important;width:100%;padding:0!important;line-height:1.4}
#apt.apt-catalog[data-view=grid] .apt-title-line>a{display:block;min-height:42px;font-size:14px;line-height:1.45;color:var(--catalog-ink)!important;overflow-wrap:anywhere}
#apt.apt-catalog[data-view=grid] .apt-title-line .apt-heart{display:flex;align-items:center;justify-content:center;position:absolute;z-index:2;top:10px;right:10px;width:38px;height:38px;margin:0;border:1px solid #eee7f1;border-radius:50%;background:#fff}
#apt.apt-catalog[data-view=grid] .apt-title-line .apt-heart svg{width:18px;height:18px}
#apt.apt-catalog[data-view=grid] .apt-description,#apt.apt-catalog[data-view=grid] .apt-taste-label{display:none!important}
#apt.apt-catalog[data-view=grid] .apt-quick-row{min-height:34px;margin:2px 0 0;padding:0!important}
#apt.apt-catalog[data-view=grid] .apt-quick{min-height:34px;font-size:12px}
#apt.apt-catalog[data-view=grid] .apt-catalog-price{display:block;font-size:19px;font-weight:600;line-height:1.3;margin:0 0 10px;color:var(--catalog-ink)}
#apt.apt-catalog[data-view=grid] .apt-purchase{display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:8px;width:100%;margin:0}
#apt.apt-catalog[data-view=grid] .apt-purchase .apt-pack{flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px;font-size:12px;box-sizing:border-box}
#apt.apt-catalog[data-view=grid] .apt-purchase>.apt-order{display:grid!important;flex:none!important;grid-template-columns:minmax(108px,1fr) 25px 44px;align-items:center;width:100%!important;min-width:177px;max-width:100%;height:46px;margin:0!important;border-radius:24px;background:#fff}
#apt.apt-catalog[data-view=grid] .apt-order .apt-quantity{display:grid;grid-template-columns:repeat(3,minmax(36px,1fr));min-width:108px;height:44px}
#apt.apt-catalog[data-view=grid] .apt-qty-step{min-width:36px!important;width:100%!important;height:44px!important;font-size:17px}
#apt.apt-catalog[data-view=grid] .apt-count-value{display:flex;align-items:center;justify-content:center;min-width:36px;font-size:13px}
#apt.apt-catalog[data-view=grid] .apt-order>span{padding:0 8px 0 2px;font-size:11px}
#apt.apt-catalog[data-view=grid] .apt-order .apt-add{min-width:44px;width:44px;min-height:44px;height:44px}
#apt.apt-catalog .apt-row-message:empty{display:none}
#apt.apt-catalog .apt-unavailable{display:block;padding:12px 0;color:#716879;font-size:13px}
#apt.apt-catalog :is(a,button,select,input):focus-visible{outline:2px solid var(--catalog-accent);outline-offset:3px}
.apt-archive-description{padding:24px;margin:26px 0 0;border:1px solid #e8e3ec;border-radius:14px;background:#fff;color:#716879;font-size:14px;line-height:1.7}
.apt-archive-description p:last-child{margin-bottom:0}
@media(min-width:1500px){#apt.apt-catalog[data-view=grid] .apt-table tbody{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1199px){#apt.apt-catalog[data-view=grid] .apt-table tbody{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#apt.apt-catalog .apt-layout{display:block}#apt.apt-catalog .apt-filters{display:none}#apt.apt-catalog .apt-filters.is-open{display:block}#apt.apt-catalog .apt-mobile-actions{margin:0 0 14px}#apt.apt-catalog .apt-catalog-tools{gap:12px;padding:12px}#apt.apt-catalog .apt-catalog-tools label{flex-basis:200px}}
@media(max-width:700px){.apt-archive-container:has(#apt.apt-catalog){padding:16px 12px 28px}#apt.apt-catalog>h1{font-size:23px;margin:10px 0 18px}#apt.apt-catalog .apt-catalog-tools label{flex-basis:100%;font-size:12px}#apt.apt-catalog .apt-view-switch{width:100%}#apt.apt-catalog .apt-view-switch button{flex:1}#apt.apt-catalog .apt-catalog-tools select{font-size:16px}#apt.apt-catalog .apt-toolbar{padding:12px}#apt.apt-catalog .apt-pages :is(a,span[aria-disabled]){min-width:32px;height:32px;font-size:12px}#apt.apt-catalog[data-view=grid] .apt-table td:first-child{display:none!important}#apt.apt-catalog[data-view=grid] .apt-title-line .apt-heart{width:44px;height:44px}#apt.apt-catalog[data-view=grid] .apt-title-line>a{font-size:15px}#apt.apt-catalog[data-view=grid] .apt-catalog-photo{height:160px}#apt.apt-catalog[data-view=grid] .apt-quick{min-height:44px}#apt.apt-catalog .apt-mobile-stock-guide{gap:8px;margin-bottom:16px}.apt-archive-description{padding:16px;font-size:13px}}
@media(max-width:599px){#apt.apt-catalog[data-view=grid] .apt-table tbody{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#apt.apt-catalog .apt-catalog-photo{max-width:260px;margin-left:auto!important;margin-right:auto!important}#apt.apt-catalog[data-view=grid] .apt-table tr{padding:10px!important}}
@media(prefers-reduced-motion:reduce){#apt.apt-catalog .apt-table tr{transition:none}}
@media(max-width:700px){#apt.apt-catalog[data-view=grid] .apt-table tr.apt-is-selected{background:#fff!important}}
#apt.apt-catalog[data-view=grid] .apt-title,#apt.apt-catalog[data-view=grid] .apt-title-line{position:static!important}
#apt.apt-catalog .apt-catalog-directory{padding:0 0 18px;margin:0 0 16px;border-bottom:1px solid var(--catalog-border)}
#apt.apt-catalog .apt-catalog-directory summary{justify-content:flex-start;gap:8px;min-height:40px;font-size:12px;color:var(--catalog-accent)}
#apt.apt-catalog .apt-catalog-directory summary:after{margin-left:0}
#apt.apt-catalog .apt-catalog-directory nav{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}
#apt.apt-catalog .apt-catalog-directory a{padding:8px 12px;border:1px solid var(--catalog-border);border-radius:8px;background:#fff;font-size:12px;line-height:1.4;color:var(--catalog-ink)}
#apt.apt-catalog .apt-catalog-directory [aria-current=page]{border-color:var(--catalog-accent);color:var(--catalog-accent)}

#apt.apt-catalog .apt-pages a[aria-current=page]{color:#fff!important;background:var(--catalog-accent)!important;border-color:var(--catalog-accent)!important}
#apt.apt-catalog{--apt-page-color:#6f167e!important}
#apt.apt-catalog .apt-show-products{background:var(--catalog-accent);border-radius:8px;font-weight:600}
#apt.apt-catalog .apt-filters input[type=checkbox]{accent-color:var(--catalog-accent)}

#apt.apt-catalog .apt-catalog-empty{flex-basis:100%;padding:12px 0;font-size:13px;line-height:1.6}
#apt.apt-catalog .apt-catalog-empty button{margin:0;border:0;border-radius:8px;min-height:44px;padding:8px 16px;background:var(--catalog-accent);color:white;text-transform:none;letter-spacing:0;font-size:13px}

/* Compact two-column phone cards preserve native pack selection. */
.apt-catalog-pack-control{display:contents}
.apt-catalog-pack-value{display:none}
@media(max-width:599px){
 #apt.apt-catalog[data-view=grid] .apt-catalog-photo{height:112px;margin:22px 0 10px;max-width:100%}
 #apt.apt-catalog[data-view=grid] .apt-title-line>a{font-size:12px;line-height:1.25;min-height:0}
 #apt.apt-catalog[data-view=grid] .apt-title{gap:2px;min-height:0;line-height:1.25}
 #apt.apt-catalog[data-view=grid] .apt-quick-row{min-height:28px;gap:3px;flex-wrap:wrap;margin-top:3px}
 #apt.apt-catalog[data-view=grid] .apt-quick{font-size:10px;min-height:28px;line-height:1.15;white-space:normal;padding:3px 0}
 #apt.apt-catalog[data-view=grid] .apt-quick svg{width:11px;height:11px;flex-shrink:0}
 #apt.apt-catalog[data-view=grid] .apt-title-line .apt-heart{top:2px;right:2px;border:0;background:transparent}
 #apt.apt-catalog[data-view=grid] .apt-table td:nth-child(3){gap:4px;font-size:10px;flex-wrap:wrap;padding-top:4px!important;min-height:22px!important}
 #apt.apt-catalog[data-view=grid] .apt-table td:nth-child(3):before{font-size:10px}
 #apt.apt-catalog[data-view=grid] .apt-catalog-price{font-size:16px;margin-bottom:5px}
 #apt.apt-catalog[data-view=grid] .apt-catalog-pack-control{display:block;position:relative;min-height:42px;width:100%;border:1px solid #e5e1e8;border-radius:12px;background:white}
 #apt.apt-catalog[data-view=grid] .apt-catalog-pack-value{display:flex;align-items:center;justify-content:center;min-height:40px;padding:5px 14px 5px 5px;font-size:11px;line-height:1.35;font-weight:600;overflow-wrap:anywhere;white-space:normal;pointer-events:none;text-align:center;color:#201b27}
 #apt.apt-catalog[data-view=grid] .apt-catalog-pack-control:after{content:'';position:absolute;right:5px;top:17px;width:5px;height:5px;border:solid #716879;border-width:0 1px 1px 0;transform:rotate(45deg);pointer-events:none}
 #apt.apt-catalog[data-view=grid] .apt-catalog-pack-control .apt-pack{position:absolute;inset:0;opacity:0!important;width:100%!important;height:100%;padding:0;margin:0;cursor:pointer;font-size:16px!important;-webkit-appearance:none;appearance:none;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent}
 #apt.apt-catalog[data-view=grid] .apt-purchase>.apt-order{display:grid!important;grid-template-columns:minmax(0,1fr) 36px;position:relative;min-width:0;height:44px;gap:0;border-radius:12px;overflow:hidden}
 #apt.apt-catalog[data-view=grid] .apt-order .apt-quantity{grid-template-columns:minmax(24px,1fr) minmax(32px,.8fr) minmax(24px,1fr);min-width:0;width:100%;height:42px}
 #apt.apt-catalog[data-view=grid] .apt-qty-step{min-width:24px!important;width:100%!important;height:42px!important;font-size:15px}
 #apt.apt-catalog[data-view=grid] .apt-count-value{display:flex;align-items:center;justify-content:center;gap:2px;min-width:32px;height:42px;padding:0;font-size:12px;line-height:1}
 #apt.apt-catalog[data-view=grid] .apt-order>span{display:none}
 #apt.apt-catalog[data-view=grid] .apt-order .apt-add{width:36px;min-width:36px;height:42px;min-height:42px;border-radius:0;margin:0;grid-column:2}
 #apt.apt-catalog[data-view=grid] .apt-purchase{gap:5px}
 #apt.apt-catalog[data-view=grid] .apt-tag{font-size:9px;padding:3px 4px;line-height:1.2}
}
@media(max-width:359px){#apt.apt-catalog[data-view=grid] .apt-table tr{padding:8px!important}#apt.apt-catalog[data-view=grid] .apt-catalog-photo{height:100px}#apt.apt-catalog[data-view=grid] .apt-quick{font-size:9px}}

@media(max-width:599px){#apt.apt-catalog[data-view=grid] .apt-table td:last-child{padding-top:6px!important}#apt.apt-catalog[data-view=grid] .apt-order .apt-cart-icon{width:22px;height:22px}}

/* Keep number and unit on one baseline; touch taps must not leave a hover fill. */
@media(max-width:599px){
 #apt.apt-catalog[data-view=grid] .apt-count-value:after{content:'шт';font-size:9px;font-weight:500;line-height:1;color:#555}
 #apt.apt-catalog[data-view=grid] .apt-qty-step,#apt.apt-catalog[data-view=grid] .apt-qty-step:hover:not(:disabled){background:transparent!important;-webkit-tap-highlight-color:transparent;border-radius:0}
 #apt.apt-catalog[data-view=grid] .apt-qty-step:active:not(:disabled){background:transparent!important;color:#008744}
}
@media(max-width:359px){#apt.apt-catalog[data-view=grid] .apt-table tr{padding-left:7px!important;padding-right:7px!important}#apt.apt-catalog[data-view=grid] .apt-count-value{font-size:11px}}
