/* ============================================================================
   主題：shopLinerp  —  pages/product
   issue518 階段 11 CSS 模組化自動拆檔：本檔僅含相對 default(common) 的品牌差異規則，
   與 common 相同的規則由 common 層托底。載入順序：common 後、custom.css 前。
   ============================================================================ */

.shop-content .product-item {
  background: #ffffff;
  border-radius: 0px;
  overflow: hidden;
}

.shop-content .product-item .product-info {
  background: #ffffff;
  padding: 15px;
}

.shop-content .product-item .product-info .product-title {
   
  margin-top: 2px;
  margin-bottom: 12px;
  color: #333333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-wrap: wrap;
   
  line-height: 30px;
  min-height: 60px;
}

.shop-content .product-item .product-info h4 {
   
  margin-top: 12px;
  margin-bottom: 12px;
  color: #303030;
  min-height: 56px;
  max-height: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media screen and (max-width: 768px) {

.shop-content .product-item .product-info {
    padding: 5px;
  }

.shop-content .product-item .product-info .product-title {
    line-height: 24px;
    margin-top: 12px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
     
    min-height: 72px;
  }
}

.single-product-image-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 65px;
  height: 65px;
  background: #2c2c2c;
  color: #ffffff;
  padding: 10px;
  border-radius: 99rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-product-image-tag.tag2 {
  position: absolute;
  top: 10px;
  left: 85px;
}

.single-product-info .main-title {
   
  font-display: swap;
  color: #373737;
  font-weight: 700 !important;
   
}

.single-product-info .pro-price {
   
  color: #2c2c2c;
  font-weight: 700 !important;
  padding-bottom: 0;
  margin-bottom: 12px;
  line-height: 1;
}

.single-product-tab .tab-content .tab-pane img {
  max-width: 100% !important;
  max-width: min(100%, 1040px) !important;
  height: auto !important;
}

.product-item .btnLike-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 4px;
}

.product-item {
  margin-bottom: 30px;
  transition: all 0.3s ease 0s;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #dddddd;
}

.product-item:hover {
  box-shadow: 0px 8px 13px rgba(0, 0, 0, 0.15);
}

.owl-carousel-suggest .product-item {
  width: 100%;
  background: #ffffff;
  margin-bottom: 10px !important;
  box-shadow: none;
  border: 1px solid #dddddd;
}

@media screen and (max-width: 767px) {

  .owl-carousel-suggest .product-item {
    width: 100%;
    background: #ffffff;
    margin-bottom: 20px !important;
    box-shadow: none;
    border: 1px solid #dddddd;
  }

}

.product-item .product-img a {
  width: 100%;
  height: 100%;
  display: block;
}

.product-item .product-img a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item .product-img {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.product-item .product-img .product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 80px;
  height: fit-content;
  background: #2c2c2c;
  color: #ffffff;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgs-zoom-area img {
  width: 100% !important;
}

.productBox {
  text-decoration: none;
  display: block;
  margin-bottom: 30px;
  border: 1px solid #c6c6c6;
  background: #ffffff;
  border-radius: 0px;
}

.productBox:hover .productImgBox .productImg {
  transform: scale(1.08);

}

.productBox:hover .btnKG {
  background-color: #2c2c2c;
  color: #ffffff;
}

.productBox .productImgBox {
  width: 100%;
  height: auto;
   
  aspect-ratio: 1/1;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  overflow: hidden;
}

.productBox .productImgBox .productImg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: .5s;
}

.productBox .productImgBox .productTag {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 80px;
  height: fit-content;
  background: #2c2c2c;
  color: #ffffff;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.productBox .productImgBox .productTag .productTagText {
  font-size: 14px;
  font-family: HGPMinchoE;
  font-display: swap;
  margin: 0px;
}

.productBox .productTitle {
  font-size: 20px;
  line-height: 36px;
  min-height: 72px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #333333;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media screen and (max-width: 768px) {

  .productBox .productTitle {
    font-size: 16px;
    min-height: 60px;
    line-height: 28px;
    margin-top: 12px;
    margin-bottom: 8px;
  }
}

.productBox .productContent {
  font-size: 16px;
  color: #333333;
  min-height: 48px;
  padding: 0 12px;
  line-height: 24px;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {

  .productBox .productContent {
    font-size: 16px;
    min-height: 60px;
    line-height: 28px;
    margin-top: 12px;
    margin-bottom: 8px;
  }
}

.btnKG i,
.btnLike i,
.order-action-btn i,
.order-product-cart-btn i {
  color: inherit;
}

.shop-content {
  background: transparent;
  padding: 18px 0;
}

.widget-title-more {
  color: var(--sl-accent);
}

.owl-carousel-btn-suggestbox .carousel-btn {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  width: 40px;
  height: 40px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0;
}

.owl-carousel-btn-suggestbox > .carousel-btn.left {
  background-image: url('../img/icon/arrow_L.svg') !important;
}

.owl-carousel-btn-suggestbox > .carousel-btn.right {
  background-image: url('../img/icon/arrow_R.svg') !important;
}

.owl-carousel-suggest .product-item .product-info .product-title .product-title-link {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 52px;
  line-height: 1.45;
}

.owl-carousel-suggest .product-item .product-info .pro-price {
  margin-top: 6px;
}

.productB .swiper-productB-button-prev,
.productB .swiper-productB-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(var(--sl-accent-rgb), 0.45) !important;
  box-shadow: 0 8px 16px rgba(37, 60, 93, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.productB .swiper-productB-button-prev img,
.productB .swiper-productB-button-next img {
  display: none;
}

.productB .swiper-productB-button-prev::before,
.productB .swiper-productB-button-next::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--sl-accent);
  border-right: 2px solid var(--sl-accent);
}

.productB .swiper-productB-button-prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.productB .swiper-productB-button-next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}

.productB .swiper-productB-button-prev:hover,
.productB .swiper-productB-button-next:hover {
  background: linear-gradient(135deg, var(--sl-accent), var(--sl-accent-2)) !important;
  border-color: rgba(var(--sl-accent-rgb), 1) !important;
  box-shadow: 0 10px 18px rgba(var(--sl-accent-rgb), 0.28);
}

.productB .swiper-productB-button-prev:hover::before,
.productB .swiper-productB-button-next:hover::before {
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

.productB .productB-TextBox {
  background: linear-gradient(0deg, rgba(14, 24, 38, 0.84) 8%, rgba(14, 24, 38, 0.36) 56%, rgba(14, 24, 38, 0) 100%) !important;
}

.productB .productB-TextBox .title,
.productB .productB-TextBox .text,
.productB .productB-TextBox .price {
  color: #f8fbff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.46);
}

.productB .productB-TextBox .price {
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {

.shop-content {
    padding-top: 10px;
  }

.shop-content .product-item .product-info {
    padding: 12px 10px;
  }

.shop-content .product-item .product-info .product-title {
    line-height: 1.5;
    min-height: 44px;
  }
}

@media (max-width: 480px) {

.shop-content .product-item .product-info .product-title {
    min-height: auto;
  }
}

#page-content.dev-checkout-page .dev-checkout-product-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: var(--sl-radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* cascade 還原（issue518 階段 11）：原 shopLinerp.css 檔尾「全站收斂層」L8592 的 product-title
   色（var(--sl-text-primary)）為同 specificity 最後者、覆寫前面 L2569 的 #333；模組化後該群組
   落於 widget.css（layout 層，早於 page 層），於 page 層末尾補回維持原順位。無 !important，靠順位致勝 */
.shop-content .product-item .product-info .product-title,
.shop-content .product-item .product-info h4 {
  color: var(--sl-text-primary);
}

/* convergence 色彩還原（issue518 task 13 A/B 驗出）：原 shopLinerp 收斂層以 var(--sl-text-primary)
   設定下列文字色（位於檔尾、勝過前段 #373737/#333）；模組化後該收斂規則落於 widget/base（layout 層，
   早於 page 層）且 common 又顯式補了 #333，故於 page 層末尾重新宣告以維持原順位。無 !important，靠順位致勝 */
.single-product-info .main-title {
  color: var(--sl-text-primary);
}

.tab-content,
.tab-pane {
  color: var(--sl-text-primary);
}
