:root {
  --navy: #132c45;
  --navy-dark: #091b2d;
  --teal: #08756f;
  --gold: #b7791f;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #667487;
  --line: #dce4ed;
  --soft: #eef3f7;
  --shadow: 0 18px 48px rgba(20, 38, 61, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 72px; padding: 12px clamp(18px, 4vw, 56px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 950; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--muted); font-size: .76rem; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a { padding: 9px 12px; color: var(--muted); font-weight: 850; }
.nav a:hover { color: var(--teal); }
.header-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: max-content; }
.language-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); padding: 0 12px; font-weight: 950; white-space: nowrap; }
.language-toggle:hover { border-color: var(--teal); color: var(--teal); }
.lang-option.is-active { color: var(--navy); }
.lang-divider { color: var(--line); }
.header-action, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; border: 1px solid transparent; padding: 0 18px; font-weight: 900; white-space: nowrap; }
.header-action, .button.primary { background: var(--teal); color: #fff; box-shadow: 0 12px 30px rgba(8,117,111,.18); }
.button.secondary { background: #fff; border-color: rgba(255,255,255,.38); color: var(--navy); }
.clean-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: clamp(34px, 6vw, 84px); align-items: center; min-height: 620px; padding: clamp(44px, 6vw, 84px) clamp(18px, 6vw, 78px); background: radial-gradient(circle at 80% 20%, rgba(8,117,111,.32), transparent 32%), linear-gradient(135deg, rgba(9,27,45,.98), rgba(19,44,69,.94)); color: #fff; }
.hero-copy { max-width: 760px; min-width: 0; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .76rem; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { max-width: 16ch; margin: 0; font-size: clamp(2.25rem, 5vw, 4.85rem); line-height: 1.04; letter-spacing: 0; }
.lead { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-strip span { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 8px 12px; color: rgba(255,255,255,.86); font-size: .9rem; font-weight: 850; }
.hero-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-self: stretch; }
.hero-product-card { display: grid; grid-template-rows: minmax(168px, 1fr) auto; gap: 10px; min-width: 0; padding: 14px; background: #fff; border: 1px solid rgba(255,255,255,.58); border-radius: 8px; box-shadow: var(--shadow); }
.hero-product-card img { width: 100%; height: clamp(158px, 18vw, 218px); object-fit: contain; object-position: center; padding: 8px; background: #fff; }
.hero-product-card span { color: var(--navy); font-size: .82rem; font-weight: 950; line-height: 1.25; overflow-wrap: anywhere; }
.section { padding: clamp(48px, 7vw, 86px) clamp(18px, 6vw, 74px); }
.section-heading { max-width: 850px; margin-bottom: 28px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.compact { margin-bottom: 0; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.16; }
.section-heading p:not(.eyebrow), .muted { margin: 12px 0 0; color: var(--muted); font-weight: 650; }
.featured-section { background: #fff; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.featured-card { display: grid; grid-template-rows: 190px auto; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 12px 26px rgba(20,38,61,.07); }
.featured-card .product-image { padding: 18px; background: #fff; }
.featured-card h3 { margin: 0; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.featured-card .product-body { padding: 12px; gap: 8px; }
.compact-categories { background: var(--bg); }
.category-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.category-card { display: grid; grid-template-rows: 106px auto; min-height: 232px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 30px rgba(20,38,61,.07); }
.category-card img { width: 100%; height: 106px; object-fit: contain; object-position: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.category-card h3 { margin: 10px 0 0; font-size: .98rem; line-height: 1.25; }
.category-card p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.category-card button { margin-top: auto; min-height: 36px; border: 0; border-radius: 8px; background: var(--soft); color: var(--teal); padding: 0 10px; font-weight: 950; }
.catalog-section { background: #fff; padding-top: 34px; }
.catalog-shell { border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 26px); box-shadow: 0 14px 34px rgba(20,38,61,.08); background: #fff; }
.catalog-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 20px; }
.product-count { margin: 0; color: var(--muted); font-weight: 900; text-align: right; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 14px; margin-bottom: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.search-box { display: grid; gap: 6px; flex: 1 1 360px; color: var(--muted); font-weight: 850; }
.search-box input, .rfq-form input, .rfq-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; min-width: 0; }
.clear-btn { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); padding: 0 14px; font-weight: 850; }
.clear-btn.strong { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter-pills button { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0 15px; font-weight: 900; }
.filter-pills button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-empty { display: grid; gap: 6px; place-items: center; min-height: 180px; padding: 28px; text-align: center; color: var(--muted); background: linear-gradient(135deg, #f8fafc, #eef3f7); border: 1px dashed var(--line); border-radius: 8px; }
.catalog-empty strong { color: var(--ink); font-size: 1.08rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.product-grid:empty { display: none; }
.product-card { display: grid; grid-template-rows: 230px auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 12px 26px rgba(20,38,61,.07); }
.product-image { display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); padding: 18px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0; }
.product-code { color: var(--teal); font-size: .8rem; font-weight: 950; }
.product-card h3 { margin: 0; font-size: 1rem; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border-radius: 999px; background: var(--soft); color: var(--muted); padding: 4px 8px; font-size: .75rem; font-weight: 850; }
.facts { display: grid; gap: 6px; margin: 0; }
.facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: .83rem; }
.facts dt { color: var(--muted); font-weight: 850; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.add-btn { margin-top: auto; min-height: 40px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 950; }
.add-btn.added { background: var(--navy); }
.empty-state { grid-column: 1/-1; padding: 28px; color: var(--muted); background: var(--soft); border-radius: 8px; text-align: center; }
.rfq-section { background: var(--bg); }
.rfq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 24px; align-items: start; }
.rfq-panel { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--panel); box-shadow: var(--shadow); }
.rfq-list { display: grid; gap: 8px; margin-bottom: 14px; }
.rfq-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--soft); border-radius: 8px; }
.rfq-item button { border: 0; background: transparent; color: #b42318; font-weight: 950; }
.rfq-form { display: grid; gap: 10px; }
.rfq-form textarea { min-height: 84px; resize: vertical; }
#inquiryDraft { min-height: 180px; font-family: Consolas, monospace; font-size: .84rem; }
.site-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 24px clamp(18px, 6vw, 74px); background: var(--navy-dark); color: rgba(255,255,255,.86); }
@media (max-width: 1180px) {
  .featured-grid, .category-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; gap: 10px; }
  .header-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .nav { justify-content: flex-start; overflow-x: auto; }
  .clean-hero { grid-template-columns: 1fr; }
  .catalog-top, .rfq-layout { grid-template-columns: 1fr; }
  .product-count { text-align: left; }
  .featured-grid, .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .header-tools { display: grid; grid-template-columns: auto 1fr; align-items: center; }
  .header-action { min-width: 0; padding: 0 12px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-product-card { grid-template-rows: 150px auto; padding: 12px; }
  .hero-product-card img { height: 150px; }
  .featured-grid, .category-cards, .product-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-rows: 210px auto; }
  .category-card { min-height: 0; }
  .catalog-toolbar { padding: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
