:root {
  --navy: #0b2f76;
  --navy-dark: #071f4f;
  --blue: #173f91;
  --yellow: #f4cf25;
  --ink: #152033;
  --muted: #667085;
  --line: #dce2ea;
  --surface: #f4f7fb;
  --white: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Inter", system-ui, sans-serif; background: var(--white); }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(244, 207, 37, .8); outline-offset: 3px; }

.site-header { min-height: 86px; padding: 10px clamp(20px, 5vw, 76px); display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.brand { margin-right: auto; }
.brand img { display: block; width: 116px; height: 64px; object-fit: contain; }
.site-header nav { display: flex; gap: 30px; font-weight: 600; color: #344054; }
.site-header nav a:hover { color: var(--navy); }
.header-cta, .primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 22px; background: var(--yellow); color: var(--navy-dark); font-weight: 800; border-radius: 8px; border: 2px solid var(--yellow); }
.header-cta:hover, .primary-button:hover { background: #ffdc36; border-color: #ffdc36; }

.hero { padding: clamp(46px, 7vw, 92px) clamp(20px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(40px, 8vw, 116px); align-items: center; color: white; background: linear-gradient(120deg, var(--navy-dark), var(--navy) 63%, #174596); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -210px; border: 54px solid rgba(244,207,37,.16); transform: rotate(18deg); }
.eyebrow { margin: 0 0 12px; color: var(--yellow); text-transform: uppercase; font-size: .79rem; line-height: 1.3; letter-spacing: .13em; font-weight: 800; }
.hero h1, h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .015em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.25rem, 7vw, 6.6rem); line-height: .89; }
.hero-copy > p:last-child { max-width: 650px; margin: 24px 0 0; color: #dbe6ff; font-size: 1.06rem; line-height: 1.65; }
.hero-search { padding: clamp(24px, 4vw, 38px); background: white; color: var(--ink); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.22); position: relative; z-index: 1; }
.hero-search label { display: block; margin-bottom: 12px; font-weight: 800; font-size: 1.05rem; }
.search-box { display: flex; }
.search-box input, .filters input, .filters select { width: 100%; min-height: 50px; border: 1px solid #cfd6df; border-radius: 8px; padding: 0 14px; background: white; color: var(--ink); }
.search-box input { border-radius: 8px 0 0 8px; }
.search-box button { min-height: 50px; padding: 0 20px; border: 0; border-radius: 0 8px 8px 0; background: var(--yellow); color: var(--navy-dark); font-weight: 800; cursor: pointer; }
.hero-search > p { margin: 13px 0 0; color: var(--muted); font-size: .83rem; }

.catalog { padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 76px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .brands h2, .contact h2 { margin: 0; color: var(--navy-dark); font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .95; }
.section-heading .eyebrow, .brands .eyebrow, .contact .eyebrow { color: var(--blue); }
#result-count { color: var(--muted); font-weight: 600; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.filters { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: sticky; top: 106px; }
.filters label { display: block; margin: 20px 0 8px; color: #344054; font-weight: 700; font-size: .88rem; }
.filters label:first-of-type { margin-top: 0; }
.clear-filters { margin-top: 20px; padding: 0; border: 0; background: none; color: var(--navy); font-weight: 700; cursor: pointer; }
.mobile-filter-toggle { display: none; }
.active-filters { min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip { padding: 8px 12px; background: #e8eef9; border-radius: 999px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #b9c6d8; box-shadow: 0 14px 30px rgba(16, 42, 87, .11); }
.product-image, .branded-placeholder { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; background: linear-gradient(145deg, #f8fafc, #e9eef5); border-bottom: 1px solid var(--line); }
.product-image img, .branded-placeholder img { width: 108px; height: 108px; object-fit: contain; mix-blend-mode: multiply; }
.product-image span, .branded-placeholder span { color: #7a8699; font-size: .76rem; }
.product-card-content { padding: 20px; }
.product-line { margin: 0 0 7px; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 800; }
.product-card h3 { margin: 0; min-height: 50px; font-size: 1rem; line-height: 1.45; }
.product-meta { margin: 12px 0 18px; color: var(--muted); font-size: .8rem; }
.product-card button { width: 100%; min-height: 42px; border: 1px solid var(--navy); border-radius: 7px; background: white; color: var(--navy); font-weight: 800; cursor: pointer; }
.product-card button:hover { background: var(--navy); color: white; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 36px; }
.pagination button { min-width: 42px; min-height: 42px; border: 1px solid var(--line); background: white; border-radius: 7px; color: var(--navy); font-weight: 700; cursor: pointer; }
.pagination button[aria-current="page"] { background: var(--navy); color: white; border-color: var(--navy); }
.empty-state { padding: 64px 20px; text-align: center; background: var(--surface); border-radius: 14px; }
.empty-state h3 { margin: 0 0 10px; font-size: 1.35rem; }
.empty-state button { border: 0; background: none; color: var(--navy); font-weight: 800; cursor: pointer; }

.brands { padding: clamp(58px, 7vw, 94px) clamp(20px, 5vw, 76px); background: var(--surface); }
.brand-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.brand-list span { min-height: 68px; padding: 16px; display: grid; place-items: center; text-align: center; background: white; border: 1px solid var(--line); border-radius: 9px; color: #344054; font-weight: 800; }
.contact { padding: clamp(56px, 7vw, 90px) clamp(20px, 7vw, 110px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 50px; background: var(--navy-dark); color: white; }
.contact h2 { color: white; }
.contact > div > p:last-child { max-width: 680px; color: #cad8f4; line-height: 1.65; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.contact-actions > a:not(.primary-button) { color: #eaf0fb; font-weight: 600; }
footer { padding: 28px clamp(20px, 5vw, 76px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
footer img { width: 74px; height: 54px; object-fit: contain; }

.product-dialog { width: min(900px, calc(100% - 30px)); max-height: min(760px, calc(100dvh - 30px)); padding: 0; border: 0; border-radius: 18px; overflow: auto; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.product-dialog::backdrop { background: rgba(5, 17, 39, .72); backdrop-filter: blur(4px); }
.product-dialog[open] { display: grid; grid-template-columns: .9fr 1.1fr; }
.dialog-close { position: absolute; right: 16px; top: 14px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; color: var(--navy-dark); font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.13); }
.dialog-product-image { min-height: 480px; border: 0; }
.dialog-content { padding: clamp(34px, 5vw, 54px); }
.dialog-content h2 { margin: 0 0 8px; color: var(--navy-dark); font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; }
.dialog-category { color: var(--muted); }
.variants { margin: 28px 0; }
.variants h3 { margin: 0 0 12px; font-size: .96rem; }
.variant-option { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: .9rem; cursor: pointer; text-align: left; }
.variant-option:hover, .variant-option.selected { border-color: var(--navy); background: #f1f5fc; }
.variant-option strong { color: var(--navy-dark); }
.variant-option span { color: var(--muted); text-align: right; }
.no-price { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer { grid-template-columns: auto 1fr; }
  footer p:last-child { display: none; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 8px 18px; gap: 14px; }
  .brand img { width: 88px; height: 54px; }
  .site-header nav { display: none; }
  .header-cta { min-height: 42px; padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 48px 20px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero-search { padding: 22px; }
  .catalog { padding: 58px 18px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; padding: 14px; }
  .mobile-filter-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; border: 0; background: none; color: var(--navy); font-weight: 800; }
  .mobile-filter-toggle::after { content: "+"; font-size: 1.3rem; }
  .mobile-filter-toggle[aria-expanded="true"]::after { content: "−"; }
  #filter-panel { display: none; padding: 4px 4px 10px; }
  #filter-panel.open { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { min-height: 190px; }
  .brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; padding: 58px 20px; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .product-dialog[open] { display: block; }
  .dialog-product-image { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
