/* ==========================================================================
   CompareFilter — static homepage mockup styles (child theme)
   Scoped under .cf-home so nothing leaks into the rest of the theme.
   ========================================================================== */
.cf-home {
    --blue: #33a8d6;
    --blue-dk: #1b75bc;
    --green: #8bc63f;
    --green-dk: #79b530;
    --red: #e8473c;
    --ink: #2b2b2b;
    --muted: #8a9aa3;
    --line: #e6ebee;
    --bg: #eef3f6;
    background: var(--bg);
    padding-bottom: 40px;
    font-size: 14px;
    color: #4a565c;
}
.cf-home { overflow-x: hidden; }
.cf-home *, .cf-home *::before, .cf-home *::after { box-sizing: border-box; }
.cf-home img, .cf-home svg { max-width: 100%; height: auto; }
.cf-home .cf-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.cf-product, .cf-newsletter, .cf-main { min-width: 0; }     /* let flex/grid children shrink */
.cf-product h4 a { overflow-wrap: anywhere; }
.cf-home .cf-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.cf-home .cf-card {
    background: #fff; border: 1px solid var(--line); border-radius: 3px;
}
.cf-home h2.cf-sec-title { font-size: 0; }

/* search bar ---------------------------------------------------------------*/
.cf-searchbar {
    background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: stretch; margin-bottom: 20px;
}
.cf-searchbar .cf-cat-toggle {
    background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase;
    padding: 16px 22px; display: flex; align-items: center; gap: 10px; font-size: 13px;
    letter-spacing: .5px; white-space: nowrap;
}
.cf-searchbar form { flex: 1; display: flex; align-items: center; padding: 0 18px; }
.cf-searchbar input {
    border: 0; outline: 0; flex: 1; font-size: 15px; color: var(--ink); padding: 16px 0;
    background: transparent;
}
.cf-searchbar .cf-search-btn { color: var(--muted); font-size: 18px; }

/* category sidebar ---------------------------------------------------------*/
.cf-sidebar { width: 255px; flex: 0 0 255px; align-self: flex-start; }
/* Desktop: sidebar and hero equalize — the list stretches to the hero's
   height with rows distributed evenly; if the list ever grows taller than
   the hero, the hero stretches instead (both directions are dynamic). */
@media (min-width: 992px) {
    .cf-sidebar { align-self: stretch; display: flex; flex-direction: column; }
    .cf-sidebar ul { flex: 1; display: flex; flex-direction: column; }
    .cf-sidebar li { flex: 1; display: flex; }
    .cf-sidebar li a { flex: 1; align-items: center; }
    .cf-sidebar .cf-cat-more { flex: 0; }
}
.cf-sidebar .cf-sb-head {
    background: #fff; border: 1px solid var(--line); border-bottom: 0;
    padding: 14px 18px; font-weight: 700; color: var(--ink); text-transform: capitalize;
    display: flex; justify-content: space-between; align-items: center; font-size: 16px;
}
.cf-sidebar ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background:#fff; }
.cf-sidebar li { border-top: 1px solid var(--line); }
.cf-sidebar li:first-child { border-top: 0; }
.cf-sidebar li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 18px;
    color: #5a666c; font-size: 14px; text-decoration: none; transition: .15s;
}
.cf-sidebar li a .fa:first-child { color: var(--blue); width: 18px; text-align: center; }
.cf-sidebar li a .cf-plus { margin-left: auto; color: #c5ced3; font-size: 12px; }
.cf-sidebar li a:hover { background: var(--blue); color: #fff; }
.cf-sidebar li a:hover .fa { color: #fff; }
.cf-sidebar .cf-cat-more { display: none; }   /* desktop: full list, no toggle */
.cf-sidebar .cf-cat-more a { justify-content: center; gap: 8px; color: var(--blue); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.cf-sidebar .cf-cat-more a .fa { color: var(--blue); }

/* hero ---------------------------------------------------------------------*/
.cf-main { flex: 1; min-width: 0; }
/* moving banner (carousel) */
.cf-hero-carousel { position: relative; border-radius: 3px; overflow: hidden; height: 300px; }
.cf-slides { position: absolute; inset: 0; }
.cf-slide {
    position: absolute; inset: 0; display: flex; align-items: center; padding: 30px 48px;
    opacity: 0; visibility: hidden; transition: opacity .7s ease; z-index: 1;
}
.cf-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.cf-slide-1 { background: linear-gradient(135deg, #d6eefb 0%, #8fd0ee 45%, #36a7d8 100%); }
.cf-slide-2 { background: linear-gradient(135deg, #2b8fc4 0%, #15689f 100%); }
.cf-slide-3 { background: linear-gradient(135deg, #474d56 0%, #1f6f9e 100%); }
.cf-slide .cf-hero-txt { position: relative; z-index: 2; max-width: 62%; }
.cf-slide h1 {
    font-size: 46px; line-height: 1; font-weight: 800; margin: 0 0 12px;
    color: #e8503e; text-shadow: 0 2px 0 rgba(255,255,255,.3); letter-spacing: -1px;
}
.cf-slide-1 h1 span { color: var(--blue-dk); }
.cf-slide-2 h1, .cf-slide-3 h1 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.cf-slide-2 h1 span, .cf-slide-3 h1 span { color: #d6f0ff; }
.cf-slide p { margin: 0 0 18px; font-size: 16px; }
.cf-slide-1 p { color: #1b5e86; }
.cf-slide-2 p, .cf-slide-3 p { color: rgba(255,255,255,.92); }
.cf-slide .cf-btn-buy {
    display: inline-block; background: var(--red); color: #fff; font-weight: 700;
    padding: 12px 30px; border-radius: 3px; text-transform: uppercase; letter-spacing: .5px; font-size: 13px;
}
.cf-slide .cf-hero-art { position: absolute; right: 30px; bottom: 0; z-index: 1; opacity: .96; }

/* carousel controls */
.cf-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.35); color: #fff; font-size: 26px; line-height: 38px; cursor: pointer; transition: .15s;
}
.cf-arrow:hover { background: rgba(255,255,255,.75); color: var(--blue-dk); }
.cf-prev { left: 14px; } .cf-next { right: 14px; }
.cf-dots { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 5; }
.cf-dots .cf-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 4px; padding: 0;
    background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; vertical-align: middle;
}
.cf-dots .cf-dot.active { background: #fff; width: 24px; border-radius: 6px; }

/* ==== redesigned hero slides (Hanken Grotesk banners) =====================*/
.cf-hero-carousel { height: auto; min-height: 400px; }
.cf-slide.cfh {
    padding: 40px 44px; align-items: center; gap: 30px;
    font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}
.cf-slide.cfh.cfh-light { background: linear-gradient(120deg,#e3f2fc 0%,#f0f9fe 60%,#ffffff 100%); }
.cf-slide.cfh.cfh-white { background: #ffffff; }
.cf-slide.cfh.cfh-dark  { background: linear-gradient(120deg,#0d3b66 0%,#0a2c4d 100%); }

.cfh .cfh-shape { position: absolute; pointer-events: none; }
.cfh .cfh-shape1 { top: -140px; left: -110px; width: 340px; height: 340px; border-radius: 50%; background: rgba(46,159,224,.07); }
.cfh-dark .cfh-shape1 { background: rgba(255,255,255,.04); }

.cfh .cfh-left { position: relative; z-index: 2; flex: 1 1 52%; min-width: 0; }
.cfh .cfh-right { position: relative; z-index: 2; flex: 0 1 300px; min-width: 0; }

.cfh .cfh-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; background: #0d3b66; color: #fff;
    padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 11.5px;
    letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.cfh .cfh-eyebrow .cfh-dot { width: 8px; height: 8px; border-radius: 999px; background: #8bc63e; }
.cfh .cfh-eyebrow-line {
    background: none; color: var(--blue); padding: 0 0 5px; border-radius: 0;
    border-bottom: 3px solid var(--blue); letter-spacing: .14em;
}
.cfh .cfh-head {
    margin: 16px 0 0; font-weight: 900; font-size: clamp(27px, 3.1vw, 44px);
    line-height: .98; letter-spacing: -.03em; color: #16202b; text-shadow: none;
}
.cfh .cfh-head b { font-weight: 900; color: #2e9fe0; }
.cfh-dark .cfh-head { color: #fff; }
.cfh-dark .cfh-head b { color: #5bb8ea; }
.cfh .cfh-sub {
    margin: 14px 0 22px; font-weight: 500; font-size: 15px; line-height: 1.45;
    color: #55697a; max-width: 440px;
}
.cfh-dark .cfh-sub { color: rgba(255,255,255,.82); }
.cfh .cfh-cta {
    display: inline-flex; align-items: center; gap: 9px; background: #2e9fe0; color: #fff;
    text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em;
    text-transform: uppercase; padding: 13px 24px; border-radius: 9px;
    box-shadow: 0 2px 8px rgba(13,59,102,.14); transition: background .15s, transform .05s;
}
.cfh .cfh-cta:hover { background: #1877b8; transform: translateY(-1px); }
.cfh .cfh-arrow-ico { width: 17px; height: 17px; }

/* right-side cards */
.cfh .cfh-card {
    display: block; background: #fff; border-radius: 16px; padding: 18px;
    box-shadow: 0 16px 40px rgba(13,59,102,.16); text-decoration: none; color: inherit;
}
.cfh .cfh-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.cfh .cfh-card-img {
    width: 62px; height: 62px; flex-shrink: 0; border-radius: 9px; background: #f2f7fb;
    display: flex; align-items: center; justify-content: center; padding: 5px; overflow: hidden;
}
.cfh .cfh-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cfh .cfh-card-img svg { height: 48px; width: auto; }
.cfh .cfh-card-title {
    font-weight: 800; font-size: 15px; color: #16202b; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cfh .cfh-card-brand { font-size: 12.5px; color: #7c8b99; margin-top: 3px; }
.cfh .cfh-card-best {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; border: 2px solid #1f8f68; background: #e2f4ec; border-radius: 9px;
}
.cfh .cfh-card-store { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: #16202b; }
.cfh .cfh-card-badge {
    font-weight: 800; font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
    color: #fff; background: #1f8f68; padding: 3px 9px; border-radius: 999px;
}
.cfh .cfh-card-price { font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: #1f8f68; }
.cfh .cfh-card-note { margin-top: 11px; font-size: 12px; color: #8a9aa3; text-align: center; }

/* tip: filter-life bar */
.cfh .cfh-tip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cfh .cfh-tip-head span:first-child { font-weight: 800; font-size: 15px; color: #0d3b66; }
.cfh .cfh-tip-alert { font-weight: 800; font-size: 14px; color: #e2542f; }
.cfh .cfh-tip-bar {
    position: relative; height: 14px; border-radius: 999px;
    background: linear-gradient(90deg,#2bb673 0%,#8bc63e 32%,#f2c744 58%,#f08a24 80%,#e2542f 100%);
    box-shadow: inset 0 0 0 4px #eef4f9;
}
.cfh .cfh-tip-knob {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #e2542f;
}
.cfh .cfh-tip-scale { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12.5px; font-weight: 700; color: #8a9aa3; }
.cfh .cfh-tip { background: #f6fafd; box-shadow: 0 16px 40px rgba(13,59,102,.10); }

/* stores strip (dark slide) */
.cfh .cfh-stores { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.cfh .cfh-stores-lead { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 12px; }
.cfh .cfh-stores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cfh .cfh-stores-grid span {
    background: #fff; color: #16202b; border-radius: 7px; padding: 9px 6px;
    font-weight: 800; font-size: 12.5px; text-align: center; white-space: nowrap;
}

@media (max-width: 991px) {
    .cf-slide.cfh { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
    .cfh .cfh-right { width: 100%; flex: 1 1 auto; }
    .cfh .cfh-card { max-width: 380px; }
}
@media (max-width: 575px) {
    .cfh .cfh-sub { font-size: 14px; }
    .cfh .cfh-stores-grid { grid-template-columns: repeat(2, 1fr); }
}

/* promo + newsletter row ---------------------------------------------------*/
.cf-promo { flex: 0 0 33%; position: relative; overflow: hidden; border-radius: 3px;
    background: linear-gradient(135deg, #2b8fc4, #15689f); display: flex; align-items: flex-end;
    min-height: 150px; padding: 20px; }
.cf-promo .cf-btn-light {
    background: var(--blue); color: #fff; font-weight: 700; padding: 9px 22px; border-radius: 3px;
    text-transform: uppercase; font-size: 12px; letter-spacing: .5px;
}

/* zone 1: "find your filter" finder card */
.cf-fitbox {
    flex-direction: column; align-items: stretch; justify-content: center;
    padding: 24px 26px; color: #fff;
    background: linear-gradient(135deg, #3aa6d8 0%, #1b75bc 100%);
}
.cf-fitbox .cf-fitbox-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cf-fitbox .cf-fitbox-ico {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cf-fitbox h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.15; }
.cf-fitbox p { margin: 0 0 16px; font-size: 13.5px; color: rgba(255,255,255,.88); }
.cf-fitbox-form { display: flex; background: #fff; border-radius: 4px; overflow: hidden; }
.cf-fitbox-form input {
    flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 14px; font-size: 13.5px; color: var(--ink);
    text-transform: none; letter-spacing: normal; font-family: inherit;
}
.cf-fitbox-form input::placeholder { text-transform: none; letter-spacing: normal; color: #9aa7ae; }
.cf-fitbox-form button {
    border: 0; width: 46px; background: var(--green); color: #fff; font-size: 18px; cursor: pointer;
    transition: background .15s;
}
.cf-fitbox-form button:hover { background: var(--green-dk); }
.cf-newsletter {
    flex: 1; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3C/svg%3E");
    border: 1px solid var(--line); border-radius: 3px; padding: 26px 30px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;   /* center content when the finder card grows */
}
.cf-newsletter h3 { margin: 0 0 4px; color: var(--ink); font-size: 22px; font-weight: 700; }
.cf-newsletter p { margin: 0 0 16px; color: var(--muted); }
.cf-newsletter .cf-nl-form { display: flex; max-width: 560px; }
.cf-newsletter input {
    flex: 1; border: 1px solid var(--line); border-right: 0; padding: 12px 16px; font-size: 14px;
    border-radius: 3px 0 0 3px; outline: none;
}
.cf-newsletter button {
    background: var(--green); color: #fff; border: 0; font-weight: 700; text-transform: uppercase;
    padding: 0 26px; border-radius: 0 3px 3px 0; font-size: 12px; letter-spacing: .5px; cursor: pointer;
}
.cf-newsletter .cf-nl-art { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); opacity: .9; }

/* section header (blue icon + title + tabs) --------------------------------*/
.cf-section { background: #fff; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 20px; }
.cf-sec-head {
    display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0;
}
.cf-sec-head .cf-ico { background: var(--blue); color: #fff; padding: 16px 18px; font-size: 16px; }
.cf-sec-head h3 { margin: 0; padding: 0 18px; font-size: 16px; color: var(--ink); font-weight: 700; }
.cf-tabs { margin-left: auto; display: flex; }
.cf-tabs a {
    padding: 17px 18px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
    border-left: 1px solid var(--line);
}
.cf-tabs a.active, .cf-tabs a:hover { color: var(--blue); }

/* product grid -------------------------------------------------------------*/
.cf-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cf-product { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px; text-align: left; }
.cf-grid .cf-product:nth-child(4n) { border-right: 0; }
.cf-product .cf-thumb {
    position: relative; height: 150px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; background: #fff;
}
.cf-product .cf-thumb svg { max-height: 140px; max-width: 100%; }
.cf-product .cf-thumb img {
    max-height: 140px; max-width: 100%; width: auto; height: auto; object-fit: contain;
}
.cf-product .cf-thumb .cf-compare {
    position: absolute; inset: 0; background: rgba(51,168,214,.92); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    opacity: 0; transition: .2s; font-weight: 700; letter-spacing: 1px; font-size: 13px;
}
.cf-product .cf-thumb .cf-compare .fa { font-size: 22px; }
.cf-product:hover .cf-thumb .cf-compare { opacity: 1; }
.cf-product .cf-stars { color: #f0c14b; font-size: 12px; margin-bottom: 6px; }
.cf-product .cf-stars .cf-count { color: var(--muted); margin-left: 4px; }
.cf-product h4 { font-size: 14px; line-height: 1.35; margin: 0 0 8px; min-height: 38px; }
.cf-product h4 a { color: var(--ink); text-decoration: none; }
.cf-product h4 a:hover { color: var(--blue); }
.cf-product .cf-price { font-size: 13px; color: var(--muted); }
.cf-product .cf-price b { color: var(--red); font-size: 15px; font-weight: 700; }

/* banners ------------------------------------------------------------------*/
.cf-banner { border-radius: 3px; overflow: hidden; position: relative; min-height: 170px;
    display: flex; align-items: center; padding: 0 36px; color: #fff; }
.cf-banner.cf-dispenser { flex: 1; background: linear-gradient(135deg,#3aa6d8,#15689f); }
.cf-banner.cf-air { flex: 1; background: linear-gradient(120deg,#5bb8e6,#2b8fc4); }
.cf-banner.cf-water { flex: 1; background: linear-gradient(120deg,#2b8fc4,#15689f); }
.cf-banner h2 { font-size: 30px; font-weight: 800; margin: 0; line-height: 1.05; text-transform: uppercase; color: #fff; }
.cf-banner h2 small { display: block; font-size: 15px; font-weight: 400; text-transform: none; color: rgba(255,255,255,.92); margin-top: 6px; }
.cf-banner .cf-big { font-size: 46px; }
.cf-banner .cf-btn-buy {
    display: inline-block; margin-top: 14px; background: var(--red); color: #fff; font-weight: 700;
    padding: 9px 22px; border-radius: 3px; text-transform: uppercase; font-size: 12px; }
.cf-banner .cf-art { position: absolute; right: 24px; bottom: 0; opacity: .95; }

/* value strip: "why compare" (replaced the redundant category banners) ------*/
.cf-values {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: #e6ebee; border: 1px solid #e6ebee; border-radius: 4px; overflow: hidden;
    margin-bottom: 20px;
}
.cf-value { background: #fff; padding: 26px 24px; text-align: center; }
.cf-value-ico {
    width: 54px; height: 54px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
    background: #e5f4fb; color: var(--blue);
}
.cf-value:nth-child(2) .cf-value-ico { background: #eef7e2; color: var(--green-dk); }
.cf-value:nth-child(4) .cf-value-ico { background: #fdf1dd; color: #d9962a; }
.cf-value h4 { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.cf-value p { margin: 0; font-size: 13px; line-height: 1.55; color: #6b7a83; }
.cf-value p a { color: var(--blue); font-weight: 700; text-decoration: none; }
.cf-value p a:hover { text-decoration: underline; }

/* anchor jump to the newsletter must clear the 82px sticky header */
#cfNewsletter { scroll-margin-top: 100px; }
#cfNewsletter.cf-flash { animation: cfNlFlash 1.4s ease; }
@keyframes cfNlFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139,198,63,0); }
    25%      { box-shadow: 0 0 0 3px rgba(139,198,63,.65); }
}

/* zone 2: featured product spotlight (replaced the water-dispenser banner) */
.cf-featured {
    flex: 1; justify-content: space-between; padding: 24px 30px;
    background: linear-gradient(135deg, #f7fbfd 0%, #e9f4fb 100%);
    color: var(--ink); border: 1px solid var(--line);
}
.cf-featured .cf-featured-info { position: relative; z-index: 2; max-width: 62%; }
.cf-featured-tag {
    display: inline-block; background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.cf-featured-tag .fa { margin-right: 4px; }
.cf-featured h2 {
    font-size: 21px; font-weight: 700; text-transform: none; color: var(--ink); line-height: 1.25;
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-featured-price { margin: 0 0 14px; color: #6b7a83; font-size: 14px; }
.cf-featured-price b { color: var(--red); font-size: 20px; }
.cf-featured .cf-btn-buy {
    display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 22px;
    border-radius: 3px; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; transition: background .15s;
}
.cf-featured:hover .cf-btn-buy { background: var(--blue-dk); }
.cf-featured .cf-featured-img {
    position: relative; z-index: 1; width: 34%; text-align: center;
}
.cf-featured .cf-featured-img img { max-height: 150px; width: auto; object-fit: contain; }
@media (max-width: 767px) {
    .cf-featured { flex-direction: row; }
    .cf-featured .cf-featured-info { max-width: 60%; }
}

/* brands -------------------------------------------------------------------*/
.cf-brands { flex: 0 0 33%; }
.cf-brands .cf-grid-b { display: grid; grid-template-columns: repeat(2,1fr); }
.cf-brands .cf-brand {
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    min-height: 78px; padding: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #4a565c; letter-spacing: .5px;
    text-decoration: none; transition: background .15s;
}
.cf-brands .cf-brand:hover { background: #f6f9fb; }
.cf-brands .cf-brand img { max-width: 100%; max-height: 46px; width: auto; height: auto; }
.cf-brands .cf-grid-b .cf-brand:nth-child(2n) { border-right: 0; }
.cf-sec-head .cf-seeall {
    margin-left: auto; padding-right: 16px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; color: var(--blue); text-decoration: none; letter-spacing: .4px;
}
.cf-sec-head .cf-seeall:hover { text-decoration: underline; }

/* top categories -----------------------------------------------------------*/
.cf-topcats { display: grid; grid-template-columns: repeat(3,1fr); }
.cf-topcats .cf-tc { display: flex; gap: 16px; padding: 22px; border-right: 1px solid var(--line); }
.cf-topcats .cf-tc:last-child { border-right: 0; }
.cf-topcats .cf-tc .cf-tc-ico { width: 56px; height: 56px; flex: 0 0 56px; }
.cf-topcats .cf-tc h4 { margin: 0 0 6px; color: var(--ink); font-size: 16px; }
.cf-topcats .cf-tc p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* blog ---------------------------------------------------------------------*/
.cf-blog { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.cf-blog .cf-post { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.cf-blog .cf-post .cf-post-img {
    height: 180px; background: linear-gradient(135deg,#2b8fc4,#10527d); display: flex;
    align-items: center; justify-content: center;
}
.cf-blog .cf-post .cf-post-body { padding: 20px; }
.cf-blog .cf-post h3 { margin: 0 0 8px; font-size: 18px; }
.cf-blog .cf-post h3 a { color: var(--ink); text-decoration: none; }
.cf-blog .cf-post h3 a:hover { color: var(--blue); }
.cf-blog .cf-post p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.cf-blog .cf-post .cf-meta { font-size: 12px; color: #aab4ba; }

/* intro --------------------------------------------------------------------*/
.cf-intro { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 34px 40px; text-align: center; }
.cf-intro h2 { color: var(--blue); font-size: 26px; font-weight: 700; margin: 0 0 14px; }
.cf-intro p { max-width: 760px; margin: 0 auto; color: #6a767c; line-height: 1.8; }
.cf-intro a { color: var(--blue); }

/* desktop: stretch the banner to match the category sidebar's height -------*/
@media (min-width: 992px) {
    .cf-main { display: flex; flex-direction: column; }
    .cf-hero-carousel { flex: 1 1 auto; height: auto; min-height: 400px; }
}

/* responsive ---------------------------------------------------------------*/
@media (max-width: 991px) {
    .cf-sidebar { flex: 0 0 100%; width: 100%; }
    /* collapse to first 3 categories + a Show more toggle */
    .cf-sidebar li.cf-cat-extra { display: none; }
    .cf-sidebar.cf-expanded li.cf-cat-extra { display: block; }
    .cf-sidebar .cf-cat-more { display: block; }
    .cf-grid { grid-template-columns: repeat(2,1fr); }
    .cf-grid .cf-product:nth-child(4n) { border-right: 1px solid var(--line); }
    .cf-grid .cf-product:nth-child(2n) { border-right: 0; }
    .cf-promo, .cf-brands { flex: 0 0 100%; }
    .cf-banner.cf-dispenser, .cf-banner.cf-air, .cf-banner.cf-water, .cf-featured { flex: 0 0 100%; }
    .cf-values { grid-template-columns: repeat(2, 1fr); }
    .cf-topcats { grid-template-columns: 1fr; }
    .cf-topcats .cf-tc { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 767px) {
    .cf-hero-carousel { height: 240px; }
    .cf-slide { padding: 22px 26px; }
    .cf-slide .cf-hero-txt { max-width: 100%; }
    .cf-slide h1 { font-size: 32px; }
    .cf-slide p { font-size: 14px; }
    .cf-slide .cf-hero-art { opacity: .25; right: -10px; }   /* art fades behind text */
    .cf-searchbar { flex-direction: column; }
    .cf-searchbar .cf-cat-toggle { justify-content: center; }
    /* stack newsletter input + button so nothing overflows */
    .cf-newsletter { padding: 22px 20px; }
    .cf-newsletter .cf-nl-form { flex-direction: column; max-width: 100%; }
    .cf-newsletter input { border-right: 1px solid var(--line); border-radius: 3px; margin-bottom: 8px; }
    .cf-newsletter button { border-radius: 3px; padding: 12px; width: 100%; }
    .cf-newsletter .cf-nl-art { display: none; }
}
@media (max-width: 575px) {
    .cf-grid { grid-template-columns: 1fr; }
    .cf-grid .cf-product { border-right: 0 !important; text-align: center; }
    .cf-grid .cf-product h4 { min-height: 0; }
    .cf-blog { grid-template-columns: 1fr; }
    .cf-brands .cf-grid-b { grid-template-columns: repeat(3, 1fr); }
    .cf-sec-head { flex-wrap: wrap; }
    .cf-tabs { width: 100%; overflow-x: auto; }
    .cf-tabs a { white-space: nowrap; padding: 12px 14px; }
    .cf-hero-carousel { height: 210px; }
    .cf-slide h1 { font-size: 26px; }
    .cf-intro { padding: 24px 20px; }
}

/* ---- 2026-07 homepage fixes ---------------------------------------------- */
/* search bar: icon is now a real submit button */
.cf-searchbar .cf-search-btn { background: none; border: 0; cursor: pointer; padding: 0 2px; }
.cf-searchbar .cf-search-btn:hover { color: var(--blue); }

/* product tabs: panes */
.cf-grid.cf-tabpane { display: none; }
.cf-grid.cf-tabpane.active { display: grid; }

/* newsletter feedback line */
.cf-nl-msg { margin: 8px 0 0; font-size: 13px; color: #fff; min-height: 18px; }

/* top-category tiles are links now */
a.cf-tc { color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.cf-tc:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); }
a.cf-tc:hover h4 { color: var(--blue); }

/* finder AJAX results panel */
.cf-fitbox-results { margin-top: 10px; }
.cf-fitbox-msg { background: rgba(255,255,255,.14); color: #fff; border-radius: 6px; padding: 10px 12px; font-size: 12.5px; margin: 0; }
.cf-fitbox-msg a { color: #fff; text-decoration: underline; font-weight: 700; }
.cf-fitbox-hit {
    display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px;
    padding: 8px 10px; margin-bottom: 8px; text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.cf-fitbox-hit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13,59,102,.18); }
.cf-fitbox-hit img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.cf-fitbox-hit-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cf-fitbox-hit-txt b { color: var(--ink); font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-fitbox-hit-txt em { font-style: normal; color: #1f8f68; font-weight: 700; font-size: 11.5px; }
.cf-fitbox-hit-txt i { font-style: normal; color: #8a9aa3; font-size: 11.5px; }
.cf-fitbox-hit-txt i, .cf-fitbox-hit-txt b { overflow-wrap: anywhere; }

/* "View all guides" — rendered as a segment of the title bar, left of the
   carousel arrows, matching their 48px strip (icon block = 16px pad + 16px i). */
.cf-native-blogs .cf-blog-all {
	display: inline-block;
	padding: 0 18px;
	line-height: 48px;
	vertical-align: top;
	font-size: 13px;
	font-weight: 600;
	color: #33a8d6;
	white-space: nowrap;
	border-left: 1px solid whitesmoke;
}
.cf-native-blogs .cf-blog-all:hover { color: #1b75bc; background: #f7fafc; }
/* neutralize the theme's .white-title i blue-square styling on our chevron */
.cf-native-blogs .cf-blog-all i {
	padding: 0;
	margin-left: 4px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	vertical-align: baseline;
}
@media (max-width: 575px) {
	.cf-native-blogs .cf-blog-all { font-size: 11px; padding: 0 10px; }
}
