/* VG-103: rules of the category, brand, collection, search and brands pages, moved out of index_home.css (loaded only on those pages, right after index_home.css and before vg-refresh.css, so the cascade order is kept). */
/* Category hero band: same height, tint and composition as the home hero (art start side, title + text end side). Grows when the text is expanded. */
.vg-cat-hero { background: var(--vg-cat-tint, #eef2f7); color: var(--vg-text); }
.vg-cat-hero-inner { display: grid; width: var(--vg-content-width); max-width: var(--vg-content-max); min-height: clamp(350px, 31vw, 450px); margin-inline: auto; padding-block: 18px 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "title" "desc"; grid-template-rows: auto auto 1fr; align-content: start; column-gap: 32px; }
.vg-cat-hero-inner.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "crumbs crumbs" "art title" "art desc"; grid-template-rows: auto auto 1fr; }
.vg-cat-title { grid-area: title; align-self: end; margin: 0 0 16px; padding: 0; min-width: 0; font-family: inherit; font-size: clamp(30px, 2vw, 44px); font-weight: 700; line-height: 1.18; letter-spacing: -.6px; text-align: start; color: var(--vg-text); overflow-wrap: anywhere; }
.vg-cat-hero-inner:not(.has-art) .vg-cat-title { align-self: start; }
.vg-cat-hero-art { grid-area: art; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding-block: 8px; }
.vg-cat-hero-art picture { display: flex; align-items: center; justify-content: center; width: 100%; }
.vg-cat-hero-art img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; mix-blend-mode: multiply; }

.vg-cat-desc { grid-area: desc; align-self: start; position: relative; min-width: 0; max-width: 72ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; text-align: start; color: var(--vg-c-373737); }
.vg-cat-desc-text { max-height: calc(1.6em * 5); overflow: hidden; transition: max-height .4s cubic-bezier(.2, .65, .2, 1); }
.vg-cat-desc-text, .vg-cat-desc-text * { text-align: start; }
.vg-cat-desc-text > :first-child { margin-top: 0; }
.vg-cat-desc-text p, .vg-cat-desc-text ul, .vg-cat-desc-text ol { margin: 0 0 .5em; }
.vg-cat-desc-text > :last-child { margin-bottom: 0; }
.vg-cat-desc-text a { color: var(--vg-green-dark); }
.vg-cat-desc-text img { max-width: 100%; height: auto; }
.vg-cat-desc-toggle { position: absolute; inset-block-end: 0; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 0 0 0 2.6em; border: 0; background: linear-gradient(90deg, transparent, var(--vg-cat-tint, #eef2f7) 2.2em); color: var(--vg-green-dark); font: inherit; font-weight: 700; line-height: inherit; white-space: nowrap; cursor: pointer; }
[dir=rtl] .vg-cat-desc-toggle { padding: 0 2.6em 0 0; background: linear-gradient(270deg, transparent, var(--vg-cat-tint, #eef2f7) 2.2em); }
.vg-cat-desc-toggle::after { content: ''; width: .5em; height: .5em; margin-top: -.25em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s; }
.vg-cat-desc-toggle:hover { text-decoration: underline; }
.vg-cat-desc-toggle:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; border-radius: 4px; }
.vg-cat-desc.is-open .vg-cat-desc-toggle { position: static; margin-top: 8px; padding: 0; background: none; }
.vg-cat-desc.is-open .vg-cat-desc-toggle::after { margin-top: .25em; transform: rotate(-135deg); }

/* Layout: sub-category menu (sticky) + listing. */
.vg-cat-page { width: var(--vg-content-width); max-width: var(--vg-content-max); margin: 0 auto; padding-block: 28px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.vg-cat-page.has-side { grid-template-columns: 250px minmax(0, 1fr); }
.vg-cat-side { display: flex; flex-direction: column; padding: 18px 12px 12px; border: 1px solid var(--vg-c-e6eddd); border-radius: 14px; background: #f5f6f2; }
.vg-cat-side > nav { flex: 0 0 auto; }
.vg-cat-side h2 { margin: 0 0 8px; padding-inline: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vg-green-dark); }
.vg-cat-side-list, .vg-cat-subdrop-list { margin: 0; padding: 0; list-style: none; }
.vg-cat-side-list a, .vg-cat-subdrop-list a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--vg-text); font-size: 15px; line-height: 1.4; text-decoration: none; unicode-bidi: plaintext; transition: background .2s, color .2s, padding .2s; }
.vg-cat-side-list a:hover, .vg-cat-subdrop-list a:hover { background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); }
.vg-cat-side a:focus-visible, .vg-cat-subdrop a:focus-visible, .vg-cat-subdrop summary:focus-visible, .vg-cat-select select:focus-visible, .vg-cat-more-button:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }

.vg-cat-main { min-width: 0; }
.vg-cat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--vg-c-e6eddd); scroll-margin-top: calc(var(--vg-shell-height, 140px) + 12px); }
.vg-cat-count { margin: 0; font-weight: 400; color: var(--vg-text-muted); }
.vg-cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vg-cat-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.vg-cat-select { position: relative; display: block; margin: 0; }
.vg-cat-subdrop { display: none; position: relative; }
.vg-cat-subdrop summary { list-style: none; }
.vg-cat-subdrop summary::-webkit-details-marker { display: none; }
.vg-cat-subdrop nav { position: absolute; z-index: 20; top: calc(100% + 6px); inset-inline-start: 0; width: min(320px, calc(100vw - 2 * var(--vg-content-gutter))); max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--vg-c-dce7d2); border-radius: 12px; background: var(--vg-white); box-shadow: 0 10px 24px var(--vg-c-213d1420); }
.vg-cat-apply { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--vg-green); color: var(--vg-white); font: inherit; font-weight: 700; }

/* Product grid: same card as the home rails. */
.vg-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.vg-cat-grid .vg-product-card { min-width: 0; }
.vg-cat-grid .vg-product-card.is-new { animation: vg-cat-in .5s ease-out; }
.vg-cat-empty { margin: 0; padding: 56px 16px; text-align: center; color: var(--vg-text-muted); font-size: 17px; }
.vg-cat-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 96px; margin-top: 12px; }
.vg-cat-spinner { width: 34px; height: 34px; border: 3px solid var(--vg-c-e1efc9); border-top-color: var(--vg-green); border-radius: 50%; opacity: 0; transition: opacity .2s; animation: vg-cat-spin .8s linear infinite; }
.vg-cat-more.is-loading .vg-cat-spinner { opacity: 1; }
.vg-cat-status { min-height: 1.6em; margin: 0; color: var(--vg-text-muted); font-size: 15px; }
.vg-cat-more-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 28px; border: 0; border-radius: 8px; background: var(--vg-green); color: var(--vg-c-163707); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.vg-cat-more-button:hover { background: var(--vg-c-73b215); }
.vg-cat-sentinel { width: 100%; height: 1px; }

@media (max-width: 1100px) { .vg-cat-page.has-side { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
    .vg-cat-page, .vg-cat-page.has-side { grid-template-columns: minmax(0, 1fr); padding-block: 20px 48px; }
    .vg-cat-side { display: none; }
    .vg-cat-subdrop { display: block; }
    .vg-cat-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .vg-cat-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vg-cat-subdrop { grid-column: 1 / -1; }
    .vg-cat-form { display: contents; }
    .vg-cat-select:only-of-type { grid-column: 1 / -1; }
    .vg-cat-select select, .vg-cat-subdrop summary { width: 100%; padding-inline-end: 34px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
    .vg-cat-select select, .vg-cat-subdrop summary { padding-left: 12px; padding-right: 34px; background-position: right 10px center; }
    [dir=rtl] .vg-cat-select select, [dir=rtl] .vg-cat-subdrop summary { padding-left: 34px; padding-right: 12px; background-position: left 10px center; }
}
@media (max-width: 600px) {
    .vg-cat-hero-inner, .vg-cat-hero-inner.has-art { min-height: 0; padding-block: 12px 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "title" "art" "desc"; grid-template-rows: auto auto auto auto; }
    .vg-cat-title { margin-bottom: 12px; font-size: 26px; }
    .vg-cat-hero-art { justify-content: flex-start; padding-block: 0 14px; }
    .vg-cat-hero-art picture { width: min(100%, 260px); }
    .vg-cat-desc { font-size: 16px; }
    .vg-cat-desc-text { max-height: calc(1.6em * 4); }
    .vg-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .vg-cat-desc-text, .vg-cat-desc-toggle::after, .vg-cat-spinner { transition: none; }
    .vg-cat-grid .vg-product-card.is-new { animation: none; }
}
.vg-page-head-wide { padding-top: 16px; padding-bottom: 6px; }
.vg-brand-art img { display: block; width: auto; max-width: min(100%, 280px); height: auto; max-height: 180px; margin-inline: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Brand list */
.vg-brands-count { margin: 6px 0 0; color: var(--vg-text-muted); font-size: 16px; }
.vg-brands-tools { margin: 4px 0 22px; }
.vg-brands-search { position: relative; display: flex; align-items: center; max-width: 520px; min-height: 48px; padding-inline: 16px 8px; border: 1px solid var(--vg-c-dce7d2); border-radius: 12px; background: var(--vg-white); color: var(--vg-green-dark); transition: border-color .2s, box-shadow .2s; }
.vg-brands-search:focus-within { border-color: var(--vg-c-8bcf55); box-shadow: 0 0 0 3px var(--vg-c-73b21515); }
.vg-brands-search input { flex: 1; min-width: 0; height: 46px; padding: 0 10px; border: 0; background: transparent; color: var(--vg-text); font: inherit; font-size: 16px; outline: 0; box-shadow: none; }
.vg-brands-search input::-webkit-search-cancel-button { display: none; }
.vg-brands-search button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); font-size: 22px; line-height: 1; cursor: pointer; }
.vg-brands-search button:hover { background: var(--vg-c-e1efc9); }
.vg-brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vg-brands-grid > li { margin: 0; padding: 0; min-width: 0; }
.vg-brands-grid > li[hidden] { display: none; }
.vg-brand-card { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 18px 12px 16px; border: 1px solid var(--vg-c-e6eddd); border-radius: 14px; background: var(--vg-white); color: var(--vg-text); text-align: center; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.vg-page .vg-brand-card { color: var(--vg-text); }
.vg-brand-card:hover { border-color: var(--vg-c-abe8bc); box-shadow: 0 6px 20px var(--vg-c-54742614); }
.vg-brand-card:focus-visible, .vg-brands-search button:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }
.vg-brand-card-logo { display: grid; place-items: center; width: 100%; height: 120px; }
.vg-brand-card-logo img { display: block; max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.vg-brand-card-name { font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.vg-brands-empty { margin: 0; padding: 48px 16px; text-align: center; color: var(--vg-text-muted); font-size: 17px; }
@media (hover: hover) { .vg-brand-card:hover { transform: translateY(-3px); }
}@media (max-width: 900px) {
    .vg-brands-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .vg-brand-card-logo { height: 96px; }
    .vg-brand-card-logo img { max-height: 96px; }
}
@media (max-width: 600px) { .vg-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .vg-brand-card { transition: none; } .vg-brand-card:hover { transform: none; }
}

.vg-page .vg-brands-grid { margin: 0; padding: 0; }
.vg-page .vg-brands-grid > li { margin: 0; }

/* VG-029: category hero sizing, brand multi-select, sort label, side blocks. */
.vg-cat-hero-inner:not(.has-art) { min-height: 0; padding-block: 14px 22px; }
.vg-cat-hero-art { align-self: start; }
.vg-cat-hero-inner.has-art .vg-cat-desc-text { max-height: calc(1.6em * 8); }
.vg-cat-side > h2:first-child { margin-top: 0; }
.vg-cat-side-list a.is-current, .vg-cat-subdrop-list a.is-current { background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); font-weight: 700; }
.vg-cat-brands-mobile { display: none; }
.vg-cat-sort { display: flex; align-items: center; gap: 8px; }
.vg-cat-select-label { color: var(--vg-text-muted); font-size: 14px; white-space: nowrap; }

.vg-multi { position: relative; min-width: 0; }
.vg-multi-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 8px 5px 12px; border: 1px solid var(--vg-c-8bcf55); border-radius: 10px; background: var(--vg-white); transition: border-color .2s, box-shadow .2s; }
.vg-multi.is-open .vg-multi-box, .vg-multi-box:hover { border-color: var(--vg-c-8bcf55); }
.vg-multi.is-open .vg-multi-box { box-shadow: 0 0 0 3px var(--vg-c-73b21515); }
.vg-multi-trigger { flex: 1 1 70px; min-width: 28px; min-height: 32px; padding: 0 26px 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23397514' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px; color: var(--vg-text); font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
[dir=rtl] .vg-multi-trigger { padding: 0 0 0 26px; background-position: left 2px center; }
.vg-multi.has-value .vg-multi-trigger { flex: 0 0 30px; min-width: 30px; padding: 0; background-position: center; }
.vg-multi-reset { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); font-size: 17px; line-height: 1; cursor: pointer; }
.vg-multi-reset:hover { background: var(--vg-c-e1efc9); }
.vg-multi-reset[hidden] { display: none; }
.vg-multi-panel { display: none; margin-top: 6px; border: 1px solid var(--vg-c-dce7d2); border-radius: 12px; background: var(--vg-white); overflow: hidden; }
.vg-multi.is-open .vg-multi-panel { display: block; }
.vg-multi-panel ul { max-height: 300px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.vg-multi-panel li { margin: 0; }
.vg-multi-panel li[hidden] { display: none; }
/* Search: on phones non-matching brands are only dimmed (the sheet keeps its height); on desktop they are removed. */
.vg-multi-panel li.is-dim { display: none; }
@media (max-width: 900px) { .vg-multi-panel li.is-dim { display: list-item; opacity: .5; } }
.vg-multi-panel label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 8px; border-radius: 8px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.vg-multi-panel label:hover { background: var(--vg-c-f1f7e8); }
.vg-multi-panel input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--vg-green); }
.vg-multi-panel label span { min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.vg-multi-find { display: block; width: calc(100% - 12px); min-height: 38px; margin: 6px; padding: 6px 12px; border: 1px solid var(--vg-c-dce7d2); border-radius: 8px; font: inherit; font-size: 14px; }
.vg-multi-trigger:focus-visible, .vg-multi-reset:focus-visible, .vg-multi-find:focus-visible, .vg-multi-panel label:focus-within { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }
.vg-cat-tools .vg-multi-panel { position: absolute; z-index: 30; top: 100%; inset-inline: 0; min-width: 240px; box-shadow: 0 10px 24px var(--vg-c-213d1420); }
.vg-cat-tools .vg-multi-box { min-width: 220px; }

@media (max-width: 900px) {
    .vg-cat-brands-mobile { display: block; }
    /* Mobile: row 1 = subcategories + brands (equal buttons), row 2 = compact sort; popups open across the full row. */
    .vg-cat-tools { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
    .vg-cat-subdrop, .vg-cat-brands-mobile { grid-column: auto; min-width: 0; }
    .vg-cat-brands-mobile:first-child { grid-column: 1 / -1; }
    .vg-cat-select:only-of-type, .vg-cat-select { grid-column: 1 / -1; }
    .vg-cat-sort { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
    .vg-cat-sort .vg-cat-select-label { font-size: 12px; line-height: 1.2; }
    /* Same look as the subcategories / brands buttons (height, font, border, green arrow). */
    .vg-cat-tools .vg-cat-sort select { width: 100%; min-height: 46px; padding-block: 0; padding-inline: 12px 34px; border: 1px solid var(--vg-c-8bcf55); border-radius: 10px; background: var(--vg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23397514' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; color: var(--vg-text); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; }
    [dir=rtl] .vg-cat-tools .vg-cat-sort select { background-position: left 10px center; }
    .vg-cat-subdrop, .vg-cat-brands-mobile .vg-multi { position: static; }
    .vg-cat-tools .vg-cat-subdrop summary { display: flex; align-items: center; min-height: 46px; padding-block: 0; padding-inline: 12px 34px; font-size: 15px; font-weight: 400; line-height: 1.4; }
    /* Popups (subcategories, brands) slide up from the bottom of the screen as a sheet; the page behind is dimmed. */
    .vg-cat-subdrop nav, .vg-cat-tools .vg-multi-panel { position: fixed; z-index: 1000; top: auto; bottom: 0; inset-inline: 0; width: auto; min-width: 0; margin: 0; max-height: 75dvh; border-width: 1px 0 0; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); animation: vg-sheet-up .25s ease-out; }
    .vg-cat-subdrop nav { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
    /* While a sheet is open the cookie icon and the accessibility button are hidden (same pattern as the buy bar in vg-product.css). */
    body:has(.vg-cat-subdrop[open], .vg-cat-brands-mobile .vg-multi.is-open) :is(.silktide-cookie-icon, #silktide-cookie-icon, [id^="silktide-cookie-icon"]) { display: none !important; }
    body:has(.vg-cat-subdrop[open], .vg-cat-brands-mobile .vg-multi.is-open) #vplugin._vp_open_false #vplugin-toggler { visibility: hidden; pointer-events: none; }
    .vg-cat-tools .vg-cat-brands-mobile .vg-multi-panel ul { max-height: calc(75dvh - 64px); }
    /* Brand sheet: the page is dimmed by a shadow around the sheet (not by a layer over its content), so nothing inside the sheet turns gray. */
    .vg-cat-tools .vg-cat-brands-mobile .vg-multi.is-open .vg-multi-panel::before { display: none; }
    .vg-cat-tools .vg-cat-brands-mobile .vg-multi.is-open .vg-multi-panel { box-shadow: 0 0 0 100vmax rgba(48, 56, 48, .4); }
    .vg-cat-tools .vg-cat-brands-mobile .vg-multi-find { width: calc(100% - 32px); margin: 8px 16px; border: 1px solid var(--vg-c-8bcf55); border-radius: 10px; background: #fff; box-sizing: border-box; }
    .vg-cat-tools .vg-multi-box { min-width: 0; min-height: 46px; padding-block: 0; padding-inline: 12px 8px; border-radius: 10px; }
}
@media (max-width: 600px) { .vg-cat-desc-text, .vg-cat-hero-inner.has-art .vg-cat-desc-text { max-height: calc(1.6em * 5); }
}
@keyframes vg-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .vg-multi-box { transition: none; } .vg-cat-subdrop nav, .vg-cat-tools .vg-multi-panel { animation: none; }
}
.vg-brands-page { padding-top: 20px; }
.vg-brands-page .vg-brands-count { margin: 0 0 14px; }

/* The brand list uses the free height of the viewport (was fixed at 300px). */
.vg-multi-panel ul { max-height: max(300px, calc(100dvh - var(--vg-shell-height, 140px) - 260px)); }
.vg-cat-tools .vg-multi-panel ul { max-height: max(260px, calc(100dvh - var(--vg-shell-height, 140px) - 200px)); }

/* Brand pages: a logo is small, so the band is compact (the text decides the height). */
.vg-cat-hero.is-compact .vg-cat-hero-inner, .vg-cat-hero.is-compact .vg-cat-hero-inner.has-art { min-height: 0; padding-block: 14px 22px; }
.vg-cat-hero.is-compact .vg-cat-hero-inner.has-art { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.vg-cat-hero.is-compact .vg-cat-hero-art { padding-block: 0; }
.vg-cat-hero.is-compact .vg-brand-art img { max-width: 200px; max-height: 110px; }
.vg-cat-hero.is-compact .vg-cat-desc-text { max-height: calc(1.6em * 5); }
@media (max-width: 900px) { .vg-cat-hero.is-compact .vg-cat-hero-inner.has-art { grid-template-columns: minmax(0, 1fr); }
}

/* Left column = viewport height (below the sticky header); the open brand list may use the remaining space. */
.vg-cat-side-block form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.vg-cat-side .vg-multi { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }
.vg-cat-side .vg-multi-panel { display: none; flex: 0 0 auto; min-height: 0; flex-direction: column; }
.vg-cat-side .vg-multi.is-open .vg-multi-panel { display: flex; }
.vg-cat-side .vg-multi-panel ul { flex: 0 0 auto; min-height: 0; max-height: none; overflow: visible; }
/* Desktop: the brand list is taller (nearly the full viewport below the header) and scrolls inside. */
@media (min-width: 901px) { .vg-cat-side .vg-cat-side-block .vg-multi-panel ul { max-height: max(420px, calc(100dvh - var(--vg-shell-height, 140px) - 170px)); overflow-y: auto; overscroll-behavior: contain; } }

/* Many selected brands: the box grows with its chips (it was squeezed by the flex column); a long chip list scrolls inside the box. */
.vg-multi-box { flex: 0 0 auto; }

/* No black frame around a brand row after a click; keyboard focus gets a soft tint instead of an outline. */
.vg-multi-panel label:focus-within { outline: 0; }
.vg-multi-panel label:has(input:focus-visible) { background: var(--vg-c-e1efc9); }
.vg-multi-panel input[type=checkbox]:focus { outline: 0; }
.vg-multi-panel input[type=checkbox]:focus-visible { outline: 2px solid var(--vg-green-dark); outline-offset: 2px; }

/* Brand block: no divider line, less space above. */
.vg-cat-side-block { display: flex; flex-direction: column; flex: 0 0 auto; margin-top: 12px; }
.vg-cat-side > .vg-cat-side-block:first-child { margin-top: 0; }
.vg-cat-side-block h2 { margin: 0 0 6px; }
.vg-search-empty { max-width: 720px; padding: 22px 24px; border: 1px solid var(--vg-c-dce7d2); border-radius: 14px; background: var(--vg-c-f7fcf3); font-size: 16px; line-height: 1.7; color: var(--vg-c-373737); }
.vg-search-empty a { color: var(--vg-green-dark); }
.vg-search-empty ul { margin: .5em 0 0; padding-inline-start: 1.3em; }
.vg-page-head-wide { padding-top: 0; }
.vg-cat-hero-inner, .vg-cat-hero-inner.has-art { padding-block: 0 28px; }
@media (max-width: 600px) { .vg-cat-hero-inner, .vg-cat-hero-inner.has-art { padding-block: 0 24px; }
}
.vg-cat-hero-inner:not(.has-art) { padding-block: 0 22px; }
/* Collapse button stays on the same side as Read more */
.vg-cat-desc.is-open .vg-cat-desc-toggle { display: flex; margin-inline-start: auto; }
/* Brand list chevron: down while closed, up while open (the arrow shows where the list goes on click; Material, Visa, WFP) */
.vg-multi.is-open .vg-multi-trigger { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23397514' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }

/* Form fields: no black focus frame anywhere; a focused field gets a green border and a soft green ring (checkboxes and radios keep the browser focus ring; the header search has its own rule). */
html body :is(input:not([type=checkbox], [type=radio], [type=submit], [type=button]), select, textarea):not(.vg-shell-search input, .vg-brands-search input):focus,
html body :is(input:not([type=checkbox], [type=radio], [type=submit], [type=button]), select, textarea):not(.vg-shell-search input, .vg-brands-search input):focus-visible { outline: 0; }
html body :is(input:not([type=checkbox], [type=radio], [type=submit], [type=button]), select, textarea):not(.vg-shell-search input, .vg-brands-search input):not(.has-error):focus { border-color: var(--vg-c-8bcf55); box-shadow: 0 0 0 3px var(--vg-c-73b21515); }
