:root {
  --ink: #172337;
  --muted: #657184;
  --line: #dfe7f0;
  --paper: #ffffff;
  --soft: #f2f6fb;
  --brand: #1769aa;
  --brand-dark: #0d4f87;
  --accent: #f4b942;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(22, 57, 92, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1600px, calc(100% - clamp(64px, 10vw, 180px))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: .75rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .08em; }
.logo strong { color: var(--brand); font-size: .94rem; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 12px; font-size: 1.25rem; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 650; }
.site-nav a:hover { color: var(--brand); }
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 12px; }

.hero { background: linear-gradient(135deg, #edf5fc 0%, #f7f8fc 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { min-height: 500px; padding-block: 74px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); align-items: center; gap: 70px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 12px 0 18px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.search-box { max-width: 720px; margin-top: 32px; padding: 7px; display: flex; align-items: center; gap: 8px; background: white; border: 1px solid #d6e1ec; border-radius: 14px; box-shadow: var(--shadow); }
.search-icon { width: 18px; height: 18px; margin-left: 10px; border: 2px solid var(--muted); border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; width: 7px; border-top: 2px solid var(--muted); position: absolute; right: -5px; bottom: -3px; transform: rotate(45deg); }
.search-box input { min-width: 0; flex: 1; padding: 11px 8px; border: 0; outline: 0; color: var(--ink); }
.search-box button { padding: 12px 20px; border: 0; border-radius: 10px; color: white; background: var(--brand); font-weight: 750; cursor: pointer; }
.search-box button:hover { background: var(--brand-dark); }
.hero-copy .search-hint { margin: 10px 0 0 4px; font-size: .8rem; }
.promise-card { padding: 28px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.promise-card h2 { margin: 0 0 18px; font-size: 1.18rem; }
.promise-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 15px; color: #445268; font-size: .92rem; }
.promise-card li { display: flex; gap: 10px; }
.promise-card li span { color: var(--brand); font-weight: 900; }

.section { padding-block: 74px; }
.section-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 28px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 170px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; background: white; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); border-color: #a7c8e2; box-shadow: var(--shadow); outline: 0; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--brand); border-radius: 13px; background: var(--soft); }
.category-icon svg { width: 29px; height: 29px; display: block; }
.category-card h3 { margin: auto 0 3px; font-size: 1.02rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.loading-state { color: var(--muted); }

.how-it-works { padding-block: 70px; background: var(--ink); color: white; }
.how-it-works .eyebrow { color: #7fc1ee; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps article { position: relative; }
.steps article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 850; }
.steps h3 { margin: 18px 0 7px; font-size: 1.08rem; }
.steps p { margin: 0; color: #b9c6d4; font-size: .9rem; }

.editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.editorial-card { min-height: 280px; padding: 34px; display: flex; flex-direction: column; justify-content: end; border-radius: var(--radius); background: #f4eee2; }
.editorial-card.featured { background: #eaf3fb; }
.editorial-card h2 { max-width: 620px; margin: 10px 0 8px; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; }
.editorial-card p { max-width: 580px; margin: 0; color: var(--muted); }
.editorial-card a { margin-top: 22px; color: var(--brand-dark); font-weight: 800; }

.site-footer { padding-block: 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }
.footer-content { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(420px, 1.4fr); align-items: start; gap: 20px 50px; }
.footer-brand p, .footer-content .affiliate-note { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; color: #46566c; font-size: .82rem; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-content .affiliate-note { max-width: none; grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.affiliate-note { max-width: 500px; text-align: right; }

/* Pages de confiance */
.trust-page { min-height: 65vh; background: #f8fafd; }
.trust-hero { padding-bottom: 56px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #edf5fc, #f8fafc); }
.trust-hero h1 { max-width: 880px; margin: 10px 0 15px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.trust-hero > .container > p { max-width: 800px; margin: 0; color: #536176; font-size: 1.08rem; }
.trust-layout { padding-block: 52px 76px; }
.trust-content { max-width: 980px; margin-inline: auto; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.trust-section + .trust-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.trust-section h2 { margin: 0 0 12px; font-size: 1.45rem; letter-spacing: -.025em; }
.trust-section p { margin: 0; color: #4f5d70; }
.trust-section p + p { margin-top: 12px; }
.trust-section a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.trust-facts { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trust-facts div { padding: 18px; border-right: 1px solid var(--line); }
.trust-facts div:last-child { border-right: 0; }
.trust-facts dt { color: var(--muted); font-size: .74rem; }
.trust-facts dd { margin: 3px 0 0; font-weight: 750; }
.trust-warning { padding: 20px 22px; border: 1px solid #e8c96f; border-radius: 13px; background: #fff9e8; }
.trust-warning strong { color: #765300; }
.trust-warning p { margin-top: 6px; color: #665b3f; }
.contact-card { padding: 26px; border: 1px solid #bcd5e8; border-radius: 16px; background: #edf6fd; }
.contact-card p { margin-bottom: 20px; }
.contact-card .primary-action { display: inline-block; color: white; text-decoration: none; }
.trust-updated { margin: 42px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

/* Page 404 */
.error-page { min-height: calc(100vh - 250px); display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 15% 20%, #dceefd 0, transparent 32%), linear-gradient(135deg, #f7faff, #edf4fa); }
.error-layout { padding-block: clamp(64px, 9vw, 125px); display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(45px, 8vw, 120px); }
.error-code { color: transparent; font-size: clamp(9rem, 22vw, 20rem); font-weight: 950; line-height: .75; letter-spacing: -.1em; -webkit-text-stroke: 3px #b9d8ef; opacity: .85; user-select: none; }
.error-content { max-width: 760px; }
.error-content h1 { margin: 10px 0 18px; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; }
.error-content > p { max-width: 680px; margin: 0; color: #536176; font-size: 1.08rem; }
.error-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.error-actions a { display: inline-block; }
.error-shortcuts { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.error-shortcuts a { padding: 17px; border: 1px solid #ccdeec; border-radius: 13px; background: rgba(255,255,255,.72); transition: transform .18s ease, border-color .18s ease; }
.error-shortcuts a:hover { transform: translateY(-2px); border-color: #8dbbdc; }
.error-shortcuts strong, .error-shortcuts span { display: block; }
.error-shortcuts strong { color: var(--brand-dark); font-size: .9rem; }
.error-shortcuts span { margin-top: 3px; color: var(--muted); font-size: .72rem; }

/* Product page */
.product-page { background: #f8fafd; padding-bottom: 70px; }
.breadcrumb { padding: 22px 0; display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .82rem; overflow-x: auto; white-space: nowrap; }
.breadcrumb a:hover { color: var(--brand); }
.product-hero { padding: 24px 0 62px; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.product-gallery { min-height: 455px; padding: 34px; display: grid; place-items: center; position: relative; background: white; border: 1px solid var(--line); border-radius: 22px; }
.product-gallery img { max-width: 100%; max-height: 390px; object-fit: contain; }
.product-gallery.image-unavailable::after { content: attr(data-message); color: var(--muted); }
.source-badge { position: absolute; top: 18px; left: 18px; padding: 5px 10px; border-radius: 999px; color: var(--muted); background: var(--soft); font-size: .7rem; font-weight: 750; }
.product-category { color: var(--brand); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.product-summary h1 { margin: 10px 0 11px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
.product-reference { margin: 0; color: var(--muted); font-size: .85rem; }
.key-features { margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.key-features div { padding: 16px 13px; border-right: 1px solid var(--line); }
.key-features div:last-child { border: 0; }
.key-features strong, .key-features span { display: block; }
.key-features strong { font-size: 1.03rem; }
.key-features span { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.product-intro { color: #4f5d70; }
.summary-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.primary-action, .secondary-action { padding: 13px 18px; border-radius: 10px; font-weight: 750; cursor: pointer; }
.primary-action { color: white; background: var(--brand); }
.secondary-action { color: var(--brand-dark); background: white; border: 1px solid #b8cde0; }
.secondary-action[aria-pressed="true"] { background: #e6f1fb; }
.comparison-feedback { min-height: 20px; margin: 9px 0 0; color: var(--brand-dark); font-size: .78rem; }
.product-section { margin-bottom: 24px; padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.product-section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.product-section-heading h2 { margin: 6px 0 0; font-size: 1.7rem; letter-spacing: -.025em; }
.product-section-heading > p { margin: 0; color: var(--muted); font-size: .82rem; }
.offers-table { display: grid; gap: 10px; }
.offer-row { padding: 18px; display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(135px, 1fr) minmax(135px, 1fr) minmax(120px, .8fr) 175px; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 13px; }
.offer-row > * { min-width: 0; }
.merchant { display: flex; align-items: center; gap: 11px; }
.merchant-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: white; font-weight: 900; }
.merchant-mark.darty { background: #e52629; }
.merchant-mark.electro { color: #111; background: #f4df22; }
.merchant-mark.amazon { color: #111; background: #ffb31a; }
.merchant strong, .merchant small, .offer-detail span, .offer-detail strong, .offer-detail small, .offer-price span, .offer-price strong, .offer-price small { display: block; }
.merchant small, .offer-detail span, .offer-detail small, .offer-price span, .offer-price small { color: var(--muted); font-size: .7rem; }
.offer-detail strong { margin: 2px 0; font-size: .85rem; }
.stock-ok { color: var(--brand-dark); }
.offer-price strong { font-size: 1.2rem; }
.merchant-action { width: 100%; min-height: 42px; padding: 10px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 9px; color: white; background: var(--brand); font-size: .75rem; line-height: 1.2; font-weight: 800; text-align: center; white-space: nowrap; }
.merchant-action:hover { background: var(--brand-dark); }
.product-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.spec-group + .spec-group { margin-top: 30px; }
.spec-group h3 { margin: 0 0 10px; font-size: .98rem; }
.spec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-list div { min-height: 50px; padding: 12px 8px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.spec-list div:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--line); }
.spec-list div:nth-child(even) { padding-left: 22px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
.energy-pill { display: inline-grid; width: 25px; height: 25px; place-items: center; color: white; background: #138a45; border-radius: 4px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list article { padding: 19px; border-radius: 12px; background: var(--soft); }
.feature-list h3 { margin: 0 0 6px; font-size: .95rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .8rem; }
.data-panel { padding: 25px; position: sticky; top: 98px; background: #edf4fa; border: 1px solid #d1e1ee; border-radius: var(--radius); }
.data-panel h2 { margin: 0 0 17px; font-size: 1.08rem; }
.summary-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-facts > div { min-height: 72px; padding: 11px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.72); border: 1px solid #d5e3ee; border-radius: 10px; }
.summary-facts span { color: var(--muted); font-size: .66rem; }
.summary-facts strong { margin-top: 5px; font-size: .78rem; line-height: 1.25; }
.summary-facts .summary-energy { width: 25px; height: 25px; display: grid; place-items: center; color: white; background: #138a45; border-radius: 4px; font-size: .8rem; }
.mini-price-comparison { margin-top: 22px; padding-top: 20px; border-top: 1px solid #cedeea; }
.mini-price-heading { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mini-price-heading h3 { margin: 0; font-size: .9rem; }
.mini-price-heading > span { color: var(--muted); font-size: .64rem; }
.mini-offer { margin-top: 8px; padding: 11px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: white; border: 1px solid #d6e2ec; border-radius: 10px; transition: border-color .15s ease, transform .15s ease; }
.mini-offer:hover { transform: translateY(-1px); border-color: #88b3d5; }
.mini-offer.best-product-price { border-color: #7eadd1; box-shadow: inset 3px 0 0 var(--brand); }
.mini-merchant strong, .mini-merchant small, .mini-price strong, .mini-price small { display: block; }
.mini-merchant strong { font-size: .72rem; }
.mini-merchant small, .mini-price small { margin-top: 2px; color: var(--muted); font-size: .58rem; }
.mini-price { flex: 0 0 auto; text-align: right; }
.mini-price strong { font-size: .85rem; }
.price-gap { margin: 14px 0 0; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #17643a; background: #eaf8f0; border: 1px solid #a9dec0; border-radius: 10px; box-shadow: 0 4px 12px rgba(22, 101, 58, .08); text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.price-gap:hover { color: #17643a; background: #dcf4e7; border-color: #72c995; box-shadow: 0 6px 16px rgba(22, 101, 58, .14); transform: translateY(-1px); }
.price-gap:focus-visible { outline: 3px solid rgba(15, 113, 61, .22); outline-offset: 2px; }
.price-gap span { max-width: 130px; font-size: .72rem; line-height: 1.2; font-weight: 800; }
.price-gap span small { display: block; margin-bottom: 3px; color: #43835f; font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price-gap strong { flex: 0 0 auto; color: #0f713d; font-size: 1.2rem; line-height: 1; text-align: right; }
.price-gap strong small { display: block; margin-top: 5px; color: #17643a; font-size: .56rem; font-weight: 800; }
.price-gap.single-offer { background: #eef5fb; border-color: #bfd5e7; color: var(--brand-dark); box-shadow: 0 4px 12px rgba(23, 105, 170, .08); }
.price-gap.single-offer:hover { background: #e2eff8; border-color: #8ebbd9; color: var(--brand-dark); }
.price-gap.single-offer strong, .price-gap.single-offer strong small, .price-gap.single-offer span small { color: var(--brand-dark); }
.compact-empty { padding: 22px; min-height: 0; }
.all-offers-link { margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; color: var(--brand-dark); font-size: .7rem; font-weight: 800; }

/* Product template previews */
.template-notice { padding: 10px 0; color: #684f11; background: #fff5d9; border-bottom: 1px solid #ead394; font-size: .78rem; }
.template-image { color: var(--muted); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.template-image-icon { width: 100px; height: 100px; display: grid; place-items: center; color: #9eb7ca; background: var(--soft); border-radius: 24px; font-size: 3rem; }
.template-image small { font-size: .72rem; }
.template-action { opacity: .82; cursor: default; }
.template-preview .secondary-action { cursor: default; }

/* Template library */
.templates-page { min-height: 75vh; background: #f8fafd; }
.templates-hero { padding: 68px 0 54px; color: white; background: var(--ink); }
.templates-hero .eyebrow { color: #7fc1ee; }
.templates-hero h1 { margin: 8px 0 12px; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.templates-hero p { max-width: 700px; margin: 0; color: #bdc9d6; }
.template-stats { margin-top: 28px; display: inline-flex; align-items: baseline; gap: 9px; }
.template-stats strong { color: var(--accent); font-size: 2rem; }
.template-stats span { color: #bdc9d6; font-size: .8rem; }
.template-toolbar { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.template-toolbar label { font-weight: 800; }
.template-toolbar input { width: min(420px, 100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: white; }
.template-toolbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,105,170,.1); }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-card { min-height: 230px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.template-card:hover { transform: translateY(-2px); border-color: #a3c4de; box-shadow: var(--shadow); }
.template-card-type { color: var(--muted); font-size: .68rem; }
.template-card h2 { margin: 6px 0 17px; font-size: 1.2rem; }
.template-field-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.template-field-preview span { padding: 4px 7px; color: #506177; background: var(--soft); border-radius: 6px; font-size: .62rem; }
.template-card-link { margin-top: auto; padding-top: 20px; color: var(--brand); font-size: .76rem; }
.template-empty { padding: 35px; color: var(--muted); text-align: center; }

/* Generated product catalogue */
.catalog-search { margin-bottom: 28px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 48, 75, .05); }
.catalog-search label { display: block; margin-bottom: 9px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.catalog-search-control { position: relative; }
.catalog-search-control svg { position: absolute; top: 50%; left: 15px; width: 20px; height: 20px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.catalog-search input { width: 100%; min-height: 50px; padding: 12px 46px; color: var(--ink); background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; outline: 0; font: inherit; }
.catalog-search input::placeholder { color: #78889b; }
.catalog-search input:focus { background: white; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,105,170,.1); }
.catalog-search-clear { position: absolute; top: 50%; right: 9px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 1.3rem; cursor: pointer; transform: translateY(-50%); }
.catalog-search-clear:hover { color: var(--ink); background: var(--soft); }
.catalog-search-status { min-height: 20px; margin: 9px 2px 0; color: var(--muted); font-size: .72rem; }
.catalog-search-empty { grid-column: 1 / -1; padding: 48px 24px; color: var(--muted); background: white; border: 1px dashed #bdccda; border-radius: 14px; text-align: center; }
.catalog-product-card[hidden], .catalog-search-empty[hidden], .catalog-search-clear[hidden] { display: none; }
.catalog-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catalog-page-summary { margin: -10px 0 18px; color: var(--muted); font-size: .78rem; }
.catalog-search-noscript { margin: 10px 2px 0; color: #8b5d00; font-size: .75rem; }
.catalog-pagination { margin: 34px 0 10px; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: center; gap: 20px; }
.catalog-pagination > :last-child { justify-self: end; }
.pagination-numbers { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.catalog-pagination a, .pagination-current { min-width: 38px; height: 38px; padding-inline: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .8rem; font-weight: 750; }
.catalog-pagination a:hover { color: var(--brand-dark); border-color: #9fc3df; background: #edf6fd; }
.catalog-pagination .pagination-current { color: white; border-color: var(--brand); background: var(--brand); }
.catalog-pagination .pagination-direction { padding-inline: 15px; }
.pagination-gap { color: var(--muted); }
.catalog-pagination[hidden], .catalog-page-summary[hidden] { display: none; }
.catalog-product-card { min-width: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 14px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.catalog-product-card:hover { transform: translateY(-2px); border-color: #a3c4de; box-shadow: var(--shadow); }
.catalog-product-image { height: 210px; min-height: 210px; padding: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.catalog-product-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; display: block; object-fit: contain; object-position: center; }
.catalog-product-body { min-height: 230px; padding: 17px; flex: 1; display: flex; flex-direction: column; }
.catalog-product-body small { color: var(--brand); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.catalog-product-body > strong { min-height: 74px; margin: 7px 0 14px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: .86rem; line-height: 1.35; }
.catalog-product-body > span { margin-top: auto; color: var(--brand-dark); font-size: .8rem; font-weight: 800; }
.catalog-product-link { min-height: 40px; margin-top: 13px; padding: 9px 11px; display: flex; align-items: center; justify-content: center; gap: 5px; color: white; background: var(--brand); border-radius: 8px; font-size: .72rem; line-height: 1.2; font-weight: 800; text-align: center; }
.catalog-product-link:hover { background: var(--brand-dark); }
.catalog-update { margin: 28px 0 0; color: var(--muted); font-size: .72rem; text-align: right; }

/* Internal recommendations on product pages */
.similar-products { margin-top: 34px; padding-top: 40px; border-top: 1px solid var(--line); }
.similar-products-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.similar-products-heading h2 { margin: 6px 0 7px; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.similar-products-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.similar-products-heading > a { flex: 0 0 auto; color: var(--brand); font-size: .77rem; font-weight: 800; }
.similar-products-heading > a:hover { color: var(--brand-dark); }
.similar-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.similar-product-card { min-width: 0; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 15px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.similar-product-card:hover { transform: translateY(-3px); border-color: #a3c4de; box-shadow: var(--shadow); }
.similar-product-image { height: clamp(190px, 14vw, 260px); flex: 0 0 clamp(190px, 14vw, 260px); padding: 20px; overflow: hidden; display: grid; place-items: center; position: relative; z-index: 1; background: white; border-bottom: 1px solid var(--line); }
.similar-product-image img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; display: block; object-fit: contain; object-position: center; }
.similar-product-body { min-height: 220px; padding: 17px; display: flex; flex: 1; flex-direction: column; position: relative; z-index: 2; background: white; }
.similar-product-brand { color: var(--brand); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.similar-product-body h3 { min-height: 42px; margin: 7px 0 14px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .88rem; line-height: 1.4; }
.similar-product-body h3 a:hover { color: var(--brand); }
.similar-product-price { display: flex; align-items: baseline; gap: 6px; }
.similar-product-price small { color: var(--muted); font-size: .66rem; }
.similar-product-price strong { color: var(--brand-dark); font-size: 1.05rem; }
.similar-product-body > p { margin: 4px 0 15px; color: var(--muted); font-size: .67rem; }
.similar-product-action { min-height: 40px; margin-top: auto; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: white; background: var(--brand); border-radius: 8px; font-size: .72rem; font-weight: 800; text-align: center; }
.similar-product-action:hover { color: white; background: var(--brand-dark); }

/* Responsive affiliate advertising */
.ad-slot { box-sizing: border-box; align-items: center; justify-content: center; flex-direction: column; gap: 5px; text-align: center; }
.ad-slot-inline { min-height: 82px; margin: 0 0 24px; padding: 7px 12px; display: flex; background: white; border: 1px solid var(--line); border-radius: 12px; }
.content-article .ad-slot-inline { margin: 0; }
.ad-label { color: #78889b; font-size: .57rem; line-height: 1; text-transform: uppercase; letter-spacing: .09em; }
.ad-creative { max-width: 100%; display: block; overflow: hidden; line-height: 0; }
.ad-creative img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ad-slot-horizontal .ad-creative { width: min(100%, 468px); aspect-ratio: 468 / 60; }
.ad-slot-square .ad-creative { width: 250px; aspect-ratio: 1; }
.category-page-hero { padding: 0 0 52px; color: white; background: var(--ink); }
.category-page-hero .breadcrumb { color: #b9c6d4; }
.category-page-hero .breadcrumb a:hover { color: white; }
.category-page-hero .eyebrow { margin-top: 30px; color: #7fc1ee; }
.category-page-hero h1 { margin: 7px 0 10px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.045em; }
.category-page-hero p { max-width: 680px; margin: 0; color: #bdc9d6; }
.category-product-count { margin-top: 24px; display: inline-block; padding: 6px 11px; color: #d9e9f5; border: 1px solid #42536c; border-radius: 999px; font-size: .72rem; font-weight: 750; }
.category-empty-state { padding: 70px 25px; color: var(--muted); background: white; border: 1px dashed #bdccda; border-radius: var(--radius); text-align: center; }
.category-empty-state > span { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--brand); background: var(--soft); border-radius: 18px; font-size: 2rem; }
.category-empty-state h2 { margin: 0 0 7px; color: var(--ink); font-size: 1.25rem; }
.category-empty-state p { max-width: 560px; margin: 0 auto; font-size: .84rem; }

/* Editorial content templates */
.content-template-page { padding-bottom: 76px; background: #f8fafd; }
.content-template-hero { padding: 34px 0 58px; color: white; background: var(--ink); }
.content-template-hero .breadcrumb { color: #b9c6d4; }
.content-template-hero .breadcrumb a:hover { color: white; }
.content-template-hero .eyebrow { margin-top: 25px; color: #7fc1ee; }
.content-template-hero h1 { max-width: 900px; margin: 10px 0 16px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.content-template-lead { max-width: 760px; margin: 0; color: #c5d0dc; font-size: 1.06rem; }
.content-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.content-meta span { padding: 6px 10px; color: #dce7f1; border: 1px solid #43536a; border-radius: 999px; font-size: .7rem; }
.content-layout { padding-top: 38px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 24px; }
.content-article { min-width: 0; display: grid; gap: 20px; }
.content-article > * { min-width: 0; max-width: 100%; }
.content-block { padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.content-block h2 { margin: 0 0 15px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; }
.content-block h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.content-block p { color: #4f5d70; }
.content-block > :last-child { margin-bottom: 0; }
.content-summary { border-color: #b9d5e9; background: #edf6fc; }
.content-summary ul, .content-checklist { margin: 16px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.content-summary li, .content-checklist li { padding-left: 27px; position: relative; color: #405168; }
.content-summary li::before, .content-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.content-sidebar-rail { min-width: 0; position: sticky; top: 98px; display: grid; gap: 18px; }
.content-sidebar { min-width: 0; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.content-sidebar strong { display: block; margin-bottom: 13px; }
.content-sidebar nav { display: grid; gap: 9px; }
.content-sidebar nav a { color: var(--muted); font-size: .79rem; }
.content-sidebar nav a:hover { color: var(--brand); }
.template-helper { margin-top: 20px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.sidebar-fixed-ad { min-width: 0; padding: 11px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: white; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.sidebar-fixed-ad .ad-creative { width: min(100%, 250px); aspect-ratio: 1; }
.content-comparison { width: 100%; border-collapse: collapse; font-size: .8rem; }
.content-table-scroll { min-width: 0; max-width: 100%; }
.content-comparison th, .content-comparison td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-comparison th { color: var(--muted); background: var(--soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.content-recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.content-recommendation { padding: 18px; background: var(--soft); border-radius: 12px; }
.content-recommendation small { color: var(--brand); font-weight: 800; }
.content-recommendation h3 { margin: 7px 0; }
.content-recommendation p { margin: 0; font-size: .8rem; }
.editorial-related { border-color: #b9d5e9; }
.editorial-related > p { max-width: 680px; margin-bottom: 20px; }
.editorial-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editorial-related-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; background: var(--soft); border: 1px solid transparent; border-radius: 12px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.editorial-related-card:hover { transform: translateY(-2px); background: white; border-color: #b9d5e9; }
.editorial-related-card > span:first-child { color: var(--brand); font-size: .64rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.editorial-related-card h3 { margin: 8px 0 18px; font-size: .92rem; line-height: 1.4; }
.editorial-related-card h3 a:hover { color: var(--brand); }
.editorial-related-action { margin-top: auto; color: var(--brand-dark); font-size: .7rem; font-weight: 800; }
.content-cta { padding: 27px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: var(--brand-dark); border-radius: var(--radius); }
.content-cta h2 { margin: 0 0 5px; font-size: 1.25rem; }
.content-cta p { margin: 0; color: #d4e5f2; font-size: .82rem; }
.content-cta a { flex: 0 0 auto; padding: 11px 15px; color: var(--brand-dark); background: white; border-radius: 9px; font-size: .76rem; font-weight: 800; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 15px 17px; background: var(--soft); border-radius: 10px; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list details p { margin-bottom: 0; font-size: .84rem; }
.diagnostic-alert { padding: 18px 20px; color: #694d05; background: #fff6d9; border: 1px solid #ead28c; border-radius: 12px; }
.diagnostic-alert strong { display: block; margin-bottom: 4px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.diagnostic-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.diagnostic-grid span { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 50%; font-weight: 850; }
.diagnostic-grid h3 { margin: 12px 0 5px; }
.diagnostic-grid p { margin: 0; font-size: .78rem; }
.repair-steps { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; counter-reset: repair-step; }
.repair-steps li { padding: 16px 16px 16px 54px; position: relative; background: var(--soft); border-radius: 11px; counter-increment: repair-step; }
.repair-steps li::before { content: counter(repair-step); width: 28px; height: 28px; display: grid; place-items: center; position: absolute; top: 14px; left: 15px; color: white; background: var(--brand); border-radius: 50%; font-size: .75rem; font-weight: 850; }
.content-template-note { padding: 10px 0; color: #684f11; background: #fff5d9; border-bottom: 1px solid #ead394; font-size: .78rem; }
.editorial-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.editorial-index-grid .editorial-card { display: flex; flex-direction: column; }
.editorial-index-grid .editorial-card a { margin-top: auto; }
.editorial-card-featured { color: white; background: var(--brand-dark); }
.editorial-card-featured .eyebrow, .editorial-card-featured p { color: #d4e5f2; }
.editorial-card-featured h2 { color: white; }
.editorial-card-featured a { color: white; }
.archive-search { margin-bottom: 24px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.archive-search label { display: block; margin-bottom: 9px; color: var(--ink); font-weight: 800; }
.archive-search input { width: 100%; padding: 13px 15px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.archive-search input:focus { outline: 3px solid #b9d5e9; border-color: var(--brand); }
.archive-search p { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }
.archive-groups { display: grid; gap: 20px; }
.archive-group-heading { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.archive-group-heading h2 { margin: 0; }
.archive-group-heading span { padding: 5px 9px; color: var(--brand-dark); background: var(--soft); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.archive-link-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; list-style: none; }
.archive-link-list li { min-width: 0; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); border-radius: 9px; }
.archive-link-list a { min-width: 0; color: var(--ink); font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }
.archive-link-list a:hover { color: var(--brand); }
.archive-link-list span { flex: 0 0 auto; color: var(--muted); font-size: .62rem; }
.archive-empty { margin-top: 20px; }
.library-toolbar { margin-bottom: 34px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.library-toolbar > label { display: block; margin-bottom: 9px; color: var(--ink); font-weight: 800; }
.library-toolbar > input { width: 100%; padding: 13px 15px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.library-toolbar > input:focus { outline: 3px solid #b9d5e9; border-color: var(--brand); }
.library-toolbar > p { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }
.library-filters { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.library-filters button { padding: 8px 12px; color: var(--brand-dark); background: white; border: 1px solid #b9d5e9; border-radius: 999px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.library-filters button:hover, .library-filters button.active { color: white; background: var(--brand); border-color: var(--brand); }
.library-content-section + .library-content-section { margin-top: 48px; }
.library-section-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.library-section-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.library-section-heading > span, .library-section-heading > a { color: var(--brand-dark); font-size: .76rem; font-weight: 800; }
.archive-group-heading h3 { margin: 0; color: var(--ink); font-size: 1.25rem; }
.library-empty { margin-top: 24px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 14px; background: white; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 35px; padding-block: 56px; }
  .promise-card { max-width: 620px; }
  .error-layout { grid-template-columns: 1fr; gap: 28px; }
  .error-code { font-size: clamp(8rem, 35vw, 14rem); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 1fr; gap: 34px; }
  .product-gallery { min-height: 360px; }
  .offer-row { grid-template-columns: 1fr 1fr; }
  .merchant-action { grid-column: 1 / -1; }
  .product-content-grid { grid-template-columns: 1fr; }
  .data-panel { position: static; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar-rail { position: static; }
  .content-recommendations, .diagnostic-grid { grid-template-columns: 1fr; }
  .editorial-related-grid { grid-template-columns: 1fr; }
  .editorial-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-nav { display: flex; position: static; padding: 0; flex-direction: row; align-items: center; gap: 16px; border: 0; }
}

@media (max-width: 620px) {
  html { font-size: 16px; }
  .container { width: calc(100% - 28px); }
  .hero h1 { font-size: 2.35rem; }
  .search-box { align-items: stretch; flex-wrap: wrap; }
  .search-box input { width: calc(100% - 45px); }
  .search-box button { width: 100%; }
  .section { padding-block: 54px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .category-grid, .steps, .editorial-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 145px; }
  .steps { gap: 34px; }
  .footer-inner { display: block; }
  .footer-content { display: block; }
  .footer-links { margin-top: 24px; justify-content: flex-start; flex-direction: column; gap: 10px; }
  .footer-content .affiliate-note { margin-top: 24px; }
  .affiliate-note { margin-top: 20px !important; text-align: left; }
  .trust-hero { padding-bottom: 42px; }
  .trust-layout { padding-block: 28px 52px; }
  .trust-content { padding: 24px 19px; border-radius: 16px; }
  .trust-facts { grid-template-columns: 1fr; }
  .trust-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-facts div:last-child { border-bottom: 0; }
  .error-layout { padding-block: 52px 64px; }
  .error-code { font-size: 8.5rem; }
  .error-content h1 { font-size: 2.45rem; }
  .error-actions { align-items: stretch; flex-direction: column; }
  .error-actions a { text-align: center; }
  .error-shortcuts { grid-template-columns: 1fr; }
  .product-hero { padding-bottom: 42px; }
  .product-gallery { min-height: 290px; padding: 25px; }
  .key-features { grid-template-columns: 1fr 1fr; }
  .key-features div:nth-child(2) { border-right: 0; }
  .key-features div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-section { padding: 22px 18px; }
  .product-section-heading { display: block; }
  .product-section-heading > p { margin-top: 7px; }
  .offer-row { grid-template-columns: 1fr; gap: 14px; }
  .merchant-action { grid-column: auto; }
  .spec-list, .feature-list { grid-template-columns: 1fr; }
  .spec-list div:nth-child(n) { padding-inline: 5px; border-right: 0; }
  .template-nav { display: flex; position: static; padding: 0; flex-direction: row; border: 0; font-size: .75rem; }
  .template-nav a:first-child { display: none; }
  .template-toolbar { align-items: stretch; flex-direction: column; }
  .template-grid { grid-template-columns: 1fr; }
  .catalog-products-grid { grid-template-columns: 1fr; }
  .catalog-pagination { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pagination-numbers { grid-column: 1 / -1; grid-row: 1; }
  .catalog-pagination > :first-child { grid-column: 1; grid-row: 2; justify-self: start; }
  .catalog-pagination > :last-child { grid-column: 2; grid-row: 2; }
  .ad-slot-inline { min-height: 280px; padding: 8px 10px; }
  .similar-products-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .similar-products-grid { grid-template-columns: 1fr; }
  .content-block { padding: 23px 18px; }
  .content-cta { align-items: flex-start; flex-direction: column; }
  .editorial-index-grid { grid-template-columns: 1fr; }
  .archive-link-list { grid-template-columns: 1fr; }
  .archive-link-list li { align-items: flex-start; flex-direction: column; gap: 5px; }
  .library-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .content-comparison { min-width: 620px; }
  .content-table-scroll { overflow-x: auto; }
}

/* Immersive visual direction */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 160, 224, .08), transparent 27rem),
    #f3f7fb;
}
.site-header {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(193, 211, 227, .72);
  box-shadow: 0 10px 30px rgba(16, 45, 78, .055);
}
.header-inner { min-height: 70px; }
.logo-mark { box-shadow: 0 10px 24px rgba(23, 105, 170, .25); }

.hero,
.content-template-hero,
.category-page-hero,
.templates-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(circle at 79% 22%, rgba(54, 168, 235, .34), transparent 26rem),
    radial-gradient(circle at 92% 88%, rgba(14, 89, 150, .55), transparent 34rem),
    linear-gradient(135deg, #09182d 0%, #102d4d 52%, #0c5e98 100%);
}
.hero::before,
.content-template-hero::before,
.category-page-hero::before,
.templates-hero::before {
  content: "";
  width: clamp(300px, 34vw, 660px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-210px, -8vw, -70px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, .035),
    0 0 0 150px rgba(255, 255, 255, .025);
}
.hero::after,
.content-template-hero::after,
.category-page-hero::after,
.templates-hero::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  z-index: -1;
  right: 18%;
  bottom: -75px;
  background: rgba(94, 193, 246, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 38px;
  transform: rotate(24deg);
  backdrop-filter: blur(10px);
}

.hero { min-height: 580px; border: 0; }
.hero-inner { min-height: 580px; padding-block: clamp(54px, 7vh, 80px); position: relative; z-index: 1; }
.hero h1 { max-width: 860px; font-size: clamp(2.3rem, 3.7vw, 4rem); text-wrap: balance; }
.hero-copy > p { max-width: 730px; color: #cfdeeb; font-size: 1.02rem; }
.hero .eyebrow { color: #8ed6ff; }
.hero .search-box { max-width: 790px; padding: 10px; border-color: rgba(255, 255, 255, .55); box-shadow: 0 24px 55px rgba(2, 17, 35, .28); }
.hero-copy .search-hint { color: #a9c0d4; }
.promise-card {
  padding: clamp(28px, 3vw, 44px);
  color: white;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(0, 17, 37, .28);
  backdrop-filter: blur(20px);
}
.promise-card ul { color: #d4e3ef; }
.promise-card li span { color: #83d0ff; }

.section { position: relative; }
.category-card,
.editorial-card,
.catalog-product-card {
  border-color: rgba(203, 218, 231, .84);
  box-shadow: 0 14px 36px rgba(20, 55, 88, .065);
}
.category-card:hover,
.category-card:focus-visible { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(20, 55, 88, .15); }

.content-template-hero {
  min-height: clamp(420px, 46vh, 490px);
  padding: 36px 0 84px;
  display: flex;
  align-items: center;
}
.content-template-hero .container,
.category-page-hero .container,
.templates-hero .container { position: relative; z-index: 1; }
.content-template-hero .container { padding-right: clamp(0px, 18vw, 350px); }
.content-template-hero h1 { max-width: 1000px; font-size: clamp(2.2rem, 3.45vw, 3.7rem); text-wrap: balance; }
.content-template-lead { max-width: 860px; color: #d1deea; font-size: 1rem; }
.content-meta span { padding: 8px 13px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); }
.content-layout { margin-top: -36px; padding-top: 0; position: relative; z-index: 3; }
.content-article { gap: 28px; }
.content-block {
  padding: clamp(24px, 2.1vw, 34px);
  border-color: rgba(206, 219, 231, .72);
  box-shadow: 0 24px 65px rgba(15, 47, 78, .09);
}
.content-block p { max-width: 1120px; }
.content-summary {
  border-color: rgba(132, 190, 230, .62);
  background:
    radial-gradient(circle at 100% 0, rgba(84, 173, 231, .2), transparent 25rem),
    linear-gradient(135deg, #f3faff 0%, #e4f3fd 100%);
}
.content-sidebar-rail { top: 110px; }
.content-sidebar,
.sidebar-fixed-ad {
  border-color: rgba(202, 218, 231, .78);
  box-shadow: 0 20px 52px rgba(18, 50, 82, .1);
}
.content-sidebar { padding: 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); }
.content-sidebar nav a { padding: 5px 0 5px 12px; border-left: 2px solid transparent; transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.content-sidebar nav a:hover { border-left-color: var(--brand); transform: translateX(3px); }
.content-cta {
  padding: clamp(30px, 3vw, 44px);
  background:
    radial-gradient(circle at 85% 0, rgba(97, 203, 255, .28), transparent 18rem),
    linear-gradient(135deg, #0c3960, #0871b2);
  box-shadow: 0 24px 55px rgba(13, 79, 135, .2);
}
.content-cta a { padding: 14px 19px; box-shadow: 0 10px 25px rgba(1, 28, 52, .2); }

.category-page-hero,
.templates-hero { min-height: 320px; padding: 0; display: flex; align-items: center; }
.category-page-hero .eyebrow { margin-top: 16px; }
.category-page-hero h1,
.templates-hero h1 { font-size: clamp(2.2rem, 3.5vw, 3.6rem); }

.product-page {
  background:
    radial-gradient(circle at 10% 5%, rgba(72, 164, 224, .12), transparent 28rem),
    linear-gradient(180deg, #eef6fc 0, #f8fafd 720px);
}
.product-hero {
  margin: 8px 0 42px;
  padding: clamp(22px, 2.5vw, 38px);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(198, 216, 230, .8);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(18, 57, 91, .12);
}
.product-hero::after {
  content: "";
  width: 420px;
  aspect-ratio: 1;
  position: absolute;
  z-index: 0;
  right: -170px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 187, 240, .2), rgba(92, 187, 240, 0) 68%);
  pointer-events: none;
}
.product-hero > * { position: relative; z-index: 1; }
.product-gallery { border-color: rgba(215, 227, 237, .72); box-shadow: inset 0 0 55px rgba(41, 112, 165, .045); }
.product-section,
.data-panel,
.similar-product-card { box-shadow: 0 18px 48px rgba(17, 52, 84, .075); }
.data-panel { background: linear-gradient(160deg, #f1f8fd, #e1f0fa); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-inner { min-height: auto; padding-block: 64px; }
  .content-template-hero { min-height: 480px; padding-bottom: 68px; }
  .content-template-hero .container { padding-right: 0; }
  .content-layout { margin-top: -32px; }
  .content-sidebar-rail { position: static; }
  .product-hero { border-radius: 24px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 72px; }
  .hero-inner { padding-block: 54px; }
  .hero h1 { font-size: 2.5rem; }
  .hero::before,
  .content-template-hero::before,
  .category-page-hero::before,
  .templates-hero::before { opacity: .55; }
  .content-template-hero { min-height: 470px; align-items: flex-start; padding: 24px 0 58px; }
  .content-template-hero h1 { font-size: 2.35rem; }
  .content-layout { margin-top: -24px; }
  .content-block { padding: 25px 20px; border-radius: 16px; }
  .category-page-hero,
  .templates-hero { min-height: 320px; }
  .product-hero { margin-top: 0; padding: 18px; border-radius: 20px; }
}
