/* Only the dedicated preview route emits this body class and root. */
body:has(#zb-home-next) :is(.page-top, .left_block, .left-block):not(:has(#zb-home-next)) {
    display: none;
}
body:has(#zb-home-next) .right_block:has(#zb-home-next) {
    float: none;
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

#zb-home-next {
    --hn-accent: var(--theme-base-color, #ff7700);
    --hn-ink: #1d201f;
    --hn-muted: #505654;
    --hn-link: #a83d00;
    --hn-line: #e6e0da;
    --hn-surface: #faf3eb;
    box-sizing: border-box;
    width: min(100%, 1440px);
    min-width: 0;
    margin-inline: auto;
    padding: 8px clamp(12px, 2vw, 24px) 32px;
    color: var(--hn-ink);
    scroll-margin-top: 112px;
}
#zb-home-next [hidden] { display: none !important; }
#zb-home-next :is(a, button, select, input, summary):focus-visible {
    outline: 2px solid var(--hn-link);
    outline-offset: 2px;
}
#zb-home-next :is(h1, h2, h3) { color: var(--hn-ink); text-wrap: balance; }
#zb-home-next :is(.hn-hero, .hn-promo, .hn-pets) p { text-wrap: pretty; }
#zb-home-next .hn-admin {
    margin: 0 0 8px;
    color: var(--hn-muted);
    font-size: 12px;
    line-height: 16px;
}

#zb-home-next .hn-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: clamp(248px, 27vw, 384px);
    padding: 24px clamp(24px, 3.5vw, 48px);
    border-radius: 16px;
    background: #fee1c4 url("/local/zoobaza/home-next/preview.php?view=asset&name=hero.webp") center center / cover no-repeat;
}
#zb-home-next .hn-hero h1 {
    max-width: 49%;
    margin: 0 0 8px;
    font-size: 60px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.045em;
}
#zb-home-next .hn-hero p {
    max-width: min(45%, 30ch);
    margin: 0 0 16px;
    color: #36423f;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
#zb-home-next :is(.hn-button, .hn-arrow) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    background: var(--hn-accent);
    color: #201307;
    font-weight: 700;
    text-decoration: none;
}
#zb-home-next .hn-button {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 24px;
}
#zb-home-next .hn-arrow {
    min-width: 44px;
    min-height: 36px;
    margin-top: auto;
    padding-inline: 8px;
    font-size: 20px;
    line-height: 28px;
}
#zb-home-next .hn-button:hover,
#zb-home-next .hn-promo:hover .hn-arrow { box-shadow: 0 0 0 2px rgba(116, 50, 16, .22); }
#zb-home-next :is(.hn-button, .hn-more, .hn-chips a):active { transform: translateY(1px); }

#zb-home-next .hn-promos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
#zb-home-next .hn-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: clamp(180px, 18vw, 280px);
    padding: 16px clamp(12px, 2vw, 24px);
    border-radius: 16px;
    background: var(--hn-promo-color, #fee5cc) var(--hn-promo-image, none) right center / cover no-repeat;
    color: var(--hn-ink);
    text-decoration: none;
}
#zb-home-next .hn-lower { --hn-promo-image: url("/local/zoobaza/home-next/preview.php?view=asset&name=lower.webp"); --hn-promo-color: #ffdfc5; }
#zb-home-next .hn-zooring { --hn-promo-image: url("/local/zoobaza/home-next/preview.php?view=asset&name=zooring.webp"); --hn-promo-color: #fbe4d3; }
#zb-home-next .hn-promo10 { --hn-promo-image: url("/local/zoobaza/home-next/preview.php?view=asset&name=promo10.webp"); --hn-promo-color: #ffe6c5; }
#zb-home-next .hn-promo h2 {
    max-width: 63%;
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.035em;
}
#zb-home-next .hn-promo p {
    max-width: 48%;
    margin: 0 0 8px;
    color: #343632;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}
#zb-home-next .hn-promo :is(.hn-discount, strong) {
    display: block;
    color: var(--hn-link);
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.06em;
}

#zb-home-next .hn-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 16px 0 24px;
    border: 1px solid var(--hn-line);
    border-radius: 12px;
    background: #f8f6f3;
}
#zb-home-next .hn-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 0;
    padding: 8px 12px;
    color: var(--hn-ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#zb-home-next .hn-links a:hover { color: var(--hn-link); }
#zb-home-next .hn-links svg { flex: 0 0 auto; }

#zb-home-next .hn-feed-head,
#zb-home-next .hn-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}
#zb-home-next .hn-feed-head { margin-bottom: 16px; }
#zb-home-next .hn-feed-head h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.035em;
}
#zb-home-next .hn-feed-head :is(p, small) {
    margin: 0;
    color: var(--hn-muted);
    font-size: 14px;
    line-height: 20px;
}
#zb-home-next .hn-pets {
    min-width: 0;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--hn-surface);
}
#zb-home-next .hn-pets :is(label, h3, legend, .hn-pets-label) {
    margin: 0 0 8px;
    padding: 0;
    color: var(--hn-ink);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}
#zb-home-next .hn-pets p {
    margin: 8px 0 0;
    color: var(--hn-muted);
    font-size: 14px;
    line-height: 20px;
}
#zb-home-next .hn-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
#zb-home-next .hn-chips a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    max-width: 100%;
    padding: 4px 16px;
    border: 1px solid var(--hn-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hn-ink);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
#zb-home-next .hn-chips a:hover { border-color: var(--hn-link); }
#zb-home-next .hn-chips a:is(.is-active, [aria-current="true"], [aria-current="page"]) {
    border-color: transparent;
    background: var(--hn-accent);
    color: #201307;
}

#zb-home-next :is(form.hn-tools, .hn-tools form) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
    margin: 12px 0 16px;
}
#zb-home-next :is(form.hn-tools, .hn-tools form) > :is(label, select, .hn-filter) {
    flex: 1 1 136px;
    min-width: 0;
    margin: 0;
}
#zb-home-next .hn-tools label { color: var(--hn-muted); font-size: 12px; line-height: 16px; }
#zb-home-next .hn-tools :is(select, input[type="number"], input[type="search"]) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d6d4d1;
    border-radius: 8px;
    background: #fff;
    color: var(--hn-ink);
    font: inherit;
    font-size: 14px;
    line-height: 20px;
}
#zb-home-next .hn-tools select { text-overflow: ellipsis; }
#zb-home-next .hn-results-head { margin-bottom: 12px; }
#zb-home-next .hn-results-head h3 {
    margin: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -.035em;
}
#zb-home-next .hn-results-head :is(a, button) {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--hn-link);
    font: inherit;
    font-weight: 600;
    text-align: left;
}
#zb-home-next .hn-results-head :is(a, button):hover { text-decoration: underline; }
#zb-home-next :is(#hn-products, .hn-batch) { min-width: 0; }
#zb-home-next :is(#hn-feed, #hn-products) { scroll-margin-top: 112px; }
#zb-home-next #hn-products .catalog_block {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}
#zb-home-next #hn-products .catalog_block::before,
#zb-home-next #hn-products .catalog_block::after { content: none; }
#zb-home-next #hn-products .catalog_block > :is(.catalog_item_wrapp, .catalog-block-view__item) {
    float: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
}
#zb-home-next #hn-products :is(.item-stock, .item-stock .value, .item-title) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
#zb-home-next .hn-more {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 12px 0 0;
    padding: 8px 16px;
    border: 1px solid var(--hn-line);
    border-radius: 8px;
    background: #f4f3f1;
    color: var(--hn-ink);
    font: inherit;
    font-weight: 600;
}
#zb-home-next .hn-more:hover:not(:disabled) { background: var(--hn-surface); }
#zb-home-next .hn-more:disabled { cursor: default; opacity: .7; }
#zb-home-next .hn-status {
    margin: 8px 0 0;
    color: var(--hn-muted);
    font-size: 14px;
    line-height: 20px;
}
#zb-home-next .hn-status:empty { display: none; }

@media (max-width: 1100px) {
    #zb-home-next .hn-hero h1 { font-size: 48px; }
    #zb-home-next .hn-feed-head h2 { font-size: 36px; line-height: 40px; }
    #zb-home-next .hn-promo h2 { font-size: 24px; }
    #zb-home-next .hn-promo :is(.hn-discount, strong) { font-size: 36px; }
}
@media (max-width: 767px) {
    #zb-home-next { padding: 4px 8px 24px; }
    #zb-home-next .hn-hero {
        min-height: 148px;
        padding: 12px;
        border-radius: 12px;
        background-size: auto 100%;
        background-position: 62% center;
    }
    #zb-home-next .hn-hero h1 { max-width: 59%; font-size: 24px; line-height: 1; }
    #zb-home-next .hn-hero p { max-width: 52%; margin-bottom: 8px; font-size: 12px; line-height: 16px; }
    #zb-home-next .hn-button { min-height: 36px; padding: 4px 12px; font-size: 12px; line-height: 16px; }
    #zb-home-next .hn-promos { grid-template-columns: minmax(0, 1fr); margin-top: 8px; gap: 8px; }
    #zb-home-next .hn-promo { min-height: 116px; padding: 8px 12px; border-radius: 12px; }
    #zb-home-next .hn-promo h2 { max-width: 55%; font-size: 20px; line-height: 1; }
    #zb-home-next .hn-promo p { margin-bottom: 4px; font-size: 12px; line-height: 16px; }
    #zb-home-next .hn-promo :is(.hn-discount, strong) { font-size: 30px; line-height: 1; }
    #zb-home-next .hn-arrow { min-height: 28px; min-width: 36px; font-size: 16px; line-height: 20px; }
    #zb-home-next .hn-links { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 8px 0 12px; }
    #zb-home-next .hn-links a { justify-content: flex-start; min-height: 40px; }
    #zb-home-next .hn-links a + a { border-top: 1px solid var(--hn-line); }
    #zb-home-next .hn-feed-head,
    #zb-home-next .hn-results-head { align-items: start; flex-direction: column; }
    #zb-home-next .hn-feed-head { margin-bottom: 8px; }
    #zb-home-next .hn-feed-head h2 { font-size: 24px; line-height: 28px; }
    #zb-home-next .hn-pets { padding: 8px 12px; border-color: var(--hn-line); }
    #zb-home-next .hn-pets :is(label, h3, legend, .hn-pets-label) { font-size: 16px; line-height: 24px; }
    #zb-home-next .hn-pets p,
    #zb-home-next .hn-feed-head :is(p, small) { font-size: 12px; line-height: 16px; }
    #zb-home-next .hn-chips { gap: 4px 8px; }
    #zb-home-next .hn-chips a { min-height: 32px; padding: 4px 12px; font-size: 12px; line-height: 16px; }
    #zb-home-next :is(form.hn-tools, .hn-tools form) { margin: 8px 0 12px; gap: 8px; }
    #zb-home-next :is(form.hn-tools, .hn-tools form) > :is(label, select, .hn-filter) { flex-basis: 40%; }
    #zb-home-next .hn-results-head h3 { font-size: 20px; line-height: 24px; }
    #zb-home-next #hn-products .catalog_block { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 360px) {
    #zb-home-next .hn-hero h1 { max-width: 60%; font-size: 20px; }
    #zb-home-next .hn-hero { background-position: 58% center; }
}
@media (prefers-reduced-motion: reduce) {
    #zb-home-next :is(.hn-button, .hn-more, .hn-chips a):active { transform: none; }
}

#zb-home-next .hn-promo em{font-style:normal;display:block;color:var(--hn-accent);font-size:1.5em;line-height:1}
#zb-home-next .hn-admin{display:flex;flex-wrap:wrap;gap:4px 18px;padding:8px 0}
#zb-home-next #hn-pet-label{display:block;font-size:24px;line-height:1.3;margin-bottom:12px}
#zb-home-next .hn-native-details{width:100%;padding:12px 0}
#zb-home-next .hn-native-details summary{cursor:pointer;font-weight:600;padding:12px;border:1px solid #e6e0da;border-radius:8px}
#zb-home-next #hn-native{padding:16px 0}
#zb-home-next .hn-pause{display:block;border:0;background:none;padding:12px;margin:0 auto;color:#666;font-size:13px}
#zb-home-next #hn-feed{scroll-margin-top:100px}
#zb-home-next .hn-tools form label{display:grid;gap:4px;font-size:12px;color:#666}
@media(max-width:767px){#zb-home-next #hn-pet-label{font-size:20px}}

#zb-home-next #hn-feed{scroll-margin-top:150px}
body:has(#zb-home-next){overflow-anchor:none}

#zb-home-next .hn-tools form{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
@media(max-width:767px){#zb-home-next .hn-tools form{grid-template-columns:repeat(2,minmax(0,1fr))}#zb-home-next .hn-tools form .hn-button{align-self:end}}

/* Popular cat/dog food brands — administrator preview only. */
#zb-home-next .hn-brands{margin:32px 0 40px}
#zb-home-next .hn-brands-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
#zb-home-next .hn-brands-heading h2{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.025em;margin:0 0 6px}
#zb-home-next .hn-brands-heading p{font-size:14px;color:var(--hn-muted);margin:0;line-height:1.4}
#zb-home-next .hn-brands-heading>a{color:var(--hn-link);font-size:14px;font-weight:600;white-space:nowrap}
#zb-home-next .hn-brand-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
#zb-home-next .hn-brand{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-width:0;padding:16px 10px 12px;border:1px solid #e9e6e2;border-radius:12px;background:#fff;text-decoration:none;transition:border-color .15s,box-shadow .15s}
#zb-home-next .hn-brand:hover{border-color:var(--hn-accent);box-shadow:0 5px 18px #00000008}
#zb-home-next .hn-brand img{display:block;width:100%;height:72px;object-fit:contain;mix-blend-mode:multiply}
#zb-home-next .hn-brand-name{display:flex;align-items:center;justify-content:center;min-height:72px;font-size:19px;font-weight:700;line-height:1.15;text-align:center;color:#222}
#zb-home-next .hn-brand-caption{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:12px;font-size:11px;line-height:1.3;color:#555;text-align:center}
#zb-home-next .hn-brand-caption>span{color:var(--hn-accent)}
@media(max-width:1100px){#zb-home-next .hn-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){#zb-home-next .hn-brands{margin:24px 0 30px}#zb-home-next .hn-brands-heading{align-items:start;flex-wrap:wrap;gap:10px}#zb-home-next .hn-brands-heading h2{font-size:24px}#zb-home-next .hn-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#zb-home-next .hn-brand{padding:12px}#zb-home-next .hn-brand img,#zb-home-next .hn-brand-name{height:60px;min-height:60px}#zb-home-next .hn-brand-caption{margin-top:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#zb-home-next .hn-brand{transition:none}}

/* Dedicated promotion pages and exact participating ZooRing product. */
#zb-home-next .hn-zooring{background:radial-gradient(ellipse at 80% 70%,#ffe4b8 0%,#ffbd90 65%,#ffc7a4 100%);isolation:isolate}
#zb-home-next .hn-zooring-product{position:absolute;right:3%;bottom:3%;height:86%;width:47%;object-fit:contain;z-index:-1;filter:drop-shadow(8px 12px 8px #70330c25)}
#zb-home-next .hn-offer-heading{margin:16px 0 28px;padding:24px;background:#fff3e9;border-radius:16px}
#zb-home-next .hn-offer-heading h1{font-size:36px;line-height:1.15;margin:16px 0}
#zb-home-next .hn-offer-heading nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
#zb-home-next .hn-offer-heading nav a{padding:9px 14px;border:1px solid #e4cab7;border-radius:24px;background:white;color:#984000}
#zb-home-next .hn-offer-heading nav a[aria-current]{background:#ff7900;color:#fff;border-color:#ff7900}
@media(max-width:600px){#zb-home-next .hn-offer-heading{padding:18px}#zb-home-next .hn-offer-heading h1{font-size:28px}#zb-home-next .hn-zooring-product{height:90%;right:4%;width:43%}}
