.catalog {
  padding: 50px 0;
  margin: 50px 0;
  background: url("../img/Pattern.jpeg") no-repeat;
  background-position: 50% 80px;
}

.catalog-grid {
  max-width: 1200px;
  width: 100%;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product {
  max-width: 360px;
  width: 100%;
  text-align: center;
  -webkit-box-shadow: 0 0 16px rgba(44, 108, 76, 0.1490196078);
          box-shadow: 0 0 16px rgba(44, 108, 76, 0.1490196078);
  border-radius: 20px;
}

.product-img {
  max-width: 360px;
  width: 100%;
  height: 360px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #eef9eb;
  border-radius: 10px 10px 0 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-box-shadow: inset 0 0 16px rgba(44, 108, 76, 0.1490196078);
          box-shadow: inset 0 0 16px rgba(44, 108, 76, 0.1490196078);
}

.product-title {
  font-weight: bold;
  font-size: 22px;
  padding: 20px 0;
  font-family: "Dosis", sans-serif;
}

.product-description {
  background: #2c6c4c;
  padding: 5px;
  color: #fff;
  font-family: "Dosis", sans-serif;
  font-weight: 600;
}

.product-footer {
  border-bottom: 1px dashed #2c6c4c;
  border-right: 1px dashed #2c6c4c;
  border-left: 1px dashed #2c6c4c;
  border-radius: 0 0 5px 5px;
  padding-bottom: 20px;
}

.product-price {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.product-price span {
  opacity: 0.7;
  font-size: 12px;
}

.product-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.product-buttons svg {
  width: 15px;
  height: 20px;
}

.add-btn, .added-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  max-width: 130px;
  height: 50px;
  width: 100%;
  background: #06bb2e;
  color: #fff;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.add-btn svg, .added-btn svg {
  margin-top: -4px;
}
.add-btn span, .added-btn span {
  height: 20px;
}
.add-btn:hover, .added-btn:hover {
  background: #079c28;
}

.added-btn {
  background: #f69946;
}
.added-btn:hover {
  background: #ca7a33;
}

.description-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  max-width: 130px;
  height: 50px;
  width: 100%;
  background: #18c2e2;
  color: #fff;
  border-radius: 5px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.description-btn span {
  height: 20px;
}
.description-btn:hover {
  background: #15a3bf;
}

.more-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 2px solid #000;
  max-width: 200px;
  height: 50px;
  font-family: "Dosis", sans-serif;
  border-radius: 10px;
  text-transform: uppercase;
  margin: 50px auto;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.description-overlay {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
  background: #fff;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  pointer-events: none;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  -webkit-transform: translateY(20%);
      -ms-transform: translateY(20%);
          transform: translateY(20%);
}

.description-overlay.show {
  opacity: 1;
  -webkit-user-select: auto;
     -moz-user-select: auto;
      -ms-user-select: auto;
          user-select: auto;
  pointer-events: auto;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.back-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.description-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 50px;
}

.description-img {
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
  width: 360px;
  height: 360px;
}
.description-img img {
  width: 100%;
}

.description-info {
  max-width: 760px;
}

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

.description-price {
  font-size: 20px;
  margin: 20px 0;
}
.description-price span {
  opacity: 0.7;
  font-size: 16px;
}

.description-add-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #000;
  color: #fff;
  max-width: 200px;
  height: 50px;
  border-radius: 5px;
  margin-bottom: 30px;
  cursor: pointer;
}

.description-price-info b {
  margin: 5px 0;
}

.catalog-filters {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  max-width: 800px;
  height: 60px;
  width: 100%;
  margin: 30px auto;
}

.catalog-search {
  position: relative;
  height: 100%;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.catalog-search:before {
  position: absolute;
  top: 12px;
  left: 10px;
  content: "";
  background: url("../img/search.svg") no-repeat center/cover;
  width: 26px;
  height: 26px;
}
.catalog-search input {
  height: 100%;
  border-radius: 20px;
  padding-left: 40px;
  outline: none;
  border: 2px solid #2c6c4c;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.btn-reset {
  width: 40px;
  height: 40px;
  background-color: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: none;
  border-radius: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
  opacity: 0.8;
}
.btn-reset img {
  width: 32px;
  height: 32px;
}

.tags-select {
  max-width: 270px;
  min-width: 170px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 100%;
  padding-inline: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 2px solid #2c6c4c;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
}

.tags-select-list {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 2px solid #2c6c4c;
  z-index: 200;
  overflow: hidden;
}

.tags-select-option {
  padding: 10px;
  cursor: pointer;
}
.tags-select-option:hover {
  background: #e6e6e6;
}

.fade-enter-active,
.fade-leave-active {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  -webkit-transform: translateY(-50px);
      -ms-transform: translateY(-50px);
          transform: translateY(-50px);
}

.opacity-enter-active,
.opacity-leave-active {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.opacity-enter-from,
.opacity-leave-to {
  opacity: 0;
}

@media screen and (max-width: 768px) {
  .catalog-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .catalog-filters {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: 100%;
    max-width: 95%;
    width: 100%;
  }
  .catalog-search {
    height: 50px;
  }
  .tags-select {
    height: 50px;
    max-width: 100%;
    width: 100%;
  }
  .subpage {
    margin-top: 100px;
  }
  .description-wrapper {
    position: absolute;
    top: 0;
    display: block;
  }
  .description-overlay {
    overflow-y: scroll;
  }
  .close-btn, .back-btn {
    z-index: 20;
  }
  .description-img {
    margin: 60px auto 20px auto;
    max-width: 95%;
    width: 100%;
    height: auto;
    background: #e6e6e6;
    border-radius: 10px;
  }
  .description-info {
    max-width: 95%;
    width: 100%;
    margin: auto;
  }
}