/* ==========================
   카드 내부 간격을 더 줄인 버전
   ========================== */

.heally-shop-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;  /* 카드 사이 간격도 살짝 줄임 */
  padding: 22px 6px;
  margin: 0 auto;
  justify-content: center;
}

.shop-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
  transition: all .3s;
  margin: 0 auto;
}

/* 이미지 */
.shop-card img {
  width: 100%;
  
  height: auto;
  min-height: 170px;
  max-height: 60%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* 배지 */
.shop-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 12px;
  padding: 3px 8px;
  background: crimson;
  color: #fff;
  border-radius: 5px;
  z-index: 10;
}

/* 카드 정보 */
.shop-card .card-info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 7px 8px 9px 8px;  /* 패딩 ↓ */
  gap: 4px;                  /* gap ↓ */
  min-height: 0;
}
.shop-card h3,
.shop-card .open-time,
.shop-card .price,
.shop-card .tags,
.shop-card .addr {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0 auto;
}

.shop-card h3         {font-size:15px; font-weight:600;}
.shop-card .open-time {font-size:12px; color:#777;}
.shop-card .price     {font-size:14px;}
.shop-card .discount  {background:#f00; color:#fff; padding:2px 5px; font-size:11px; margin-right:3px;}
.shop-card .tags      {font-size:11px; color:#555;}
.shop-card .addr      {font-size:11px; color:#aaa;}

/* 버튼/주소 한줄 */
.shop-card .bottom-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 3px;
}

.shop-card .call-btn {
  display: flex;
  justify-content: center;
  margin-top: 7px;
  width: 100%;
}
.shop-card .call-btn a {
  background: gold;
  color: #000; 
}



/* 모바일 */
@media (max-width:575.98px){
  .heally-shop-wrap{
    grid-template-columns: repeat(1,1fr);
    gap: 7px;
    padding: 7px 2px;
  }
  .shop-card {
    min-width: 0;
    max-width: none;
    
    border-radius: 8px;
  }
  /* 이미지 */
.shop-card img {
  width: 100%;
  
  height: auto;
  min-height: 210px;
  max-height: 60%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
  .shop-card .card-info{
    padding: 4px 4px 6px 4px;
    gap: 2px;
  }


@media (max-width:475.98px){
  .heally-shop-wrap{
    padding: 2px 0;
  }
}

