@import url('style.css');

/* Produtos - Estilos */
.produtos {
  .container {
    background-color: #f8f8f2;
    display: block;
    box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.25);
  }

  .title {
    display: block;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0ece5;
    margin-bottom: 50px;
  }

  .title h1 {
    margin: 0;
    color: #383936;
    font-family: sans-serif;
    font-size: 35px;
    text-transform: uppercase;
    width: auto;
    height: auto;
    display: inline-block;
    word-wrap: break-word;
    padding: 0 40px;
    position: relative;
  }

  .title h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-84%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #ffffff;
  }

  .produtos-wrapper {
    padding: 0 50px;
    padding-bottom: 50px;
    position: relative;
  }

  .produtos-categorias {
    margin-bottom: 30px;
  }

  .produtos-categorias h2 {
    color: #9b9b9b;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
  }

  .produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
  }

  .produto-card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .produto-card:hover {
    box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.1);
  }

  .produto-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
  }

  .carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: background-color 0.3s ease;
    opacity: 0;
  }

  .produto-card:hover .carousel-btn {
    opacity: 1;
  }

  .carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  .carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    opacity: 0;
  }

  .produto-card:hover .carousel-dots {
    opacity: 1;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .carousel-dot.active {
    background-color: #fff;
  }

  .produto-nome {
    padding: 12px 15px;
    margin: 0;
    color: #666;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    border-top: 1px solid #e6e6e6;
    background-color: #fff;
  }

  .produtos-ordenar {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .produtos-ordenar select {
    padding: 10px 15px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    color: #4b4b4b;
    font-family: sans-serif;
    font-size: 14px;
    cursor: pointer;
    outline: none;
  }

  .produtos-busca {
    position: absolute;
    top: 0;
    right: 50px;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
  }

  .produtos-busca input {
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    font-family: sans-serif;
    font-size: 14px;
    outline: none;
    width: 200px;
  }

  .produtos-busca button {
    padding: 10px 12px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9b9b;
    transition: color 0.3s ease;
  }

  .produtos-busca button:hover {
    color: #4b4b4b;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: block;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
}

.lightbox-main {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 10001;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-image-container {
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.lightbox-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.lightbox-info h3 {
  color: #fff;
  font-family: sans-serif;
  font-size: 22px;
  margin: 0;
  font-weight: 400;
}

.lightbox-counter {
  color: #fff;
  font-family: sans-serif;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.lightbox-thumbnail {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lightbox-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.lightbox-thumbnail.active {
  border-color: #fff;
}

.lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar personalizada para thumbnails */
.lightbox-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsivo */
@media screen and (max-width: 1024px) {
  .produtos .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-thumbnails {
    max-height: 120px;
  }

  .lightbox-thumbnail {
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 768px) {
  .produtos .produtos-wrapper {
    padding: 0 20px;
    padding-bottom: 30px;
  }

  .produtos .produtos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .produtos .produtos-busca {
    position: static;
    margin-bottom: 20px;
    width: 100%;
  }

  .produtos .produtos-busca input {
    width: 100%;
  }

  .produtos .produto-carousel {
    height: 220px;
  }

  .lightbox-content {
    padding: 80px 10px 10px;
  }

  .lightbox-image-container {
    height: 50vh;
  }

  .lightbox-prev {
    left: 5px;
    padding: 8px 12px;
    font-size: 30px;
  }

  .lightbox-next {
    right: 5px;
    padding: 8px 12px;
    font-size: 30px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 40px;
  }

  .lightbox-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .lightbox-info h3 {
    font-size: 18px;
  }

  .lightbox-thumbnails {
    max-height: 100px;
    gap: 8px;
  }

  .lightbox-thumbnail {
    width: 60px;
    height: 60px;
  }
}