/* Pool & spa chemical guide, water sample guide and gallon calculator. */
[hidden]{display:none!important}

/* Hero */
.catalog-hero-in{display:grid;grid-template-columns:1.25fr .85fr;gap:clamp(28px,4vw,56px);align-items:center}
.catalog-hero h1{max-width:17ch}
.catalog-search-tools{margin-top:26px}
.catalog-search-field{position:relative}
.catalog-search-field svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.catalog-search-field input{min-height:60px;padding-left:50px;border-radius:999px;font-size:1.05rem;border-width:2px;background:#fff;box-shadow:var(--shadow)}
.catalog-filter-row{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:14px}
.brand-toggle{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px}
.brand-toggle button{border:0;background:none;border-radius:999px;padding:.5rem .8rem;font-weight:700;font-size:.85rem;color:var(--muted);cursor:pointer;white-space:nowrap}
.brand-toggle button[aria-pressed=true]{background:var(--navy);color:#fff}
.type-select{display:flex;align-items:center;gap:8px}
.type-select label{font-size:.82rem;font-weight:700;color:var(--navy)}
.type-select select{min-height:44px;width:auto;max-width:170px;padding:.4rem 2rem .4rem .9rem;border-radius:999px;background-color:#fff}
.catalog-reset{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:700;cursor:pointer}
.catalog-reset:disabled{opacity:.45;cursor:default}
.catalog-result-count{margin:10px 0 0 6px;font-size:.85rem;color:var(--muted)}
.catalog-hero-card{position:relative;background:var(--navy);color:#dbe6f7;border-radius:28px;padding:28px;overflow:hidden}
.catalog-hero-card h2{color:#fff;font-size:1.6rem;margin-bottom:.6rem}
.catalog-hero-card .eyebrow{color:var(--aqua)}
.catalog-hero-card p:not(.eyebrow){font-size:.95rem}
.hero-products{display:flex;justify-content:center;align-items:flex-end;gap:10px;background:#fff;border-radius:20px;padding:18px 16px 14px;margin-bottom:22px}
.hero-products img{height:110px;width:auto;object-fit:contain}
.hero-products img:nth-child(2){height:130px}

/* Problem finder */
.problem-finder{padding:clamp(36px,5vw,56px) 0 8px}
.problem-finder h2{font-size:1.35rem;margin-bottom:16px;max-width:none}
.problem-tiles{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}
.problem-tiles a{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px;border-radius:16px;border:1px solid var(--line);background:#fff;text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.problem-tiles a:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--aqua)}
.problem-tiles strong{font-size:.92rem;color:var(--navy);line-height:1.3}
.problem-tiles span{font-size:.78rem;color:var(--teal);font-weight:600;margin-top:auto}
.problem-tiles span::after{content:" →"}
.problem-test a{background:var(--yellow);border-color:var(--yellow)}
.problem-test span{color:var(--navy)}

/* Two-column catalog */
.catalog-body{padding:clamp(28px,4vw,48px) 0 clamp(48px,6vw,80px)}
.catalog-layout{display:grid;grid-template-columns:230px 1fr;gap:clamp(24px,3vw,44px);align-items:start}
.catalog-sidebar{position:sticky;top:96px;max-height:calc(100vh - 110px);overflow:auto}
.catalog-sidebar-in{border:1px solid var(--line);border-radius:var(--r);padding:16px 10px 12px;background:#fff}
.side-brand{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin:6px 10px 6px}
.side-brand~.side-brand{margin-top:16px}
.catalog-sidebar ul{margin:0}
.catalog-sidebar li a{display:flex;justify-content:space-between;gap:8px;padding:.42rem .7rem;border-radius:10px;font-size:.86rem;font-weight:600;color:var(--ink);text-decoration:none;line-height:1.35}
.catalog-sidebar li a span{font-size:.75rem;color:var(--muted);font-weight:600}
.catalog-sidebar li a:hover{background:var(--aqua-soft)}
.catalog-sidebar li a[aria-current]{background:var(--navy);color:#fff}
.catalog-sidebar li a[aria-current] span{color:var(--aqua)}
.side-help{display:block;margin:14px 6px 2px;padding:12px;border-radius:12px;background:var(--aqua-soft);font-size:.82rem;text-decoration:none;color:var(--muted)}
.side-help strong{display:block;color:var(--navy);font-size:1rem}
.catalog-main{min-width:0}
.catalog-empty{text-align:center;padding:56px 20px;border:1px dashed #b9c9d8;border-radius:var(--r)}
.catalog-empty h2{margin:0 auto .5rem}
.catalog-empty p{color:var(--muted)}

/* Brand banners */
.catalog-collection+.catalog-collection{margin-top:clamp(48px,6vw,72px)}
.brand-banner{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:clamp(22px,3vw,32px);border-radius:24px;background:linear-gradient(120deg,#fff 40%,var(--aqua-soft));border:1px solid var(--line)}
.brand-banner h2{font-size:clamp(1.7rem,3vw,2.3rem)}
.brand-banner p:not(.eyebrow){margin:.5rem 0 0;color:var(--muted);max-width:52ch}
.brand-banner img{height:70px;width:auto;flex:none}
.brand-banner-spa{background:var(--navy);border-color:var(--navy)}
.brand-banner-spa h2{color:#fff}
.brand-banner-spa .eyebrow{color:var(--aqua)}
.brand-banner-spa p:not(.eyebrow){color:#c9d8f0}
.brand-banner-spa img{height:38px}
.catalog-category-jump{display:none;margin-top:16px}
.category-links{display:flex;flex-wrap:wrap;gap:8px}
.catalog-category-jump a span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--aqua-soft);font-size:.75rem;color:var(--navy);font-weight:700}

/* Category sections */
.catalog-section{padding-top:clamp(32px,4vw,44px);scroll-margin-top:96px}
.catalog-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.catalog-section-heading h3{font-size:1.4rem;font-weight:800;display:flex;align-items:center;gap:10px}
.section-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:var(--yellow);font-size:.8rem}
.catalog-section-heading p{margin:.3rem 0 0;color:var(--muted);font-size:.93rem}
.source-link{font-size:.82rem;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.source-link:hover{color:var(--navy);text-decoration:underline}

/* Product cards */
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c5d6e4}
.product-image{display:block;aspect-ratio:5/4;padding:18px;overflow:hidden;background:radial-gradient(circle at 50% 60%,#fff 0,#fff 38%,var(--aqua-soft) 100%)}
.product-image img{width:100%;height:100%;object-fit:contain;transition:transform .3s}
.product-image:hover img{transform:scale(1.05)}
.product-copy{padding:14px 18px 18px;border-top:1px solid var(--line)}
.product-tag{display:block;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:.35rem}
.product-copy h4{font-size:1.02rem;font-weight:800;margin-bottom:.35rem}
.product-copy p{margin:0;font-size:.87rem;color:var(--muted);line-height:1.55}
.catalog-stock-note{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:32px;padding:20px 24px;border-radius:var(--r);background:var(--aqua-soft)}
.catalog-stock-note p{margin:0}
.catalog-stock-note .eyebrow{margin-bottom:.2rem}

/* Water testing help */
.catalog-help{padding:clamp(48px,6vw,80px) 0;background:var(--aqua-soft)}
.water-testing-tools{display:grid;gap:14px;margin-top:20px}
.catalog-footnote{font-size:.82rem;color:var(--muted);margin:24px 0 0;max-width:80ch}
.water-sample-guide{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.water-sample-guide>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px}
.water-sample-guide>summary::-webkit-details-marker{display:none}
.sample-summary-copy{display:grid;gap:2px}
.sample-summary-title{font-weight:700;color:var(--navy);font-size:1.05rem}
.sample-summary-subtitle{font-size:.88rem;color:var(--muted)}
.sample-summary-action{display:flex;align-items:center;gap:10px;font-size:.85rem;font-weight:700;color:var(--navy);flex:none}
.sample-guide-toggle{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--yellow);font-size:1.1rem;line-height:1;transition:transform .2s}
.water-sample-guide[open] .sample-guide-toggle{transform:rotate(45deg)}
.water-sample-guide .sample-when-open,.water-sample-guide[open] .sample-when-closed{display:none}
.water-sample-guide[open] .sample-when-open{display:inline}
.water-sample-panel{padding:4px 24px 24px;border-top:1px solid var(--line)}
.sample-guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding-top:20px}
.water-sample-panel h3{font-size:1.15rem;margin-bottom:.4rem}
.sample-section-intro{color:var(--muted);font-size:.92rem}
.sample-steps{display:grid;gap:12px;margin:12px 0}
.sample-steps li{display:flex;gap:12px}
.sample-step-number{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--aqua-soft);color:var(--navy);font-weight:800;font-size:.85rem}
.sample-steps strong{color:var(--navy);font-size:.95rem}
.sample-steps p{margin:.15rem 0 0;font-size:.9rem;color:var(--muted)}
.sample-source{font-size:.82rem;color:var(--muted)}
.sample-capacity-note{background:var(--aqua-soft);border-radius:14px;padding:16px 18px;margin:12px 0}
.sample-capacity-note h4{font-size:1rem;margin-bottom:.4rem}
.sample-capacity-note p,.sample-capacity-note li{font-size:.9rem;color:var(--muted)}
.sample-capacity-note ul{margin:.3rem 0 .6rem;padding-left:1.2rem}
.sample-measure-help{margin:0}
.sample-info-list{margin:0;display:grid}
.sample-info-list div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:.9rem}
.sample-info-list dt{font-weight:700;color:var(--navy)}
.sample-info-list dd{margin:0;color:var(--muted)}
.sample-photo-tip{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:20px;padding:18px 20px;border-radius:14px;background:#f6f9fb}
.sample-photo-heading{display:flex;gap:12px;align-items:flex-start;color:var(--navy)}
.sample-photo-heading h3{font-size:1rem}
.sample-photo-heading p{margin:.2rem 0 0;font-size:.88rem;color:var(--muted)}
.sample-photo-tip ul{margin:0;padding-left:1.2rem;font-size:.9rem;color:var(--muted)}

/* Gallon calculator */
.volume-intro,.volume-fallback,.volume-other,.volume-note,.volume-privacy{font-size:.9rem;color:var(--muted)}
.volume-controls{border:0;padding:0;margin:0}
.volume-shape-row{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.volume-shape-row .field{flex:1;min-width:220px}
.volume-shape-preview{width:160px;height:auto;fill:var(--aqua-soft);stroke:var(--navy);stroke-width:2.5}
.volume-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin-top:8px}
.volume-full{grid-column:1/-1}
.volume-actions{display:flex;gap:14px;align-items:center;margin-top:6px}
.volume-clear{background:none;border:0;color:var(--navy);font-weight:700;cursor:pointer;text-decoration:underline}
.volume-result{margin-top:16px;padding:18px 20px;border-radius:14px;background:var(--navy);color:#dbe6f7}
.volume-result .mini-label{color:var(--aqua)}
.volume-total{font-size:1.6rem;font-weight:800;color:#fff;margin:.2rem 0 .4rem}
.volume-result p{font-size:.9rem;margin-bottom:.4rem}

@media (max-width:1100px){
  .problem-tiles{grid-template-columns:repeat(4,1fr)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:960px){
  .catalog-hero-in{grid-template-columns:1fr}
  .catalog-hero-card{display:none}
  .catalog-layout{grid-template-columns:1fr}
  .catalog-sidebar{display:none}
  .catalog-category-jump{display:block}
  .sample-guide-columns{grid-template-columns:1fr}
}
@media (max-width:640px){
  .catalog-search-field input{min-height:54px;font-size:1rem}
  .brand-toggle{width:100%}
  .brand-toggle button{flex:1;padding:.5rem .4rem;font-size:.8rem}
  .problem-tiles{grid-template-columns:1fr 1fr}
  .brand-banner{flex-direction:column-reverse;align-items:flex-start}
  .brand-banner img{height:52px}
  .brand-banner-spa img{height:30px}
  .product-grid{gap:12px}
  .product-image{padding:12px}
  .product-copy{padding:12px 14px 14px}
  .product-tag{display:none}
  .product-copy h4{font-size:.95rem}
  .product-copy p{font-size:.8rem}
  .water-sample-guide>summary{padding:16px 18px}
  .sample-summary-action>span:not(.sample-guide-toggle){display:none}
  .water-sample-panel{padding:4px 18px 20px}
  .sample-info-list div{grid-template-columns:1fr;gap:2px}
  .volume-grid{grid-template-columns:1fr}
}
