.product-page-wrapper {
  font-size: 14px;
}

#tw-header {
  position: static;
}

.mobile-search-wrapper {
  display: flex;
  padding: 10px 20px;
  background-color: #f8f8f8;
}

.mobile-search-wrapper input {
  padding: 4px 4px 4px 26px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid #eee;
  margin-left: 14px;
  flex-grow: 1;
  background-color: #fff;
}

.mobile-search-wrapper .search-box {
  display: flex;
  flex-grow: 1;
  padding: 0 20px 0 5px;
  position: relative;
}

.mobile-search-wrapper .search-box i {
  position: absolute;
  top: 6px;
  left: 25px;
  color: #bbb;
  font-weight: bold;
}

.mobile-search-wrapper .cat-btn {
  padding: 6px 10px;
  border-radius: 10px;
  background-color: #fff;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.pc-cat-wrapper {
  display: none;
  background-color: #f5f5f5;
  color: #999;
  margin-top: 50px;
  border: 1px solid #eee;
  margin-bottom: 20px;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

.pc-cat-wrapper .search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}


.pc-cat-wrapper .i-right {
  margin: 0 5px;
  font-size: 14px;
}

.pc-cat-wrapper .breadcrumbs {
  display: flex;
  padding: 6px 12px;
  align-items: center;
}

.pc-cat-wrapper .breadcrumbs .link {
  position: relative
}

.pc-cat-wrapper .breadcrumbs .link .close {
  color: #0d47a1;
  margin-left: 5px;
  font-size: 18px;
  position: absolute;
  right: 2px;
  top: 3px;
}

.pc-cat-wrapper .breadcrumbs .link.active {
  padding: 3px 22px 3px 3px;
  border-radius: 5px;
  border: 1px solid #0d47a1;
  background-color: #fff;
  color: #0d47a1;
}


.pc-cat-wrapper .search-box {
  position: relative;
  width: 250px;
  margin-left: 15px;
}

.pc-cat-wrapper input {
  padding: 4px 26px 4px 4px;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid #aaa;
  background-color: #fff;
  width: 100%;
  height: 28px;
}

.pc-cat-wrapper .search-box i {
  position: absolute;
  top: 3px;
  right: 5px;

  color: #666;
  font-weight: bold;
}

.pc-cat-wrapper .fold-btn {
  display: flex;
  width: 30px;
  align-items: center;
  justify-content: center;
  background-color: #0d47a1;
  color: #fff;
  margin-left: auto;
  position: absolute;
  right: 1px;
  bottom: 1px;
  top: 1px;
}

.pc-cat-wrapper .fold-btn .i-down {
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s;
}

.pc-cat-wrapper .cat-box {
  padding: 10px 15px 2px;
  background-color: #fff;
}

.cat-box .cat-row {
  display: flex;
  min-height: 35px;
  padding: 5px 0;
}

.cat-list {
  display: flex;
}

.cat-row .cat-title {
  text-align: right;
  width: 90px;
  flex-shrink: 0;
  text-align-last: justify;
  margin-right: 6px;
}

.cat-list .cat-item {
  color: #1a2a2a;
  margin-right: 15px;
  cursor: pointer;
}

.cat-list .cat-item:hover {
  color: #0d47a1;
}

.cat-list .cat-item.active {
  color: #0d47a1;
  font-weight: bold;
}

.tools {
  display: flex;
  background-color: #f1f1f1;
  border: 1px solid #e8e8e8;
  padding-left: 5px;
  padding-right: 15px;
  font-size: 12px;
  line-height: 18px;
}

.sort {
  display: flex;
}

.tools .sort-item {
  padding: 8px;
  cursor: pointer;
}

.tools .sort-item .i-up {
  font-size: 12px;
  margin-left: -3px;
  transition: all 0.3s;
  display: inline-block;
}

.tools .sort-item .i-up.down {
  transform: rotate(180deg);
  transition: all 0.3s;
}

.tools .sort-item.active {
  color: #0d47a1;

}

.view-change {
  display: flex;
  margin-left: auto;
  align-items: center;
}

.view-change .tw-icon {
  font-size: 18px;
  padding: 8px;
}

.view-change .tw-icon.active {
  color: #0d47a1;
}

.product-wrapper {
  display: flex;
  height: calc(100vh - 37px);
  overflow: hidden;
}

.product-wrapper .nav-wrapper {
  width: 23vw;
  height: 100%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background-color: #f1f1f1;
}

.product-wrapper .swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-wrapper .swiper .swiper-slide {
  font-size: 12px;
  padding: 12px 8px;
  border-left: 4px solid transparent;
}

.product-wrapper .swiper .swiper-slide.active {
  border-left: 4px solid #0d47a1;
  background-color: #fff;
}

.product-list-wrapper {
  height: 100%;
  overflow-y: auto;
  flex-grow: 1;
}

.product-list {
  padding: 8px 8px 20px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(auto, max-content);
}

.product-list .responsive-image-box .responsive-box {
  padding-top: 75%;
}

.card {
  line-height: 1.2em;
  font-size: 12px;
  border: 1px solid #eee;
}

.card .title {
  margin: 10px 5px 5px;
  font-weight: bold;
}

.card .desc {
  color: #999;
  margin: 10px;
  
}

.card .price {
  margin: 5px;
  font-weight: bold;
  color: #999;
}

.product-list.single {
  grid-template-columns: 1fr;
}

.product-list.single .card {
  display: flex;
  align-items: flex-start;
}


.product-list.single .responsive-image-box {
  width: 110px;
  flex-shrink: 0;
}


.product-list.single .title {
  line-clamp: 1;
  -webkit-line-clamp: 1;
  height: 1.3em;
}

.product-list.single .desc {
  line-clamp: 2;
  -webkit-line-clamp: 2;
  height: 2.4em;
}

.not-data-wrapper {
  display: none;
  padding-top: 80px;
  text-align: center;
}

.not-data-wrapper .not-data-title {
  font-size: 16px;
  color: #999;
}

.not-data-wrapper img {
  max-width: 220px;
}


@media (min-width: 768px) {
  
  .product-list {
    padding: 8px;
    grid-template-columns: repeat(3, 1fr);
  }

  .product-list.single {
    grid-template-columns: repeat(2, 1fr);
  }

  .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
}

@media (min-width: 1024px) {
  .mobile-search-wrapper {
    display: none;
  }

  .pc-cat-wrapper {
    display: block;
  }
  .tw-container {
    padding: 0 12px;
  }

  .product-wrapper .nav-wrapper {
    display: none;
  }

  .product-wrapper {
    height: auto;
  }



  .product-list {
    padding: 8px 0;
    grid-template-columns: repeat(4, 1fr);
  }

  .tools {
    padding: 0;
  }

  .tools .sort-item {
    padding: 8px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #eee;
  }

  .tools .sort-item.active {
    border: 1px solid #0d47a1;
  }

  .view-change .tw-icon {
    background-color: #fff;
    border: 1px solid #eee;
  }

  .view-change .tw-icon.active {
    border: 1px solid #0d47a1;
  }

  .product-list.single .responsive-image-box {
    width: 150px;
  }

  .product-list.single .title {
    line-clamp: 2;
    -webkit-line-clamp: 2;
    height: 2.4em;
  }

  .product-list.single .desc {
    line-clamp: 3;
    -webkit-line-clamp: 3;
    height: 3.6em;
  }
}