:root {
  --primary-red: #e60023;
  --primary-orange: #ff8a4c;
  --bg-main: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --text-light-gray: #9ca3af;
  --border-color: #eee;
  --green-success: #16a34a;
  --blue-info: #3b82f6;
  --yellow-star: #fbbf24;
  --app-max-width: 480px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.bg-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ededed; /* Fundo geral para desktop */
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* Container do App - Emula Mobile no Desktop */
.app-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  background-color: var(--bg-white);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  overflow-x: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
}

.icon-btn i {
  width: 20px;
  height: 20px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f3f3f3;
  border-radius: 9999px;
  padding: 6px 12px;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-dark);
}

.cart-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--primary-red);
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abas de Navegação */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab {
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-gray);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.tab.active {
  color: var(--text-dark);
  font-weight: 600;
  border-bottom-color: var(--primary-red);
}

/* Visão Geral: Carrossel */
.carousel-section {
  position: relative;
  background-color: var(--bg-white);
  padding: 4px;
}

.live-badge-wrapper {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.live-badge {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot-container {
  position: relative;
  display: flex;
  width: 8px;
  height: 8px;
}

.pulse-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #4ade80;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.live-text {
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}
.carousel-slide img.main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 10px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn i { width: 20px; height: 20px; color: var(--text-dark); }
.prev-btn { left: 0; border-radius: 0 9999px 9999px 0; }
.next-btn { right: 0; border-radius: 9999px 0 0 9999px; }

.carousel-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

/* Seção de Preços */
.price-section {
  background: linear-gradient(to right, var(--primary-red), var(--primary-orange));
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discount-badge {
  background: white;
  color: var(--primary-red);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.discount-badge i { width: 12px; height: 12px; }

.current-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
}

.ticket-icon-small {
  width: 16px;
  height: 16px;
}

.original-price {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.8;
}

.flash-sale-info {
  text-align: right;
  font-size: 12px;
}

.flash-title {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  font-weight: 600;
}
.flash-title i { width: 14px; height: 14px; fill: white; }

.flash-timer { opacity: 0.9; }

/* Scarcity Bar */
.scarcity-bar {
  background: linear-gradient(to right, #fdecef, #ffe4d6);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid #fcd9df;
}

.scarcity-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 600;
}
.zap-icon-red { width: 14px; height: 14px; fill: var(--primary-red); }

.scarcity-timer {
  color: var(--primary-red);
  font-weight: bold;
}
.pulse-animation {
  animation: pulseOpacity 2s infinite;
}
@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Informações do Produto */
.product-title-section {
  padding: 12px 16px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.bookmark-btn {
  background: none;
  border: none;
  color: var(--text-light-gray);
  cursor: pointer;
}
.bookmark-btn i { width: 20px; height: 20px; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}
.star-icon { width: 16px; height: 16px; fill: var(--yellow-star); color: var(--yellow-star); }
.gray-star { fill: transparent; color: #d1d5db; }
.rating-score { font-weight: 600; }
.review-count { color: var(--blue-info); }
.sold-count { color: var(--text-gray); }

/* Opções */
.options-section {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
}

.options-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.color-options-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: var(--bg-main);
  overflow: hidden;
  flex-shrink: 0;
}
.color-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.options-text {
  font-size: 12px;
  color: var(--text-gray);
  text-align: right;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Frete */
.shipping-section {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shipping-icon { width: 20px; height: 20px; color: #374151; margin-top: 2px; }

.shipping-details { font-size: 13px; }
.shipping-first-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.free-shipping-badge {
  background-color: #e8fbfd;
  color: #0097a7;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.shipping-old-fee { color: var(--text-light-gray); text-decoration: line-through; font-size: 12px; margin-top: 2px; }

/* Política */
.policy-section {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #374151;
}
.policy-icon { width: 20px; height: 20px; color: var(--text-gray); flex-shrink: 0; }
.dot-separator { color: var(--text-light-gray); margin: 0 4px; }

/* Proteção do Cliente */
.trust-section {
  padding: 0 12px 12px 12px;
}

.trust-card {
  border: 1px solid #ffe0a3;
  background-color: #fff8e7;
  border-radius: 12px;
  padding: 16px;
}

.trust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trust-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #e67e22;
  font-size: 14px;
}
.trust-title i { width: 18px; height: 18px; }
.trust-chevron { width: 16px; height: 16px; color: #e67e22; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  font-size: 13px;
  color: #1f2937;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item i { width: 16px; height: 16px; color: #e67e22; flex-shrink: 0; }

/* Garantias Lista */
.guarantee-list-section {
  padding: 12px 16px;
  border-top: 8px solid var(--bg-main);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.guarantee-item i { width: 14px; height: 14px; color: var(--primary-red); }

/* Vídeos */
.videos-section {
  padding: 24px 16px;
  border-top: 8px solid var(--bg-main);
  background-color: rgba(249, 250, 251, 0.3);
}

.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.videos-title {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.play-icon-solid { width: 16px; height: 16px; fill: black; color: black; }

.swipe-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light-gray);
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 9999px;
}

.videos-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
}
.videos-carousel::-webkit-scrollbar { display: none; }

.video-card {
  position: relative;
  flex-shrink: 0;
  width: 170px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  background: black;
  scroll-snap-align: start;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
}

.video-poster { width: 100%; height: 100%; object-fit: cover; }

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.play-btn-circle i { width: 24px; height: 24px; fill: var(--primary-red); color: var(--primary-red); margin-left: 4px; }

/* Descrição */
.description-section {
  padding: 12px 16px;
  border-top: 8px solid var(--bg-main);
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: linear-gradient(135deg, #111 0%, #444 100%);
}
.brand-name { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.2; }
.brand-subtitle { font-size: 11px; color: var(--text-gray); }

.section-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }

.desc-p { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 16px; }

.desc-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.desc-quote {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid #e5e7eb;
  padding-left: 12px;
}

.desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.desc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-circle i { width: 12px; height: 12px; color: #16a34a; }

/* Economia Diária */
.economy-card {
  margin-top: 32px;
  background: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #dcfce7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.economy-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eco-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-icon i { width: 20px; height: 20px; color: white; fill: white; }
.economy-header h4 { font-weight: 700; font-size: 15px; color: #14532d; text-transform: uppercase; letter-spacing: -0.02em; }

.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.eco-item { background: rgba(255,255,255,0.6); padding: 8px; border-radius: 12px; text-align: center; }
.eco-label { font-size: 10px; color: var(--text-gray); text-transform: uppercase; font-weight: 700; }
.eco-val { font-size: 14px; font-weight: 900; margin-top: 4px; }
.eco-val.red { color: #ef4444; }
.eco-val.orange { color: #f97316; }
.eco-item.active-eco {
  background: #16a34a;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.active-eco .eco-label { color: rgba(255,255,255,0.8); }
.active-eco .eco-val { color: white; }

.eco-footer {
  font-size: 12px;
  color: #166534;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  padding: 0 8px;
}

/* Comparativo */
.comparison-section { margin-top: 32px; }
.comp-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comp-bar { width: 4px; height: 16px; background: var(--primary-red); border-radius: 9999px; }

.table-container {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.comp-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.comp-table th {
  padding: 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #4b5563;
}
.comp-table td { padding: 12px; background: white; border-bottom: 1px solid #f3f4f6; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.t-main { color: #111827; }
.t-sub { font-size: 10px; color: #9ca3af; }
.highlight-row td { background: #fff5f6; font-weight: 700; }
.highlight-text { color: var(--primary-red); }
.t-badge { font-size: 9px; color: #16a34a; text-transform: uppercase; }

/* Reclame Aqui */
.reclame-aqui-card {
  margin-top: 32px;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ra-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #111 0%, #444 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  border-radius: 8px;
  flex-shrink: 0;
}
.ra-title { font-size: 13px; font-weight: 900; text-transform: uppercase; color: #5a8a1c; line-height: 1.2; }
.ra-subtitle { font-size: 11px; color: #4b5563; line-height: 1.4; margin-top: 2px; }

/* Loja Info */
.store-section {
  padding: 12px 16px;
  border-top: 8px solid var(--bg-main);
  display: flex;
  align-items: center;
  gap: 12px;
}
.store-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: black;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9);
}
.store-info { flex: 1; min-width: 0; }
.store-name { font-weight: 700; font-size: 14px; color: #111827; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-stats { font-size: 11px; color: var(--text-gray); margin-top: 2px; }
.follow-btn {
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}

/* Avaliações */
.reviews-section {
  padding: 12px 16px;
  border-top: 8px solid var(--bg-main);
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reviews-title { font-weight: 700; font-size: 15px; }
.reviews-header i { width: 16px; height: 16px; color: var(--text-gray); }

.reviews-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.main-score { font-size: 24px; font-weight: 800; }
.stars-row { display: flex; }
.stars-row i { width: 16px; height: 16px; fill: var(--yellow-star); color: var(--yellow-star); }

.review-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.reviewer { display: flex; align-items: center; gap: 8px; }
.reviewer img { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-main); object-fit: cover; }
.reviewer span { font-size: 13px; font-weight: 500; color: #1f2937; }

.small-stars { margin-top: 6px; }
.small-stars i { width: 12px; height: 12px; }

.review-text { font-size: 13px; color: #374151; margin-top: 8px; line-height: 1.5; }

/* Barra Inferior Fixa (Bottom CTA) */
.bottom-padding { height: 80px; }

.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}

.action-icons { display: flex; gap: 4px; }
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #4b5563;
  width: 48px;
  cursor: pointer;
}
.action-btn i { width: 20px; height: 20px; color: #111; }
.action-btn span { font-size: 11px; font-weight: 500; color: #0066cc; }

.cart-icon-btn {
  position: relative;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-icon-btn i { color: #ff1744; width: 24px; height: 24px; }
.cart-badge-number {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff1744;
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.buy-now-huge-btn {
  flex: 1;
  background: #ff1744;
  border: none;
  border-radius: 100px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  cursor: pointer;
}
.price-huge { font-size: 18px; font-weight: 900; line-height: 1; margin-bottom: 2px; }
.subtitle-huge { font-size: 11px; font-weight: 500; }

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 24px 16px 16px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}
.modal-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
}
.modal-main-img-wrap {
  width: 100px;
  height: 100px;
  border: 2px solid #ff1744;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.modal-main-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chosen-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff1744;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}
.modal-info { flex: 1; padding-right: 24px; }
.modal-price {
  font-size: 22px;
  font-weight: 800;
  color: #ff1744;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.modal-price .old-price { font-size: 12px; font-weight: 500; color: #999; text-decoration: line-through; }
.modal-color-name { font-size: 12px; margin-bottom: 8px; color: #333; }
.stock-warning { font-size: 11px; font-weight: 600; color: #ff1744; display: flex; align-items: center; gap: 4px; }
.red-dot { width: 6px; height: 6px; background: #ff1744; border-radius: 50%; display: inline-block; }

.modal-body { flex: 1; overflow-y: auto; padding-bottom: 16px; }
.color-label { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.color-item.selected { border: 2px solid #ff1744; background: #fff5f6; }
.color-item img { width: 40px; height: 40px; object-fit: contain; }
.color-item span { font-size: 12px; font-weight: 500; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border-top: 1px dashed #eee; padding-top: 16px; }
.qty-label { font-size: 14px; font-weight: 700; }
.modal-qty-selector { display: flex; align-items: center; background: #f9f9f9; border-radius: 100px; padding: 2px; }
#modal-qty-input { width: 40px; height: 32px; border: none; background: transparent; text-align: center; font-size: 14px; font-weight: 700; color: #111; -moz-appearance: textfield; outline: none; }
.modal-qty-selector .qty-btn { background: none; border: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #ff1744; cursor: pointer; }

.modal-buy-btn { width: 100%; background: #e60023; color: white; border: none; border-radius: 100px; padding: 16px; font-size: 16px; font-weight: 800; cursor: pointer; }

/* Responsividade Mobile */
@media (max-width: 480px) {
  body.bg-body { background-color: var(--bg-white); }
  .app-container { box-shadow: none; min-height: 100vh; }
}
