/* ===============================
   PRODUCT GRID
=============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 480px));
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
}

/* ===============================
   PRODUCT CARD
=============================== */
.product-card {
  display: block;
  text-decoration: none;
  color: #fff;
  position: relative;
  transform: translateY(0);
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

/* Lift + Shadow */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);

}

/* ===============================
   IMAGE AREA
=============================== */
.thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Product image */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: grayscale(100%);*/
  transform: scale(1);
  transition:
    transform .6s ease,
    filter .4s ease;
}

/* Dark overlay */
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;

  transform: translateY(100%);     /* 🔥 아래에 숨김 */
  transition: transform .45s ease;
}



/* ===============================
   CATEGORY LOGO (HOVER)
=============================== */
.hover-logo {
  position: absolute;
  inset: 0;                 /* ✅ thumb 전체 크기 */
  z-index: 2;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}


.hover-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.1;                 /* ✅ 가장 중요한 포인트 */
  filter: blur(2.5px);           /* 살짝 흐림 */
  transform: scale(1.03);        /* 블러 경계 보정 */

  mix-blend-mode: screen;        /* 밝은 로고일 때 특히 좋음 */
}



/* ===============================
   TEXT OVER IMAGE
=============================== */
.caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}



.name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 6px;
  transform: translateY(20px);
  opacity: 0;
  transition: all .4s ease;
}

.more {
  font-size: 13px;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(10px);
  transition: all .4s ease .08s;
}

/* ===============================
   HOVER EFFECT
=============================== */
.product-card:hover .hover-logo {
  opacity: 1;
}

.product-card:hover .thumb::after {
  /*opacity: 1;*/
  transform: translateY(0);        /* 🔥 위로 슬라이드 */

}

.product-card:hover img {
  transform: scale(1.25);
  filter: grayscale(0%);
}



.product-card:hover .name,
.product-card:hover .more {
  transform: translateY(0);
  opacity: 1;
}


/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hover-logo {
    display: none;
  }

  .thumb::after {
    opacity: 1;
  }

  .thumb img {
    filter: grayscale(0%);
  }

  .name,
  .more {
    opacity: 1;
    transform: none;
  }
}


/* product 카드 텍스트 강제 표시 */
.product-card .txt {
  position: static !important;   /* absolute 제거 */
  margin-top: 12px;              /* 이미지와 간격 */
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto;
  color:#333;

  padding-top:12px; font-size:20px; font-weight:600; letter-spacing:-0.025em; color:#333; line-height:2.4em;
}


/* =========================
   Product Image Modal
========================= */
.product-img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.product-img-modal img {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.product-img-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.thumb {
  cursor: zoom-in;
}





#productDetailContent {
  max-width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  line-height: 1.6;
}

