/* v15: hover wishlist, category bg fix, ad card pixel tune (override-only, no regress) */

/* ---------------------------
   Wishlist button visibility + hover animation (teraz-like)
---------------------------- */
.home-product-card{ position:relative; }
.home-product-card .wishlist-btn-two{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;

  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;

  background: rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateY(0) scale(.98);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
  z-index:5;
}

.home-product-card:hover .wishlist-btn-two{
  transform: translateY(-2px) scale(1);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.10);
}

.home-product-card .wishlist-btn-two:hover{
  background: rgba(13,110,253,.08);
  border-color: rgba(13,110,253,.25);
}

.home-product-card .wishlist-btn-two i,
.home-product-card .wishlist-btn-two svg{
  font-size:18px;
  line-height:1;
  color:#2b2f36;
  transition: color .18s ease, transform .18s ease;
}

.home-product-card .wishlist-btn-two:hover i,
.home-product-card .wishlist-btn-two:hover svg{
  color:#0d6efd;
  transform: scale(1.05);
}

/* active (liked) */
.home-product-card .wishlist-btn-two.active{
  background: rgba(220,53,69,.10);
  border-color: rgba(220,53,69,.28);
}
.home-product-card .wishlist-btn-two.active i,
.home-product-card .wishlist-btn-two.active svg{
  color:#dc3545;
}
.home-product-card:hover .wishlist-btn-two.active{
  box-shadow: 0 10px 26px rgba(220,53,69,.18);
}

/* ---------------------------
   Category icon background circle fix (mobile green circle remove)
---------------------------- */
/* target common wrappers used in theme; force white/transparent bg */
.feature-item,
.feature-item .feature-item__icon,
.feature-item .feature-icon,
.feature-item .icon,
.feature-item-wrapper .feature-item-icon,
.feature-item-wrapper .feature-item__icon,
.feature-item-wrapper .feature-item__img,
.category-icon,
.category-icon-wrap,
.category-item .icon,
.category-item .category-icon{
  background: #fff !important;
  background-color:#fff !important;
}

/* if wrapper is circular, keep shape but white; remove green tint */
.feature-item-wrapper .feature-item-icon,
.category-icon-wrap{
  border-radius:999px;
  box-shadow:none;
}

/* in case there is a pseudo-element circle */
.feature-item-wrapper .feature-item-icon:before,
.feature-item-wrapper .feature-item-icon:after,
.category-icon-wrap:before,
.category-icon-wrap:after{
  background: transparent !important;
}

/* ---------------------------
   Ad products 4 cards (teraz-like) - FIX selectors to actual markup
---------------------------- */
#sec-ad-products .home-ad-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}
#sec-ad-products .home-ad-card{
  position:relative;
  display:block;
  height:170px;
  border-radius:22px;
  overflow:hidden;
  background:#f6f7f9;
  box-shadow: 0 10px 22px rgba(0,0,0,.07);
  text-decoration:none !important;
  color:inherit;
}
#sec-ad-products .home-ad-card__bg{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
#sec-ad-products .home-ad-card__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
}
#sec-ad-products .home-ad-card__meta{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:2;
}
#sec-ad-products .home-ad-card__name{
  font-weight:800;
  font-size:15px;
  line-height:1.2;
  color:#fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
#sec-ad-products .home-ad-card__price{
  font-weight:800;
  font-size:13px;
  color:#fff;
  opacity:.92;
}
#sec-ad-products .home-ad-card__cta{
  align-self:flex-start;
  margin-top:2px;
  background: rgba(13,110,253,.92);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow: 0 10px 18px rgba(13,110,253,.22);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
#sec-ad-products .home-ad-card:hover .home-ad-card__cta{
  background: rgba(13,110,253,1);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(13,110,253,.28);
}

@media (max-width: 992px){
  #sec-ad-products .home-ad-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sec-ad-products .home-ad-card{ height:150px; border-radius:18px; }
}
@media (max-width: 576px){
  #sec-ad-products .home-ad-grid{ gap:10px; }
  #sec-ad-products .home-ad-card{ height:130px; border-radius:16px; }
  #sec-ad-products .home-ad-card__meta{ left:10px; right:10px; bottom:10px; }
  #sec-ad-products .home-ad-card__name{ font-size:14px; }
  #sec-ad-products .home-ad-card__cta{ padding:7px 10px; font-size:11px; }
}


/* ---------------------------
   MD 추천 헤더 정렬 (teraz-like)
   - 우측에 "전체보기" + 화살표 버튼 한 줄 정렬
---------------------------- */
#sec-md-picks .home-sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
#sec-md-picks .home-sec-head .home-md-head-left{
  display:flex;
  align-items:center;
  gap:10px;
}
#sec-md-picks .home-sec-head .home-md-head-right{
  display:flex;
  align-items:center;
  gap:10px;
}
#sec-md-picks .home-sec-head .home-md-head-right .home-md-arrows{
  display:flex;
  align-items:center;
  gap:8px;
}
#sec-md-picks .home-sec-head a.home-md-viewall{
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}

/* ---------------------------
   상품 카드(테두리/장바구니 버튼) teraz-like 안정화
---------------------------- */
.home-product-card__inner{
  position:relative;
  border:1px solid rgba(20,27,45,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.home-product-card__thumb{
  display:block;
  background:#f6f7f9;
}
.home-product-card__thumb img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
@media (max-width: 576px){
  .home-product-card__thumb img{ height:150px; }
}

.home-product-card__body{
  padding:12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.home-product-card__price{
  font-weight:800;
  font-size:13px;
  color:#111827;
}
.home-product-card__name{
  font-weight:700;
  font-size:12px;
  line-height:1.25;
  color:#1f2937;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 30px;
  text-decoration:none;
}
.home-product-card__name:hover{ text-decoration:none; }

.home-cart-btn{
  margin-top:6px;
  width:100%;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(13,110,253,.18);
  background: rgba(13,110,253,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-weight:800;
  font-size:12px;
  color:#0d6efd;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.home-cart-btn i{ font-size:16px; line-height:1; }
.home-cart-btn:hover{
  background: rgba(13,110,253,.12);
  border-color: rgba(13,110,253,.28);
  transform: translateY(-1px);
}
.home-cart-btn:disabled{
  opacity:.6;
  transform:none;
}

/* no-image placeholder fit */
.home-product-card__thumb img[src*="no-image"],
.home-product-card__thumb img[alt="NO IMAGE"]{
  object-fit:contain;
  padding:14px;
  background:#fff;
}


/* ---------------------------
   Home Category Icons (feature) - STATIC one-line responsive (no swipe)
---------------------------- */
#home-feature-items.feature-static{
  flex-wrap:nowrap !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:stretch !important;
  gap:14px !important;
  overflow:visible !important;
}
#home-feature-items.feature-static .feature-item{
  flex:1 1 0 !important;
  min-width:0 !important;
  padding: 6px 0 !important;
}
#home-feature-items.feature-static .feature-item__thumb{
  background: transparent !important;
  box-shadow:none !important;
}
#home-feature-items.feature-static .feature-item__thumb,
#home-feature-items.feature-static .feature-item__thumb *{
  background-color: transparent !important;
}
#home-feature-items.feature-static .feature-item__thumb img{
  width: clamp(44px, 9.5vw, 84px) !important;
  height: clamp(44px, 9.5vw, 84px) !important;
  object-fit: contain !important;
}
#home-feature-items.feature-static h6,
#home-feature-items.feature-static h6.text-lg{
  font-size: clamp(12px, 2.9vw, 16px) !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}

/* Mobile: 카테고리(Feature) 아이콘이 화면에서 사라지지 않도록 1줄/2줄 자동 래핑 */
@media (max-width: 575.98px){
  #home-feature-items.feature-static{
    flex-wrap:wrap !important;
    justify-content:space-between !important;
    gap:10px !important;
  }
  #home-feature-items.feature-static .feature-item{
    flex:0 0 20% !important; /* 5개/줄 기준 */
    padding: 4px 0 !important;
  }
  #home-feature-items.feature-static h6,
  #home-feature-items.feature-static h6.text-lg{
    white-space:normal !important;
  }
}
/* remove slider arrows + overlay masks that block clicks */
#feature-item-wrapper-prev,
#feature-item-wrapper-next{
  display:none !important;
}
#featureSection .gradient-shadow::before,
#featureSection .gradient-shadow::after{
  pointer-events:none !important;
  display:none !important;
}

