/* Container Shop */
.shop-section {
  order: 2;
  display: flex;
  background: var(--background-primary);
  padding: 40px 16px 40px 16px;
  flex-direction: column;
  flex-wrap: nowrap;
  width: auto;
  gap: 20px;
}

.shop-search-form-mobile {
  display: block;
}

.shop-search-form-desktop {
  display: none;
}

.header > .shop-search-icon {
  display: flex;
  justify-self: end;
  width: 24px;
  height: 24px;
  align-self: center;
}

/* Section Products */
.title-section {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  align-self: center;
  margin: 0;
  word-wrap: break-word;
}

.container-filter-products {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.title-products {
  padding: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-black);
  word-wrap: break-word;
}

.filter-products_buttons {
  display: inline-flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
}

.filter-btn {
  font-weight: 600;
  color: var(--black-transparent-70);
  font-size: 15px;
  line-height: 15px;
  word-wrap: break-word;
  padding: 5px 10px 5px 10px;
}

.filter-btn:hover {
  color: var(--text-white);
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--background-button);
  box-shadow: 5px 4px 10.9px var(--black-transparent-10);
  border-radius: 8px;
  outline: 1px var(--border-secondary) solid;
  outline-offset: -1px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.filter-btn.active {
  color: var(--text-white);
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--background-button);
  box-shadow: 5px 4px 10.899999618530273px var(--black-transparent-10);
  border-radius: 8px;
  outline: 1px var(--border-secondary) solid;
  outline-offset: -1px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

/* Container Products */
.container-products-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  min-width: 370px;
}

.product-card {
  position: relative;
  width: 358px;
  height: 426.74px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

/* Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Conteúdo do overlay  */
.product-top {
  display: flex;
  justify-content: space-between;
  padding: 20px 10px 0px 10px;
}

.price {
  color: var(--text-white);
  font-size: 20px;
  line-height: 100%;
  font-weight: 500;
  word-wrap: break-word;
  margin: 0;
  align-self: center;
}

.fav-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.product-middle {
  display: inline-flex;
  text-align: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0px 10px 0px 10px;
  word-wrap: break-word;
  flex-wrap: nowrap;
}

.product-middle h3 {
  color: var(--text-white);
  font-size: 25px;
  font-weight: 700px;
  line-height: 100%;
  margin-bottom: 8px;
}

.product-middle .description {
  color: var(--text-white);
  font-size: 15px;
  text-align: center;
  font-family: Formative Trial;
  font-weight: 400;
  line-height: 18px;
  word-wrap: break-word;
}

/* Botões */
.product-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
}

.quantity-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  outline: 1px var(--border-secondary) solid;
  outline-offset: -1px;
  border: 1px solid;
  background: var(--background-button);
  box-shadow: var(--box-shadow-primary);
  border-radius: 8px;
  padding: 6px 14px 6px 14px;
}

.quantity-btn button {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.quantity-btn span {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
}

.quantity-btn:active {
  box-shadow: var(--box-shadow-inset);
}
.add-to-card:active {
  box-shadow: var(--box-shadow-inset);
}

.add-to-card {
  box-shadow: var(--box-shadow-primary);
  outline: 1px var(--border-secondary) solid;
  outline-offset: -1px;
  background: var(--background-button);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 14px 7px 14px;
}

.link-view-more {
  display: none;
}

/* Estados especiais */
.product-card.out-of-stock {
  background: var(--background-secondary) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.product-card.out-of-stock .product-overlay {
  background: var(--background-secondary);
  color: var(--text-primary);
}

@media (min-width: 600px) and (max-width: 1439px) {
  .shop-section {
    display: flex;
    height: 100%;
    width: 100%;
  }

  .shop-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .container-products-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 17px;
    justify-content: center;
    max-width: 980px;
  }

  .title-section {
    font-size: 25px;
  }

  .title-products {
    font-size: 20px;
    font-weight: 600;
    line-height: 35px;
  }
}

@media (min-width: 1440px) {
  /* Container Shop */
  .shop-section {
    display: flex;
    width: auto;
    margin: 0 auto;
    padding: 40px 100px 70px 100px;
    gap: 64px;
  }

  /*Desativa o container e form versão Mobile */
  .shop-search-form-mobile {
    display: none;
  }

  /*Ativa o container e form versão Desktop */
  .shop-search-form-desktop {
    display: block;
  }

  /* Section Products */

  .shop-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    outline: 0.2px var(--border-tertiary) solid;
    outline-offset: -0.2px;
    padding: 40px 80px 40px 80px;
  }

  .products-container-search {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .title-section {
    color: var(--text-primary);
    font-size: 35px;
    font-weight: 600;
    line-height: 35px;
    text-align: left;
    align-self: center;
    margin: 0;
    word-wrap: break-word;
  }

  .container-filter-products {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .title-products {
    font-size: 35px;
    font-weight: 600;
    line-height: 35px;
  }

  /*Campo Search */

  .shop-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--background-secondary);
    border-radius: 50px;
    padding: 12px 16px;
    gap: 10px;
    width: 281px;
    height: 50px;
    overflow: hidden;
  }

  .shop-search-button {
    background: var(--transparent);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shop-search-icon {
    width: 24px;
    height: 24px;
  }

  .shop-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: var(--transparent);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
  }

  .shop-search-input::placeholder {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 600;
    line-height: 17px;
    word-wrap: break-word;
  }

  /* Campo de filtro de produtos */

  .filter-products_buttons {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    gap: 10px;
  }

  .filter-btn {
    font-size: 20px;
    line-height: 20px;
    padding: 10px 20px 10px 20px;
  }

  .filter-btn:active {
    padding: 15px 25px 15px 25px;
    font-size: 20px;
    line-height: 20px;
  }

  /* Container Products */
  .container-products-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 17px;
    justify-content: center;
    min-width: 1100px;
  }

  .product-card {
    position: relative;
    width: 375;
    height: 447px;
  }

  /* Conteúdo do overlay  */
  .product-top {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px 0px 10px;
  }

  .price {
    font-size: 25px;
  }

  .product-middle h3 {
    font-size: 34px;
  }

  .product-middle .description {
    font-size: 18px;
    line-height: 100%;
  }

  /* Botões */
  .product-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    padding-bottom: 14px;
  }

  .quantity-btn {
    gap: 15px;
    padding: 13px 19px 13px 19px;
  }

  .quantity-btn button {
    font-size: 20px;
    font-weight: 600;
  }

  .quantity-btn span {
    font-size: 20px;
    font-weight: 500;
  }

  .quantity-btn:active {
    box-shadow: var(--box-shadow-inset);
  }
  .add-to-card:active {
    box-shadow: var(--box-shadow-inset);
  }

  .add-to-card {
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
    padding: 15px 25px 15px 25px;
  }

  /* Estados especiais */
  .product-card.out-of-stock {
    font-size: 20px;
  }

  .link-view-more {
    display: flex;
    justify-content: end;
  }

  .view-more {
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
  }
}
