:root {
  --bg: #fdfcff;
  --surface: #ffffff;
  --surface-low: #f7f6f9;
  --surface-mid: #f1f0f4;
  --ink: #1a1c1e;
  --muted: #44474f;
  --soft: #74777f;
  --line: #c4c6d0;
  --line-soft: #e0e2ec;
  --primary: #005bc1;
  --primary-soft: #d8e2ff;
  --primary-ink: #001a41;
  --green: #16a34a;
  --danger: #ba1a1a;
  --shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body.theme-dark {
  --bg: #0b1118;
  --surface: #111a24;
  --surface-low: #0f1720;
  --surface-mid: #182536;
  --ink: #f6f8fb;
  --muted: #bac7d6;
  --soft: #8ea0b4;
  --line: #32445b;
  --line-soft: #243347;
  --primary-soft: #102f62;
  --primary-ink: #dbeafe;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 24px;
  background: rgba(253, 252, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

body.theme-dark .topbar {
  background: rgba(11, 17, 24, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand #siteName { display: none; }

.brand img {
  display: block;
  width: 172px;
  height: 64px;
  border-radius: 4px;
  object-fit: contain;
}

.main-nav {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a {
  border-radius: 4px;
  padding: 18px 10px 16px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

body.theme-dark .main-nav {
  color: #ffffff;
}

body.theme-dark .main-nav a:hover,
body.theme-dark .main-nav a.is-active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.menu-toggle {
  order: 5;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
  padding: 9px;
}

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

.menu-toggle span + span {
  margin-top: 6px;
}

.theme-toggle {
  order: 4;
  margin-left: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.topbar .whatsapp-mini {
  order: 3;
}

.floating-whatsapp,
.floating-messenger {
  position: fixed;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  transition: transform .18s;
}

.floating-whatsapp { right: 22px; }
.floating-messenger { right: 78px; }

.floating-whatsapp:hover,
.floating-messenger:hover {
  transform: translateY(-2px) scale(1.03);
}

.floating-whatsapp img,
.floating-messenger svg,
.floating-messenger img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.theme-toggle .material-symbols-outlined {
  font-size: 22px;
  grid-area: 1 / 1;
}

.theme-sun,
.theme-dark .theme-moon {
  opacity: 0;
  transform: scale(.72);
}

.theme-moon,
.theme-dark .theme-sun {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-mini,
.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 44px;
  border-radius: 6px;
  padding: 0 20px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform .18s, opacity .18s, background .18s, border-color .18s;
}

.whatsapp-mini,
.primary-btn {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .15);
}

.secondary-btn {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--soft);
}

.ghost-btn {
  background: var(--surface-mid);
  color: var(--ink);
  border-color: var(--line-soft);
}

.danger-btn {
  background: #ffdad6;
  color: var(--danger);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.whatsapp-mini:hover {
  transform: translateY(-1px);
}

.view { width: 100%; }
.is-hidden { display: none !important; }

.hero-shell {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-low);
}

.hero-shell.is-clickable {
  cursor: pointer;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--overlay-color, 0, 0, 0), var(--overlay-opacity, .55));
}

.theme-dark .hero-media::after {
  background: rgba(var(--overlay-color, 0, 0, 0), var(--overlay-opacity, .55));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero-copy p {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 91, 193, .16);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy span {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.hero-actions .primary-btn {
  background: var(--primary);
  box-shadow: 0 12px 22px rgba(0, 91, 193, .22);
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 32px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}

.hero-dots button.is-active { background: var(--primary); }

.stories-band,
.content-band {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.content-band { padding-top: 40px; }
.content-band.muted { background: transparent; padding-bottom: 64px; }

.stories-band .section-heading {
  display: none;
}

.section-heading,
.page-head {
  margin: 0 0 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading p,
.page-head p,
.support-copy p {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.section-heading h2,
.page-head h1,
.support-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.story-row {
  display: flex;
  justify-content: flex-start;
  gap: clamp(28px, 7vw, 64px);
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.story-row:active { cursor: grabbing; }

.story-row::-webkit-scrollbar { display: none; }

.story-chip {
  width: 132px;
  flex: 0 0 132px;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.story-ring {
  width: 120px;
  height: 120px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(45deg, #f59e0b, #ec4899, #7c3aed);
  transition: transform .2s;
}

.story-chip:hover .story-ring { transform: scale(1.05); }

.story-ring img,
.story-ring video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--surface);
  border-radius: inherit;
  background: var(--surface-mid);
}

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

.muted .product-grid,
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 180px 150px 150px;
  gap: 12px;
  margin-top: 16px;
}

.catalog-tools label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 160px;
  height: auto;
}

.login-card h1 {
  margin: 0;
  font-size: 30px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.product-card:hover {
  border-color: rgba(0, 91, 193, .45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card figure {
  order: 2;
  margin: 14px 0 16px;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-low);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-media-link {
  order: 2;
  display: block;
}

.product-card figure img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform .3s;
}

.product-card:hover figure img { transform: scale(1.04); }

.badge,
.status-badge {
  position: static;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--surface-mid);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}

.badge::before,
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.status-badge::before { background: #eab308; }

.product-body {
  display: contents;
}

.product-body h3 {
  order: 3;
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.product-body h3 a:hover {
  color: var(--primary);
}

.product-body p {
  order: 4;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.price-line {
  order: 5;
  margin-top: auto;
  display: grid;
  gap: 2px;
}

.price {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.pix {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.installments {
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
}

.card-actions {
  order: 6;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  margin-top: 16px;
}

.card-actions .primary-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.icon-btn {
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.page-head {
  width: min(1280px, 100%);
  margin: 0 auto 32px;
  padding: 64px 24px 0;
  display: grid;
  align-items: start;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

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

.catalog-grid {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.repair-callout {
  width: min(1280px, calc(100% - 48px));
  margin: 8px auto 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-low);
}

.repair-copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.repair-copy .material-symbols-outlined {
  color: var(--primary);
  font-size: 48px;
  margin-bottom: 16px;
}

.repair-copy h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.repair-copy p {
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--muted);
}

.repair-image {
  min-height: 300px;
  background:
    linear-gradient(0deg, rgba(15,23,42,.08), rgba(15,23,42,.08)),
    url("https://images.unsplash.com/photo-1581993192008-63e896f4f744?auto=format&fit=crop&w=1200&q=86") center / cover;
}

body.theme-dark .repair-image {
  background:
    linear-gradient(0deg, rgba(11,17,24,.58), rgba(11,17,24,.58)),
    url("https://images.unsplash.com/photo-1581993192008-63e896f4f744?auto=format&fit=crop&w=1200&q=86") center / cover;
}

.support-layout {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: 64px;
  align-items: start;
}

.support-copy {
  min-height: 500px;
  border-radius: 4px;
  padding: 54px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(248,250,252,1) 0%, rgba(248,250,252,.76) 48%, rgba(248,250,252,.1) 100%),
    url("https://images.unsplash.com/photo-1581993192008-63e896f4f744?auto=format&fit=crop&w=1200&q=86") center / cover;
  border: 1px solid var(--line-soft);
}

body.theme-dark .support-copy {
  background:
    linear-gradient(90deg, rgba(11,17,24,.96) 0%, rgba(11,17,24,.78) 48%, rgba(11,17,24,.22) 100%),
    url("https://images.unsplash.com/photo-1581993192008-63e896f4f744?auto=format&fit=crop&w=1200&q=86") center / cover;
  border-color: var(--line);
}

.support-copy h1 {
  max-width: 520px;
  margin-top: 28px;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1.08;
}

.support-copy span {
  max-width: 540px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.support-form,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.support-form {
  padding: 32px;
  display: grid;
  gap: 16px;
}

.static-page {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.static-page > p {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.static-page h1 {
  margin: 0 0 28px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
}

.static-content {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.static-content p,
.static-content ul,
.static-content ol {
  margin: 0;
}

.static-content strong {
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: #f8fafc;
  color: var(--ink);
  padding: 11px 14px;
  outline: 0;
}

.theme-dark input,
.theme-dark textarea,
.theme-dark select {
  background: #0b1118;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

textarea { resize: vertical; }

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 24px 72px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.admin-tabs {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.admin-tabs button {
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  padding: 0 14px;
  font-weight: 700;
}

.admin-tabs button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-panel { display: grid; gap: 18px; }

.admin-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.admin-card h2,
.admin-card h3 { margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.span-2 { grid-column: 1 / -1; }

.card-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card-brand-admin {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card-brand-admin legend {
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.card-brand-admin legend img,
.card-brand-head img {
  width: 38px;
  height: 22px;
  object-fit: contain;
}

.admin-list { display: grid; gap: 10px; }

.admin-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 10px;
  background: var(--surface);
}

.admin-item img,
.admin-item video {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface-mid);
}

.admin-item strong,
.admin-item span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-item span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-preview img,
.gallery-preview video {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.product-modal,
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .62);
}

.modal-card {
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  background: var(--bg);
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(320px, 7fr) minmax(320px, 5fr);
  gap: 32px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .25);
}

.modal-gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}

.modal-main-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 32px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-row button {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  overflow: hidden;
  background: var(--surface);
}

.thumb-row button.is-active {
  border: 2px solid var(--primary);
}

.thumb-row img,
.thumb-row video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.modal-info h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.modal-info p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.modal-info .price {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 68px);
}

.close-x {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.story-viewer {
  width: min(430px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 28px));
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .35);
}

.story-viewer img,
.story-viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  gap: 10px;
}

.story-bars {
  display: grid;
  grid-auto-flow: column;
  gap: 5px;
}

.story-bars span {
  height: 3px;
  background: rgba(255,255,255,.36);
  border-radius: 999px;
  overflow: hidden;
}

.story-bars i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.story-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

.story-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 10px;
  color: #fff;
}

.story-bottom h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

.story-bottom .primary-btn { width: 100%; }

.product-page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.breadcrumb {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ink);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-main-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(14px, 3vw, 38px);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumbs button {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
  overflow: hidden;
}

.detail-thumbs button.is-active {
  border: 2px solid var(--primary);
}

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

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

.detail-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-chip {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 3.7vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.detail-price {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  gap: 6px;
}

.detail-price span,
.payment-box small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.detail-price strong {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.payment-boxes {
  display: grid;
  gap: 12px;
}

.payment-box {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.payment-box strong {
  color: var(--primary);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
}

.payment-box span {
  color: var(--muted);
  font-size: 16px;
}

.payment-box span + strong {
  margin-top: 4px;
}

.card-brand-list {
  display: grid;
  gap: 12px;
}

.card-brand {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.card-brand:first-child {
  border-top: 0;
  padding-top: 0;
}

.card-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-brand-head small {
  margin-left: auto;
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
}

.link-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-brand > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-brand > div span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}

.pix-box {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.detail-whatsapp {
  min-height: 56px;
  font-size: 18px;
}

.lightbox-card {
  width: min(1100px, calc(100vw - 40px));
  height: min(860px, calc(100vh - 40px));
  position: relative;
  border-radius: 8px;
  background: var(--surface);
  padding: 48px 18px 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
}

.lightbox-card .close-x {
  position: absolute;
  top: 10px;
  right: 10px;
}

.lightbox-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.installments-modal-card {
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .25);
}

.installments-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.installments-modal-head img {
  width: 58px;
  height: 36px;
  object-fit: contain;
}

.installments-modal-head small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.installments-modal-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.installments-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.installments-table th,
.installments-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.installments-table th {
  background: var(--surface-low);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.installments-table tr:last-child td {
  border-bottom: 0;
}

.story-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 58px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.story-prev { left: 10px; }
.story-next { right: 10px; }

.story-nav:hover {
  background: rgba(255, 255, 255, .28);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: 54px 24px 28px;
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 1fr;
  gap: 28px 64px;
  color: var(--muted);
}

.footer-logo {
  display: block;
  width: 176px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.footer-inner p {
  margin: 0;
  max-width: 460px;
  white-space: pre-line;
}

.footer-inner nav {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--surface-low);
}

.footer-social svg,
.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-inner a:hover {
  color: var(--primary);
}

.footer-inner > span {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
}

.footer-inner > span a {
  color: var(--primary);
  font-weight: 800;
}

body.theme-dark .site-footer {
  background: #0b1118;
  border-top-color: var(--line);
}

body.theme-dark .footer-inner {
  color: var(--muted);
}

body.theme-dark .footer-inner a:hover,
body.theme-dark .footer-inner > span a {
  color: #ffffff;
}

body.theme-dark .footer-social a {
  color: #ffffff;
  border-color: var(--line);
  background: var(--surface-mid);
}

body.theme-dark .topbar .main-nav a:hover,
body.theme-dark .topbar .main-nav a.is-active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

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

  .support-layout,
  .modal-card,
  .repair-callout,
  .footer-inner,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 68px;
    min-height: 68px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 3px 14px;
  }

  .brand { font-size: 18px; }
  .brand img {
    width: 126px;
    height: 62px;
  }
  .whatsapp-mini {
    min-width: 112px;
    padding-inline: 14px;
  }
  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-left: 0;
  }
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 18px 16px;
    background: rgba(253, 252, 255, .98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    justify-content: flex-start;
    gap: 4px;
    overflow: visible;
    flex-direction: column;
  }

  body.theme-dark .main-nav {
    background: rgba(11, 17, 24, .98);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .menu-open .main-nav { display: flex; }

  .hero-shell {
    min-height: 560px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .section-heading {
    display: grid;
  }

  .story-row {
    justify-content: flex-start;
  }

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

  .support-layout,
  .catalog-grid {
    width: min(100% - 36px, 1280px);
  }

  .support-copy {
    min-height: 420px;
    padding: 32px 24px;
  }

  .support-copy h1 {
    font-size: 42px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .admin-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .admin-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-item img,
  .admin-item video {
    width: 58px;
    height: 58px;
  }

  .admin-item .inline-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .product-page {
    width: min(100% - 36px, 1280px);
    padding-top: 30px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-chip {
    width: 112px;
    flex-basis: 112px;
  }

  .story-ring {
    width: 104px;
    height: 104px;
  }
}
