@charset "UTF-8";
.RWDproduct002_V3 {
  clear: both;
  width: 100%;
  max-width: 2120px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
  --categoryGroupWidth: calc(100% / 3);
  --categoryGroupMargin: 15px;
}

#is-all-block,
#only-all-block {
  display: block;
}

@media (max-width: 1199px) {
  .RWDproduct002_V3 {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .RWDproduct002_V3 {
    font-size: 13px;
  }
}
@media (max-width: 576px) {
  .RWDproduct002_V3 {
    font-size: 12px;
  }
}
/*標題區，樣式跟其他模組一致*/
.product-section-header {
  margin: 20px 0 50px;
  text-align: center;
}

.section-main-title {
  margin: 0 0 15px;
  font-size: 2.4em;
  letter-spacing: 3px;
  font-weight: bold;
}

.section-subtitle {
  margin: 0 0 15px;
  font-size: 1.2em;
  letter-spacing: 2px;
}

/* 頁籤按鈕樣式 */
.category-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.category-tab-button {
  padding: 12px 24px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 25px;
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  outline: none;
}

.category-tab-button:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.category-tab-button.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

@media (max-width: 768px) {
  .category-tabs {
    gap: 8px;
  }
  .category-tab-button {
    padding: 10px 18px;
    font-size: 14px;
  }
}
@media (max-width: 576px) {
  .category-tab-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}
/*產品項目區塊*/
.product-gallery-container {
  position: relative;
  overflow: hidden;
  margin: 70px 0;
}

.product-portfolio {
  display: block;
}

.category-group {
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.category-group.active {
  display: block;
  opacity: 1;
}

.category-group.fade-in {
  -webkit-animation: fadeIn 0.4s ease-in-out forwards;
          animation: fadeIn 0.4s ease-in-out forwards;
}

.category-group.fade-out {
  -webkit-animation: fadeOut 0.3s ease-in-out forwards;
          animation: fadeOut 0.3s ease-in-out forwards;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 30px;
  margin: 0 auto;
  padding: 0 15px;
  max-width: 100%;
}

.product-item {
  position: relative;
  background: white;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 300px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 300px;
          flex: 0 0 300px;
}

.product-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.product-link:focus {
  outline: 0;
}

.product-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f1f1f1;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  height: 60%;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.product-item:hover .product-image-wrapper img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EEE;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
  z-index: 2;
}

/* 隱藏沒有內容的product-badge */
.product-badge:empty,
.product-badge[data-badge=""],
.product-badge[data-badge=" "] {
  display: none;
}

.product-info {
  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-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 15px;
  background: white;
  height: 40%;
  overflow: hidden;
}

.product-name {
  display: -webkit-box;
  height: 2.4em;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.3em;
  color: #1d1d1f;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.2;
}

.product-description {
  display: -webkit-box;
  color: #777;
  font-size: 0.85em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-pricing {
  display: block;
  margin-top: auto;
}

.price-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 1em;
  color: #1d1d1f;
  font-weight: bold;
}

.original-price {
  text-decoration: line-through;
  color: #828282;
  font-size: 0.9em;
}

/* 響應式設計 */
@media (max-width: 1199px) {
  .product-item {
    width: 280px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 280px;
            flex: 0 0 280px;
  }
  .product-list {
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 25px;
  }
}
@media (max-width: 768px) {
  .product-item {
    width: 250px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 250px;
            flex: 0 0 250px;
  }
  .product-list {
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .product-item {
    width: 280px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 280px;
            flex: 0 0 280px;
  }
  .product-list {
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 15px;
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    font-size: 0.95em;
  }
}
/* ===== 商品規格與加入購物車區塊 ===== */
/* 移除 select / button focus 外框 */
.RWDproduct002_V3 select:focus,
.RWDproduct002_V3 button:focus,
.RWDproduct002_V3 select:active:focus,
.RWDproduct002_V3 button:active:focus {
  outline: 0;
}

/* 規格選單 (select 樣式) */
.RWDproduct002_V3 .cart-area {
  padding: 0 16px;
}

.RWDproduct002_V3 .spec1, .RWDproduct002_V3 .spec2 {
  position: relative;
  margin-top: 10px;
}
.RWDproduct002_V3 .spec1 select, .RWDproduct002_V3 .spec2 select {
  width: 100%;
  padding: 0 30px 0 8px;
  font-size: 14px;
  color: #333;
  letter-spacing: 1px;
  line-height: 32px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
          box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.RWDproduct002_V3 .spec1 select::-ms-expand, .RWDproduct002_V3 .spec2 select::-ms-expand {
  display: none;
}
.RWDproduct002_V3 .spec1, .RWDproduct002_V3 .spec2 {
  /* 下拉箭頭 */
}
.RWDproduct002_V3 .spec1:has(select):before, .RWDproduct002_V3 .spec2:has(select):before {
  content: "\e94d";
  font-family: iicon !important;
  font-size: 24px;
  position: absolute;
  right: 1px;
  top: 1px;
  pointer-events: none;
  line-height: 32px;
  background: #fff;
  z-index: 1;
}

/* 規格按鈕 (button 樣式) */
.RWDproduct002_V3 .spec1[data-cart=spec2] {
  margin-top: 10px;
}
.RWDproduct002_V3 .spec1[data-cart=spec2] button {
  background-color: var(--wt-BtnEmptyColor, #EEE);
  color: #555;
  border: 1px solid var(--wt-BtnEmptyColor, transparent);
  font-size: 14px;
  padding: 6px 16px;
  margin: 0 5px 5px 0;
  line-height: 1.5;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.RWDproduct002_V3 .spec1[data-cart=spec2] button:focus,
.RWDproduct002_V3 .spec1[data-cart=spec2] button:active:focus {
  outline: 0;
}
.RWDproduct002_V3 .spec1[data-cart=spec2] button.active {
  background-color: var(--wt-MainColor, #555);
  border-color: var(--wt-MainColor, transparent);
  color: #fff;
  opacity: 1;
  font-weight: normal;
}

html.no-touch .RWDproduct002_V3 .spec1[data-cart=spec2] button:hover {
  background-color: var(--wt-HoverColor, #555);
  border-color: var(--wt-HoverColor, transparent);
  color: #fff;
  opacity: 1;
  font-weight: normal;
}

/* 數量選單 */
.RWDproduct002_V3 .add-qty {
  position: relative;
  width: 48%;
  float: left;
  margin-top: 10px;
}
.RWDproduct002_V3 .add-qty select {
  width: 100%;
  padding: 0 30px 0 8px;
  font-size: 14px;
  color: #333;
  letter-spacing: 1px;
  line-height: 32px;
  height: 34px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.RWDproduct002_V3 .add-qty select::-ms-expand {
  display: none;
}
.RWDproduct002_V3 .add-qty:before {
  content: "\e94d";
  font-family: iicon !important;
  font-size: 24px;
  position: absolute;
  right: 1px;
  top: 1px;
  pointer-events: none;
  line-height: 32px;
  background: #fff;
  z-index: 1;
}

/* 加入購物車按鈕 */
.RWDproduct002_V3 .add-btn {
  width: 48%;
  float: left;
  margin-top: 10px;
  margin-left: 4%;
  text-align: center;
}
.RWDproduct002_V3 .add-btn button {
  width: 100%;
  background: var(--wt-MainColor, #555);
  border: 1px solid var(--wt-MainColor, #555);
  color: #fff;
  padding: 0 3%;
  font-size: 14px;
  line-height: 34px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.RWDproduct002_V3 .add-btn button:hover {
  background: var(--wt-HoverColor, #1D5377);
  border-color: var(--wt-HoverColor, #1D5377);
  color: #fff;
}
.RWDproduct002_V3 .add-btn button:disabled {
  background: #e2e2e2;
  border: 1px solid #e2e2e2;
  color: #999;
  cursor: not-allowed;
}

.RWDproduct002_V3 .add-btn:after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 414px) {
  .RWDproduct002_V3 .add-qty,
  .RWDproduct002_V3 .add-btn {
    width: 100%;
    float: none;
  }
  .RWDproduct002_V3 .add-btn {
    margin-left: 0;
  }
}