@charset "UTF-8";
.product-filter {
  margin-top: 124px;
  padding: 40px 0;
  text-align: center;
}
.product-filter h1 {
  color: #212121;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}
.product-filter p {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .product-filter h1 {
    font-size: 24px;
  }
}
.img-hover-wrapper {
  position: relative;
  aspect-ratio: 4/5; /* 或 4 / 5 根據商品圖比例 */
  overflow: hidden;
}

.img-hover-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover; /* 滿版剪裁，不變形 */
  transition: opacity 0.3s ease;
}

.img-hover-wrapper .img-hover {
  visibility: visible;
}

.img-hover-wrapper:hover .img-hover {
  visibility: hidden;
}

.img-hover-wrapper:hover .img-default {
  overflow: hidden;
}

.product-filter-item {
  padding: 0 40px 10px 40px;
  border-bottom: 1px solid #ddd;
}
.product-filter-item-select {
  cursor: pointer;
}
.product-filter-item-image {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  transition: opacity 0.2s ease;
  display: flex;
}
.product-filter-item-close {
  width: 16px;
  height: 16px;
}
.product-filter-item-title {
  color: #333;
  font-size: 14px;
  font-weight: 400;
  margin-right: 24px;
}
.product-filter-item-category {
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid #d9d9d9;
  width: auto;
  height: 32px;
  gap: 4px;
}
.product-filter-item-category2 {
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid #d9d9d9;
  width: auto;
  height: 32px;
  gap: 4px;
}
.product-filter-item .filter-item {
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  height: 32px;
}
.product-filter-item .filter-title {
  font-size: 12px;
}
.product-filter-item .filter-title2 {
  font-size: 12px;
}
.product-filter-item .custom-select-wrapper {
  position: relative;
  width: auto;
  font-size: 14px;
  margin-left: auto;
  margin-right: 0;
}
.product-filter-item .custom-select-trigger {
  background-color: #fff;
  color: #333;
  cursor: pointer;
  margin-right: 28px;
}
.product-filter-item .custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../assets/image/sm-arrow-down.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.product-filter-item .custom-options {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  z-index: 999;
  width: -moz-max-content;
  width: max-content;
  padding: 20px 10px;
  text-align: center;
  display: none;
}
.product-filter-item .custom-option {
  margin-bottom: 16px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.product-filter-item .custom-option:last-child {
  margin-bottom: unset;
}
.product-filter-item .custom-option:hover {
  color: #212121;
}

.filter-result {
  padding: 34px 40px 10px 40px;
  display: flex;
}
.filter-result span.not-display {
  display: none;
}

.filter-product {
  padding: 0 40px;
  position: relative;
}

@media (max-width: 1439px) {
  .product-filter-item {
    padding: 0px 24px 10px 24px;
  }
  .filter-result {
    padding: 34px 24px 10px 24px;
  }
  .filter-product {
    padding: 0 24px;
  }
  .filter-category-area {
    height: 350px;
    padding-right: 24px;
  }
}
@media (max-width: 1023px) {
  .product-filter-item {
    padding: 0px 40px 10px 40px;
  }
  .product-filter-item .filter-item {
    display: none;
  }
  .filter-result {
    padding: 34px 40px 10px 40px;
  }
  .filter-product {
    padding: 0 22px;
  }
  .filter-category {
    display: none;
  }
}
@media (max-width: 767px) {
  .product-filter-item {
    padding: 0px 16px 10px 16px;
  }
  .product-filter P {
    padding: 0 16px;
  }
  .filter-result {
    padding: 34px 16px 10px 16px;
    font-size: 12px;
  }
  .filter-product {
    padding: 0 16px;
  }
}
.filter-category {
  padding-bottom: 10px;
  flex-shrink: 0; /* 不要縮小 */
  visibility: hidden;
  animation: slideOutToLeft 0.1s ease-in forwards;
  flex-direction: column;
  height: 100dvh;
  margin-bottom: -96px;
  width: 0;
  transition: width 0.5s, opacity 0.1s ease;
  /* 動畫：從左滑入 */
  /* 動畫：滑回左邊隱藏 */
}
.filter-category.show {
  visibility: visible;
  display: flex;
  transform: translateX(0); /* 推入到位 */
  animation: slideInFromLeft 0.1s ease-out forwards;
  justify-content: space-between;
  position: sticky;
  top: 100px;
  height: 100dvh;
  width: 362px;
}
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
}
@keyframes slideOutToLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
  }
}
.filter-category img {
  width: 44px;
  height: 44px;
}
.filter-category-area {
  flex: 1 1 auto;
  max-height: -webkit-fill-available; /* 避免超出視窗 */
  padding-right: 64px; /* 若要避免 scrollbar 擠壓 */
  overflow: auto;
}
.filter-category-area::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}
.filter-category-title {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 700;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.filter-category .filter-divider {
  border: none;
  border-top: 1px solid #ddd;
}
.filter-category-item {
  padding: 10px 0;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid #ddd;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
}
.filter-category .form-check-input {
  width: 22px;
  height: 22px;
  margin-top: unset;
  margin-right: 16px;
}
.filter-category .form-check-input:checked {
  background-color: #999999;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #ddd;
}
.filter-category .form-check-input:focus {
  box-shadow: none;
  outline: none;
  border: 1px solid #ddd;
}
.filter-category-btn {
  left: 24px;
  right: 0;
  bottom: 3%;
  display: none;
  z-index: 1000;
  gap: 45px;
  transition: bottom 0.3s ease;
  width: 362px; /* 與 filter-category 寬度一致 */
  position: sticky;
}
.filter-category-btn .reset {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 10px;
  width: 124px;
  height: 56px;
  background: #fff;
  font-size: 12px;
}
.filter-category-btn .search {
  border-radius: 6px;
  padding: 10px;
  width: 124px;
  height: 56px;
  color: #fff;
  background: #212121;
  font-size: 12px;
}

.filter-product-sm {
  padding: 40px 24px;
  display: none;
  overflow-y: auto;
}
.filter-product-sm::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}
.filter-product-sm .offcanvas-header {
  border: unset;
  height: 60px;
}
.filter-product-sm .offcanvas-body {
  padding: unset;
  max-height: 100%;
  overflow: unset !important;
}
.filter-product-sm .offcanvas-body::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}
.filter-product-sm h2 {
  font-size: 20px;
  margin: unset;
}
.filter-product-sm h3 {
  font-size: 14px;
  margin: unset;
}
.filter-product-sm img {
  width: 44px;
  height: 44px;
}
.filter-product-sm-title {
  padding: 8px 0;
}
.filter-product-sm-subtitle {
  padding: 8px 0;
}
.filter-product-sm .subtitle-filter-divider {
  border-bottom: 1px solid #ddd;
}
.filter-product-sm-category {
  flex-wrap: wrap; /* 允許換行 */
  gap: 8px;
  border-bottom: 1px solid #ddd;
  display: none;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  padding-right: 22px;
  overflow: hidden;
}
.filter-product-sm-category.show {
  max-height: 200px; /* 根據需要調整 */
  opacity: 1;
}
.filter-product-sm .product-filter-item-category {
  display: flex;
}
.filter-product-sm .product-filter-item-category .filter-title {
  font-size: 12px;
}
.filter-product-sm .product-filter-item-category img {
  width: 16px;
  height: 16px;
}
.filter-product-sm .product-filter-item-category2 {
  display: flex;
}
.filter-product-sm .product-filter-item-category2 .filter-title2 {
  font-size: 12px;
}
.filter-product-sm .product-filter-item-category2 img {
  width: 16px;
  height: 16px;
}

.filter-category-sm {
  width: 362px;
  height: -webkit-fill-available;
  overflow-y: auto;
  position: relative;
  padding-bottom: 10px;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}
.filter-category-sm::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}
.filter-category-sm.show {
  opacity: 1;
  visibility: visible;
  display: flex;
}
.filter-category-sm img {
  width: 44px;
  height: 44px;
  margin-right: 10px;
}
.filter-category-sm-area {
  flex: 1 1 auto;
}
.filter-category-sm-area::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}
.filter-category-sm-title {
  padding: 8px 0;
  font-weight: 700;
}
.filter-category-sm .filter-divider {
  display: flex;
  border: none;
  border-top: 1px solid #ddd;
}
.filter-category-sm-item {
  padding: 10px 0;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid #ddd;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
}
.filter-category-sm .form-check-input {
  width: 22px;
  height: 22px;
  margin-top: unset;
  margin-right: 16px;
}
.filter-category-sm .form-check-input:checked {
  background-color: #999999;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #ddd;
}
.filter-category-sm .form-check-input:focus {
  box-shadow: none;
  outline: none;
  border: 1px solid #ddd;
}
.filter-category-sm-btn {
  width: 400px;
  padding: 20px 40px 0 40px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 40px;
  display: none;
  z-index: 1000;
}
.filter-category-sm-btn .reset2 {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 10px;
  width: 140px;
  height: 56px;
  background: #fff;
  font-size: 12px;
}
.filter-category-sm-btn .search2 {
  border-radius: 6px;
  padding: 10px;
  width: 140px;
  height: 56px;
  color: #fff;
  background: #212121;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .filter-product-sm {
    display: flex;
  }
}
@media (max-width: 767px) {
  .filter-product-sm {
    width: 288px !important;
    padding: 40px 16px;
  }
  .filter-category-sm,
  .filter-product-sm-subtitle,
  .subtitle-filter-divider {
    width: 255px;
  }
  .filter-category-sm-btn {
    width: 288px;
    padding: 0 16px 0 16px;
  }
  .filter-category-sm-btn .reset2 {
    width: 124px;
    height: 56px;
  }
  .filter-category-sm-btn .search2 {
    width: 124px;
    height: 56px;
  }
  .filter-category-sm img {
    margin-right: unset;
  }
}
.new-product {
  width: 100%;
}

.new-product-img {
  display: grid;
  grid-template-columns: repeat(4, minmax(20rem, 1fr));
  gap: 24px;
}
.new-product-img.three-cols {
  grid-template-columns: repeat(3, minmax(20rem, 1fr));
}

@media (max-width: 1439px) {
  .new-product-img {
    grid-template-columns: repeat(3, minmax(20rem, 1fr));
  }
  .new-product-img.three-cols {
    grid-template-columns: repeat(2, minmax(20rem, 1fr));
  }
}
@media (max-width: 1023px) {
  .new-product-img {
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }
  .new-product-img.three-cols {
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }
}
.new-product {
  padding: 24px 0 24px 0px;
  overflow: auto;
}
.new-product::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}

@media (max-width: 1439px) {
  .new-product {
    padding: 24px 0 24px 0px;
  }
}
@media (max-width: 767px) {
  .new-product {
    padding: unset;
  }
}
.new-product-title {
  font-size: 24px;
  font-weight: 700;
}

.new-product-img-item {
  position: relative;
}

.new-product-price {
  font-weight: 700;
}

.product-img-size {
  opacity: 0;
  position: absolute;
  bottom: 95px;
  height: 40px;
  width: 100%;
  padding: 0 20px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #212121;
  font-family: "Roboto";
  gap: 24px;
  transition: opacity 0.3s;
  cursor: pointer;
}
.product-img-size div:first-child {
  color: #666;
  -webkit-text-decoration-line: line-through;
  text-decoration-line: line-through;
}

.new-product-img-item:hover .product-img-size {
  opacity: 1;
}

@media (max-width: 1439px) {
  .new-product-img {
    margin-top: 16px;
  }
  .new-product-title {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .product-img-size {
    bottom: 77px;
    font-size: 10px;
    padding: 0 10px;
  }
  .new-product-title {
    font-size: 20px;
  }
}
.new-product-img-item-detail {
  padding: 12px 0;
}
.new-product-img-item-detail div {
  font-size: 14px;
}

@media (max-width: 767px) {
  .new-product-img-item-detail div {
    font-size: 10px;
  }
}
.new-product-img-item-detail div:nth-child(2) {
  margin: 4px 0;
}

.discount {
  background-image: url("../assets/image/discount-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  flex-direction: column;
  gap: 20px;
}
.discount-title {
  font-size: 24px;
  font-weight: 700;
  width: 138px;
  color: #fff;
  font-size: 24px;
}
.discount-btn {
  height: 54.5px;
  padding: 10px;
  background: #fff;
  font-size: 14px;
  width: 142px;
  margin-bottom: 37.51px;
}