/* ==========================================================================
   Heart to Kiss - bundle-1plus1.css
   1+1 기획전 전용 스타일 (공지 배너 + 묶음 카드 그리드).
   이 파일은 1+1 페이지(category/all)에서만 로드. 공유 CSS 미수정.

   2026-05 리디자인: 고채도 핑크→오렌지 그라데이션을 절제된 뉴트럴·블러시
   톤으로 교체. 여백 확대 · 타이포 위계 정돈 · 단계 안내를 알약 대신
   미니멀 넘버 라인으로 · 워터마크 제거. 텍스트/HTML 구조는 미수정(i18n 키 보존),
   스타일만 손봄.
   ========================================================================== */

/* 1+1 전용 톤 토큰 (이 파일 안에서만 사용) */
.htk-onepf-notice,
.htk-onepf-section {
  --onepf-ink: #232024;          /* 본문 잉크 */
  --onepf-ink-soft: #6b6469;     /* 보조 텍스트 */
  --onepf-accent: #e1718d;       /* 절제된 블러시 포인트 */
  --onepf-accent-deep: #c8587a;  /* 진한 포인트 (가격/강조) */
  --onepf-line: #ece7e6;         /* 헤어라인 */
  --onepf-surface: #fbf7f6;      /* 배너 베이스 */
}

/* ── 공지 배너 ──────────────────────────────────────────────────────────── */
.htk-onepf-notice {
  margin: 0 auto 32px;
  max-width: 1200px;
  padding: 38px 40px;
  border-radius: 22px;
  /* 은은한 블러시 소프트 톤 (고채도 그라데이션 → 절제된 뉴트럴) */
  background:
    radial-gradient(120% 140% at 100% 0%, #fdeef0 0%, rgba(253, 238, 240, 0) 55%),
    linear-gradient(180deg, #fdfbfb 0%, var(--onepf-surface) 100%);
  color: var(--onepf-ink);
  border: 1px solid var(--onepf-line);
  box-shadow: 0 1px 2px rgba(35, 32, 36, 0.03);
  position: relative;
  overflow: hidden;
}

/* 왼쪽 가는 포인트 라인 — 큰 워터마크 대체 */
.htk-onepf-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--onepf-accent), #f0a9ba);
}

.htk-onepf-notice__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--onepf-accent-deep);
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
}

.htk-onepf-notice__title {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--onepf-ink);
  position: relative;
  z-index: 1;
}

.htk-onepf-notice__desc {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--onepf-ink-soft);
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.htk-onepf-notice__desc b {
  color: var(--onepf-accent-deep);
  font-weight: 700;
}

/* ── 3단계 안내 — 알약 대신 미니멀 넘버 라인 ───────────────────────────────── */
.htk-onepf-notice__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 1;
  padding-top: 22px;
  border-top: 1px solid var(--onepf-line);
}

.htk-onepf-notice__step {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border-radius: 0;
  padding: 4px 26px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--onepf-ink-soft);
  flex: 1 1 200px;
  position: relative;
}

/* 단계 사이 얇은 세로 구분선 */
.htk-onepf-notice__step + .htk-onepf-notice__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: var(--onepf-line);
}

.htk-onepf-notice__step:first-child {
  padding-left: 0;
}

.htk-onepf-notice__step b {
  font-weight: 700;
  color: var(--onepf-ink);
}

.htk-onepf-notice__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--onepf-accent);
  color: var(--onepf-accent-deep);
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}

/* ── 묶음 섹션 헤더 ────────────────────────────────────────────────────── */
.htk-onepf-section {
  margin: 0 auto 36px;
  max-width: 1200px;
}

.htk-onepf-section__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.htk-onepf-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--onepf-ink);
}

.htk-onepf-section__count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--onepf-accent-deep);
}

/* ── 묶음 카드 그리드 ──────────────────────────────────────────────────── */
.htk-onepf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 720px) {
  .htk-onepf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .htk-onepf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ── 개별 묶음 카드 (톤만 살짝 정돈) ───────────────────────────────────────── */
.htk-onepf-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--onepf-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.htk-onepf-card:hover {
  border-color: #e3dcdb;
  box-shadow: 0 10px 26px rgba(35, 32, 36, 0.08);
  transform: translateY(-2px);
}

.htk-onepf-card__media {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
}

.htk-onepf-card__half {
  position: relative;
  flex: 1 1 50%;
  overflow: hidden;
}

.htk-onepf-card__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.htk-onepf-card__half-grad {
  position: absolute;
  inset: 0;
}

.htk-onepf-card__plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--onepf-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(35, 32, 36, 0.16);
  z-index: 2;
}

.htk-onepf-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--onepf-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 9px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(225, 113, 141, 0.32);
}

.htk-onepf-card__off {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(35, 32, 36, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.htk-onepf-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 13px 14px 15px;
  gap: 8px;
}

.htk-onepf-card__name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--onepf-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.htk-onepf-card__items {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--onepf-ink-soft);
  line-height: 1.65;
}

.htk-onepf-card__items li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.htk-onepf-card__price-wrap {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.htk-onepf-card__total {
  font-size: 13px;
  color: #b7afad;
  text-decoration: line-through;
}

.htk-onepf-card__bundle {
  font-size: 18px;
  font-weight: 800;
  color: var(--onepf-accent-deep);
}

.htk-onepf-card__saved {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--onepf-accent);
}

.htk-onepf-card__medialink {
  display: block;
  text-decoration: none;
  color: inherit;
}

.htk-onepf-card__cta {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 11px;
  background: var(--onepf-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.htk-onepf-card__cta:hover {
  background: var(--onepf-accent-deep);
}

.htk-onepf-card__cta:active {
  transform: scale(0.98);
}

/* ── 토스트 ────────────────────────────────────────────────────────────── */
.htk-onepf-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: var(--onepf-ink, #232024);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.htk-onepf-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 반응형 ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .htk-onepf-notice {
    padding: 28px 22px;
    border-radius: 18px;
  }
  .htk-onepf-notice__title {
    font-size: 21px;
  }
  .htk-onepf-notice__desc {
    margin-bottom: 22px;
    font-size: 14.5px;
  }
  /* 모바일: 단계 안내 = 세로 스택, 구분선은 가로 헤어라인 */
  .htk-onepf-notice__steps {
    flex-direction: column;
    gap: 0;
  }
  .htk-onepf-notice__step {
    flex: 1 1 auto;
    padding: 13px 0;
  }
  .htk-onepf-notice__step:first-child {
    padding-top: 0;
  }
  .htk-onepf-notice__step + .htk-onepf-notice__step::before {
    left: 13px;
    top: 0;
    transform: none;
    width: calc(100% - 13px);
    height: 1px;
  }
}
