/* Estilos inspirados na Amazon com foco em mobile */

:root {
  --primary-color: #2D1B40;
  --secondary-color: #FFFFFF;
  --accent-color: #8A2BE2;
  --neutral-color: #F5F5F5;
  --success-color: #4CAF50;
  --alert-color: #FF9800;
  --text-color: #333333;
  --light-text: #666666;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--neutral-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

/* Cabeçalho estilo Amazon */
.header {
  background-color: var(--primary-color);
  padding: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 40px;
  width: auto;
}

.search-bar {
  flex-grow: 1;
  margin: 0 1rem;
  position: relative;
  max-width: 600px;
}

.search-bar input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 20px;
  border: none;
  font-size: 0.9rem;
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent-color);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.header-icons {
  display: flex;
  gap: 1rem;
}

.header-icon {
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  max-height: 500px;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.delivery-badge {
  background-color: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* Seção de produtos estilo Amazon */
.products-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #f9f9f9;
  padding: 1rem;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-description {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

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

.original-price {
  text-decoration: line-through;
  color: var(--light-text);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.discount-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
}

.savings-badge {
  background-color: var(--alert-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

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

.add-to-cart {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid var(--accent-color);
  background-color: white;
  color: var(--accent-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-to-cart:hover {
  background-color: var(--accent-color);
  color: white;
}

.buy-now {
  flex: 1;
  padding: 0.7rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-now:hover {
  background-color: #7823d8;
}

/* Animação para destacar a oferta de 2 unidades */
@keyframes pulseHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
  }
}

.highlighted-offer {
  animation: pulseHighlight 17s infinite;
  border: 2px solid var(--accent-color);
}

/* Seção de benefícios */
.benefits-section {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.benefit-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.benefit-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Seção antes e depois */
.before-after-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.slide {
  flex: 0 0 280px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.slide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.slide-content {
  padding: 1.5rem;
}

.slide-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.slide-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Seção de entrega */
.delivery-section {
  background-color: var(--neutral-color);
  padding: 3rem 1rem;
}

.delivery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.europe-map {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.delivery-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.delivery-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.delivery-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.delivery-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.delivery-text {
  font-size: 0.9rem;
  color: var(--light-text);
}

.delivery-highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* FAQ Seção */
.faq-section {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  margin-top: 2rem;
}

.accordion-item {
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 1.2rem 1.2rem;
  max-height: 500px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.payment-icon {
  width: 40px;
  height: 25px;
  background-color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Elementos flutuantes */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  font-size: 1.8rem;
}

.ai-assistant-button {
  position: fixed;
  bottom: 20px;
  right: 90px;
  background-color: var(--accent-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ai-assistant-button:hover {
  transform: scale(1.1);
}

.ai-assistant-icon {
  font-size: 1.5rem;
}

.ai-assistant-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 400px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.ai-assistant-container.active {
  transform: translateY(0);
}

.ai-assistant-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-assistant-title {
  font-size: 1rem;
  margin: 0;
}

.ai-assistant-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.ai-assistant-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message, .user-message {
  max-width: 80%;
  padding: 0.8rem;
  border-radius: 12px;
}

.ai-message {
  background-color: var(--neutral-color);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.user-message {
  background-color: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.ai-assistant-input {
  display: flex;
  padding: 0.8rem;
  border-top: 1px solid var(--neutral-color);
}

.ai-assistant-input input {
  flex-grow: 1;
  padding: 0.8rem;
  border: 1px solid var(--neutral-color);
  border-radius: 20px;
  margin-right: 0.5rem;
}

.ai-assistant-send {
  background-color: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Barra de progresso de compra */
.purchase-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 90;
}

.purchase-progress.visible {
  transform: translateY(0);
}

.progress-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.progress-button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    margin: 0.5rem 0 0;
    width: 100%;
    max-width: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
  
  .delivery-badge {
    font-size: 0.8rem;
  }
  
  .product-buttons {
    flex-direction: column;
  }
  
  .ai-assistant-container {
    width: 90%;
    right: 5%;
    left: 5%;
  }
}
