/* 
---------------------------------------------
CARROUSEL DE IMAGENS E DESCRIÇÃO DO PRODUTO
--------------------------------------------- 
*/

/* BOTOES */
.nav-arrows button:not(:disabled) {
  cursor: pointer;
  background-color: var(--botao-primario) !important;
}

.nav-arrows button {
  cursor: pointer;
  background-color: rgb(164, 164, 164) !important;
}

.product-section {
  width: 100%;
  background: linear-gradient(180deg, #f6f6f6 0%, #ffffff 100%);
  border-radius: 0px 0px 24px 24px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
  z-index: 10;
  position: relative;
  margin-bottom: -48px;
}

.product-content {
  display: flex;
  flex-direction: column;
  padding: 24px 48px 48px 48px;
  gap: 24px;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
}

.product-showcase {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 24px !important;
  align-items: flex-start;
}

.product-image-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  /* This is the key to hide images */
  border-radius: 24px;
  /* Apply border-radius to the container */
}

.carousel-track {
  display: flex;
  /* Arranges images in a row */
  transition: transform 0.5s ease-in-out;
  /* Smooth slide transition */
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
  /* Prevents images from shrinking */
}

.product-image img {
  transform: scale(1.5);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 8px 24px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
  position: absolute;
  z-index: 10;
  width: fit-content;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
}

.dot-frame {
  display: flex;
  padding: 8px;
  align-items: center;
  cursor: pointer;
}

.dot-on {
  width: 12px;
  height: 12px;
  background: black;
  border-radius: 50%;
}

.dot-off {
  width: 12px;
  height: 12px;
  background: #cccccc;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .product-showcase {
    flex-direction: row;
    align-items: flex-start;
  }
}

.product-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: #ffffff;
  height: 350px;
  border-radius: 16px;
  width: 50%;
  gap: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.1),
    0 1px 4px 0 rgba(12, 12, 13, 0.05);
}

.description-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.description-line {
  width: 4px;
  height: 26px;
  background-color: #4780d8;
  border-radius: 2px;
  margin-right: 8px;
}

.description-title {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
}

@media (min-width: 1024px) {
  .description-title {
    font-size: 20px;
    line-height: 28px;
  }
}

.description-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #333333;
}

@media (min-width: 1024px) {
  .description-text {
    font-size: 16px;
    line-height: 21px;
  }
}

/* 
---------------------------------------------
LISTA DE VANTAGES
--------------------------------------------- 
*/

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.blue {
  background-color: #f4f8ff;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

@media (min-width: 1024px) {
  .feature-title {
    font-size: 20px;
    line-height: 28px;
  }
}

.feature-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #333333;
}

@media (min-width: 1024px) {
  .feature-description {
    font-size: 16px;
    line-height: 21px;
  }
}

/* 
---------------------------------------------
LISTA DE IMAGENS
--------------------------------------------- 
*/

.image-gallery {
  width: 100%;
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  max-height: 764px;
}

.gallery-top {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-height: 382px;
  align-items: flex-start;
  z-index: 1;
  position: relative;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .gallery-left {
    width: 62%;
  }
}

.gallery-bottom {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-left: 0;
  max-height: 382px;
  margin-top: -48px;
  /* Adicionar um z-index para garantir que a linha superior esteja acima da linha inferior */
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .gallery-right {
    width: 48%;
    margin-left: -314px;
  }
}

.gallery-image {
  width: 30%;
  object-fit: cover;
  height: 382px;
}

.gallery-image-streched {
  width: 70%;
  object-fit: cover;
  height: 382px;
}

.gallery-bottom:first-child {
  z-index: 2;
  position: relative;
}

@media (min-width: 1024px) {
  .gallery-image.overlap {
    margin-top: -84px;
  }
}

/* 
---------------------------------------------
ACESSÓRIOS EXTRA
--------------------------------------------- 
*/
.container-accessories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  max-width: 1280px;
  justify-content: center;
  padding: 48px 48px;
}

.accessories-section {
  display: flex;
  width: 100%;
  background-color: #f6f6f6;
  justify-content: center;
}

.accessories-header {
  text-align: center;
  margin-bottom: 42px;
  padding: 0 56px;
}

.accessories-title {
  font-size: 32px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.accessories-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #333333;
}

.accessories-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.accessory-card {
  flex-shrink: 0;
  width: calc(25% - 16px);
  background-color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.accessory-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.accessory-image {
  width: 100%;
  max-width: 144px;
  height: 100px;
  object-fit: contain;
}

.accessory-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.accessory-name {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.accessory-description {
  font-size: 12px;
  font-weight: 400;
  color: #333333;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  align-self: stretch;

  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .accessory-description {
    font-size: 12px;
    line-height: 16px;
  }
}

.accessory-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accessory-price {
  font-size: 20px;
  font-weight: 600;
  color: #ff9000;
}

@media (min-width: 1024px) {
  .accessory-price {
    font-size: 24px;
    line-height: 33px;
  }
}

.accessory-btn {
  width: 36px;
  height: 36px;
  background-color: var(--botao-primario);
  border: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.icon-arrow {
  fill: white;
  stroke-width: 8;
  min-width: 20px;
}

.accessory-btn:hover {
  background-color: #2f569f;
}

.accessories-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-arrows {
  display: flex;
  gap: 24px;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-arrow.prev {
  background-color: rgba(51, 51, 51, 0.53);
  border: none;
}

.icon-arrow-invert {
  fill: white;
  stroke-width: 8;
  transform: scaleX(-1);
}

.nav-arrow.next {
  background-color: #333333;
  border: none;
}

.nav-arrow.next:hover {
  background-color: #2f569f !important;
}

.btn-view-more {
  background-color: var(--botao-primario);
  color: #ffffff;
  padding: 8px 24px 8px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 16px;
  transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
  .btn-view-more {
    font-size: 16px;
    line-height: 28px;
  }
}

.btn-view-more:hover {
  background-color: #2f569f;
  color: #fff;
}

/*  *********************************************
********** TABLET/MOBILE MEDIA QUERY  *******o****
*********************************************  */

@media (max-width: 1200px) {
  .container-accessories {
    padding: 0;
  }

  .product-content {
    padding: 24px;
  }

  .product-showcase {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .product-image-container {
    width: 100%;
  }

  .product-description {
    height: fit-content;
    width: 100%;
  }

  .feature-card {
    align-self: stretch;
  }

  .image-gallery {
    max-height: 600px;
  }

  .gallery-image {
    height: 300px;
    width: 40%;
  }

  .gallery-image-streched {
    height: 300px;
    width: 60%;
  }

  .accessories-section {
    padding: 24px;
  }

  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .accessories-title {
    font-size: 28px;
  }

  .accessories-subtitle {
    font-size: 20px;
  }

  .accessory-name {
    font-size: 14px;
  }

  .accessory-card {
    width: calc(30% - 16px);
  }

}

@media (max-width: 840px) {
  .product-content {
    padding: 24px 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    align-self: stretch;
  }

  .image-gallery {
    max-height: 1200px;
  }

  .gallery-top {
    flex-direction: column;
    max-height: 600px;
  }

  .gallery-bottom {
    flex-direction: column;
    max-height: 600px;
  }

  .gallery-image,
  .gallery-image-streched {
    width: 100%;
  }

  .accessories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
  }

  .accessories-section {
    padding: 24px 16px;
  }

  .accessories-navigation {
    gap: 24px;
  }

  .accessory-card {
    width: calc(60% - 16px);
  }

  .nav-arrow {
    width: 42px;
    height: 42px;
  }

  .btn-view-more {
    width: 240px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px;
  }

  .accessories-header {
    padding: 0;
    margin-bottom: 24px;
  }

  .accessories-title {
    font-size: 24px;
  }

  .accessories-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 405px) {
  .accessories-navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-view-more {
    width: 100%;
  }
}