/* Shared category layout: loaded on every native product-category archive.
   Shares the homepage palette and compact catalogue controls. No data changes. */
.v2 .c-cat-hero--modern {
    --category-hero-surface:#f1f4ee;
    padding-bottom:0;
    background:var(--paper,#fff)
}
.v2 .c-cat-hero--modern .c-breadcrumb {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:16px 0;
    font-size:14px;
    line-height:1.5
}
.v2 .c-cat-hero--modern .c-breadcrumb a {color:var(--muted);text-decoration:none}
.v2 .c-cat-hero--modern .c-breadcrumb a:hover {color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.v2 .c-cat-hero--modern .c-breadcrumb [aria-current] {color:var(--ink)}
.v2 .c-cat-hero--modern .c-category-stage {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
    align-items:center;
    gap:clamp(28px,3vw,48px);
    padding:24px 32px;
    border-radius:var(--radius,5px);
    background:var(--category-hero-surface)
}
.v2 .c-cat-hero--modern .c-category-stage--text {grid-template-columns:minmax(0,1fr)}
.v2 .c-cat-hero--modern .c-category-copy {min-width:0;padding:0}
.v2 .c-cat-hero--modern .eyebrow {margin:0 0 10px;color:var(--muted);font-size:14px;font-weight:600;line-height:1.5;letter-spacing:.08em}
.v2 .c-cat-hero--modern h1 {
    max-width:29ch;
    margin:0 0 14px;
    color:var(--ink);
    font-size:clamp(30px,2.8vw,40px);
    font-weight:600;
    line-height:1.13;
    letter-spacing:-.04em;
    white-space:normal;
    text-wrap:balance;
    overflow-wrap:anywhere;
    hyphens:auto;
    hyphenate-limit-chars:8 4 4
}
.v2 .c-cat-hero--modern .c-category-heading-end {white-space:nowrap}
.v2 .c-cat-hero--modern .c-category-heading-dot {
    display:inline-block;
    width:.14em;
    height:.14em;
    margin-left:.1em;
    overflow:hidden;
    border-radius:50%;
    color:transparent;
    background:var(--accent,#80cc28);
    line-height:0;
    letter-spacing:0;
    vertical-align:baseline
}
.v2 .c-cat-hero--modern .c-hero-benefits {gap:10px 18px;margin:0 0 16px;padding:8px 0}
.v2 .c-cat-hero--modern .c-hero-benefits li {gap:10px;color:var(--ink);font-size:14px;font-weight:400;line-height:1.5}
.v2 .c-cat-hero--modern .c-benefit-check {flex:0 0 24px;width:24px;height:24px;color:var(--accent,#80cc28)}
.v2 .c-cat-hero--modern .c-benefit-check path {stroke:var(--category-hero-surface,#f1f4ee)}
.v2 .c-cat-hero--modern .c-category-intro {--category-intro-lines:4;max-width:72ch}
.v2 .c-cat-hero--modern .c-category-intro>p {margin:0;color:var(--muted);font-size:15px;font-weight:400;line-height:1.6}
.v2 .c-cat-hero--modern .c-category-intro-toggle {min-height:28px;margin-top:2px;font-size:14px}
.v2 .c-cat-hero--modern .c-category-visual {
    position:relative;
    isolation:isolate;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    justify-self:center;
    width:100%;
    max-width:480px;
    height:300px;
    padding:12px;
    overflow:visible;
    border:0;
    border-radius:0;
    background:var(--category-hero-surface)
}
/* Fit the actual image into both dimensions, without intrinsic grid tracks or crops. */
.v2 .c-cat-hero--modern .c-category-visual img {
    display:block;
    flex:0 1 auto;
    width:auto;
    height:auto;
    min-width:0;
    min-height:0;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
    mix-blend-mode:multiply
}
.v2 .c-cat-hero--modern+#oh-category-products {padding-top:30px}
/* One compact row replaces the stacked result heading, count and search label. */
.v2 #oh-category-products .c-catalog-toolbar {display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);align-items:center;gap:12px 24px}
.v2 #oh-category-products .c-catalog-toolbar .c-results-top {display:block;min-width:0;margin:0}
.v2 #oh-category-products .c-catalog-toolbar .c-results-top>div {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.v2 #oh-category-products .c-catalog-toolbar h2 {margin:0;font-size:22px;line-height:1.3;letter-spacing:-.025em;overflow-wrap:anywhere}
.v2 #oh-category-products .c-catalog-toolbar [data-catalog-count] {margin:0;color:var(--muted);font-size:14px;font-weight:400;line-height:1.5;white-space:nowrap}
.v2 #oh-category-products .c-catalog-controls {display:flex;align-items:center;gap:8px;min-width:0}
.v2 #oh-category-products .c-catalog-toolbar .oh-catalog-search {
    display:flex;
    flex:1;
    flex-direction:row;
    align-items:center;
    gap:0;
    min-width:0;
    margin:0;
    border:1px solid var(--line);
    border-radius:var(--radius,5px);
    background:#fafafa;
    transition:border-color .18s,background .18s,box-shadow .18s
}
.v2 #oh-category-products .c-catalog-toolbar .oh-catalog-search:hover {border-color:#bdcec2;background:#fff}
.v2 #oh-category-products .c-catalog-toolbar .oh-catalog-search:focus-within {border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.v2 #oh-category-products .c-catalog-toolbar input[type=search] {flex:1;min-width:0;width:100%;height:44px;margin:0;padding:10px 6px 10px 14px;border:0;border-radius:var(--radius,5px);outline:0;background:transparent;box-shadow:none;color:var(--ink);font-size:14px;font-weight:400;line-height:1.5}
.v2 #oh-category-products .c-catalog-toolbar input::placeholder {color:var(--muted);opacity:1}
.v2 #oh-category-products .c-catalog-toolbar [data-catalog-submit] {display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--radius,5px);background:transparent;color:var(--muted);cursor:pointer}
.v2 #oh-category-products .c-catalog-toolbar [data-catalog-submit]:hover {background:#edf3e7;color:var(--ink)}
.v2 #oh-category-products .c-catalog-toolbar svg {display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v2 #oh-category-products .c-catalog-toolbar .c-mobile-categories {display:none}
.v2 #oh-category-products .c-products {margin-top:16px}
@media(max-width:1000px) {
    .v2 #oh-category-products .c-catalog-toolbar {grid-template-columns:minmax(0,1fr)}
    .v2 .c-cat-hero--modern .c-category-stage {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px}
    .v2 .c-cat-hero--modern .c-category-stage--text {grid-template-columns:minmax(0,1fr)}
    .v2 .c-cat-hero--modern .c-category-visual {height:240px}
}
@media(max-width:760px) {
    .v2 #oh-category-products .c-catalog-toolbar input[type=search] {font-size:16px}
    .v2 #oh-category-products .c-catalog-toolbar .c-mobile-categories {display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;height:46px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:var(--radius,5px);background:#fff;color:var(--muted);text-decoration:none}
    .v2 #oh-category-products .c-catalog-toolbar .c-mobile-categories:hover {background:#fafafa;color:var(--ink)}
    .v2 .c-cat-hero--modern .c-breadcrumb {padding:14px 0}
    /* Keep breadcrumb gutters, but let the coloured header span the phone. */
    .v2 .c-cat-hero--modern .c-category-stage {grid-template-columns:minmax(0,1fr);gap:0;width:calc(100% + 40px);margin-inline:-20px;padding:24px 20px;border-radius:0}
    .v2 .c-cat-hero--modern .c-category-copy {display:contents}
    .v2 .c-cat-hero--modern .eyebrow {grid-column:1/-1;grid-row:1;margin-bottom:10px;font-size:14px;letter-spacing:.05em}
    .v2 .c-cat-hero--modern h1 {grid-column:1;grid-row:2;align-self:center;max-width:none;margin:0;font-size:clamp(26px,6.8vw,32px);line-height:1.15}
    .v2 .c-cat-hero--modern .c-category-visual {display:none}
    .v2 .c-cat-hero--modern .c-hero-benefits {grid-column:1/-1;grid-row:3;flex-direction:row;gap:8px 16px;margin:14px 0 0}
    .v2 .c-cat-hero--modern .c-category-intro {grid-column:1/-1;grid-row:4;margin-top:14px}
    .v2 .c-cat-hero--modern .c-category-intro-toggle {min-height:44px}
    .v2 .c-cat-hero--modern .c-category-stage--text {grid-template-columns:minmax(0,1fr)}
    .v2 .c-cat-hero--modern .c-category-stage--text .c-category-copy {display:block;padding:0}
}
@media(max-width:380px) {
    .v2 .c-cat-hero--modern h1 {font-size:24px}
}
@media(prefers-reduced-motion:reduce) {
    .v2 #oh-category-products .c-catalog-toolbar .oh-catalog-search {transition:none}
}
