/* Slideshow com Categorias */
.kionera-category-slideshow {
  display: flex;
  min-height: 500px;
  /* background: #3d2518; */
  position: relative;
}

.kionera-slideshow-images {
  flex: 1;
  position: relative;
  left: -40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 0 40px 40px;
  max-width: 544px;
  margin-right: 40px;
  min-height: 500px;
}

.kionera-slide-category {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: visible;
  width: 100%;
}

.kionera-slide-category.active{
  z-index: 998;
}

/* Container para as imagens com scroll */
.kionera-slide-category-inner {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.kionera-slide-category.active {
  opacity: 1;
}

.kionera-nav-item.active span {
  color: #fff !important;
}

.kionera-slide-img {
  width: 230px;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  /* box-shadow: 0 8px 24px rgba(0,0,0,0.3); */
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.kionera-slide-img:hover {
  transform: scale(1.05);
}

.kionera-slideshow-nav {
  font-family: "Presicav LT", Sans-serif;
  width: 520px;
  /* background: rgba(61, 37, 24, 0.9); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  gap: 0px;
}

.kionera-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255,255,255,0.5)
}

.kionera-nav-item.active,
.kionera-nav-item:hover {
  opacity: 1;
}

.kionera-nav-number {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  letter-spacing: 12px !important;
  font-weight: 200 !important;
  color: #c4b896;
  border: none !important;
  background-color: none !important;
}

.kionera-nav-number span{
  position: relative;
  left: 5px;
}

.kionera-nav-title {
  font-size: 15px;
  color: #c4b896;
  font-weight: 100;
  letter-spacing: 16px !important;
  text-transform: uppercase !important;
  font-family: 'Presicav New', Arial, sans-serif;
}

/* Setas de navegação no bottom right */
.kionera-slideshow-arrows {
    position: absolute;
    right: 0; /* Left: 26 px */
    /* left: 68%; */
    bottom: -33px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-top: -37px;
    z-index: 10;
}

.kionera-arrow-btn {
  background: none;
  border: none;
  color: #c4b896;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s ease;
  font-weight: 300;
}

.kionera-arrow-btn img {
  width: 45px;
  height: auto;
}

.kionera-arrow-btn:hover, .kionera-arrow-btn:focus {
  color: #fff;
  background: none !important;
}

.kionera-arrow-next img{
  filter: brightness(2);
}

.kionera-arrow-btn:hover img, .kionera-arrow-btn:focus img {
  filter: brightness(2);
}

.kionera-arrow-btn:active {
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .kionera-category-slideshow {
    flex-direction: column-reverse;
    min-height: 400px;
  }
  
  .kionera-slideshow-images {
    padding: 20px 10px;
    left: 0;
    max-width: 100vw;
    width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .kionera-slide-category {
    gap: 10px;
  }
  
  .kionera-slide-category-inner {
    gap: 10px;
  }
  
  .kionera-slide-img {
    /* Mostra sempre 2 imagens lado a lado */
    width: calc((100vw - 20px - 10px) / 2);
    min-width: calc((100vw - 20px - 10px) / 2);
    max-width: calc((100vw - 20px - 10px) / 2);
    height: calc(((100vw - 20px - 10px) / 2) * 1.5);
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .kionera-slideshow-nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
    gap: 10px;
  }
  
  .kionera-nav-item {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .kionera-nav-title {
    font-size: 14px;
    letter-spacing: 2px;
  }
  
  .kionera-arrow-btn {
    font-size: 28px;
    padding: 6px 12px;
  }
  
  .kionera-slideshow-arrows {
    bottom: -25px;
  }
}

@media (max-width: 480px) {
  .kionera-nav-item{
    flex-direction: row;
  }

  .kionera-slideshow-images {
    left: 0;
    padding: 15px 10px;
    margin-right: 0;
    max-width: 100vw;
    width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .kionera-slide-category {
    gap: 10px;
    justify-content: flex-start;
  }
  
  .kionera-slide-category-inner {
    gap: 10px;
  }
  
  .kionera-slide-img {
    /* Cada imagem ocupa: (100vw - padding lateral - gap entre imagens) / 2 */
    width: calc((100vw - 20px - 10px) / 2);
    min-width: calc((100vw - 20px - 10px) / 2);
    max-width: calc((100vw - 20px - 10px) / 2);
    height: 400px;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .kionera-nav-title {
    font-size: 11px;
    letter-spacing: 1px;
  }
  
  .kionera-nav-number {
    font-size: 13px !important;
    letter-spacing: 8px !important;
  }
  
  .kionera-arrow-btn {
    font-size: 20px;
    padding: 4px 8px;
  }
  
  .kionera-arrow-btn img {
    width: 35px;
  }
  
  .kionera-slideshow-arrows {
    bottom: -20px;
    gap: 5px;
  }
}

/* Lightbox Styles */
.kionera-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kionera-lightbox.active {
  display: flex;
  opacity: 1;
}

.kionera-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.kionera-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.kionera-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.kionera-lightbox-close:hover {
  opacity: 0.7;
}

.kionera-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  user-select: none;
}

.kionera-lightbox-prev {
  left: -60px;
}

.kionera-lightbox-next {
  right: -60px;
}

.kionera-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .kionera-lightbox-nav {
    font-size: 32px;
    padding: 8px 12px;
  }
  
  .kionera-lightbox-prev {
    left: 10px;
  }
  
  .kionera-lightbox-next {
    right: 10px;
  }
  
  .kionera-lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
  }
}

@media (max-width: 480px){
  .kionera-slideshow-nav{
    flex-direction: column !important;
  }

  .kionera-slideshow-images{
    left: -10px;
    padding: 20px 10px !important;
  }
  
  .kionera-slide-img {
    width: calc((100vw - 20px - 10px) / 2) !important;
    min-width: calc((100vw - 20px - 10px) / 2) !important;
    max-width: calc((100vw - 20px - 10px) / 2) !important;
    /* height: calc(((100vw - 20px - 10px) / 2) * 1.5) !important; */
  }

  .kionera-slideshow-arrows {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0px;
    margin-top: -36px;
    z-index: 10;
  }

  .kionera-arrow-btn img{
    width: 40px;
  }
}