@font-face {
  font-family: 'TungstenNarrow';
  src: url('./assets/fonts/TungstenNarrow-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Oculta botão de revelar senha duplicado nativo do Windows / Edge */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

:root {
  --sslabs-blue-primary: #0284c7;
  --sslabs-blue-hover: #0369a1;
  --sslabs-blue-light: #38bdf8;
  --sslabs-cyan: #0097b2;
  --sslabs-blue-glow: rgba(2, 132, 199, 0.35);
  --sslabs-gradient: linear-gradient(135deg, #0284c7 0%, #0097b2 50%, #38bdf8 100%);
  --sslabs-gradient-header: linear-gradient(90deg, #0284c7 0%, #0097b2 60%, #38bdf8 100%);

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-input: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0284c7;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --card-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.07);
  --card-shadow-hover: 0 12px 26px -4px rgba(2, 132, 199, 0.16);
  --modal-backdrop: rgba(15, 23, 42, 0.72);

  --badge-promo-bg: #fee2e2;
  --badge-promo-text: #dc2626;
  --badge-promo-border: #fecaca;

  --badge-tag-bg: #e0f2fe;
  --badge-tag-text: #0369a1;
  --badge-tag-border: #bae6fd;

  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: #e2e8f0;

  --carousel-duration: 5000ms;
}

[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-subtle: #172033;
  --bg-input: #131c31;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  --card-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 14px 32px rgba(2, 132, 199, 0.25);
  --modal-backdrop: rgba(3, 7, 18, 0.84);

  --badge-promo-bg: rgba(220, 38, 38, 0.18);
  --badge-promo-text: #f87171;
  --badge-promo-border: rgba(248, 113, 113, 0.35);

  --badge-tag-bg: rgba(2, 132, 199, 0.16);
  --badge-tag-text: #38bdf8;
  --badge-tag-border: rgba(56, 189, 248, 0.3);

  --header-bg: rgba(15, 23, 42, 0.96);
  --header-border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.icon-svg {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

.top-gradient-stripe {
  height: 4px;
  background: var(--sslabs-gradient-header);
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  box-sizing: border-box;
}

/* ── LOGO ALINHADA VERTICALMENTE (TOPO E RODAPÉ) ── */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img,
.site-footer .footer-brand h4 img {
  height: 21px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  filter: none;
  display: block;
}

[data-theme="dark"] .brand-logo-img,
[data-theme="dark"] .site-footer .footer-brand h4 img {
  filter: brightness(0) invert(1);
}

.brand-title-group {
  display: inline-flex;
  align-items: center;
}

.brand-store-title {
  font-family: 'TungstenNarrow', sans-serif;
  font-size: 26px;
  line-height: 1;
  padding-top: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sslabs-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  transform: translateY(0px);
  margin: 0;
}

.header-search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-input-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.search-input-box:focus {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--sslabs-blue-glow);
}

.search-icon-inside {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  display: none;
  padding: 2px;
  border-radius: 50%;
}
.search-clear-btn:hover {
  color: var(--text-main);
}

/* Fundo da pesquisa sem blur pesado para rodar liso em PCs antigos */
.search-backdrop {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.55);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.search-drawer {
  position: absolute;
  top: calc(100% + 10px);
  left: -40px;
  right: -40px;
  min-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  max-height: 520px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 1100;
}

.search-drawer.open {
  display: flex;
}

.search-drawer-header {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.search-drawer-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
}

.search-drawer-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--sslabs-blue-primary);
}

.search-drawer-list {
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
  gap: 0.45rem;
}

.search-product-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.search-product-card:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-focus);
}

.search-card-img-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.search-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-card-badge-mini {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.search-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-card-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin: 0;
}

.search-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: var(--badge-tag-bg);
  color: var(--badge-tag-text);
  border: 1px solid var(--badge-tag-border);
}

.search-card-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.search-card-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.search-card-price-orig {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-card-price-current {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--sslabs-blue-primary);
}

.search-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-search-customize {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-search-customize:hover {
  background: var(--sslabs-blue-hover);
}

.btn-search-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-search-info {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.action-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.action-icon-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  color: var(--sslabs-blue-primary);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.cart-bounce {
  animation: cartHop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartHop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ── CARROSSEL HERO E BARRINHAS DINÂMICAS ── */
.hero-carousel-section {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.carousel-viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  height: 400px;
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 768px) {
  .carousel-viewport {
    height: 480px;
  }
}

.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2.5rem 3.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.35) 25%, rgba(15, 23, 42, 0.05) 45%, transparent 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  color: #ffffff;
}

.carousel-slide.is-active .slide-badge {
  animation: slideContentUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.carousel-slide.is-active .slide-title {
  animation: slideContentUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.carousel-slide.is-active .slide-subtitle {
  animation: slideContentUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.carousel-slide.is-active .slide-cta-row {
  animation: slideContentUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@keyframes slideContentUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.slide-title {
  font-family: 'TungstenNarrow', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.slide-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.slide-cta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px var(--sslabs-blue-glow);
}

.btn-primary:hover {
  background: var(--sslabs-blue-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.carousel-btn .icon-svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  stroke-width: 2.5;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.15);
  color: #38bdf8;
}

.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-indicators {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Barrinhas indicadoras animadas por transform (aceleradas por GPU, sem reflow) */
.indicator-dot {
  position: relative;
  width: 26px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.3s ease, background-color 0.2s ease;
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.indicator-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.indicator-dot.active {
  width: 54px;
  background: rgba(255, 255, 255, 0.22);
}

.indicator-dot.active::after {
  animation: indicatorFill var(--carousel-duration, 5000ms) linear forwards;
}

.carousel-viewport.is-paused .indicator-dot.active::after {
  animation-play-state: paused;
}

@keyframes indicatorFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.features-strip {
  max-width: 1280px;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--badge-tag-bg);
  color: var(--sslabs-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.products-section {
  max-width: 1280px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title-wrap h2 {
  font-family: 'TungstenNarrow', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1;
}

.section-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-subtle);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
}

.tab-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--sslabs-blue-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  box-shadow: var(--card-shadow);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--card-shadow-hover);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 230px;
  background: var(--bg-surface-subtle);
  overflow: hidden;
  display: block;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  line-height: 1;
}

.badge-pill.tag {
  background: var(--badge-tag-bg);
  color: var(--badge-tag-text);
  border: 1px solid var(--badge-tag-border);
}

.badge-pill.promo {
  background: var(--badge-promo-bg);
  color: var(--badge-promo-text);
  border: 1px solid var(--badge-promo-border);
}

.badge-pill.coming-soon {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 0.55rem;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.product-pricing {
  margin-bottom: 1rem;
}

.price-promo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.price-promo-bottom {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.1;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sslabs-blue-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.price-badge-discount {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--badge-promo-bg);
  color: var(--badge-promo-text);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
}

.price-coming-soon {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.btn-card-customize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-card-customize:hover {
  background: var(--sslabs-blue-hover);
}

.btn-card-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-card-download:hover {
  background: #059669;
}

.btn-card-details {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-card-details:hover {
  border-color: var(--border-focus);
  color: var(--sslabs-blue-primary);
  background: var(--bg-surface);
}

.btn-card-disabled {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Modais sem backdrop-filter para máxima fluidez em PCs mais antigos */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(14px);
  transition: transform 0.22s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-title-group h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: var(--text-main);
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

.customizer-modal-box {
  max-width: 960px;
}

.customizer-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 820px) {
  .customizer-body {
    grid-template-columns: 1fr;
  }
}

.deck-visualizer-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.visualizer-conn-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-muted);
}

.conn-badge.active {
  color: var(--sslabs-blue-primary);
  border-color: var(--border-focus);
  background: var(--badge-tag-bg);
}

.visualizer-svg-container {
  width: 100%;
  max-width: 360px;
}

.visualizer-summary-chip {
  margin-top: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
}

.customizer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.control-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-group-title span.selected-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sslabs-blue-primary);
}

.color-swatches-grid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(128, 128, 128, 0.25);
  outline: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}

.color-swatch-btn:hover {
  transform: scale(1.14);
}

.color-swatch-btn.active {
  outline-color: var(--sslabs-blue-primary);
  outline-offset: 2px;
  transform: scale(1.12);
}

.color-swatch-btn.color-blocked {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.6);
  position: relative;
}

.color-swatch-btn.color-blocked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #ef4444;
  transform: translateY(-50%) rotate(-45deg);
  border-radius: 2px;
}

.color-custom-input-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-subtle);
  position: relative;
  overflow: hidden;
}

.color-custom-input-label:hover {
  border-color: var(--sslabs-blue-primary);
  color: var(--sslabs-blue-primary);
}

.color-custom-input-label input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.icon-style-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.icon-style-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-style-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.icon-style-card.active {
  border-color: var(--sslabs-blue-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 2px var(--sslabs-blue-glow);
}

.icon-style-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-style-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.icon-style-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}

.icon-style-card.active .icon-style-check {
  display: flex;
}

.icon-style-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.icon-style-thumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.mini-icon-sample {
  width: 18px;
  height: 18px;
  display: inline-block;
  opacity: 0.75;
}

.icon-style-card.active .mini-icon-sample {
  color: var(--sslabs-blue-primary);
  opacity: 1;
}

.customizer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.customizer-price-wrap {
  display: flex;
  flex-direction: column;
}

.customizer-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.customizer-price-val {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sslabs-blue-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.details-modal-box {
  max-width: 760px;
}

.details-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-hero-img-wrap {
  width: 100%;
  height: 280px;
  background: var(--bg-surface-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.details-hero-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.details-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.details-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.details-specs-table tr:last-child {
  border-bottom: none;
}

.details-specs-table tr:hover td {
  background-color: var(--bg-surface-subtle);
}

.details-specs-table td {
  padding: 0.7rem 0.6rem;
  vertical-align: middle;
}

.details-specs-table td:first-child {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-muted);
  width: 36%;
  letter-spacing: 0.01em;
}

.details-specs-table td:last-child {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: var(--modal-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100vh;
  height: 100dvh;
  z-index: 2200;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg-surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.cart-item-specs {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.cart-item-price {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sslabs-blue-primary);
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.btn-qty {
  background: none;
  border: none;
  padding: 0.25rem 0.45rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-qty:hover {
  background: var(--bg-surface-subtle);
  color: var(--sslabs-blue-primary);
}

.cart-qty-num {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 0 0.4rem;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}

.btn-remove-item:hover {
  color: #dc2626;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: var(--text-muted);
  gap: 1rem;
  padding: 2rem;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--text-subtle);
  opacity: 0.6;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── BLOCO DE CÁLCULO DE FRETE NO CARRINHO ── */
.cart-shipping-calc-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-shipping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-shipping-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-shipping-user-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sslabs-blue-primary);
  background: rgba(2, 132, 199, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cart-shipping-input-group {
  display: flex;
  gap: 0.4rem;
}

.cart-shipping-input-group input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.cart-shipping-input-group input:focus {
  border-color: var(--sslabs-blue-primary);
}

.btn-calc-frete-cart {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-calc-frete-cart:hover {
  background: var(--sslabs-blue-glow);
  border-color: var(--sslabs-blue-primary);
  color: var(--sslabs-blue-primary);
}

.cart-shipping-feedback {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-shipping-results {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  max-height: 180px;
  overflow-y: auto;
}

.cart-shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-shipping-option:hover {
  border-color: var(--border-strong);
}

.cart-shipping-option.active {
  border-color: var(--sslabs-blue-primary);
  background: rgba(2, 132, 199, 0.06);
}

.cart-shipping-option-info {
  display: flex;
  flex-direction: column;
}

.cart-shipping-option-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-shipping-option-deadline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cart-shipping-option-price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-shipping-option-price.free {
  color: #10b981;
}

/* ── BLOCO DE CUPOM DE DESCONTO NO CARRINHO & CHECKOUT ── */
.cart-coupon-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.coupon-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  transition: border-color 0.15s ease;
}

.coupon-input-group:focus-within {
  border-color: var(--sslabs-blue-primary);
}

.coupon-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
}

.coupon-input-group input::placeholder {
  text-transform: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-subtle);
}

.btn-apply-coupon {
  background: var(--sslabs-blue-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-apply-coupon:hover {
  background: var(--sslabs-blue-hover);
}

.btn-apply-coupon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.coupon-applied-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.28);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--sslabs-blue-primary);
}

.coupon-applied-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-coupon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 4px;
}

.btn-remove-coupon:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.coupon-feedback {
  font-size: 0.76rem;
  line-height: 1.3;
}

.coupon-feedback.success {
  color: #16a34a;
}

.coupon-feedback.error {
  color: #dc2626;
}

.cart-totals-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.total-row.highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-subtle);
}

.total-row.highlight .total-val {
  color: var(--sslabs-blue-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.btn-checkout {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-checkout:hover {
  background: var(--sslabs-blue-hover);
}

.checkout-modal-box {
  width: min(1040px, 96vw);
  max-width: 1040px;
  height: min(860px, 94vh);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  background: var(--bg-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.checkout-modal-header {
  padding: 1.25rem 1.5rem 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* ── STEPPER DE 3 ETAPAS COM TAMANHO FIXO ── */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.stepper-step:hover {
  opacity: 0.85;
}

.stepper-step.active {
  opacity: 1;
}

.stepper-step.completed {
  opacity: 0.95;
}

.stepper-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.8px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.stepper-step.active .stepper-circle {
  border-color: var(--sslabs-blue-primary);
  color: #fff;
  background: var(--sslabs-blue-primary);
  box-shadow: 0 0 10px var(--sslabs-blue-glow);
}

.stepper-step.completed .stepper-circle {
  border-color: #10b981;
  color: #fff;
  background: #10b981;
}

.stepper-check {
  display: none;
  width: 13px;
  height: 13px;
  stroke: #fff;
  stroke-width: 2.8;
}

.stepper-step.completed .stepper-check {
  display: block;
}

.stepper-step.completed .stepper-num {
  display: none;
}

.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 0.65rem;
  transition: background 0.25s ease;
}

.stepper-line.completed {
  background: #10b981;
}

.checkout-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.checkout-step-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.checkout-step-body::-webkit-scrollbar {
  width: 6px;
}

.checkout-step-body::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-step-body::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.checkout-step-body::-webkit-scrollbar-thumb:hover {
  background: var(--sslabs-blue-primary);
}

.checkout-modal-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-checkout-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-checkout-secondary:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.checkout-modal-footer .btn-checkout {
  flex: 1;
  margin: 0;
  justify-content: center;
}

.form-row-2col {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-row-cep {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: space-between;
}

.flex-1 {
  flex: 1;
}

.input-with-action {
  display: flex;
  gap: 0.4rem;
}

.input-with-action .form-input {
  flex: 1;
}

.btn-input-action {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-input-action:hover {
  background: var(--sslabs-blue-glow);
  border-color: var(--sslabs-blue-primary);
  color: var(--sslabs-blue-primary);
}

.cep-helper-link {
  font-size: 0.74rem;
  margin-bottom: 0.65rem;
  white-space: nowrap;
}

.cep-helper-link a {
  color: var(--sslabs-blue-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shipping-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.35rem;
  letter-spacing: -0.01em;
}

/* ── CARDS DE SELEÇÃO INICIAL (ENVIO VS RETIRADA) ── */
.shipping-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shipping-type-card {
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.shipping-type-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.shipping-type-card.active {
  border-color: var(--sslabs-blue-primary);
  background: rgba(2, 132, 199, 0.05);
  box-shadow: 0 0 0 1px var(--sslabs-blue-primary);
}

.shipping-type-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.shipping-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sslabs-blue-primary);
  flex-shrink: 0;
}

.shipping-type-info {
  flex: 1;
}

.shipping-type-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.shipping-type-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.shipping-type-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.shipping-type-card.active .shipping-type-radio {
  border-color: var(--sslabs-blue-primary);
  background: var(--sslabs-blue-primary);
}

.shipping-type-card.active .shipping-type-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.shipping-type-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.shipping-estimate-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
}

.shipping-free-chip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #10b981;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.shipping-free-chip.highlight {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.28);
  color: var(--sslabs-blue-primary);
}

/* ── OPÇÕES DE FRETE CALCULADAS (PAC / SEDEX) ── */
.shipping-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.shipping-options-empty {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
}

.shipping-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.shipping-option-card.active {
  border-color: var(--sslabs-blue-primary);
  background: rgba(2, 132, 199, 0.05);
  box-shadow: 0 0 0 1px var(--sslabs-blue-primary);
}

.shipping-option-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shipping-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.shipping-option-card.active .shipping-option-radio {
  border-color: var(--sslabs-blue-primary);
  background: var(--sslabs-blue-primary);
}

.shipping-option-card.active .shipping-option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.shipping-option-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.shipping-option-deadline {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.shipping-option-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.shipping-option-price.free {
  color: #10b981;
}

/* ── CARD RETIRADA NA BANCADA ── */
.pickup-info-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}

.pickup-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--sslabs-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pickup-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pickup-location {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.pickup-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.pickup-badge-cost {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #10b981;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* ── REVISÃO NA ETAPA 3 EM 2 COLUNAS PADRONIZADAS E FIXAS ── */
.checkout-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 53%) minmax(0, 47%);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.review-col-left,
.review-col-right {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .checkout-review-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.order-success-modal-box {
  width: min(640px, 95vw);
  max-width: 640px;
  border-radius: 18px;
  padding: 2.25rem;
}

.checkout-delivery-summary {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkout-delivery-summary strong {
  color: var(--text-main);
}

.checkout-delivery-summary .summary-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-coupon-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-totals-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.checkout-total-row.discount {
  color: #10b981;
  font-weight: 600;
}

.checkout-total-row.interest {
  color: #f59e0b;
  font-weight: 600;
}

.checkout-total-row.final {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.checkout-total-row .total-highlight {
  color: var(--sslabs-blue-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .checkout-modal-box {
    width: 100%;
    height: 95vh;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }
  .order-success-modal-box {
    width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 16px 16px 0 0;
  }
  .shipping-type-selector {
    grid-template-columns: 1fr;
  }
  .stepper-label {
    display: none;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--sslabs-blue-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-helper {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.checkout-items-preview {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 200px;
  overflow-y: auto;
}

.preview-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.preview-item-row:hover {
  border-color: var(--border-strong);
}

.preview-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.preview-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.25;
}

.preview-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
}

.preview-item-specs {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.preview-item-thumb-wrapper {
  width: 92px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 3px;
}

.preview-deck-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.preview-deck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ── CARD DE FORMA DE PAGAMENTO NA REVISÃO ── */
.checkout-payment-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.payment-box-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.payment-method-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-method-card:hover {
  border-color: rgba(43, 114, 235, 0.35);
}

.payment-method-card#payMethodPix.active {
  border-color: #00bf63;
  background: rgba(0, 191, 99, 0.04);
  box-shadow: 0 0 0 1px #00bf63;
}

.payment-method-card#payMethodPix.active .payment-method-radio {
  border-color: #00bf63;
}

.payment-method-card#payMethodPix.active .payment-method-radio .radio-dot {
  background: #00bf63;
  display: block;
}

.payment-method-card#payMethodCard.active {
  border-color: var(--sslabs-blue-primary);
  background: rgba(43, 114, 235, 0.04);
  box-shadow: 0 0 0 1px var(--sslabs-blue-primary);
}

.payment-method-card#payMethodCard.active .payment-method-radio {
  border-color: var(--sslabs-blue-primary);
}

.payment-method-card#payMethodCard.active .payment-method-radio .radio-dot {
  background: var(--sslabs-blue-primary);
  display: block;
}

.payment-method-card:not(.active) .payment-method-radio {
  border-color: var(--border-subtle);
}

.payment-method-card:not(.active) .payment-method-radio .radio-dot {
  display: none;
}

.payment-method-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.payment-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #00bf63;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.payment-method-radio .radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bf63;
}

.payment-method-icon.pix {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 189, 174, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.payment-pix-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.payment-badge-instant {
  background: rgba(0, 191, 99, 0.14);
  color: #00bf63;
  border: 1px solid rgba(0, 191, 99, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.payment-method-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* ── FORMULÁRIO DE CARTÃO DE CRÉDITO NO CHECKOUT ── */
.card-form-wrapper {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
  animation: cardFadeIn 0.22s ease-out;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-form-wrapper .form-group {
  margin-bottom: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.card-form-wrapper .form-group:last-child {
  margin-bottom: 0.15rem;
}

.card-form-wrapper .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: block;
}

.card-form-wrapper .form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.card-form-wrapper .form-input:focus {
  border-color: var(--sslabs-blue-primary);
  box-shadow: 0 0 0 3px var(--sslabs-blue-glow);
  background: var(--bg-surface);
}

.card-form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
}

.card-form-grid-2col .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.card-input-relative {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.card-input-relative .card-number-input {
  padding-right: 5rem;
}

.card-brand-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sslabs-blue-primary);
  background: rgba(43, 114, 235, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(43, 114, 235, 0.25);
  pointer-events: none;
  transition: all 0.2s ease;
}

.card-brand-badge:empty {
  display: none;
}

.select-installments {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.2rem !important;
}

/* ── CAIXA DE ENDEREÇO NA CONTA DO CLIENTE ── */
.customer-address-box {
  margin-top: 0.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
}

.customer-address-box strong {
  color: var(--text-main);
}

.order-success-card {
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.success-check-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .success-check-circle {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}

.order-ref-badge {
  font-family: 'JetBrains Mono', monospace;
  background: var(--badge-tag-bg);
  color: var(--sslabs-blue-primary);
  border: 1px solid var(--badge-tag-border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── MONITORAMENTO AO VIVO DO PAGAMENTO (LIVE POLLING) ── */
.live-payment-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  background: rgba(0, 189, 174, 0.08);
  border: 1px solid rgba(0, 189, 174, 0.28);
  border-radius: 20px;
  font-size: 0.78rem;
  color: #00bdae;
  font-weight: 600;
  margin: 0.35rem auto 0.75rem auto;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bdae;
  box-shadow: 0 0 0 0 rgba(0, 189, 174, 0.7);
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 189, 174, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 189, 174, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 189, 174, 0);
  }
}

.payment-approved-banner {
  background: rgba(0, 191, 99, 0.08);
  border: 1.5px solid #00bf63;
  border-radius: 12px;
  padding: 1.25rem 1.1rem;
  text-align: center;
  margin: 0.6rem 0;
  animation: fadeInApproved 0.4s ease;
}

.payment-approved-banner .approved-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00bf63;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

.payment-approved-banner .approved-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.payment-approved-banner h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00bf63;
  margin-bottom: 0.35rem;
}

.payment-approved-banner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@keyframes fadeInApproved {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.25s ease;
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--sslabs-blue-primary); }

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── ALINHAMENTO E TEMA DA LOGO NO RODAPÉ ── */
.footer-brand h4 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin-bottom: 0.65rem;
}

.footer-brand h4 img {
  height: 18px !important;
  width: auto;
  max-width: 95px;
  display: block;
}

.footer-brand h4 span {
  font-family: 'TungstenNarrow', sans-serif !important;
  font-size: 22px !important;
  line-height: 1 !important;
  padding-top: 2px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sslabs-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  transform: translateY(0px);
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

.footer-col h5 {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--sslabs-blue-primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── RESPONSIVIDADE MOBILE ── */
@media (max-width: 768px) {
  .header-container {
    padding: 0.6rem 0.85rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .header-brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; gap: 0.5rem; }
  .header-search-wrapper { order: 3; width: 100%; max-width: 100%; margin-top: 0.15rem; }

  .search-input-box,
  .form-input,
  .form-textarea {
    font-size: 16px !important;
  }

  .search-input-box {
    padding: 0.48rem 0.85rem 0.48rem 2.4rem;
  }

  .search-backdrop { top: 98px; }

  .search-drawer {
    position: fixed;
    top: 110px;
    left: 10px;
    right: 10px;
    min-width: auto;
    max-height: 65vh;
    border-radius: 14px;
  }

  .search-product-card { padding: 0.65rem 0.75rem; gap: 0.75rem; }
  .search-card-img-wrap { width: 60px; height: 60px; }
  .search-card-title { font-size: 0.86rem; }
  .search-card-desc { display: none; }

  .btn-search-customize, .btn-search-download, .btn-search-info {
    padding: 0.4rem 0.6rem;
    font-size: 0.74rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .category-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .category-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; padding: 0.5rem 0.85rem; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-image-container { height: 145px; }
  .product-card-body { padding: 0.75rem 0.65rem; }
  .product-title { font-size: 0.92rem; margin-bottom: 0.2rem; }
  .product-desc { display: none; }
  .product-pricing { margin-bottom: 0.65rem; }
  .price-promo-row { gap: 0.12rem; }
  .price-promo-bottom { gap: 0.35rem; }
  .price-current { font-size: 1.05rem; }
  .price-original { font-size: 0.72rem; }
  .price-badge-discount { font-size: 0.65rem; padding: 0.1rem 0.3rem; }
  .price-coming-soon { font-size: 0.95rem; }
  .product-actions { gap: 0.35rem; }

  .btn-card-customize, .btn-card-download {
    padding: 0.5rem 0.35rem;
    font-size: 0.74rem;
    gap: 0.25rem;
  }

  .btn-card-details { width: 34px; height: 34px; }
  .btn-card-details .icon-svg { width: 0.95rem; height: 0.95rem; }

  .carousel-viewport { height: 420px; }

  .carousel-slide {
    min-height: 420px;
    background-position: 85% center;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem 1rem 2.2rem 1.15rem;
  }

  .slide-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.38) 40%, transparent 68%);
  }

  .slide-content {
    max-width: 310px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .slide-badge { font-size: 0.65rem; padding: 0.2rem 0.55rem; margin-bottom: 0.35rem; gap: 0.3rem; }
  .slide-badge .icon-svg { width: 11px; height: 11px; }
  .slide-title { font-size: 1.45rem; margin-bottom: 0.3rem; line-height: 1; }
  .slide-subtitle { font-size: 0.76rem; line-height: 1.35; margin-bottom: 0.75rem; max-width: 280px; color: #e2e8f0; }
  .slide-cta-row { gap: 0.45rem; display: flex; flex-wrap: wrap; }

  .slide-cta-row .btn-primary,
  .slide-cta-row .btn-secondary {
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    border-radius: 8px;
    gap: 0.35rem;
  }

  .modal-overlay { padding: 0.6rem; align-items: flex-end; }
  .modal-box { max-height: 92dvh; border-radius: 16px; }
  .modal-header { padding: 1rem 1.1rem; }
  .modal-title-group h3 { font-size: 1.1rem; }

  .customizer-body { grid-template-columns: 1fr; padding: 1rem; gap: 1.1rem; }
  .deck-visualizer-card { min-height: 240px; padding: 2.2rem 1rem 1rem; }
  .visualizer-svg-container { max-width: 270px; }
  .visualizer-summary-chip { font-size: 0.7rem; padding: 0.35rem 0.75rem; margin-top: 0.85rem; }

  .color-swatch-btn, .color-custom-input-label { width: 38px; height: 38px; }
  .icon-style-options-grid { grid-template-columns: 1fr; }
  .customizer-footer { padding: 0.9rem 1.1rem; gap: 0.75rem; }
  .customizer-price-val { font-size: 1.15rem; }
  .cart-drawer { width: 100%; max-width: 100%; }

  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; align-items: stretch; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .carousel-viewport { height: 390px; }
  .carousel-slide { min-height: 390px; background-position: 86% center; padding: 0.85rem 0.85rem 2rem 0.95rem; }
  .slide-content { max-width: 260px; }
  .slide-title { font-size: 1.3rem; }
  .slide-subtitle { font-size: 0.72rem; max-width: 240px; margin-bottom: 0.65rem; }
  .slide-cta-row .btn-primary, .slide-cta-row .btn-secondary { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .product-image-container { height: 130px; }
  .product-title { font-size: 0.86rem; }
  .price-current { font-size: 0.98rem; }
}

/* ── Checkout, Pix e Rastreio ── */
.form-group[hidden],
.pix-box[hidden],
.pix-fallback[hidden],
#btnWhatsComprovante[hidden],
#btnAcompanhar[hidden] {
  display: none !important;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-row input { margin-top: 0.2rem; flex-shrink: 0; }

.pix-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.pix-title { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--text-main); }
.pix-amount { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--sslabs-blue-primary); }
.pix-qr { width: 188px; height: 188px; padding: 8px; background: #ffffff; border-radius: 10px; line-height: 0; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-code-label { align-self: flex-start; font-size: 0.74rem; font-weight: 600; color: var(--text-muted); }

.pix-code {
  width: 100%;
  resize: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  word-break: break-all;
}

.btn-pix-copy {
  width: 100%;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sslabs-blue-primary);
  background: transparent;
  border: 1.5px solid var(--sslabs-blue-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-pix-copy:hover { background: var(--sslabs-blue-primary); color: #ffffff; }
.pix-fallback { font-size: 0.88rem; color: var(--text-muted); }

.track-result { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.track-result:empty { display: none; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.25rem; border-top: 1px solid var(--border-subtle); }
.track-head strong { font-family: 'JetBrains Mono', monospace; color: var(--sslabs-blue-primary); }
.track-head span { font-size: 0.85rem; color: var(--text-muted); }
.track-alert { padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.85rem; background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.track-steps { list-style: none; margin: 0; padding: 0; }
.track-steps li { position: relative; padding: 0.45rem 0 0.45rem 2rem; font-size: 0.86rem; color: var(--text-subtle); }
.track-steps li::before { content: ''; position: absolute; left: 0.2rem; top: 0.62rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid var(--border-subtle); background: var(--bg-surface); }
.track-steps li::after { content: ''; position: absolute; left: 0.55rem; top: 1.5rem; bottom: -0.45rem; width: 2px; background: var(--border-subtle); }
.track-steps li:last-child::after { display: none; }
.track-steps li.done { color: var(--text-main); }
.track-steps li.done::before { background: #16a34a; border-color: #16a34a; }
.track-steps li.done::after { background: #16a34a; }
.track-steps li.current { color: var(--sslabs-blue-primary); font-weight: 700; }
.track-steps li.current::before { background: var(--sslabs-blue-primary); border-color: var(--sslabs-blue-primary); box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18); }
.track-section-title { font-size: 0.78rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.35rem; }
.track-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; color: var(--text-muted); }
.track-history time { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-subtle); margin-right: 0.4rem; }

/* ── ÁREA DO CLIENTE & SISTEMA DE AUTENTICAÇÃO (BUILD 14) ── */
.user-account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-header-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--sslabs-blue-primary);
  display: block;
}

.user-header-initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  line-height: 1;
}

.user-greeting-pill {
  display: none !important;
}

.checkout-logged-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.checkout-logged-banner .logged-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.checkout-guest-banner {
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--sslabs-blue-primary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-text-action:hover {
  color: var(--sslabs-blue-hover);
}

.checkout-create-account-wrap {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.auth-modal-box {
  max-width: 480px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s ease;
}

.auth-tab-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

.auth-tab-btn.active {
  color: var(--sslabs-blue-primary);
  border-bottom-color: var(--sslabs-blue-primary);
  background: var(--bg-surface);
}

.auth-panel {
  padding: 1.5rem;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-wrap .form-input {
  width: 100%;
  padding-right: 2.75rem;
}

.pass-toggle-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-toggle-btn:hover {
  color: var(--text-main);
}

.recovery-code-notice {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.recovery-code-input {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  letter-spacing: 8px;
  font-weight: 700;
  color: var(--sslabs-blue-primary);
}

/* Modal de Perfil do Cliente */
.customer-modal-box {
  max-width: 620px;
}

.customer-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.customer-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
}

.customer-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sslabs-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.customer-profile-info {
  flex: 1;
  min-width: 0;
}

.customer-profile-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-profile-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-phone-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: #dc2626;
  color: #ffffff;
}

.customer-orders-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.customer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-section-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.customer-order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.18s ease;
}

.customer-order-card:hover {
  border-color: var(--border-focus);
}

.customer-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.customer-order-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sslabs-blue-primary);
}

.customer-order-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.customer-order-items-summary {
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.4;
}

.customer-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.customer-order-total {
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.015em;
  font-size: 0.95rem;
  color: var(--text-main);
}

.customer-order-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-order-action {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-order-action:hover {
  border-color: var(--sslabs-blue-primary);
  color: var(--sslabs-blue-primary);
}

.customer-orders-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Feedback sutil de tentativa de fechar clicando fora em modais importantes */
@keyframes modalShake {
  0%, 100% { transform: translateY(0); }
  20%, 60% { transform: translateY(-4px); }
  40%, 80% { transform: translateY(3px); }
}

.modal-box.modal-pulse-warning {
  animation: modalShake 0.35s ease-in-out;
  border-color: var(--sslabs-blue-primary) !important;
}

/* ── BOTÃO DE TEMA NO RODAPÉ ── */
.theme-footer-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}
.theme-footer-btn:hover {
  color: var(--text-main);
  border-color: var(--sslabs-blue-primary);
  background: var(--bg-surface);
}
.theme-footer-btn .theme-icon-sun { display: none; }
.theme-footer-btn .theme-icon-moon { display: inline-block; }
[data-theme="dark"] .theme-footer-btn .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .theme-footer-btn .theme-icon-moon { display: none; }

/* ── AVATAR DO CLIENTE NO MODAL DE PERFIL ── */
.customer-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.customer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sslabs-blue-primary);
  display: block;
}
.customer-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sslabs-blue-primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.customer-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.customer-avatar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

/* ── SINALIZAÇÃO DE STATUS COM DOT (CONTA DO CLIENTE & PEDIDOS) ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}
.status-badge.aguardando_pagamento {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
.status-badge.pago {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.status-badge.em_producao, .status-badge.em_montagem {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.status-badge.enviado {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
.status-badge.entregue, .status-badge.concluido {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.status-badge.cancelado {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* ── MODAL EXCLUSIVO DO RECORTADOR DE IMAGEM (CROPPER) ── */
.image-cropper-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.image-cropper-modal-overlay.open {
  display: flex;
}
.image-cropper-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.image-cropper-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.image-cropper-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.image-cropper-viewport-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background: #090d16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
.image-cropper-viewport-wrap:active {
  cursor: grabbing;
}
.image-cropper-canvas {
  display: block;
}
.image-cropper-controls {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
}
.image-cropper-controls label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.image-cropper-slider {
  flex: 1;
  accent-color: var(--sslabs-blue-primary);
  cursor: pointer;
}
.image-cropper-footer {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}