:root {
  --navy: #0b1f3a;
  --navy-light: #132d52;
  --accent: #0ea5a5;
  --accent-dark: #0b8484;
  --wa: #25d366;
  --wa-dark: #1da851;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(11, 31, 58, 0.08);
  --font: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

a { color: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: .75rem;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #14b8b8);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.site-nav a:hover,
.site-nav a.is-active { color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #0d4f4f 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Features */
.features {
  margin-top: -2rem;
  padding-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.features-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.features-grid h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.features-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* Catalog section */
.catalog-section {
  padding: 3rem 0 4rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 .5rem;
}

.section-head h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

.catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.search-input {
  flex: 1 1 280px;
  max-width: 480px;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-jump a {
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 500;
}

.category-jump a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.results-meta {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.category-block {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.category-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent);
}

.category-block-head h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}

.category-block-head p {
  margin: 0;
  flex: 1 1 100%;
  color: var(--muted);
  font-size: .92rem;
}

.category-count {
  margin-left: auto;
  font-size: .85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .2rem .65rem;
  border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.12);
}

.product-image {
  aspect-ratio: 4/3;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-image-placeholder-lg {
  min-height: 320px;
  border-radius: var(--radius);
  background: #eef2f7;
}

.product-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.product-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-dark);
}

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.product-title a {
  color: var(--navy);
  text-decoration: none;
}

.product-title a:hover { color: var(--accent-dark); }

.product-meta {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.product-meta-lg { font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover { background: var(--wa-dark); color: #fff; }

.btn-block { width: 100%; margin-top: auto; }

.btn-lg {
  padding: .85rem 1.35rem;
  font-size: 1rem;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 .35rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255,255,255,.8);
  max-width: 48ch;
}

/* Product detail */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}

.breadcrumb-bar a {
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
}

.product-detail-section {
  padding: 2.5rem 0 4rem;
}

.product-detail {
  display: grid;
  gap: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
}

.product-detail-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-detail-info h1 {
  margin: .35rem 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--navy);
}

.detail-note {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-grid p {
  margin: .5rem 0 0;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

.footer-links {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}

.footer-links a,
.footer-grid a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.footer-links a:hover,
.footer-grid a:hover { color: #fff; }

.footer-wa { color: var(--wa) !important; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.55);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-light);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .site-nav.is-open { display: flex; }

  .header-bar { position: relative; }

  .category-count { margin-left: 0; }
}
