/* =========================
   Skincare Archive Cards
========================= */

.skincare-archive-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.archive-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
}

/* Grid */
.skincare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Card */
.skincare-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.skincare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-meta {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
}

.card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
}

/* Button */
.card-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s ease;
}

.card-btn:hover {
  background: #333;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.service-title {
  display: flex;
  align-items: center;   /* 🔥 핵심 */
  gap: 8px;
}

.service-title h3 {
  margin: 0;
  line-height: 1.2;
}

.service-icon {
  font-size: 20px;
  line-height: 1;
}


.service-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.service-desc {
  font-size: 15px;
  color: #444;
  margin-bottom: 16px;
}

.service-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.service-skincare .card-title {
  color:#e57ea3;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Waxing 헤더 정렬 수정 */
.service-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-header-left {
 margin: 0;
}

/* Book Now 버튼이 아래로 떨어지는 것 방지 */
.service-book-btn {
  white-space: nowrap;
}

.home-skincare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .home-skincare-grid {
    grid-template-columns: 1fr;
  }
}


/* Waxing 제목 + Book Now 한 줄 고정 (충돌 차단) */
.wp-block-column.waxing-left .service-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Waxing 제목 */
.wp-block-column.waxing-left .service-header-inline .service-title {
  margin: 0 !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Book Now 버튼 */
.wp-block-column.waxing-left .service-book-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #6366f1;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================
   Static Service Card
   (Skincare / Tattoo)
========================= */

.service-card-static {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.service-card-static:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* Mobile home layout */
@media (max-width: 768px) {
  body.home .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
  }
  body.home .wp-block-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  body.home .wp-block-image,
  body.home .wp-block-image figure {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.home .wp-block-image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: cover;
  }
  body.home .service-grid,
  body.home .home-grid,
  body.home .mini-grid,
  body.home .home-skincare-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 18px !important;
  }
  body.home .service-card,
  body.home .service-card-static {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 20px !important;
    margin: 0 0 18px !important;
  }
  body.home .service-title {
    display: block !important;
    width: 100%;
    margin-bottom: 12px !important;
    overflow-wrap: anywhere;
  }
  body.home .service-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 8px 12px !important;
  }
  body.home .service-btn {
    display: inline-flex !important;
    width: auto !important;
    margin: 4px 0 0 !important;
    white-space: nowrap;
  }
  body.home .home-book-btn,
  body.home .home-check-booking-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 260px;
    margin: 8px 0 0 !important;
    justify-content: center;
    text-align: center;
  }
}


