:root {
  --primary: #1f90bb;
  --primary-600: #187aa0;
  --primary-50: #eaf6fb;
  --ink: #16212b;
  --ink-2: #44515c;
  --muted: #6b7782;
  --line: #e3e8ed;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --wa: #1fae55;
  --wa-600: #178f45;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .05), 0 6px 20px rgba(16, 24, 32, .06);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .6em 1.05em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-600); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--bg-soft); color: var(--ink); }
.btn-light:hover { background: var(--primary-50); color: var(--primary-600); }
.btn-lg { padding: .85em 1.35em; font-size: 1rem; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: var(--ink); color: #c9d3db; font-size: .85rem; }
.topbar-inner { display: flex; gap: 22px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
a.topbar-item:hover { color: #fff; }
.topbar-item:first-child { margin-right: auto; }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #38b6e0); color: #fff;
}
.brand-mark .i { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: -.01em; }
.brand-tag { font-size: .78rem; color: var(--muted); }
.search { flex: 1; display: flex; max-width: 520px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; padding: .7em 1em; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--bg-soft);
}
.search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search button {
  padding: 0 1.1em; border: 1px solid var(--primary); background: var(--primary); color: #fff;
  border-radius: 0 999px 999px 0; cursor: pointer;
}
.header-actions { display: flex; gap: 8px; flex: none; }
.menu-toggle { display: none; }

/* Navigation */
.nav { background: var(--primary); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 12px 9px; color: #fff; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-extra { display: none; }
.nav-sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.nav-sub a { display: block; padding: 9px 12px; color: var(--ink); border-radius: 8px; font-size: .92rem; }
.nav-sub a:hover { background: var(--primary-50); color: var(--primary-600); }
.has-children:hover .nav-sub, .has-children:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }

/* Sections */
.section { padding: 34px 0; }
.section-muted { background: var(--bg-soft); }
.section-tight { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-head h2, .h-section { margin: 0 0 18px; }
.section-head h2 { margin: 0; }
.intro { background: linear-gradient(135deg, var(--primary-50), #fff); padding: 56px 0; }
.intro p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* Slider */
.hero { padding-top: 22px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.slider-dots button[aria-current] { background: #fff; width: 24px; border-radius: 6px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; background: #fff; transition: .15s;
}
.cat-tile:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.cat-tile .i { color: var(--primary); }

/* Brands */
.brands-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: center; }
.brand-logo {
  display: grid; place-items: center; height: 84px; padding: 14px; background: #fff;
  border-radius: var(--radius-sm); border: 1px solid var(--line); transition: .15s;
}
.brand-logo:hover { border-color: var(--primary); }
.brand-logo img { max-height: 52px; width: auto; object-fit: contain; }
.brand-logo span { font-weight: 700; color: var(--ink-2); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: center;
}
.brand-card:hover { border-color: var(--primary); color: var(--ink); box-shadow: var(--shadow); }
.brand-card img { max-height: 60px; width: auto; }
.brand-card small { color: var(--muted); }
.page-head-brand { display: flex; align-items: center; gap: 18px; }
.brand-head-logo { max-height: 56px; width: auto; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d3dde5; transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img, .card-media .card-noimg { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #c4ced6; background: var(--bg-soft); border-radius: var(--radius-sm); }
.card-noimg .i { width: 48px; height: 48px; }
.card-body { padding: 0 18px; flex: 1; }
.card-brand { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.card-title { font-size: 1.02rem; margin: 0 0 6px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-text {
  margin: 0; color: var(--muted); font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 18px 18px; }
.card-actions .btn { padding: .6em .5em; font-size: .88rem; }

/* CTA */
.cta {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), #2aa9d6); color: #fff;
}
.cta h2 { color: #fff; }
.cta p { margin: 0; opacity: .92; max-width: 560px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-outline { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta .btn-outline:hover { background: #fff; color: var(--primary); }

/* Pages */
.page { padding-top: 22px; padding-bottom: 50px; }
.page-narrow { max-width: 820px; }
.page-head { margin-bottom: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-active small { color: rgba(255, 255, 255, .8); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); text-align: center; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: #fff6e0; color: #7a5600; }
.lead { color: var(--ink-2); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.gallery-main img, .gallery-main .card-noimg { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button {
  flex: 0 0 76px; height: 76px; padding: 6px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
.gallery-thumbs button[aria-current] { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-brand { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.product-summary { color: var(--ink-2); font-size: 1.05rem; }
.product-cta { display: grid; gap: 10px; margin: 22px 0; }
.product-meta { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.product-meta li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.product-meta li > span:first-child { width: 90px; color: var(--muted); flex: none; }
.product-desc { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Rich text */
.prose { color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2);
}
a.contact-card:hover { border-color: var(--primary); color: var(--ink-2); }
.contact-card strong { display: block; color: var(--ink); }
.contact-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.contact-icon.is-wa { background: #e6f7ec; color: var(--wa); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }

/* Footer */
.footer { background: var(--ink); color: #b9c4cd; margin-top: 40px; font-size: .93rem; }
.footer a { color: #dbe3ea; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 46px; padding-bottom: 36px; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.footer-note { margin: 0 0 16px; }
.footer-title { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { margin-top: 3px; color: #7fcbe8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(31, 174, 85, .4);
}
.wa-float:hover { background: var(--wa-600); color: #fff; }
.wa-float .i { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1080px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: .7em; }
}
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-item:not(:first-child) { display: none; }
  .topbar-item:first-child { font-size: .78rem; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-actions { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-toggle {
    display: grid; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 12px 10px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav .wrap { padding: 0; }
  .nav-list { flex-direction: column; padding: 6px 0; }
  .nav-item > a { padding: 12px 16px; }
  .nav-extra { display: block; border-top: 1px solid rgba(255, 255, 255, .15); }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 16px; }
  .nav-sub a { color: #e6f4fa; padding: 7px 16px; }
  .nav-sub a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-media img, .card-media .card-noimg { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-tile { padding: 11px 12px; font-size: .88rem; }
  .brands-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-logo { height: 64px; padding: 10px; }
  .card-body { padding: 0 12px; }
  .card-text { display: none; }
  .card-actions { grid-template-columns: 1fr; padding: 12px; gap: 6px; }
  .slide img { aspect-ratio: 16 / 9; }
  .cta { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .map iframe { min-height: 300px; }
  .section { padding: 24px 0; }
}
