/* Variáveis CSS */
:root {
  --bg-dark: #0f172a;
  --bg-slate: #1e293b;
  --bg-slate-light: #334155;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #fbbf24;
  --white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(to bottom right, var(--bg-dark), #1e3a8a, var(--bg-dark));
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  position: relative;
  -webkit-text-size-adjust: 100%;
  padding-top: 160px; /* Compensar altura do header fixo */
}

@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Header menor no mobile */
  }
}

/* Container principal para centralizar conteúdo */
body > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Permitir seleção de texto em inputs e textareas */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Prevenir arrastar imagens */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Header */
header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.header-actions-left,
.header-actions-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 50px;
}

.header-actions-left {
  justify-content: flex-start;
}

.header-actions-right {
  justify-content: flex-end;
}

.header-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Botões no Header */
.header-whatsapp-btn,
.header-cart-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: transparent;
  position: relative;
  padding: 0;
}

.header-whatsapp-btn {
  background: var(--green);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.header-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.header-whatsapp-btn img {
  width: 28px;
  height: 28px;
}

.header-cart-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  color: white;
  font-size: 1.5rem;
}

.header-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.header-cart-btn .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-cart-btn .cart-icon {
  display: block;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo {
    height: 100px;
  }
  
  .header-whatsapp-btn,
  .header-cart-btn {
    width: 44px;
    height: 44px;
  }
  
  .header-whatsapp-btn img {
    width: 24px;
    height: 24px;
  }
  
  .header-cart-btn {
    font-size: 1.25rem;
  }
  
  .header-cart-btn .cart-count {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
}

.logo {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.cart-icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(to right, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-light);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* Category Filter */
.category-filter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.category-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
}

/* Product Grid */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.product-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--cyan);
}

.product-image-container {
  position: relative;
  background: white;
  padding: 1rem;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: bold;
  color: white;
}

.product-badge.featured {
  left: 1rem;
  background: var(--red);
}

.product-badge.discount {
  right: 1rem;
  background: var(--green);
}

.product-content {
  padding: 1.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.star {
  color: var(--yellow);
  font-size: 1rem;
}

.star.empty {
  color: var(--text-muted);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.product-card:hover .product-title {
  color: var(--cyan);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.875rem;
}

.product-price-current {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--cyan);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(to right, var(--cyan), var(--blue));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--cyan-dark), #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.5rem;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  border-radius: 8px;
}

.btn-icon:hover {
  background: var(--cyan);
  color: white;
}

/* CTA Section */
.cta-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  display: block;
  margin: 0 auto;
  max-width: fit-content;
  flex: none;
}

/* Botões flutuantes removidos - agora estão no header */

/* Cart Modal */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Esconder botões flutuantes quando modal está aberto */
.cart-modal.active ~ .whatsapp-button,
.cart-modal.active ~ .floating-cart-button,
body:has(.cart-modal.active) .whatsapp-button,
body:has(.cart-modal.active) .floating-cart-button {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.cart-modal.active {
  display: flex;
}

.cart-modal-content {
  background: var(--bg-slate);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
  touch-action: none; /* Previne arrastar no mobile */
  -webkit-user-select: none;
  user-select: none;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-modal-header {
  padding: 1.5rem;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-slate);
  border-radius: 20px 20px 0 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.cart-modal-drag-handle {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(148, 163, 184, 0.5);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  display: none;
}

@media (max-width: 768px) {
  .cart-modal-drag-handle {
    display: none !important; /* Removido drag handle no mobile - modal estático */
    pointer-events: none;
  }
  
  .cart-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .cart-modal-content {
    border-radius: 20px 20px 0 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    transform: none !important; /* Força posição estática */
    animation: slideUp 0.3s ease-out;
    touch-action: pan-y; /* Permite scroll vertical, previne arrastar horizontal */
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
    max-height: 95vh;
  }
  
  .cart-modal-header {
    padding: 1rem;
    padding-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .cart-modal-header h2 {
    text-align: center;
    flex: 1;
    padding: 0 3.5rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .cart-modal-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    flex-shrink: 0;
  }
  
  .cart-modal-body {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    flex: 1;
    min-height: 0;
    max-height: calc(95vh - 180px);
    padding-bottom: 0.5rem;
  }
  
  .cart-modal-footer {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    z-index: 10;
    background: var(--bg-slate);
  }
  
  /* Garantir que nada saia da tela */
  .cart-item,
  .cart-items-list,
  .cart-total,
  .cart-modal-actions {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cart-item-details h4,
  .cart-item-price,
  .cart-total .total-value,
  .cart-total .total-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .cart-modal-actions .btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 52px;
    margin: 0;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
  }
  
  .cart-modal-actions .btn:active {
    transform: scale(0.98);
  }
  
  .cart-total {
    margin-bottom: 1rem;
  }
  
  .cart-total .total-value {
    font-size: 1.75rem;
  }
}

@media (min-width: 769px) {
  .cart-modal {
    align-items: center;
  }
  
  .cart-modal-content {
    border-radius: 12px;
    max-height: 85vh;
  }
  
  .cart-modal-header {
    border-radius: 12px 12px 0 0;
  }
}

.cart-modal-header h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
}

.cart-modal-close {
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: var(--text-light);
  font-size: 1.75rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  line-height: 1;
  padding: 0;
}

.cart-modal-close:hover,
.cart-modal-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.cart-items-list {
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  min-width: 90px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 0.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.cart-item-details h4 {
  margin: 0 0 0.5rem 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cart-item-price {
  color: var(--cyan);
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-item-controls .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 0.25rem;
}

.cart-item-controls button {
  padding: 0.5rem 0.75rem;
  background: rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.cart-item-controls button:active {
  transform: scale(0.95);
  background: rgba(148, 163, 184, 0.5);
}

.cart-item-controls .quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
  color: var(--white);
  font-size: 1rem;
}

.cart-item-controls .remove-btn {
  background: var(--red);
  border-color: var(--red);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-left: auto;
}

.cart-item-controls .remove-btn:active {
  background: #dc2626;
  transform: scale(0.95);
}

.cart-modal-footer {
  padding: 1.5rem;
  border-top: 2px solid var(--cyan);
  background: var(--bg-slate);
  flex-shrink: 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.cart-total {
  margin-bottom: 1.25rem;
}

.cart-total h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.cart-total .total-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.cart-total .total-value {
  color: var(--cyan);
  font-size: 2rem;
  font-weight: bold;
}

.cart-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.cart-modal-actions .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.cart-modal-actions .btn:active {
  transform: scale(0.98);
}

.cart-modal-actions .btn-primary {
  background: linear-gradient(to right, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.cart-modal-actions .btn-primary:active {
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.cart-modal-actions .btn-secondary {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-light);
}

.cart-modal-actions .btn-secondary:active {
  background: rgba(30, 41, 59, 0.7);
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.empty-cart-icon {
  font-size: 4rem;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.empty-cart p {
  margin: 0;
  font-size: 1.125rem;
}

.empty-cart .empty-cart-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-cart .empty-cart-message {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  background: var(--green);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 1500;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Product Page */
.product-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.product-header .header-actions-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.product-header .header-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-header .header-actions-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.back-link {
  color: var(--cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--cyan-dark);
}

.urgency-timer {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  text-align: center;
  animation: pulse 2s infinite;
  width: 100%;
  box-sizing: border-box;
}

.urgency-timer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fca5a5;
  font-weight: bold;
}

.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.product-gallery-main {
  width: 100%;
  height: 500px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
}

.product-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 3px;
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  box-sizing: border-box;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--cyan);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.product-info h1 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  hyphens: auto;
}

/* Estilos compactos para produtos com muitos elementos (IDs 2 e 4) */
body.product-compact .product-info h1 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

body.product-compact .product-gallery-main {
  height: 350px;
  padding: 1.25rem;
}

body.product-compact .product-gallery-main img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.85);
  transform-origin: center center;
}

body.product-compact .product-gallery-thumb {
  width: 65px;
  height: 65px;
  min-width: 65px;
  padding: 0.35rem;
}

body.product-compact .product-details {
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

body.product-compact .product-info-rating {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

body.product-compact .product-info-price {
  margin-bottom: 0.75rem;
}

body.product-compact .product-info-price-current {
  font-size: 1.85rem;
}

body.product-compact .product-info-price-original {
  font-size: 1.1rem;
}

body.product-compact .product-info-discount {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

body.product-compact .product-items {
  padding: 0.875rem;
  margin-bottom: 0.875rem;
}

body.product-compact .product-items h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

body.product-compact .product-items li {
  font-size: 0.875rem;
  padding: 0.3rem 0;
}

body.product-compact .trust-badges {
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

body.product-compact .trust-badge {
  padding: 0.625rem;
}

body.product-compact .trust-badge-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

body.product-compact .trust-badge-text {
  font-size: 0.7rem;
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-info-price {
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.product-info-price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-info-price-current {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--cyan);
  margin-left: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-info-discount {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-items {
  background: rgba(30, 41, 59, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.product-items h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.product-items h3 {
  margin-bottom: 1rem;
  color: var(--white);
  text-align: center;
}

.product-items ul {
  list-style: none;
}

.product-items li {
  padding: 0.5rem 0;
  color: var(--text-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-items li:before {
  content: "• ";
  color: var(--cyan);
  font-weight: bold;
  margin-right: 0.5rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-badge {
  background: rgba(30, 41, 59, 0.5);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.trust-badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.trust-badge-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Container do botão de compra principal */
.buy-button-container {
  margin: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.buy-button {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669, #047857);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.375rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6), 0 0 0 5px rgba(16, 185, 129, 0.3);
  }
}

.buy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.buy-button:hover::before {
  left: 100%;
}

.buy-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.6), 0 0 0 5px rgba(16, 185, 129, 0.3);
  animation: none;
}

.buy-button:active {
  transform: translateY(-1px) scale(0.98);
}

.buy-button-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.buy-button-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.buy-button-price {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

/* Botão Sticky Fixo */
.sticky-buy-button-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--cyan);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.sticky-buy-button-container.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .sticky-buy-button-container {
    display: none;
  }
}

.sticky-buy-button-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sticky-buy-button-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sticky-buy-button-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.sticky-buy-button-price {
  color: var(--cyan);
  font-size: 1.5rem;
  font-weight: bold;
}

.sticky-buy-button {
  flex: 1;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  min-height: 52px;
  white-space: nowrap;
}

.sticky-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #047857);
}

.sticky-buy-button:active {
  transform: translateY(0);
}

.sticky-buy-button-icon {
  font-size: 1.25rem;
}

.payment-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Products Included Section */
.products-included {
  margin: 4rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  text-align: center;
  margin-bottom: 2rem;
}

.products-included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

.product-included-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.product-included-image {
  width: 100%;
  height: 200px;
  background: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-included-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-included-content {
  padding: 1.5rem;
}

.product-included-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-included-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Results Section */
.results-section {
  margin: 4rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.result-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.result-header {
  padding: 1rem;
  padding-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: transparent;
}

.result-tag {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: bold;
}

.result-tag.green {
  background: var(--green);
  color: white;
}

.result-tag.blue {
  background: var(--cyan);
  color: white;
}

.result-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  background: transparent;
}

.result-footer {
  background: var(--bg-slate);
  padding: 1.5rem;
  color: var(--white);
}

.result-footer h3 {
  margin-bottom: 0.5rem;
}

.result-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Reviews Section */
.reviews-section {
  margin: 4rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.review-tab {
  padding: 0.75rem 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.review-tab.active {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
}

.review-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-user-info {
  flex: 1;
}

.review-username {
  font-weight: bold;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.review-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.review-comment {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-images {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.review-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.review-image:hover {
  transform: scale(1.1);
}

.review-seller-response {
  background: rgba(6, 182, 212, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--cyan);
  margin-top: 1rem;
}

.review-seller-response strong {
  color: var(--cyan);
}

.review-seller-response p {
  color: var(--text-light);
  margin-top: 0.5rem;
}

.review-likes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Altura menor do header no mobile */
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .product-page {
    padding: 1rem 0.75rem;
  }

  .product-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0;
  }

  .product-gallery {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .product-gallery-main {
    height: 300px;
    padding: 1rem;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    box-sizing: border-box;
    max-width: calc(100% - 2rem);
  }
  
  .product-gallery-thumbs {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .product-gallery-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    flex-shrink: 0;
  }

  .product-info {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
  }
  
  .product-gallery-thumbs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .product-info h1 {
    font-size: 1.5rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    hyphens: auto;
    padding: 0 0.5rem;
  }

  .product-info-price {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .product-info-price-current {
    font-size: 2rem;
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .product-info-price-original {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .product-info-discount {
    display: block;
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .product-info-rating {
    justify-content: center;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .products-included-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-included-image {
    height: 180px;
  }

  .product-included-content {
    padding: 1rem;
  }

  .product-included-title {
    font-size: 1rem;
    text-align: center;
  }

  .product-included-description {
    text-align: center;
    font-size: 0.8125rem;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }

  .category-filter {
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .category-btn {
    white-space: nowrap;
  }

  .section-title {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .product-header {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
  }

  .product-header .header-actions-left,
  .product-header .header-actions-right {
    flex: 0 0 auto;
    min-width: auto;
  }
  
  .product-header .header-logo {
    flex: 1;
    min-width: 0;
  }
  
  .product-header .back-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .back-link {
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .logo {
    height: 110px;
  }

  .reviews-section {
    padding: 0 1rem;
  }

  .products-included {
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .results-section {
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .product-page {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .urgency-timer {
    margin: 2rem auto;
    padding: 1rem;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
  }
  
  .product-header {
    padding: 1rem 1rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .buy-button {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.25rem;
  }

  .buy-button-icon {
    font-size: 1.375rem;
  }

  .buy-button-price {
    padding: 0.25rem 0.625rem;
    font-size: 1rem;
  }

  /* Botão Sticky Mobile */
  .sticky-buy-button-container {
    padding: 0.875rem 1rem;
  }

  .sticky-buy-button-content {
    gap: 0.75rem;
  }

  .sticky-buy-button-info {
    min-width: 80px;
  }

  .sticky-buy-button-label {
    font-size: 0.75rem;
  }

  .sticky-buy-button-price {
    font-size: 1.25rem;
  }

  .sticky-buy-button {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    min-height: 48px;
    flex: 1.5;
  }

  .sticky-buy-button-icon {
    font-size: 1.125rem;
  }

  /* Ajustar padding do body quando sticky button está visível */
  body.sticky-button-visible {
    padding-bottom: 80px;
  }

  .cta-section {
    padding: 0 1rem;
    text-align: center;
  }
  
  /* Estilos compactos no mobile para produtos IDs 2 e 4 */
  body.product-compact .product-info h1 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
    padding: 0 0.15rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  body.product-compact .product-gallery-main {
    height: 250px;
    padding: 1rem;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  body.product-compact .product-gallery-main img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    transform: scale(0.6);
    transform-origin: center center;
    object-fit: contain;
  }
  
  body.product-compact .product-gallery-thumb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0.2rem;
  }
  
  body.product-compact .product-info-rating {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
  }
  
  body.product-compact .product-info-price {
    margin-bottom: 0.4rem;
  }
  
  body.product-compact .product-info-price-current {
    font-size: 1.35rem;
  }
  
  body.product-compact .product-info-price-original {
    font-size: 0.9rem;
  }
  
  body.product-compact .product-info-discount {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  body.product-compact .product-items {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  body.product-compact .product-items h3 {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }
  
  body.product-compact .product-items li {
    font-size: 0.75rem;
    padding: 0.15rem 0;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  body.product-compact .product-items ul {
    padding-left: 0.5rem;
  }
  
  body.product-compact .trust-badges {
    gap: 0.35rem;
    margin-bottom: 0.6rem;
  }
  
  body.product-compact .trust-badge {
    padding: 0.35rem;
  }
  
  body.product-compact .trust-badge-icon {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }
  
  body.product-compact .trust-badge-text {
    font-size: 0.6rem;
  }
  
  body.product-compact .buy-button {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  body.product-compact .product-details {
    gap: 0.875rem;
    margin-bottom: 1.25rem;
  }
  
  body.product-compact .product-info {
    padding: 0 0.5rem;
  }
  
  body.product-compact .product-gallery-thumbs {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  body.product-compact .product-gallery-main {
    width: calc(100% - 1rem);
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  body.product-compact .product-page {
    padding: 0.75rem 0.5rem;
  }
  
  body.product-compact .urgency-timer {
    margin: 1.5rem auto;
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  body.product-compact .urgency-timer-content {
    font-size: 0.9rem;
  }

  /* Cart Modal Mobile Improvements */
  .cart-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    left: 0;
    right: 0;
  }

  .cart-modal-content {
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    transform: none !important;
  }

  .cart-modal-header {
    padding: 1rem;
    padding-top: 1.5rem;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .cart-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
    text-align: center;
    flex: 1;
    padding: 0 3rem; /* Espaço para o botão de fechar */
  }

  .cart-modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .cart-modal-body {
    padding: 1rem;
    max-height: calc(90vh - 180px);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-item {
    padding: 0.875rem;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex-shrink: 0;
  }

  .cart-item-details {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .cart-item-details h4 {
    font-size: 0.9375rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-right: 0;
    max-width: 100%;
  }

  .cart-item-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
  }

  .cart-item-controls {
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .cart-item-controls button {
    min-width: 36px;
    min-height: 36px;
    padding: 0.5rem;
    font-size: 0.9375rem;
    flex-shrink: 0;
  }

  .cart-item-controls .quantity-display {
    min-width: 32px;
    font-size: 0.9375rem;
  }

  .cart-item-controls .remove-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    margin-left: 0;
    width: 100%;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }
  
  /* Garantir que todos os textos fiquem visíveis */
  .cart-item-details h4,
  .cart-item-price,
  .cart-total .total-label,
  .cart-total .total-value,
  .cart-modal-header h2 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Garantir que botões não saiam da tela */
  .cart-item-controls,
  .quantity-controls {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Garantir que o modal não se mova */
  .cart-modal-content {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* Garantir que o conteúdo interno não ultrapasse limites */
  .cart-modal-content * {
    max-width: 100%;
  }
  
  /* Prevenir overflow horizontal */
  .cart-modal-content,
  .cart-modal-header,
  .cart-modal-body,
  .cart-modal-footer {
    overflow-x: hidden;
  }

  .cart-modal-footer {
    padding: 1rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .cart-total {
    width: 100%;
    box-sizing: border-box;
  }

  .cart-total h3 {
    font-size: 1.5rem;
    word-wrap: break-word;
  }

  .cart-total .total-value {
    font-size: 1.75rem;
    word-wrap: break-word;
  }

  .cart-modal-actions {
    width: 100%;
    box-sizing: border-box;
  }

  .cart-modal-actions .btn {
    padding: 0.875rem;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
  }

  .empty-cart {
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .empty-cart-icon {
    font-size: 3rem;
  }

  .empty-cart .empty-cart-title {
    font-size: 1.125rem;
  }

  .empty-cart .empty-cart-message {
    font-size: 0.9375rem;
  }
}

