/* Carousel Container */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 2rem 0;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

/* Only change cursor when actively dragging */
.carousel-container.dragging {
  cursor: grabbing;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  will-change: transform;
}

/* apply this class only when snapping to slides via JS */
.carousel-track.snap {
  transition: transform 0.3s ease-out;
}

/* Carousel Items */
.carousel-item {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image wrapper to maintain aspect ratio */
.carousel-item-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 75%; /* 4:3 aspect ratio for desktop */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff; /* Fundo branco para imagens com transparência */
}

.carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Only scale image on hover, no carousel movement */
.carousel-item:hover img {
  transform: scale(1.05);
}

/* Modal Gallery Styles */
.modal-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: none;
}

.modal-gallery.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-gallery.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-gallery.active .modal-content {
  transform: scale(1);
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-gallery.active .modal-image {
  opacity: 1;
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  opacity: 0;
  transform: scale(0.9);
  -webkit-tap-highlight-color: transparent;
}

.modal-gallery.active .modal-close {
  opacity: 1;
  transform: scale(1);
}

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

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

.modal-gallery.active .modal-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev { left: 1rem; }
.modal-next { right: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .carousel-item { 
    flex: 0 0 100%;
    padding: 0 5px;
  }
  
  .carousel-item-wrapper {
    padding-bottom: 0; /* Remove fixed aspect ratio */
    height: auto;
    min-height: 200px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carousel-item img {
    position: relative;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
  }
  
  .modal-nav { 
    width: 40px; 
    height: 40px;
    top: auto;
    bottom: 1rem;
    transform: scale(0.9);
  }
  
  .modal-gallery.active .modal-nav {
    transform: scale(1);
  }
  
  .modal-prev { 
    left: 1rem;
    right: auto;
  }
  
  .modal-next { 
    right: 1rem;
    left: auto;
  }
  
  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 35px;
    height: 35px;
  }
  
  .modal-content {
    padding: 0.5rem;
  }

  .modal-image-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-item { 
    flex: 0 0 100%;
    padding: 0 5px;
  }
  
  .carousel-item-wrapper {
    min-height: 180px;
  }
  
  .carousel-item img {
    padding: 5px;
  }
  
  .modal-nav { 
    width: 35px; 
    height: 35px;
  }
  
  .modal-close {
    width: 30px;
    height: 30px;
  }

  .modal-image-container {
    padding: 0.5rem;
  }
}

/* Info Item Styles */
.info-item p {
  white-space: nowrap;
  margin: 0;
  line-height: 1.4;
}

.info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Diferenciais Section */
.diferenciais {
  padding: 2rem 0;
}

.diferenciais h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.diferencial-item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.diferencial-item:hover {
  transform: translateY(-5px);
}

.diferencial-item i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.diferencial-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.diferencial-item p {
  color: #666;
  font-size: 0.9rem;
}

/* Sobre Empresa Section */
.sobre-empresa {
  padding: 2rem 0;
  background: #f8f9fa;
}

.sobre-empresa h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.sobre-item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sobre-item i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.sobre-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.sobre-item p {
  color: #666;
  font-size: 0.9rem;
}

/* Redes Sociais Section */
.redes-sociais {
  padding: 2rem 0;
}

.redes-sociais h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.social-feed {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Instagram Feed Styles */
.instagram-feed {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  margin: 1rem 0;
}

.instagram-feed iframe {
  width: 100% !important;
  height: 450px !important;
  border: none !important;
  overflow: hidden !important;
  background: #fff !important;
}

.instagram-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.instagram-placeholder i {
  font-size: 3rem;
  color: #E1306C;
}

.instagram-placeholder p {
  color: #666;
  font-size: 1.1rem;
}

/* Políticas Section */
.politicas {
  padding: 2rem 0;
  background: #f8f9fa;
}

.politicas h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.politicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.politica-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.politica-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.politica-item p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.link-politica {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link-politica:hover {
  color: #0056b3;
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float i {
  text-decoration: none;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .diferenciais-grid,
  .sobre-grid,
  .politicas-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1rem;
    right: 1rem;
  }

  .instagram-feed {
    padding: 0.5rem;
  }
  
  .instagram-feed iframe {
    height: 400px !important;
  }
}

@media (max-width: 480px) {
  .instagram-feed iframe {
    height: 350px !important;
  }
}

/* Map Container Styles */
.mapa-container {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .mapa-container {
    height: 350px;
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .mapa-container {
    height: 300px;
  }
}

.galeria-loja {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.carousel-title {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
  width: 100%;
}

.carousel-title h2 {
  color: #333;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.carousel-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-radius: 2px;
}
