/* Creative hover logic */

.product-list .col-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.product-item {
  height: 100%;
  border-radius: 5px;
  background-color: var(--white);
  border: 1px solid #ebebeb;
}

.product-info {
  padding: 1rem;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.product-image {
  display: flex;
  align-items: center; 
  justify-content: center; 
  position: relative;
  overflow: hidden;
  height: 180px;
}
.product-image img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain; 
}

.product-image:hover .product-hover-overlay {
  opacity: 1;
}

.product-image:hover .btn {
  transform: none !important;
  opacity: 1 !important;
}

.product-hover-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: all 0.5s;
}

.product-hover-overlay .product-hover-overlay-buttons {
  z-index: 3;
}

.product-hover-overlay .btn {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  padding: 0;
  transition: all 0.3s;
}

.product-hover-overlay .btn.btn-buy {
  width: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.product-hover-overlay .product-hover-overlay-link {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.img-fluid {
  object-fit: cover;
}

.text-sm {
  font-size: 0.7875rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.25rem 0 0.2rem;
  line-height: 1.3;
  min-height: 2.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  margin-top: auto;
  font-weight: bold;
  font-size: 1rem;
  color: #d9230f;
  margin-bottom: 0.3rem;
}

.product-info .text-muted {
    height: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-item button.btn {
  border: 1px solid #ebebeb;
  background-color: rgba(255, 255, 255, 0.5);
}

.section-title {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  padding-left: 1rem;
  margin-bottom: 1rem;
  font-family: 'Work Sans', sans-serif;
  color: #2c2c2c;
  /* 폰트 색상: 살짝 부드러운 블랙 */
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1.2em;
  background-color: #d8a84f;
  /* 골드색 포인트 */
  border-radius: 2px;
}