/* ==========================================================
   GRELHA DE PRODUTOS — MODO GRID
========================================================== */

.grelha-produtos.view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grelha-produtos.view-grid .promo-list {
  display: none;
}

.grelha-produtos.view-grid .old-price {
  font-weight: 500;
  font-size: 11px;
}

.grelha-produtos.view-grid .new-price {
  font-weight: 700;
  font-size: 19px;
}

/* ==========================================================
   GRELHA DE PRODUTOS — MODO LISTA
========================================================== */

.grelha-produtos.view-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grelha-produtos.view-list .promo-list {
  display: flex;
  align-items: center;
}

.grelha-produtos.view-list .list-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grelha-produtos.view-list .product-top .promo {
  display: none;
  padding: 0;
}

.grelha-produtos.view-list .old-price {
  font-weight: 400;
  font-size: 23px;
}

.grelha-produtos.view-list .new-price {
  font-weight: 700;
  font-size: 23px;
}

.grelha-produtos.view-list .product-card {
  display: grid;
  grid-template-columns: 2% 10% 41% 16% auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "fav img ref   price actions"
    "fav img title price actions";
  gap: 0px 20px;
  align-items: center;
  padding: 16px;
}

.grelha-produtos.view-list .product-top,
.grelha-produtos.view-list .product-info {
  display: contents;
}

.grelha-produtos.view-list .product-info.d-flex {
  display: contents !important;
}

.grelha-produtos.view-list .favorite {
  grid-area: fav;
  align-self: center;
}

.grelha-produtos.view-list .product-image {
  grid-area: img;
  align-self: center;
  height: calc(90px * 1.1);
}

.grelha-produtos.view-list .product-ref {
  grid-area: ref;
}

.grelha-produtos.view-list .product-image img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}

.grelha-produtos.view-list .product-title {
  grid-area: title;
  align-self: start;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grelha-produtos.view-list .product-price,
.grelha-produtos.view-list .product-actions {
  grid-row: 1 / 3;
  align-self: center;
}

.grelha-produtos.view-list .product-price {
  grid-area: price;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.grelha-produtos.view-list .product-actions {
  grid-area: actions;
  margin-top: 0;
}

.grelha-produtos.view-list .cart-btn {
  margin-left: 0;
}

/* ==========================================================
   PÁGINA PRODUTO — DETALHE
========================================================== */

.background-product-part {
  background-color: var(--color-light-grey);
  padding-bottom: 24px;
}

.miniature-img {
  object-fit: contain;
}

.main-img {
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.product-info-top,
.product-description {
  background-color: var(--color-white);
  padding: 36px 24px;
  border-radius: 16px;
  width: 100%;
}

.product-info-top .brand-logo {
  height: 36px;
}

.product-ref-solid {
  display: inline-flex;
  width: fit-content;
}

.product-ref-solid span {
  display: inline-block;
  color: var(--color-white);
  background-color: var(--color-light-aqua);
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  width: fit-content;
}

.promo-solid {
  color: var(--color-white);
  background-color: var(--color-red);
  padding: 4px 8px;
  border-radius: 8px;
}

.product-info-top,
.text-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-files {
  display: flex;
  gap: 20px;
}

.product-files a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-grey59);
}

.product-price {
  display: flex;
  gap: 8px;
}

.product-actions {
  display: flex;
  gap: 20px;
}

.btn-aqua {
  background-color: var(--color-light-aqua);
}

.btn-aqua:hover {
  color: var(--color-grey38);
  background-color: white;
  border:1px solid var(--color-dark-aqua);
}

.background-product-part .breadcrumbs {
  margin-top: 0;
  padding-top: 24px;
}

.description-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.description-dropdown button {
  background: none;
  border: none;
}

.description-text {
  max-height: 247px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(6px);
  opacity: 0.9;
}

.product-description.open .description-text {
  transform: translateY(0);
  opacity: 1;
}

.toggleDescription svg  {
  transition: transform 0.3s ease;
}

.product-description.open .toggleDescription svg {
  transform: rotate(180deg);
}

/* ==========================================================
   SLIDE PRODUTOS — OVERRIDE PÁGINA
========================================================== */

.mySwiperProdutos a,
.mySwiperProdutosRelacionados a {
  text-decoration: none;
  color: var(--color-grey38);
}

.mySwiperProdutos {
  height: 462px;
  margin-top: 32px;
  margin-left: 0px !important;
  margin-right: 0px !important;
}

.slide-produtos {
  margin-top: 160px;
  margin-bottom: 200px;
}

.slide-produtos .swiper {
  padding-bottom: 86px;
}

.mySwiperProdutos .category-card,
.mySwiperProdutos .category-wrapper {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.mySwiperProdutos .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.6) 95%
  );
  transition: all 0.4s ease;
}

.paginacao-bottom {
  margin-bottom: 160px;
}

/* ==========================================================
   SLIDE PRODUTO — IMAGENS
========================================================== */
.mySwiperImagensProduto {
  width: 100%;
  height: 100%;
}

.mySwiperImagensProduto .swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafa;
}

.mySwiperImagensProduto .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}


.toggleDescription{
  background: none;
  border: none; 
}



@media (min-width: 992px) and (max-width: 1400px) {
  .grelha-produtos.view-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tablet-adjust-pagination {
    width: 33.33333333%;
    margin-left: 41.66666667%;
  }

  .tablet-adjust-pagination-bottom {
    width: 33.33333333%;
    margin-left: 66.66666667%;
  }

  .grelha-produtos.view-list .product-card {
    grid-template-columns: 2% 7% 41% 16% auto;
  }
}

@media (max-width: 991px) {
  .main-img-container {
    width: 100%;
  }

  .miniature-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    mix-blend-mode: multiply;
  }

  .product-info-top {
    padding: 36px 24px 100px;
  }

  .product-info-top .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-info-top .product-actions .btn-aqua {
    flex: none !important;
    width: 100%;
  }

  .product-info-top .product-actions > div {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .products-view-button {
    justify-content: space-between;
  }

  .grelha-produtos.view-grid {
    grid-template-columns: 1fr;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-right: 0;
    margin-left: 0;
    padding: 0 20px;
  }

  .paginacao-bottom {
    margin-bottom: 100px;
  }

  .label-Grelha {
    display: none;
  }

  /* MODO LISTA — MOBILE */

  .grelha-produtos.view-list .product-card {
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "ref    fav"
      "title  title"
      "img    price"
      "actions      actions";
    gap: 8px 12px;
    align-items: start;
    overflow: hidden;
  }

  .grelha-produtos.view-list .list-wrapper {
    grid-area: ref;
  }

  .grelha-produtos.view-list .product-price,
  .grelha-produtos.view-list .product-actions {
    grid-row: auto;
  }

  .grelha-produtos.view-list .product-price {
    gap: 4px;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
  }

  .grelha-produtos.view-list .product-actions {
    justify-content: flex-end;
  }

  .grelha-produtos.view-list .favorite {
    justify-self: end;
    align-self: center;
  }

  .grelha-produtos.view-list .product-image img {
    height: 70px;
  }

  .grelha-produtos.view-list .new-price,
  .grelha-produtos.view-list .old-price {
    font-size: 19px;
  }

  .grelha-produtos.view-list {
    margin-left: 0;
    margin-right: 0;
  }
}
