/* Estilos adicionais para elementos de propaganda e promoções */

/* Banner de Promoção Destacada */
.promo-banner {
  background-color: var(--primary-color);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.png');
  opacity: 0.1;
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1;
  min-width: 300px;
  color: var(--light-color);
  padding-right: 30px;
}

.promo-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.promo-banner .btn {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 2px solid var(--light-color);
}

.promo-banner .btn:hover {
  background-color: transparent;
  color: var(--light-color);
}

/* Seção de Estatísticas */
.stats {
  background-color: var(--accent-color);
  color: var(--light-color);
  padding: 80px 0;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/farmacia-fachada.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--light-color);
}

.stat-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Slider de Promoções Aprimorado */
.promotions {
  background-color: black;
  padding: 100px 0;
}

.promotions-slider {
  position: relative;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.promotion-slide {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
}

.promotion-slide img {
  width: 50%;
  height: 400px;
  object-fit: cover;
}

.promotion-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promotion-content h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.promotion-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.promotion-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1.3rem;
}

.new-price {
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 800;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Grade de Promoções */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.promotion-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
}

.promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.promotion-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.promotion-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.promotion-card:hover img {
  transform: scale(1.05);
}

.promotion-card-content {
  padding: 20px;
}

.promotion-card-content h4 {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.promotion-card-content p {
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Banner de Associação */
.cta-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/farmacia-fachada.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-color);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Responsividade para elementos de propaganda */
@media (max-width: 992px) {
  .promotion-slide {
    flex-direction: column;
  }
  
  .promotion-slide img,
  .promotion-content {
    width: 100%;
  }
  
  .promotion-content {
    padding: 30px;
  }
  
  .promo-content {
    flex-direction: column;
    text-align: center;
  }
  
  .promo-text {
    padding-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .promotion-content h3 {
    font-size: 1.8rem;
  }
  
  .new-price {
    font-size: 1.8rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .promotion-slide img {
    height: 250px;
  }
  
  .promotion-content {
    padding: 20px;
  }
  
  .promotion-content h3 {
    font-size: 1.5rem;
  }
  
  .promotion-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
