/* -------------------------------------------------
   5) 상품 목록 영역
------------------------------------------------- */
.product-area{
  position:relative;
  overflow-y:auto;
  padding:24px;
  background:#F0F2F5;
  outline:none;
}

.product-list{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,3fr));
  gap:8px;
}

/* ────────── 상품 카드 ────────── */
.product-item{
  position:relative;
  /* background:#F0F2F5; */
  border:2px solid #D0D3D6;
  border-radius:16px;
  box-shadow:0 3px 6px rgba(0,0,0,.1);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:16px;
  min-height:300px;
  cursor:pointer;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s,border-color .2s,background-color .2s;
}

/* Hover 시 카드만 살짝 띄우기 */
.product-item:hover{
  transform:translateY(-6px);
  box-shadow:0 6px 12px rgba(0,0,0,.2);
}

/* active 시 기존 콘텐츠 숨김 */
/* .product-item:active img,
.product-item:active .product-info{
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
} */

/* active 시 오버레이 */
.product-item::after{
  content:"";
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  font-weight:700;
  color:#fff;
  pointer-events:none;
}

/* ────────── 카드 내부 ────────── */
.product-item img{
  width:100%;
  aspect-ratio:7/6;
  object-fit:cover;
  border-radius:12px;
  transition:opacity .2s;
}

.product-info{
  margin-top:14px;
  text-align:center;
  transition:opacity .2s;
}

.product-name{
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:8px;
  color:#212121;
}

.product-price{
  font-size:1.3rem;
  font-weight:700;
  color:#424242;
  margin-bottom:14px;
}

/* 스크롤바 */
.product-area::-webkit-scrollbar{width:.8rem}
.product-area::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.4);
  border-radius:.4rem;
}
.product-area::-webkit-scrollbar-track{
  background:rgba(0,0,0,.08);
}

/* 카드 안의 자식은 이벤트 차단, 카드 자체만 클릭 가능 */
.product-item *{pointer-events:none!important;}
.product-item   {pointer-events:auto!important;}

