:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --brand: #005aa9;
  --brand-dark: #063c73;
  --accent: #00a78e;
  --warn: #f59e0b;
  --shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(217, 226, 236, .9);
  box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--brand-dark);
}

.brand img {
  width: 154px;
  max-width: 36vw;
  height: auto;
  display: block;
}

.brand span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  color: #475467;
  font-weight: 700;
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brand);
  background: #eef7ff;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.quote-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quote-link:hover {
  border-color: rgba(0, 90, 169, .38);
  background: #f0f7ff;
}

.cart-button,
.icon-button,
.menu-toggle {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(6, 60, 115, .16);
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.cart-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 6px 6px;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -8px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  min-height: 530px;
  padding: clamp(44px, 8vw, 84px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 31, 57, .96), rgba(0, 90, 169, .78)),
    radial-gradient(circle at 82% 18%, rgba(0, 167, 142, .74), transparent 30%),
    url("../img/rede-corporativa.jpg") center/cover;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ff5e6;
}

.hero h1,
.section-head h2,
.quote h2,
.cart-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .32);
}

.button.full {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .24);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
  background: rgba(2, 6, 23, .28);
}

.hero-panel span {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

.hero-panel small {
  color: rgba(255, 255, 255, .76);
  font-weight: 700;
}

.store-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 24px clamp(18px, 4vw, 56px) 44px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 90, 169, .38) transparent;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-head strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.filter-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.filters::-webkit-scrollbar {
  width: 8px;
}

.filters::-webkit-scrollbar-thumb {
  background: rgba(0, 90, 169, .34);
  border-radius: 999px;
}

.filters::-webkit-scrollbar-track {
  background: transparent;
}

.search-box,
.quote-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 90, 169, .12);
}

.filter-title {
  display: block;
  margin-bottom: 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.filter-list {
  display: grid;
  gap: 7px;
}

.department-group {
  display: grid;
  gap: 7px;
}

.department-group.open {
  padding-bottom: 4px;
}

.filter-chip {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 0 11px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.filter-chip:hover {
  color: var(--brand-dark);
  border-color: rgba(0, 90, 169, .35);
  background: #f6fbff;
}

.filter-chip.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 90, 169, .16);
}

.department-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.department-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.department-chip span {
  min-width: 0;
  flex: 1;
}

.department-chip small,
.subcategory-chip small,
.brand-chip small {
  display: inline-grid;
  min-width: 28px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f3ff;
  font-size: 11px;
  font-weight: 800;
}

.department-chip.active::before {
  background: #fff;
}

.department-chip.active small,
.subcategory-chip.active small,
.brand-chip.active small {
  color: var(--brand);
  background: #fff;
}

.brand-list {
  grid-template-columns: 1fr;
}

.brand-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
}

.subcategory-list {
  max-height: none;
  overflow: visible;
  padding: 2px 3px 2px 12px;
  border-left: 2px solid #e8f3ff;
}

.nested-subcategory-list {
  margin: 0 0 3px 13px;
}

.subcategory-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border-color: #e7eef6;
  background: #fbfdff;
  color: #526070;
  font-size: 12px;
  font-weight: 800;
  padding-left: 10px;
}

.subcategory-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #475467;
  font-weight: 700;
}

.check-line input {
  width: 18px;
  height: 18px;
}

.catalog {
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
}

.section-head h2,
.quote h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-head > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.promo-strip {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.3fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 60, 115, .96), rgba(0, 90, 169, .88)),
    radial-gradient(circle at 88% 20%, rgba(0, 167, 142, .5), transparent 32%);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

.promo-strip span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #8ff5e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background: #fff;
}

.service-area strong {
  margin-right: 4px;
  color: var(--brand-dark);
  font-size: 13px;
}

.service-area span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e7f5;
  border-radius: 999px;
  color: #344054;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

.promo-strip h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.16;
}

.promo-strip p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.55;
}

.promo-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: 214px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(0, 90, 169, .45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  transform: translateY(-2px);
  outline: 0;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(0, 90, 169, .16);
  border-radius: 8px;
}

.product-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 34px);
  padding: 0;
  object-fit: contain;
  background: #fff;
}

.device {
  position: relative;
  width: 112px;
  height: 82px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .16);
  box-shadow: 0 18px 38px rgba(0, 90, 169, .18);
}

.device::before,
.device::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.device::before {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 8px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.device::after {
  width: 26px;
  height: 26px;
  top: 16px;
  left: 18px;
  background: rgba(0, 90, 169, .16);
}

.product-card[data-type="camera"] .device {
  width: 116px;
  height: 72px;
  border-radius: 44px 44px 8px 8px;
}

.product-card[data-type="camera"] .device::after {
  width: 44px;
  height: 44px;
  left: 36px;
  top: 14px;
  background: radial-gradient(circle, var(--brand) 0 22%, #dbeafe 24% 54%, var(--accent) 56%);
}

.product-card[data-type="network"] .device::after {
  width: 70px;
  height: 9px;
  left: 20px;
  top: 22px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 13px);
}

.product-card[data-type="energy"] .device::after {
  width: 38px;
  height: 48px;
  top: 15px;
  left: 37px;
  border-radius: 6px;
  background: linear-gradient(#fbbf24, #10b981);
}

.product-card[data-type="security"] .device::after {
  width: 48px;
  height: 52px;
  top: 14px;
  left: 32px;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(135deg, #0f172a, var(--brand));
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #e8f3ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stock {
  color: #027a48;
  font-size: 12px;
  font-weight: 800;
}

.stock.order {
  color: #b54708;
}

.product-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.price-line strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.price-line strong.price-quote {
  font-size: 15px;
  line-height: 1.2;
}

.price-line small {
  color: var(--muted);
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 10px;
}

.add-button,
.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.add-button {
  border: 0;
  color: #fff;
  background: var(--brand);
}

.details-button {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: #fff;
}

.details-button:hover {
  border-color: var(--brand);
  background: #f0f7ff;
}

.solutions,
.quote {
  padding: 44px clamp(18px, 4vw, 56px);
}

.solutions {
  background: #fff;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.solution-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.solution-grid h3 {
  margin: 18px 0 10px;
  font-size: 19px;
}

.solution-grid p,
.quote-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--soft);
}

.quote-copy {
  max-width: 640px;
}

.quote-copy p:not(.eyebrow) {
  margin-top: 16px;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-page {
  padding: 26px clamp(18px, 4vw, 56px) 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}

.back-link::before {
  content: "‹";
  margin-right: 8px;
  font-size: 24px;
  line-height: 1;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 92px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.detail-main-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(0, 90, 169, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .42)),
    radial-gradient(circle at 22% 18%, rgba(0, 167, 142, .28), transparent 32%),
    radial-gradient(circle at 78% 82%, rgba(0, 90, 169, .22), transparent 35%),
    #eef7ff;
  box-shadow: var(--shadow);
}

.detail-main-visual .device {
  width: 190px;
  height: 138px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.detail-main-visual img {
  width: 100%;
  height: 430px;
  padding: 26px;
  object-fit: contain;
  background: #fff;
}

.detail-main-visual[data-type="camera"] .device {
  width: 198px;
  height: 126px;
  border-radius: 62px 62px 12px 12px;
}

.detail-main-visual[data-type="camera"] .device::after {
  width: 74px;
  height: 74px;
  left: 62px;
  top: 25px;
  background: radial-gradient(circle, var(--brand) 0 22%, #dbeafe 24% 54%, var(--accent) 56%);
}

.detail-main-visual[data-type="network"] .device::after {
  width: 118px;
  height: 13px;
  left: 36px;
  top: 36px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 12px, transparent 12px 19px);
}

.detail-main-visual[data-type="energy"] .device::after {
  width: 60px;
  height: 78px;
  left: 65px;
  top: 26px;
  border-radius: 8px;
  background: linear-gradient(#fbbf24, #10b981);
}

.detail-main-visual[data-type="security"] .device::after {
  width: 78px;
  height: 82px;
  top: 26px;
  left: 56px;
  border-radius: 34px 34px 12px 12px;
  background: linear-gradient(135deg, #0f172a, var(--brand));
}

.detail-main-visual[data-view="instalacao"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .36)),
    repeating-linear-gradient(90deg, rgba(0, 90, 169, .12) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(0deg, rgba(0, 167, 142, .10) 0 2px, transparent 2px 42px),
    #eef7ff;
}

.detail-main-visual[data-view="instalacao"] .device {
  transform: translateY(-18px) scale(.92);
}

.detail-main-visual[data-view="instalacao"]::after {
  content: "";
  position: absolute;
  width: min(78%, 420px);
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: translateY(104px);
}

.detail-main-visual[data-view="detalhe"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 54%, transparent 55%),
    linear-gradient(135deg, #eefdf9, #f4f7ff);
}

.detail-main-visual[data-view="detalhe"] .device {
  transform: scale(1.2);
  box-shadow: 0 24px 62px rgba(0, 90, 169, .24);
}

.detail-main-visual[data-view="detalhe"]::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(0, 90, 169, .34);
  border-radius: 999px;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
}

.gallery-caption strong {
  color: var(--brand-dark);
}

.gallery-caption small {
  color: var(--muted);
  font-weight: 800;
}

.gallery-arrow {
  width: 44px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.gallery-arrow:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.detail-thumbs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.detail-thumbs button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.detail-thumbs button.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 90, 169, .10);
}

.detail-thumbs img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.detail-info {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.detail-info p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.detail-content .detail-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-content .detail-block.wide {
  grid-column: 1 / -1;
}

.detail-block h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100vh;
  background: #fff;
  transform: translateX(102%);
  transition: transform .22s ease;
  box-shadow: -18px 0 46px rgba(15, 23, 42, .18);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  pointer-events: none;
}

.product-modal.open {
  display: flex;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-gallery {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, #f0f7ff, #eefdf9);
  border-right: 1px solid var(--line);
}

.modal-main-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(0, 90, 169, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .42)),
    radial-gradient(circle at 22% 18%, rgba(0, 167, 142, .28), transparent 32%),
    radial-gradient(circle at 78% 82%, rgba(0, 90, 169, .22), transparent 35%);
}

.modal-main-visual .device {
  width: 172px;
  height: 126px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.modal-main-visual[data-type="camera"] .device {
  width: 184px;
  height: 116px;
  border-radius: 58px 58px 12px 12px;
}

.modal-main-visual[data-type="camera"] .device::after {
  width: 68px;
  height: 68px;
  left: 58px;
  top: 24px;
  background: radial-gradient(circle, var(--brand) 0 22%, #dbeafe 24% 54%, var(--accent) 56%);
}

.modal-main-visual[data-type="network"] .device::after {
  width: 108px;
  height: 12px;
  left: 32px;
  top: 34px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 12px, transparent 12px 19px);
}

.modal-main-visual[data-type="energy"] .device::after {
  width: 54px;
  height: 72px;
  left: 59px;
  top: 24px;
  border-radius: 7px;
  background: linear-gradient(#fbbf24, #10b981);
}

.modal-main-visual[data-type="security"] .device::after {
  width: 72px;
  height: 76px;
  top: 24px;
  left: 50px;
  border-radius: 32px 32px 12px 12px;
  background: linear-gradient(135deg, #0f172a, var(--brand));
}

.modal-main-visual[data-view="instalacao"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .36)),
    repeating-linear-gradient(90deg, rgba(0, 90, 169, .12) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(0deg, rgba(0, 167, 142, .10) 0 2px, transparent 2px 42px),
    #eef7ff;
}

.modal-main-visual[data-view="instalacao"] .device {
  transform: translateY(-14px) scale(.92);
}

.modal-main-visual[data-view="instalacao"]::after {
  content: "";
  width: min(78%, 360px);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: translateY(86px);
  position: absolute;
}

.modal-main-visual[data-view="detalhe"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .86), rgba(255, 255, 255, .36) 54%, transparent 55%),
    linear-gradient(135deg, #eefdf9, #f4f7ff);
}

.modal-main-visual[data-view="detalhe"] .device {
  transform: scale(1.2);
  box-shadow: 0 22px 58px rgba(0, 90, 169, .24);
}

.modal-main-visual[data-view="detalhe"]::before {
  content: "";
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(0, 90, 169, .34);
  border-radius: 999px;
  position: absolute;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal-thumbs button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.modal-thumbs button.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #fff;
}

.mini-device {
  width: 42px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, #dff5ff);
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px 28px 28px;
}

.modal-info h2 {
  margin: 0;
  padding-right: 42px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.modal-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.modal-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.modal-price strong {
  color: var(--brand-dark);
  font-size: 28px;
}

.modal-price small {
  max-width: 190px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.detail-block {
  display: grid;
  gap: 10px;
}

.detail-block h3 {
  margin: 0;
  font-size: 16px;
}

.detail-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #475467;
  line-height: 1.5;
}

.detail-block dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-block dl div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-block dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-block dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.light {
  color: var(--brand-dark);
  background: #eef6ff;
  border-color: #cfe7ff;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.cart-empty {
  color: var(--muted);
  line-height: 1.55;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.cart-summary strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.cart-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(15, 23, 42, .46);
}

.overlay.open {
  display: block;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .brand img {
    width: 138px;
    max-width: 52vw;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    justify-content: space-between;
    min-height: 42px;
    border-radius: 7px;
  }

  .quote-link {
    display: none;
  }

  .store-shell,
  .quote {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .promo-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .promo-strip a {
    width: max-content;
  }

  .filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-page {
    padding-top: 20px;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: static;
    grid-template-columns: 40px 1fr 40px;
  }

  .detail-main-visual {
    min-height: 330px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .detail-content .detail-block.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 14px;
  }

  .cart-button {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .cart-icon {
    display: none;
  }

  .section-head {
    display: grid;
  }

  .promo-strip {
    padding: 14px;
  }

  .promo-strip a {
    width: 100%;
  }

  .filter-list {
    grid-template-columns: 1fr;
  }

  .modal-info {
    padding: 28px 18px 20px;
  }

  .modal-gallery {
    padding: 16px;
  }

  .modal-main-visual {
    min-height: 230px;
  }

  .detail-block dl,
  .card-actions,
  .modal-thumbs {
    grid-template-columns: 1fr;
  }

  .modal-price {
    display: grid;
  }

  .modal-price small {
    max-width: none;
    text-align: left;
  }

  .detail-gallery {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
  }

  .detail-main-visual {
    min-height: 260px;
  }

  .detail-main-visual .device {
    width: 138px;
    height: 102px;
  }

  .gallery-arrow {
    width: 36px;
    height: 48px;
    font-size: 28px;
  }

  .gallery-caption {
    display: grid;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .detail-thumbs,
  .detail-block dl {
    grid-template-columns: 1fr;
  }

  .detail-actions .button {
    width: 100%;
  }
}
