/* ==========================================================================
   LOJA TECH & COISAS — DESIGN SYSTEM
   Carregado depois do Bootstrap 5 para sobrepor os seus defaults.
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-card-hover: #27272a;
  --bg-input: #09090b;
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --border-subtle: #27272a;
  --topbar-bg: #39ff14;
  --topbar-text: #000000;
  --masthead-bg: #111111;
  --utility-bg: #0c0c0e;
  --electro-card-bg: #18181b;
  --electro-price: #0787d4;
  --electro-section-accent: #ff6b00;
  --footer-main-bg: #18181b;
  --footer-bottom-bg: #09090b;
  --footer-heading: #fafafa;
  --footer-link: #d4d4d8;
  --footer-copy: #a1a1aa;
  --footer-payments: #d4d4d8;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.55);
  --product-tab-neon: var(--accent-cta);
  --product-tab-neon-border: rgba(255, 107, 0, 0.72);
  --product-tab-neon-border-hover: rgba(255, 107, 0, 0.95);
  --product-tab-neon-glow: rgba(255, 107, 0, 0.22);
  --product-tab-neon-bg: rgba(255, 107, 0, 0.12);
  --product-tab-neon-text: #ffe8d6;
  color-scheme: dark;

  /* Bootstrap 5.3 — neutro no escuro, sem azul padrão */
  --bs-primary: #ff6b00;
  --bs-primary-rgb: 255, 107, 0;
  --bs-warning: #ff6b00;
  --bs-warning-rgb: 255, 107, 0;
  --bs-link-color: #ff6b00;
  --bs-link-hover-color: #e05e00;
  --bs-secondary-bg: var(--bg-secondary);
  --bs-tertiary-bg: var(--bg-card-hover);
  --bs-border-color: var(--border-subtle);
  --bs-form-control-bg: var(--bg-input);
  --bs-form-select-bg: var(--bg-input);
  --bs-nav-tabs-border-color: var(--border-subtle);
  --bs-nav-tabs-link-active-color: var(--text-main);
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-border-color: var(--border-subtle) var(--border-subtle) var(--bg-secondary);
  --bs-nav-link-color: var(--text-muted);
  --bs-nav-link-hover-color: var(--text-main);
}

[data-bs-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --topbar-bg: #39ff14;
  --topbar-text: #000000;
  --masthead-bg: #ffffff;
  --electro-card-bg: #ffffff;
  --electro-price: #0787d4;
  --electro-section-accent: #ff6b00;
  --footer-main-bg: #ffffff;
  --footer-bottom-bg: #f1f5f9;
  --footer-heading: #0f172a;
  --footer-link: #475569;
  --footer-copy: #64748b;
  --footer-payments: #64748b;
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 10px 15px -3px rgba(15, 23, 42, 0.12);
  --product-tab-neon: var(--accent-cta);
  --product-tab-neon-border: rgba(255, 107, 0, 0.65);
  --product-tab-neon-border-hover: var(--accent-cta);
  --product-tab-neon-glow: rgba(255, 107, 0, 0.16);
  --product-tab-neon-bg: rgba(255, 107, 0, 0.08);
  --product-tab-neon-text: #9a3412;
  color-scheme: light;
}

:root {
  /* Acentos e conversão — iguais nos dois temas */
  --accent-cta: #ff6b00;
  --accent-cta-hover: #e05e00;
  --accent-gamer: #10b981;
  --accent-brand: #ff6b00;
  --accent-mercadolivre: #ff6b00;
  --affiliate-accent: var(--accent-cta);
  --affiliate-accent-hover: var(--accent-cta-hover);
  --discount-tab-active-bg: #ffd400;
  --discount-tab-active-text: #111111;

  /* Fontes: System Font Stack, zero download e zero FOUT */
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Layout */
  --border-radius-sm: 0.375rem;
  --border-radius-lg: 0.75rem;
  --transition-fast: all 0.2s ease-in-out;

  /* Alvo mínimo de toque — WCAG 2.5.5 */
  --tap-target-min: 44px;
}

/* Ponte para as variáveis nativas do Bootstrap 5.3, evitando reescrever
   componente a componente. */
:root {
  --bs-body-bg: var(--bg-primary);
  --bs-body-color: var(--text-main);
  --bs-body-font-family: var(--font-family-base);
  --bs-body-font-size: var(--font-size-base);
  --bs-body-line-height: var(--line-height-base);
  --bs-secondary-color: var(--text-muted);
  --bs-border-radius: var(--border-radius-sm);
  --bs-border-radius-lg: var(--border-radius-lg);
  --bs-emphasis-color: var(--text-main);
  --bs-link-color-rgb: 255, 107, 0;
  --bs-link-hover-color-rgb: 224, 94, 0;
}

/* ==========================================================================
   GLOBAIS
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1440px;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Empurra o rodapé para a base em páginas curtas (404, listas vazias). */
.site-main {
  flex: 1 0 auto;
}

h1, .h1 { font-size: 2.25rem; font-weight: 700; color: var(--text-main); }
h2, .h2 { font-size: 1.75rem; font-weight: 700; color: var(--text-main); }
h3, .h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-main); }

/* Degraus tipográficos ausentes no Bootstrap, usados em badges e metadados. */
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }

.text-muted {
  color: var(--text-muted) !important;
}

.btn-warning {
  --bs-btn-bg: rgba(255, 107, 0, 0.2);
  --bs-btn-border-color: rgba(255, 107, 0, 0.2);
  --bs-btn-hover-bg: rgba(255, 107, 0, 0.3);
  --bs-btn-hover-border-color: rgba(255, 107, 0, 0.3);
  --bs-btn-active-bg: rgba(255, 107, 0, 0.36);
  --bs-btn-active-border-color: rgba(255, 107, 0, 0.36);
  --bs-btn-focus-shadow-rgb: 255, 107, 0;
  --bs-btn-disabled-bg: rgba(255, 107, 0, 0.12);
  --bs-btn-disabled-border-color: rgba(255, 107, 0, 0.12);
  box-shadow: none;
}

[data-bs-theme="dark"] .btn-warning {
  --bs-btn-color: #ffd8bc;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: rgba(255, 216, 188, 0.55);
}

[data-bs-theme="light"] .btn-warning {
  --bs-btn-color: #9a3412;
  --bs-btn-hover-color: #7c2d12;
  --bs-btn-active-color: #7c2d12;
  --bs-btn-disabled-color: rgba(154, 52, 18, 0.55);
}

.btn-outline-warning {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 107, 0, 0.42);
  --bs-btn-hover-bg: rgba(255, 107, 0, 0.14);
  --bs-btn-hover-border-color: rgba(255, 107, 0, 0.55);
  --bs-btn-active-bg: rgba(255, 107, 0, 0.2);
  --bs-btn-active-border-color: rgba(255, 107, 0, 0.62);
  --bs-btn-focus-shadow-rgb: 255, 107, 0;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(255, 107, 0, 0.22);
  box-shadow: none;
}

[data-bs-theme="dark"] .btn-outline-warning {
  --bs-btn-color: #ffb889;
  --bs-btn-hover-color: #ffe8d6;
  --bs-btn-active-color: #ffe8d6;
  --bs-btn-disabled-color: rgba(255, 184, 137, 0.45);
}

[data-bs-theme="light"] .btn-outline-warning {
  --bs-btn-color: #c2410c;
  --bs-btn-hover-color: #9a3412;
  --bs-btn-active-color: #9a3412;
  --bs-btn-disabled-color: rgba(194, 65, 12, 0.45);
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--accent-gamer);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 1080;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-cta);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
}

.skip-link:focus {
  top: 0.5rem;
}

/* ==========================================================================
   HEADER PÚBLICO
   ========================================================================== */

.site-header {
  background-color: var(--masthead-bg);
  border-bottom: none;
  box-shadow: var(--shadow-card);
}

.site-topbar {
  background-color: var(--topbar-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.site-topbar-promo {
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.site-topbar-promo-link {
  color: var(--topbar-text);
  text-decoration: none;
}

.site-topbar-promo-link:hover,
.site-topbar-promo-link:focus {
  color: var(--topbar-text);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .site-topbar-promo {
    font-size: 0.75rem;
  }
}

.site-masthead {
  background-color: var(--masthead-bg);
}

.site-masthead-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-toolbar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
}

@media (min-width: 992px) {
  .site-masthead-row {
    gap: 1.25rem;
  }

  .site-toolbar {
    margin-left: 0;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo-img {
  display: block;
  height: 2.75rem;
  width: auto;
}

[data-bs-theme="dark"] .site-logo-light,
[data-bs-theme="light"] .site-logo-dark {
  display: none;
}

.site-search {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.site-search:focus-within {
  border-color: var(--accent-cta);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.2);
}

.site-search-input {
  min-height: var(--tap-target-min);
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 1.125rem;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-main);
}

.site-search-input:focus {
  background-color: transparent;
  border: none;
  color: var(--text-main);
  box-shadow: none;
  outline: none;
}

.site-search-btn {
  width: 3.25rem;
  min-height: var(--tap-target-min);
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background-color: var(--accent-brand);
  color: #ffffff;
  cursor: pointer;
}

.site-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target-min);
  min-height: var(--tap-target-min);
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  background-color: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.site-icon-btn:hover,
.site-icon-btn:focus {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.site-icon-btn-outline {
  border-color: transparent;
  background-color: transparent;
}

a.site-icon-btn {
  text-decoration: none;
}

[data-bs-theme="dark"] .icon-sun,
[data-bs-theme="light"] .icon-moon {
  display: none;
}

.site-primary-nav {
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  margin-top: 0;
  overflow: visible;
}

@media (min-width: 992px) {
  .site-primary-nav {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .site-primary-nav {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    padding-top: 0.75rem;
  }

  .site-masthead-row {
    flex-wrap: wrap;
  }

  .site-primary-nav:not(.show) {
    display: none;
  }
}

.site-nav-item {
  position: relative;
}

.site-nav-caret {
  margin-left: 0.3rem;
  opacity: 0.65;
}

.site-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 15.5rem;
  padding-top: 0.35rem;
}

.site-nav-dropdown-panel {
  padding: 0.4rem 0;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.site-nav-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: normal;
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus {
  background: #f4f4f5;
  color: #111827;
}

.site-nav-item:hover > .site-nav-dropdown,
.site-nav-item:focus-within > .site-nav-dropdown {
  display: block;
}

@media (max-width: 991.98px) {
  .site-nav-caret {
    display: none;
  }

  .site-nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0.35rem 0.85rem;
  }

  .site-nav-dropdown-panel {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav-dropdown a,
  .site-nav-dropdown a:hover,
  .site-nav-dropdown a:focus {
    padding: 0.35rem 0;
    color: var(--text-main);
    background: transparent;
  }
}

.site-primary-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  padding: 0.375rem 0.75rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-primary-link:hover,
.site-primary-link:focus {
  color: var(--accent-brand);
}

.site-primary-link.active {
  color: var(--accent-brand);
}

[data-bs-theme="light"] .site-primary-link.active {
  color: var(--text-main);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent-brand);
}

.site-search-compact {
  width: min(26rem, 38vw);
}

@media (min-width: 1400px) {
  .site-search-compact {
    width: 28rem;
  }
}

.site-search-page {
  width: 100%;
}

.search-suggest-wrap {
  position: relative;
  min-width: 0;
}

.search-suggest-wrap.is-open {
  z-index: 1100;
}

.search-suggest-wrap .site-search {
  width: 100%;
}

.search-suggest-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  max-height: min(22rem, 60vh);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

.search-suggest-panel[hidden] {
  display: none !important;
}

.search-suggest-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.42) transparent;
}

.search-suggest-scroll::-webkit-scrollbar {
  width: 5px;
}

.search-suggest-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggest-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 107, 0, 0.35);
  border-radius: 999px;
}

.search-suggest-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 107, 0, 0.55);
}

.search-suggest-list {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.3;
}

.search-suggest-item:hover,
.search-suggest-item:focus,
.search-suggest-item.is-active {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--text-main);
  outline: none;
}

.search-suggest-thumb {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: #ffffff;
}

.search-suggest-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-suggest-body {
  min-width: 0;
  flex: 1 1 auto;
}

.search-suggest-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
}

.search-suggest-price {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-suggest-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.search-suggest-footer .search-suggest-item,
.search-suggest-all {
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-brand);
}

.catalog-filters-form .search-suggest-wrap {
  width: 100%;
}

.site-footer {
  color: var(--footer-link);
}

.site-footer-main {
  background-color: var(--footer-main-bg);
}

.site-footer-bottom {
  background-color: var(--footer-bottom-bg);
  border-top: 1px solid var(--border-subtle);
}

.site-footer-brand {
  display: inline-flex;
  line-height: 0;
}

.site-footer-logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.site-footer-heading {
  color: var(--footer-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-footer-links li + li {
  margin-top: 0.5rem;
}

.site-footer-links a {
  color: var(--footer-link);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus {
  color: var(--footer-heading);
  text-decoration: underline;
}

.site-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-copy {
  color: var(--footer-copy);
  font-size: 0.8125rem;
}

.site-footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: var(--footer-payments);
}

.site-footer-pay {
  display: inline-flex;
  line-height: 0;
}

.site-brand {
  color: var(--accent-mercadolivre);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--accent-cta);
}

.pagination .page-link {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.pagination .page-item.active .page-link {
  background-color: var(--accent-brand);
  color: #ffffff;
  border-color: var(--accent-brand);
  font-weight: 700;
}

.breadcrumb-item a {
  color: var(--accent-cta);
  text-decoration: none;
}

/* ==========================================================================
   HERO DA HOME
   ========================================================================== */

.hero-banner {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.72) 46%,
    rgba(15, 23, 42, 0.18) 100%
  );
}

.hero-kicker {
  color: var(--accent-mercadolivre);
  letter-spacing: 0.14em;
}

.hero-banner-title {
  font-size: 1.5rem;
  line-height: 1.25;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .hero-banner-image {
    height: 24rem;
  }

  .hero-banner-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   CARD DE PRODUTO
   ========================================================================== */

.card-custom {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
  overflow: hidden;
}

.card-custom:hover,
.card-custom:focus-within {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.product-thumb-wrap {
  position: relative;
}

/* Reserva o espaço da imagem antes do download (CLS = 0). */
.product-thumb,
.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: var(--border-radius-sm);
}

.product-thumb img,
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery-main {
  width: 100%;
  padding: 0;
  border: 0;
  background-color: #ffffff;
  cursor: zoom-in;
  position: relative;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery-nav-prev {
  left: 0.75rem;
}

.product-gallery-nav-next {
  right: 0.75rem;
}

.product-gallery-nav:hover,
.product-gallery-nav:focus-visible {
  opacity: 1;
  background: #ffffff;
  outline: none;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.product-thumb-wrap:hover .product-gallery-nav {
  opacity: 1;
}

.product-gallery-zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery-main:hover .product-gallery-zoom,
.product-gallery-main:focus-visible .product-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.product-gallery-layout {
  --gallery-thumb-size: 4.5rem;
  --gallery-thumb-gap: 0.5rem;
  --gallery-thumb-pad: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-gallery-thumbs {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gallery-thumb-gap);
  box-sizing: border-box;
  width: calc(var(--gallery-thumb-size) + (var(--gallery-thumb-pad) * 2));
  max-height: none;
  margin: 0;
  padding: var(--gallery-thumb-pad);
  overflow: visible;
}

.product-gallery-thumbs::-webkit-scrollbar {
  width: 0.35rem;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background-color: var(--border-subtle);
}

.product-gallery-thumb {
  display: block;
  flex: 0 0 var(--gallery-thumb-size);
  box-sizing: border-box;
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
  border-color: rgba(255, 107, 0, 0.45);
  outline: none;
}

.product-gallery-thumb.is-active {
  border-color: var(--product-tab-neon);
}

.product-gallery-thumb.is-collapsed {
  display: none;
}

.product-gallery-more {
  display: flex;
  flex: 0 0 var(--gallery-thumb-size);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  padding: 0.25rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.product-gallery-more[hidden] {
  display: none;
}

.product-gallery-more:hover,
.product-gallery-more:focus-visible {
  border-color: var(--product-tab-neon);
  outline: none;
}

.product-gallery-layout .product-thumb-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 575.98px) {
  .product-gallery-layout {
    --gallery-thumb-size: 3.5rem;
    --gallery-thumb-gap: 0.4rem;
    --gallery-thumb-pad: 0.3rem;
    gap: 0.5rem;
  }

}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 72rem);
  max-height: 100%;
}

.gallery-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-height: calc(100vh - 4rem);
}

.gallery-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: gallery-lightbox-fade-in 0.22s ease;
}

@keyframes gallery-lightbox-fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-lightbox-counter {
  margin-top: 0.85rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.gallery-lightbox-counter[hidden] {
  display: none;
}

.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transform: scale(1.04);
}

.gallery-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  transform: scale(1.05);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .gallery-lightbox-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    justify-items: center;
    gap: 1rem;
  }

  .gallery-lightbox-figure {
    order: 1;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-lightbox-prev {
    left: 0.5rem;
  }

  .gallery-lightbox-next {
    right: 0.5rem;
  }

  .gallery-lightbox-nav:hover,
  .gallery-lightbox-nav:focus-visible {
    transform: translateY(-50%) scale(1.05);
  }

  .gallery-lightbox-nav:disabled {
    transform: translateY(-50%);
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  margin: 0;
}

.product-title a {
  color: var(--text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title a:hover,
.product-title a:focus {
  color: var(--accent-cta);
}

.badge-category {
  background-color: var(--accent-gamer);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius-sm);
}

.price-reference {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   CTA DE AFILIADO
   ========================================================================== */

.btn-affiliate {
  background-color: var(--accent-cta);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.25rem;
  min-height: var(--tap-target-min);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-affiliate:hover,
.btn-affiliate:focus {
  background-color: var(--accent-cta-hover);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.45);
}

/* ==========================================================================
   ESTADO VAZIO
   ========================================================================== */

.empty-state {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--border-radius-lg);
  color: var(--text-muted);
  padding: 3rem 1.5rem;
  text-align: center;
}

/* ==========================================================================
   PAINEL DE ADMINISTRAÇÃO
   ========================================================================== */

.admin-body {
  --font-family-base: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--font-family-base);
  font-family: var(--font-family-base);
  background-color: var(--bg-primary);
}

.admin-shell {
  --admin-sidebar-width: 16.5rem;
  --admin-sidebar-collapsed-width: 4.75rem;
  --admin-topbar-height: 3.75rem;
  --admin-content-gutter: 1.25rem;
  display: flex;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .admin-shell {
    --admin-content-gutter: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .admin-shell {
    --admin-content-gutter: 2.25rem;
  }
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background-color: rgba(0, 0, 0, 0.62);
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: var(--admin-sidebar-width);
  height: 100vh;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  transition: width 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}

.admin-sidebar-head {
  flex-shrink: 0;
  min-height: var(--admin-topbar-height);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

.admin-sidebar-brand:hover,
.admin-sidebar-brand:focus {
  color: var(--accent-cta);
}

.admin-sidebar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--accent-cta);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-sidebar-brand-text {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-sidebar-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.75rem 1.5rem;
}

.admin-sidebar-section + .admin-sidebar-section {
  margin-top: 1.25rem;
}

.admin-sidebar-section-title {
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
  color: var(--accent-cta);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap-target-min);
  margin-bottom: 0.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.admin-sidebar-link.active {
  background-color: rgba(255, 107, 0, 0.14);
  color: var(--text-main);
  font-weight: 700;
}

[data-bs-theme="dark"] .admin-sidebar-link.active {
  color: #fff;
}

.admin-sidebar-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.125rem;
  justify-content: center;
}

.admin-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--admin-sidebar-width);
  transition: margin-left 0.22s ease;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--admin-topbar-height);
  padding: 0.75rem var(--admin-content-gutter);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-topbar-start,
.admin-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  background-color: transparent;
  color: var(--text-main);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.admin-topbar-btn:hover,
.admin-topbar-btn:focus {
  border-color: var(--accent-cta);
  color: var(--accent-cta);
}

.admin-topbar-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.admin-topbar-link:hover,
.admin-topbar-link:focus {
  color: var(--accent-cta);
}

.admin-topbar-user {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-content {
  flex: 1;
  padding: 1.5rem var(--admin-content-gutter) 2rem;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.admin-page-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.product-gallery-item {
  position: relative;
  width: 88px;
}

.product-gallery-item img {
  display: block;
  width: 88px;
  height: 88px;
  background: #111;
}

.product-gallery-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

.admin-form-tabs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-form-tabs-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: -1px;
  border-bottom: 0;
}

.admin-form-tabs-actions {
  flex: 0 0 auto;
  padding-bottom: 0.5rem;
}

.admin-form-tabs-nav .nav-link.has-error::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  background-color: var(--bs-danger);
  vertical-align: middle;
}

[data-bs-theme="dark"] .admin-form-tabs-nav .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
}

[data-bs-theme="dark"] .admin-form-tabs-nav .nav-link:hover,
[data-bs-theme="dark"] .admin-form-tabs-nav .nav-link:focus {
  color: var(--text-main);
  background-color: transparent;
  border-bottom-color: #3f3f46;
}

[data-bs-theme="dark"] .admin-form-tabs-nav .nav-link.active {
  color: var(--text-main);
  font-weight: 600;
  background-color: transparent;
  border-bottom-color: var(--text-main);
}

[data-bs-theme="light"] .admin-form-tabs-nav .nav-link {
  color: var(--text-main);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
}

[data-bs-theme="light"] .admin-form-tabs-nav .nav-link:hover,
[data-bs-theme="light"] .admin-form-tabs-nav .nav-link:focus {
  color: var(--text-main);
  background-color: transparent;
  border-bottom-color: rgba(15, 23, 42, 0.18);
}

[data-bs-theme="light"] .admin-form-tabs-nav .nav-link.active {
  color: var(--text-main);
  font-weight: 600;
  background-color: transparent;
  border-bottom-color: var(--text-main);
}

[data-bs-theme="light"] .admin-body .btn-warning {
  --bs-btn-color: var(--text-main);
  --bs-btn-hover-color: var(--text-main);
  --bs-btn-active-color: var(--text-main);
  --bs-btn-disabled-color: rgba(15, 23, 42, 0.45);
}

.admin-specs-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border-subtle);
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: var(--bg-card-hover);
}

.admin-specs-table th {
  font-weight: 500;
}

[data-bs-theme="dark"] .admin-body .form-control,
[data-bs-theme="dark"] .admin-body .form-select {
  background-color: var(--bg-input);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

[data-bs-theme="dark"] .admin-body .form-control:focus,
[data-bs-theme="dark"] .admin-body .form-select:focus {
  background-color: var(--bg-input);
  border-color: #3f3f46;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

[data-bs-theme="dark"] .admin-body .form-control::placeholder {
  color: #71717a;
}

[data-bs-theme="dark"] .admin-body .btn-outline-light {
  --bs-btn-color: var(--text-main);
  --bs-btn-border-color: var(--border-subtle);
  --bs-btn-hover-bg: var(--bg-card-hover);
  --bs-btn-hover-border-color: #3f3f46;
  --bs-btn-hover-color: var(--text-main);
}

[data-bs-theme="light"] .admin-body .btn-outline-light {
  --bs-btn-color: var(--text-main);
  --bs-btn-border-color: var(--border-subtle);
  --bs-btn-hover-bg: var(--bg-card-hover);
  --bs-btn-hover-border-color: rgba(15, 23, 42, 0.22);
  --bs-btn-hover-color: var(--text-main);
  --bs-btn-active-color: var(--text-main);
  --bs-btn-active-bg: rgba(15, 23, 42, 0.06);
  --bs-btn-active-border-color: rgba(15, 23, 42, 0.28);
}

[data-bs-theme="dark"] .admin-body .table-dark {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-border-color: var(--border-subtle);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}

.whatsapp-post-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  resize: vertical;
  min-height: 16rem;
}

.whatsapp-post-layout .whatsapp-post-image-wrap {
  max-width: 18.75rem;
}

.whatsapp-post-image {
  display: block;
  width: 100%;
  max-width: 18.75rem;
  height: auto;
  object-fit: contain;
  background: #111;
  border: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .whatsapp-post-layout .whatsapp-post-textarea {
    min-height: 18rem;
  }
}

@media (max-width: 767.98px) {
  .admin-form-tabs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-tabs-actions {
    padding-bottom: 0;
  }

  .admin-form-tabs-actions .btn {
    width: 100%;
  }
}

/* Sidebar recolhida (desktop) */
.admin-shell.is-sidebar-collapsed .admin-sidebar {
  width: var(--admin-sidebar-collapsed-width);
  overflow-x: hidden;
}

.admin-shell.is-sidebar-collapsed .admin-main {
  margin-left: var(--admin-sidebar-collapsed-width);
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-head {
  display: flex;
  justify-content: center;
  padding-inline: 0.5rem;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-brand {
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-brand-text,
.admin-shell.is-sidebar-collapsed .admin-sidebar-link-text,
.admin-shell.is-sidebar-collapsed .admin-sidebar-section-title {
  display: none;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-nav {
  overflow-x: hidden;
  padding-inline: 0.375rem;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-section + .admin-sidebar-section {
  margin-top: 0.5rem;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-link {
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0.625rem 0;
}

/* .table-responsive define overflow-x: auto, o que promove overflow-y a auto.
   O pixel fracionário da borda inferior da tabela bastava para o navegador
   desenhar uma barra de rolagem vertical inútil sobre o cartão. */
.admin-body .table-responsive {
  overflow-y: hidden;
}

.admin-datatable {
  width: 100% !important;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-active-bg: transparent;
  background-color: transparent;
}

.admin-datatable thead th {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  background-color: transparent !important;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-datatable tbody td {
  font-size: 0.875rem;
  vertical-align: middle;
  background-color: transparent !important;
}

.admin-datatable tbody tr {
  background-color: transparent !important;
}

.admin-datatable-thumb {
  display: block;
  width: 3rem;
  height: 3rem;
  background-color: #fff;
}

.admin-datatable-col-image {
  padding-right: 0.375rem !important;
  white-space: nowrap;
}

.admin-panel table.dataTable thead > tr > th.admin-datatable-col-image .dt-column-title {
  font-size: 0.6875rem;
  line-height: 1.15;
  white-space: normal;
}

.admin-panel table.dataTable thead th,
.admin-panel table.dataTable tbody td {
  background-color: transparent !important;
}

.admin-panel table.dataTable tbody tr {
  background-color: transparent !important;
}

.admin-panel table.dataTable tbody tr:hover > * {
  background-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none;
}

.admin-panel .dt-container table.dataTable > tbody > tr,
.admin-panel .dt-container table.dataTable > tbody > tr > th,
.admin-panel .dt-container table.dataTable > tbody > tr > td {
  background-color: transparent !important;
  box-shadow: none !important;
}

.admin-panel .dt-container table.dataTable > thead > tr > th,
.admin-panel .dt-container table.dataTable > thead > tr > td {
  background-color: transparent !important;
  box-shadow: none !important;
}

.admin-panel table.dataTable thead > tr > th div.dt-column-header,
.admin-panel table.dataTable thead > tr > th div.dt-column-footer,
.admin-panel table.dataTable thead > tr > td div.dt-column-header,
.admin-panel table.dataTable thead > tr > td div.dt-column-footer {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.375rem;
}

.admin-panel table.dataTable thead > tr > th.text-center div.dt-column-header,
.admin-panel table.dataTable thead > tr > td.text-center div.dt-column-header {
  justify-content: center;
}

.admin-panel table.dataTable thead > tr > th.text-end div.dt-column-header,
.admin-panel table.dataTable thead > tr > td.text-end div.dt-column-header {
  justify-content: flex-end;
}

.admin-datatable-col-daily-deal,
.admin-datatable-col-status,
.admin-datatable-col-clicks {
  text-align: center;
}

.admin-datatable-col-price,
.admin-datatable-col-discount {
  text-align: right;
  white-space: nowrap;
}

.admin-datatable-col-daily-deal .dt-column-title {
  white-space: nowrap;
}

.admin-datatable-col-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-datatable-col-ml-id {
  white-space: nowrap;
}

.admin-ml-item-id {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Larguras fixas: o layout automático mudava as colunas a cada página ou ordenação. */
#adminProductsTable {
  table-layout: fixed;
  width: 100% !important;
  min-width: 88rem;
}

#adminProductsTable col:nth-child(1) { width: 5%; }
#adminProductsTable col:nth-child(2) { width: 13%; }
#adminProductsTable col:nth-child(3) { width: 9%; }
#adminProductsTable col:nth-child(4) { width: 7.5%; }
#adminProductsTable col:nth-child(5) { width: 9%; }
#adminProductsTable col:nth-child(6) { width: 9.5%; }
#adminProductsTable col:nth-child(7) { width: 10.5%; }
#adminProductsTable col:nth-child(8) { width: 8%; }
#adminProductsTable col:nth-child(9) { width: 6.5%; }
#adminProductsTable col:nth-child(10) { width: 7%; }
#adminProductsTable col:nth-child(11) { width: 7%; }
#adminProductsTable col:nth-child(12) { width: 7%; }

#adminProductsTable .admin-affiliate-link {
  max-width: 100%;
}

.admin-panel table.dataTable thead > tr > th.text-center .dt-column-title,
.admin-panel table.dataTable thead > tr > td.text-center .dt-column-title {
  text-align: center;
}

.admin-panel table.dataTable thead > tr > th.text-end .dt-column-title,
.admin-panel table.dataTable thead > tr > td.text-end .dt-column-title {
  text-align: right;
}

.admin-panel table.dataTable thead > tr > th div.dt-column-header .dt-column-title,
.admin-panel table.dataTable thead > tr > th div.dt-column-footer .dt-column-title,
.admin-panel table.dataTable thead > tr > td div.dt-column-header .dt-column-title,
.admin-panel table.dataTable thead > tr > td div.dt-column-footer .dt-column-title {
  flex-grow: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-panel table.dataTable thead th.dt-orderable-asc,
.admin-panel table.dataTable thead th.dt-orderable-desc,
.admin-panel table.dataTable thead th.dt-ordering-asc,
.admin-panel table.dataTable thead th.dt-ordering-desc,
.admin-panel table.dataTable thead td.dt-orderable-asc,
.admin-panel table.dataTable thead td.dt-orderable-desc,
.admin-panel table.dataTable thead td.dt-ordering-asc,
.admin-panel table.dataTable thead td.dt-ordering-desc {
  cursor: pointer;
}

.admin-panel table.dataTable thead th .dt-column-order,
.admin-panel table.dataTable thead td .dt-column-order {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  align-self: center;
  flex-shrink: 0;
  width: 1.25rem !important;
  min-width: 1.25rem;
  height: 1rem;
  position: relative;
}

.admin-panel table.dataTable thead th .dt-column-order::before,
.admin-panel table.dataTable thead th .dt-column-order::after,
.admin-panel table.dataTable thead td .dt-column-order::before,
.admin-panel table.dataTable thead td .dt-column-order::after {
  content: "" !important;
  position: static !important;
  display: block !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 0.5625rem !important;
  height: 1rem !important;
  border: 0 !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
}

.admin-panel table.dataTable thead th .dt-column-order::before,
.admin-panel table.dataTable thead td .dt-column-order::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M4 12V3M4 3L1.25 5.75M4 3l2.75 2.75' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.admin-panel table.dataTable thead th .dt-column-order::after,
.admin-panel table.dataTable thead td .dt-column-order::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M4 2v9M4 11l-2.75-2.75M4 11l2.75-2.75' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.admin-panel table.dataTable thead th.dt-ordering-asc .dt-column-order::before,
.admin-panel table.dataTable thead td.dt-ordering-asc .dt-column-order::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M4 12V3M4 3L1.25 5.75M4 3l2.75 2.75' stroke='%23e4e4e7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
}

.admin-panel table.dataTable thead th.dt-ordering-desc .dt-column-order::after,
.admin-panel table.dataTable thead td.dt-ordering-desc .dt-column-order::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M4 2v9M4 11l-2.75-2.75M4 11l2.75-2.75' stroke='%23e4e4e7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
}

.admin-panel table.dataTable.display > tbody > tr > .sorting_1,
.admin-panel table.dataTable.display > tbody > tr > .sorting_2,
.admin-panel table.dataTable.display > tbody > tr > .sorting_3,
.admin-panel table.dataTable.order-column > tbody > tr > .sorting_1,
.admin-panel table.dataTable.order-column > tbody > tr > .sorting_2,
.admin-panel table.dataTable.order-column > tbody > tr > .sorting_3 {
  box-shadow: none !important;
}

.admin-daily-deal-switch .form-check-input {
  width: 2.5rem;
  height: 1.35rem;
  margin: 0;
  cursor: pointer;
}

.admin-daily-deal-switch .form-check-input:checked {
  background-color: var(--accent-cta);
  border-color: var(--accent-cta);
}

.admin-daily-deal-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.2);
}

.admin-affiliate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 220px;
  color: var(--text-main);
  text-decoration: none;
  vertical-align: middle;
}

.admin-affiliate-link__text {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-affiliate-link__icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.85;
}

.admin-affiliate-link:hover,
.admin-affiliate-link:focus-visible {
  color: var(--text-main);
  text-decoration: underline;
}

.admin-affiliate-link:hover .admin-affiliate-link__icon,
.admin-affiliate-link:focus-visible .admin-affiliate-link__icon {
  opacity: 1;
}

.admin-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  white-space: nowrap;
}

.admin-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  background-color: transparent;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.admin-table-action:hover,
.admin-table-action:focus {
  border-color: var(--accent-cta);
  color: var(--accent-cta);
}

.admin-table-action.is-danger:hover,
.admin-table-action.is-danger:focus {
  border-color: #ef4444;
  color: #ef4444;
}

.admin-table-action:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* DataTables — variáveis alinhadas ao data-bs-theme (não usa :root.dark nativo) */
.admin-body .dt-container {
  --dt-order-arrow-width: 5px;
  --dt-order-arrow-height: 4px;
  --dt-order-arrow-gap: 0;
  --dt-order-arrow_color: #71717a;
  --dt-order-arrow_opacity: 0.45;
  --dt-order-arrow_color-current: #e4e4e7;
  --dt-order-arrow_opacity-current: 1;
  --dt-header_padding: 0.625rem 0.75rem;
  --dt-body_padding: 0.625rem 0.75rem;
  --dt-control_color: var(--text-main);
  --dt-header_border: 1px solid var(--border-subtle);
  --dt-body_border: 1px solid var(--border-subtle);
  --dt-paging-button_color: var(--text-main);
  --dt-paging-button_background: var(--bg-primary);
  --dt-paging-button_border: 1px solid var(--border-subtle);
  --dt-paging-button_border-radius: var(--border-radius-sm);
  --dt-paging-button_color-disabled: var(--text-muted);
  --dt-paging-button_background-disabled: var(--bg-primary);
  --dt-paging-button_border-disabled: 1px solid var(--border-subtle);
  --dt-paging-button_color-current: var(--accent-cta);
  --dt-paging-button_background-current: rgba(255, 107, 0, 0.12);
  --dt-paging-button_border-current: 1px solid var(--accent-cta);
  --dt-paging-button_color-current-hover: var(--accent-cta);
  --dt-paging-button_background-current-hover: rgba(255, 107, 0, 0.18);
  --dt-paging-button_border-current-hover: 1px solid var(--accent-cta);
  --dt-paging-button_color-hover: var(--accent-cta);
  --dt-paging-button_background-hover: rgba(255, 107, 0, 0.08);
  --dt-paging-button_border-hover: 1px solid var(--accent-cta);
  --dt-input_background: var(--bg-primary);
  --dt-input_color: var(--text-main);
  --dt-input_border: 1px solid var(--border-subtle);
  --dt-input_border-radius: var(--border-radius-sm);
  color: var(--text-main);
}

.admin-panel .dt-layout-row {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-panel .dt-length label,
.admin-panel .dt-search label,
.admin-panel .dt-info {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.admin-panel .dt-paging .dt-paging-button {
  font-size: 0.8125rem;
}

.admin-panel .dt-length select {
  min-width: 4.5rem;
  margin-inline: 0.375rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
}

.admin-panel .dt-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-panel .dt-search input {
  min-width: 16rem;
  padding: 0.5rem 0.875rem 0.5rem 2.375rem;
  background-color: var(--bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-panel .dt-search input::placeholder {
  color: var(--text-muted);
}

.admin-panel .dt-search input:focus {
  border-color: var(--accent-cta);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
  outline: none;
}

.admin-panel .dt-length select:focus {
  border-color: var(--accent-cta);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
  outline: none;
}

.admin-col-id {
  width: 3.5rem;
  max-width: 4rem;
  padding-inline: 0.5rem !important;
  text-align: center;
  white-space: nowrap;
}

.admin-ranking-link {
  color: var(--text-main);
  text-decoration: none;
}

.admin-ranking-link:hover,
.admin-ranking-link:focus {
  color: var(--accent-cta);
}

/* Tom Select — campos select aprimorados (alternativa vanilla ao Select2) */
.admin-body .ts-wrapper.form-select,
.admin-body .ts-wrapper.single {
  padding: 0;
}

.admin-body .ts-control {
  background-color: var(--bg-input);
  border-color: var(--border-subtle);
  color: var(--text-main);
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
}

.admin-body .ts-dropdown {
  background-color: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.admin-body .ts-dropdown .active,
.admin-body .ts-dropdown .option.active {
  background-color: rgba(255, 107, 0, 0.2);
  color: #fff;
}

[data-bs-theme="light"] .admin-body .ts-dropdown .active,
[data-bs-theme="light"] .admin-body .ts-dropdown .option.active {
  color: var(--text-main);
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-shell.is-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-shell.is-sidebar-collapsed .admin-main {
    margin-left: 0;
  }
}

/* Painéis informativos do dashboard não são alvos clicáveis; a elevação do
   catálogo deslocaria os KPIs e o gráfico ao passar o rato. */
.card-static:hover,
.card-static:focus-within {
  transform: none;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}

.kpi-value {
  color: var(--text-main);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.kpi-value.text-success {
  color: var(--bs-success);
}

/* Altura fixa reserva o espaço do canvas antes de o Chart.js correr (CLS = 0)
   e dá ao maintainAspectRatio: false um contentor de referência. */
.chart-wrapper {
  position: relative;
  height: 20rem;
}

/* Mantém as ações de publicação visíveis enquanto se rola um artigo longo. */
@media (min-width: 992px) {
  .form-sidebar {
    position: sticky;
    top: 1rem;
  }
}

/* Centra o cartão de login na dobra sem depender de JS nem de alturas fixas. */
.login-shell {
  min-height: calc(100vh - 6rem);
}

.login-card {
  max-width: 26rem;
}

/* O cartão de login não é um alvo clicável; o efeito de elevação do catálogo
   deslocaria o formulário ao focar os campos. */
.login-card:hover,
.login-card:focus-within {
  transform: none;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   HOME ELECTRO (home-v13)
   ========================================================================== */

.site-main-home {
  padding: 0;
}

.electro-hero {
  position: relative;
  z-index: 2;
  min-height: 22rem;
  overflow: visible;
  background-color: #0a0a0a;
}

.electro-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.electro-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  overflow: visible;
}

.electro-hero-inner .row,
.electro-hero-inner [class*="col-"] {
  overflow: visible;
}

.electro-hero-kicker {
  color: var(--accent-mercadolivre);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.electro-hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 36rem;
  text-transform: uppercase;
}

.electro-hero-highlight {
  color: var(--accent-mercadolivre);
}

.electro-hero-search {
  max-width: 36rem;
}

.hot-carousel {
  background-color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
}

.hot-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hot-carousel-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.hot-carousel-flame {
  font-size: 1rem;
  line-height: 1;
}

.hot-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hot-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hot-carousel-btn:hover:not(:disabled),
.hot-carousel-btn:focus:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.hot-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hot-carousel-viewport {
  overflow: hidden;
}

.hot-carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.hot-carousel-slide {
  flex: 0 0 50%;
  min-width: 0;
  padding: 0.625rem;
}

.hot-carousel-slide + .hot-carousel-slide {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hot-carousel-slide .affiliate-card {
  padding: 0;
  background-color: transparent;
}

.hot-carousel-slide .affiliate-card:hover,
.hot-carousel-slide .affiliate-card:focus-within {
  background-color: transparent;
}

.hot-product-category {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.hot-product-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.hot-product-title a {
  color: #ffffff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-product-title a:hover,
.hot-product-title a:focus {
  color: var(--accent-brand);
}

.hot-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background-color: #ffffff;
  text-decoration: none;
}

.hot-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hot-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hot-product-price {
  margin: 0;
  color: #ffffff;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.hot-product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
}

.hot-product-action:hover,
.hot-product-action:focus {
  background-color: var(--accent-brand);
  color: #ffffff;
}

.electro-promos {
  position: relative;
  z-index: 1;
  background-color: var(--bg-primary);
  padding: 1.5rem 0 0;
}

.electro-promos-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.electro-promo {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 11rem;
  border: none;
  border-radius: var(--border-radius-lg);
  background-color: #e2e8f0;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease;
}

.electro-promo:hover,
.electro-promo:focus {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: #334155;
}

.electro-promo-lg {
  grid-column: span 3;
}

.electro-promo-lg-wide {
  grid-column: span 6;
}

.electro-promo-sm {
  grid-column: span 3;
  min-height: 8.75rem;
}

.electro-promo-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.electro-promo-pos-center .electro-promo-photo {
  object-position: center center;
}

.electro-promo-pos-right .electro-promo-photo {
  object-position: right center;
}

.electro-promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: inherit;
  max-width: 54%;
  padding: 1.25rem 1rem 1.25rem 1.5rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.electro-promo-sm .electro-promo-content {
  max-width: 58%;
  padding: 1rem 0.75rem 1rem 1.125rem;
}

.electro-promo-text-light,
.electro-promo-text-light .electro-promo-tag,
.electro-promo-text-light .electro-promo-title,
.electro-promo-text-light .electro-promo-title strong,
.electro-promo-text-light .electro-promo-title-sm,
.electro-promo-text-light .electro-promo-title-sm strong,
.electro-promo-text-light .electro-promo-price-sm,
.electro-promo-text-light .electro-promo-price-sm strong,
.electro-promo-text-light .electro-promo-action {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.electro-promo-tag {
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.electro-promo-title {
  color: #1e293b;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.electro-promo-title strong {
  font-weight: 800;
  color: #0f172a;
}

.electro-promo-title.electro-promo-price {
  font-size: 1.125rem;
}

.electro-promo-title.electro-promo-price strong {
  font-size: 1.5rem;
  line-height: 1.2;
}

.electro-promo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
}

.electro-promo-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  min-height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--accent-cta);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.electro-promo:hover .electro-promo-action-icon,
.electro-promo:focus .electro-promo-action-icon {
  background-color: var(--accent-cta-hover);
}

.electro-promo-title-sm {
  color: #1e293b;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.electro-promo-title-sm strong {
  font-weight: 800;
  color: #0f172a;
}

.electro-promo-price-sm {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.electro-promo-price-sm strong {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.electro-section-title {
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
}

.electro-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
}

.electro-section-head .electro-section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  flex: 1 1 auto;
}

.electro-section-action {
  flex-shrink: 0;
  white-space: nowrap;
}

.catalog-filters {
  background-color: var(--electro-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.catalog-filters-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.catalog-filters-form .form-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.catalog-filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target-min);
  font-weight: 600;
}

.catalog-filters-toggle-badge {
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--affiliate-accent);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-filters-offcanvas {
  width: min(22rem, 92vw);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border-right: 1px solid var(--border-subtle);
}

.catalog-filters-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-filters-offcanvas .offcanvas-body {
  padding: 1.25rem;
}

.catalog-listing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-listing-title {
  color: var(--text-main);
}

.catalog-listing-count {
  flex-shrink: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.catalog-listing-filters-note {
  color: var(--text-muted);
}

.electro-sidebar-list > li + li {
  border-top: 1px solid var(--border-subtle);
}

.electro-sidebar-list a {
  display: block;
  padding: 0.625rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.electro-sidebar-group-link {
  font-weight: 700;
  color: var(--text-main);
}

.electro-sidebar-sub {
  margin: 0 0 0.35rem;
  padding: 0 0 0.15rem 0.75rem;
}

.electro-sidebar-sub a {
  padding: 0.3rem 0;
  font-size: 0.8125rem;
}

.electro-sidebar-list a:hover,
.electro-sidebar-list a:focus {
  color: var(--text-main);
}

.electro-sidebar-banner {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 14rem;
  border-radius: var(--border-radius-lg);
  background-color: #e2e8f0;
  color: #1e293b;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease;
}

.electro-sidebar-banner:hover,
.electro-sidebar-banner:focus {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

.electro-sidebar-banner-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.electro-sidebar-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-height: 14rem;
  max-width: 72%;
  padding: 1.25rem 0.875rem 1.25rem 1.125rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.electro-sidebar-banner-title {
  display: block;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.electro-sidebar-banner-specs {
  display: block;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.electro-sidebar-banner-btn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.5rem 0.875rem;
  background-color: var(--accent-brand);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  text-shadow: none;
}

.electro-day-row,
.electro-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .electro-day-row,
  .electro-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .electro-day-row,
  .electro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.electro-discount-deals {
  margin-bottom: 2.5rem;
}

.electro-discount-deals-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.electro-discount-deals-title {
  justify-self: start;
  margin: 0;
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.electro-discount-deals-tabs {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.electro-discount-deals-tabs::-webkit-scrollbar {
  display: none;
}

.electro-discount-deals-tabs .nav-item {
  flex-shrink: 0;
}

.electro-discount-deals-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target-min);
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.electro-discount-deals-tab:hover,
.nav-link.electro-discount-deals-tab:focus {
  color: var(--text-main);
  background-color: transparent;
  outline: none;
}

.nav-link.electro-discount-deals-tab:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--discount-tab-active-bg) 55%, transparent);
}

.nav-link.electro-discount-deals-tab.active,
.nav-link.electro-discount-deals-tab.active:hover,
.nav-link.electro-discount-deals-tab.active:focus {
  background-color: var(--discount-tab-active-bg);
  color: var(--discount-tab-active-text);
  font-weight: 700;
}

.electro-discount-deals-all {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--tap-target-min);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.electro-discount-deals-all:hover,
.electro-discount-deals-all:focus {
  color: var(--text-main);
}

@media (max-width: 991.98px) {
  .electro-discount-deals-head {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.35rem;
  }

  .electro-discount-deals-tabs {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
  }
}

.electro-discount-deals-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .electro-discount-deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .electro-discount-deals-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.electro-card {
  background-color: var(--electro-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  transition: var(--transition-fast);
}

.electro-card:hover,
.electro-card:focus-within {
  box-shadow: var(--shadow-card-hover);
}

.electro-card-category {
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.electro-card-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.electro-card-title a {
  color: var(--text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.electro-card-title a:hover,
.electro-card-title a:focus {
  color: var(--accent-cta);
}

.electro-card-title-hot {
  min-height: auto;
}

.electro-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}

.electro-card-media img {
  max-width: 100%;
  max-height: 8rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.electro-card-hot-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.electro-card-media-hot {
  flex: 0 0 5rem;
  min-height: 5rem;
}

.electro-card-media-hot img {
  max-height: 5rem;
}

.electro-card-hot-meta {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.electro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.electro-card-price {
  color: var(--electro-price);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.electro-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--bg-card-hover);
  color: var(--text-main);
  text-decoration: none;
}

.electro-card-action:hover,
.electro-card-action:focus {
  background-color: var(--accent-brand);
  color: #ffffff;
}

.electro-card-hot {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.electro-card-hot .electro-card-category,
.electro-card-hot .electro-card-title a {
  color: #ffffff;
}

.electro-card-hot .electro-card-title a:hover,
.electro-card-hot .electro-card-title a:focus {
  color: var(--accent-mercadolivre);
}

@media (max-width: 991.98px) {
  .electro-promos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .electro-promo-lg,
  .electro-promo-sm {
    grid-column: span 1;
  }

  .electro-promo-lg-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .electro-hero-inner {
    padding: 2rem 0;
  }

  .electro-promos-grid {
    grid-template-columns: 1fr;
  }

  .electro-promo-lg,
  .electro-promo-lg-wide,
  .electro-promo-sm {
    grid-column: auto;
  }

  .electro-promo {
    min-height: 13rem;
  }

  .electro-promo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.72) 42%,
      transparent 68%
    );
    pointer-events: none;
  }

  .electro-promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 1rem 1.125rem 1.25rem;
    text-shadow: none;
  }

}

/* ==========================================================================
   CARD AFILIADO (feed ML)
   ========================================================================== */

.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem;
  background-color: transparent;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: none;
  transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.affiliate-card:hover,
.affiliate-card:focus-within {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
}

.affiliate-card-media-wrap {
  position: relative;
}

.affiliate-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background-color: #ffffff;
  text-decoration: none;
}

.product-actions--overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
  color: #334155;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.product-actions--sm.product-actions--overlay {
  top: 0.5rem;
  right: 0.5rem;
  gap: 0.375rem;
}

.product-actions--sm .product-action {
  width: 2.25rem;
  min-height: 2.25rem;
}

.product-actions--lg .product-action {
  width: 3rem;
  min-height: 3rem;
}

.product-actions--lg.product-actions--overlay {
  top: 1rem;
  right: 1rem;
  gap: 0.625rem;
}

.product-action:hover,
.product-action:focus {
  color: #334155;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.22);
}

.product-action-favorite.is-active:hover,
.product-action-favorite.is-active:focus {
  color: #ef4444;
}

.product-action-favorite-icon {
  display: block;
  shape-rendering: geometricPrecision;
}

.product-action-favorite.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.product-action-favorite.is-active .product-action-favorite-icon path {
  fill: currentColor;
}

.affiliate-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.affiliate-card-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.affiliate-card-title a {
  color: var(--text-main);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.affiliate-card-title a:hover,
.affiliate-card-title a:focus {
  color: var(--accent-brand);
}

.affiliate-card-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.affiliate-card-discount-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
}

.affiliate-card-original-price {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: line-through;
}

.affiliate-card-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: #16a34a;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.affiliate-card-price {
  margin: 0;
  color: var(--text-main);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.affiliate-card-price-note {
  margin-left: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.affiliate-card-installments {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.affiliate-card-installments strong {
  color: var(--text-main);
}

.affiliate-card-coupon {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.625rem;
  min-height: var(--tap-target-min);
  padding: 0.625rem 0.875rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.affiliate-card-coupon:hover,
.affiliate-card-coupon:focus {
  border-color: var(--affiliate-accent);
  color: var(--text-main);
}

.affiliate-card-coupon.is-expired {
  opacity: 0.82;
}

.affiliate-card-coupon-icon,
.affiliate-card-coupon-view {
  flex-shrink: 0;
}

.affiliate-card-coupon > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  white-space: nowrap;
}

.affiliate-card-coupon-off {
  color: var(--affiliate-accent);
  font-weight: 700;
}

.affiliate-card-coupon--detail {
  font-size: 1rem;
}

.affiliate-card-coupon--detail .affiliate-card-coupon-off {
  font-size: 1.25rem;
}

.affiliate-card-coupon-view {
  margin-left: auto;
}

.affiliate-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target-min);
  margin-top: auto;
  padding: 0.75rem 1rem;
  background-color: var(--affiliate-accent);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.affiliate-card-cta:hover,
.affiliate-card-cta:focus {
  background-color: var(--affiliate-accent-hover);
  color: #ffffff;
}

.affiliate-card-compact {
  padding: 0.875rem;
  gap: 0.625rem;
}

.affiliate-card-compact .affiliate-card-title {
  font-size: 0.8125rem;
}

.affiliate-card-compact .affiliate-card-price {
  font-size: 1.25rem;
}

.affiliate-card-hot {
  padding: 0.875rem;
  gap: 0.625rem;
}

.affiliate-card-hot:hover,
.affiliate-card-hot:focus-within {
  background-color: rgba(255, 255, 255, 0.05);
}

.affiliate-card-hot .affiliate-card-title a,
.affiliate-card-hot .affiliate-card-price,
.affiliate-card-hot .affiliate-card-installments strong {
  color: #ffffff;
}

.affiliate-card-hot .affiliate-card-original-price {
  color: rgba(255, 255, 255, 0.55);
}

.affiliate-card-hot .affiliate-card-installments {
  color: rgba(255, 255, 255, 0.72);
}

.affiliate-card-hot .affiliate-card-media {
  background-color: #ffffff;
}

.affiliate-card-hot .affiliate-card-title {
  font-size: 0.8125rem;
}

.affiliate-card-hot .affiliate-card-price {
  font-size: 1.25rem;
}

.affiliate-card-hot .affiliate-card-cta {
  font-size: 0.75rem;
  padding: 0.625rem 0.875rem;
}

/* ==========================================================================
   MODAL DE CUPOM
   ========================================================================== */

.coupon-modal[hidden] {
  display: none;
}

.coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.coupon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.coupon-modal-dialog {
  position: relative;
  width: min(28rem, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  background-color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
}

.coupon-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.coupon-modal-close:hover,
.coupon-modal-close:focus {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.08);
}

.coupon-modal-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.coupon-modal-badge {
  display: inline-flex;
  margin: 0 auto 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  background-color: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coupon-modal-badge[hidden] {
  display: none;
}

.coupon-modal-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.25rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(248, 250, 252, 0.28);
  border-radius: 0.85rem;
  background: transparent;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.coupon-modal-code:hover,
.coupon-modal-code:focus {
  border-color: var(--affiliate-accent);
  color: #ffffff;
}

.coupon-modal-hint,
.coupon-modal-note {
  margin: 0 0 0.85rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.coupon-modal-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-target-min);
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 9999px;
  background-color: var(--affiliate-accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.coupon-modal-confirm:hover,
.coupon-modal-confirm:focus {
  background-color: var(--affiliate-accent-hover);
  color: #ffffff;
}

body.coupon-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   ABAS DA PÁGINA DO PRODUTO
   ========================================================================== */

.product-detail-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 0;
}

.product-detail-tabs-nav .nav-item {
  margin: 0;
}

.product-detail-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target-min);
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--product-tab-neon-border);
  border-radius: 9999px;
  background-color: transparent;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-detail-tab-badge:hover,
.product-detail-tab-badge:focus {
  color: var(--text-main);
  border-color: var(--product-tab-neon-border-hover);
  background-color: var(--product-tab-neon-bg);
  box-shadow: 0 0 14px var(--product-tab-neon-glow);
  outline: none;
}

.product-detail-tab-badge.active {
  color: var(--product-tab-neon-text);
  border-color: var(--product-tab-neon-border-hover);
  background-color: var(--product-tab-neon-bg);
  box-shadow: 0 0 18px var(--product-tab-neon-glow);
  font-weight: 600;
}

.product-detail-tabs-content {
  padding-top: 0.25rem;
}

.product-detail-description {
  white-space: pre-wrap;
}

.product-review-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-review-videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-review-video {
  min-width: 0;
}

.product-review-video .ratio {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* ==========================================================================
   FICHA TÉCNICA DO PRODUTO
   ========================================================================== */

.product-specs-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.product-specs-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
  border-bottom: 0;
}

.product-specs-table th {
  width: 34%;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
}

.product-specs-table td {
  color: var(--text-main);
}

@media (max-width: 575.98px) {
  .product-specs-table th,
  .product-specs-table td {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
  }

  .product-specs-table th {
    padding-bottom: 0.15rem;
    border-bottom: 0;
  }

  .product-specs-table td {
    padding-top: 0.15rem;
  }
}

/* ==========================================================================
   PREFERÊNCIAS DO SISTEMA
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card-custom:hover,
  .card-custom:focus-within,
  .btn-affiliate:hover,
  .btn-affiliate:focus,
  .btn-affiliate:active {
    transform: none;
  }
}
