:root {
  --primary-color: #3a56e4;
  --secondary-color: #2541b2;
  --accent-color: #ff5c00;
  --text-color: #222237;
  --light-text: #6b7280;
  --background-color: #ffffff;
  --light-bg: #f3f4f6;
  --dark-bg: #222237;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Prevenir zoom em inputs e textareas */
input, textarea, select {
  font-size: 16px !important;
  touch-action: manipulation;
  -webkit-user-select: text;
}

input:focus, textarea:focus, select:focus {
  font-size: 16px !important;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.logo img {
  height: 40px;
}

/* Dividindo a navegação em dois grupos: principal e notificações */
.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Links de navegação principais */
.nav-links li:not(.notification-icon) {
  margin: 0 10px;
}

/* Ícones de notificação */
.notification-icons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 15px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

/* Estilos para chat, pedidos e vendas links */
.chat-link, .order-link, .seller-link {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  padding: 0.5rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.chat-link:hover, .order-link:hover, .seller-link:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

/* User Menu */
.user-area {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.user-menu {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid var(--primary-color);
}

.user-verified::after {
  content: '✓';
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 18px;
  height: 18px;
  background-color: var(--success-color);
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid white;
}

.user-info {
  margin-right: 10px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.user-balance {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 220px;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu ul {
  list-style: none;
  padding: 10px 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-color);
  font-size: 14px;
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.dropdown-menu li a i {
  margin-right: 10px;
  width: 16px;
  color: var(--primary-color);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background-color: white;
  z-index: 200;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-logo img {
  height: 30px;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-nav {
  margin-bottom: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
}

.mobile-user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.mobile-user-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.mobile-user-balance {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.mobile-user-links {
  margin-bottom: 20px;
}

.mobile-user-links li {
  margin-bottom: 12px;
}

.mobile-user-links a {
  color: var(--text-color);
  font-size: 14px;
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Cards */
.card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.card-content {
  color: var(--light-text);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  list-style-type: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a, .footer-links li {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-links i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.payment-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-methods i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--box-shadow);
  z-index: 99;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* Popup de promoção */
.sale-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  z-index: 99;
  max-width: 300px;
  animation: slideIn 0.5s forwards;
}

.sale-popup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sale-popup-title {
  font-weight: 600;
  color: var(--accent-color);
}

.close-popup {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--light-text);
}

.sale-popup-content {
  margin-bottom: 1rem;
}

.sale-popup-content p {
  margin-bottom: 1rem;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .mobile-menu-btn {
    margin-left: auto;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
} 