/* ==========================================================================
   situation.css (상황별 큐레이션 페이지 - 예: 꽃선물)
   - 반응형: PC 퍼스트
     PC     : 1100px 이상 (기본값, Figma node 456:56473)
     Tablet : @media (max-width: 1099px) (Figma node 456:60190)
     Mobile : @media (max-width: 767px) (Figma node 456:60713)
   - 색상·폰트크기·여백 수치는 Figma 값 대신 base.css 토큰을 그대로 썼음
     (브레이크포인트별 자동 스케일, 프로젝트 공통 규칙). Tablet/Mobile 시안의
     일부 수치(예: 타이틀 heading-xxl)가 토큰값과 1px 안팎 다를 수 있음.
   ========================================================================== */

/* ==========================================================================
   큐레이션 타이틀
   ========================================================================== */
.situation-title__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: var(--space-64);
  padding-bottom: var(--space-48);
}

/* 하단 구분선 : .inner 박스 전체 폭(1280px)이 아니라 좌우 여백을 뺀 콘텐츠 폭(1200px, 상품카드
   정렬 폭과 동일)에 맞춤. border-bottom을 컨테이너에 바로 걸면 padding 바깥(박스 전체 폭)까지
   늘어나므로, 같은 --space-side 만큼 안쪽으로 inset한 ::after로 대체 */
.situation-title__inner::after {
  content: '';
  position: absolute;
  left: var(--space-side);
  right: var(--space-side);
  bottom: 0;
  border-bottom: 1px solid var(--border-default);
}

.situation-title__label {
  font-size: var(--fz-heading-s);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--brand-primary);
}

.situation-title__tit {
  font-size: var(--fz-heading-xxl);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--text-primary);
}

.situation-title__desc {
  display: flex;
  flex-direction: column;
  font-size: var(--fz-body-m);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

/* ==========================================================================
   상품군 섹션 (꽃다발 / 꽃바구니 / 꽃상자)
   ========================================================================== */
.situation-section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
}

/* 하단 구분선 : situation-title__inner 와 동일하게 콘텐츠 폭(상품카드 정렬 폭)에 맞춤 */
.situation-section__inner::after {
  content: '';
  position: absolute;
  left: var(--space-side);
  right: var(--space-side);
  bottom: 0;
  border-bottom: 1px solid var(--border-default);
}

.situation-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  width: 100%;
}

.situation-section__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.situation-section__desc {
  font-size: var(--fz-body-s);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.situation-section__more {
  flex-shrink: 0;
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--brand-primary);
  text-align: right;
  white-space: nowrap;
}

/* Mobile 전용 "전체보기" 버튼 (Figma Mobile 456:61224 등) : PC·Tablet 에서는 숨기고
   위의 situation-section__more 인라인 링크만 노출. common .btn--secondary.btn--capsule 재사용 */
.situation-section__more-mo {
  display: none;
  align-self: center;
  margin-top:15px;
}

/* ----- 상품 그리드 : 공통 .product-card 를 4열 그리드에 배치 (이 페이지 전용 배치값) ----- */
.product-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-48) var(--space-16);
  width: 100%;
}

/* ===== [추가] 2026-08-10 / 카드 전체를 감싸던 li.product-card 를 li > a.product-card 로
   변경(li는 리스트 시맨틱 유지용으로 남김). li는 grid 기본 동작으로 행 높이만큼
   늘어나지만 안의 a는 그대로 두면 내용 높이만큼만 차지해 li 안에 빈 공간이 남을 수
   있어, a가 li 높이를 그대로 채우도록 보정 ===== */
.product-card-list > li > .product-card {
  height: 100%;
}
/* ===== [추가 끝] ===== */

/* ==========================================================================
   CS Center 전화상담 : 모바일에서만 tel: 링크로 노출
   ========================================================================== */
.cs-info__tel--mo {
  display: none;
}

/* ==========================================================================
   CS Center 배너 2개 (기업제휴 · 원데이특가)
   - common.css 기본값(.partners/.event-banner : flex:1 0 0, min-width:300px)은
     2개를 나란히 두면 폭이 벌어져 가운데가 비어 보이므로, index.css/category.css 와
     동일한 패턴으로 220x220 고정 정사각형으로 덮어씀
   ========================================================================== */
.partners-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partners-list .partners,
.partners-list .event-banner {
  flex: none;
  width: 220px;
  height: 220px;
  min-width: 0;
  max-width: none;
  padding: 16px;
}

.partners-list .event-banner--membership {
  background: url('../../images/common/banner/membership-menuall.png') center / cover no-repeat;
  background-position: bottom;
}

/* ==========================================================================
   Tablet (768px ~ 1099px)
   ========================================================================== */
@media (max-width: 1099px) {
  /* 상품 그리드 : 4개 중 4번째 카드는 숨기고 3열로 배치 (Figma Tablet/Mobile 시안 : 3개만 노출)
     ===== [수정] 2026-08-10 / .product-card 클래스가 li 에서 li 안의 a 로 옮겨가면서
     (a는 항상 자기 li의 유일한 자식이라 :nth-child 가 안 걸림) li 를 직접 세도록 변경 ===== */
  .product-card-list > li:nth-child(n + 4) {
    display: none;
  }
  /* ===== [수정 끝] ===== */

  .product-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-12);
  }
}

/* ==========================================================================
   Mobile (~767px)
   ========================================================================== */
@media (max-width: 767px) {
  .situation-title__inner {
    gap: var(--space-12);
  }

  .situation-title__tit {
  font-size: 24px;
}

  /* Mobile : 섹션 헤더의 "전체보기" 인라인 링크는 숨기고, 리스트 아래 버튼으로 대체 (Figma Mobile 시안) */
  .situation-section__more {
    display: none;
  }

  .situation-section__more-mo {
    display: inline-flex;
  }

  /* 상품 그리드 : 3개를 세로 1열로 스택. 카드 자체(가로형 이미지 좌/정보 우)는
     common.css 의 .product-card Mobile 기본 스타일을 그대로 씀 (덮어쓸 필요 없음) */
  .product-card-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
  }

  /* 전화상담 : PC·Tablet 텍스트 대신 tel: 링크 노출 */
  .cs-info__tel--pc {
    display: none;
  }

  .cs-info__tel--mo {
    display: block;
  }

  /* CS Center 배너 2개 : 220px 고정폭이 둘이면(452px) 모바일 화면을 넘치므로 폭을 반반으로 */
  .partners-list {
    width: 100%;
  }

  .partners-list .partners,
  .partners-list .event-banner {
    width: calc(50% - 6px);
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 12px;
  }

  .partners-list .partners__txt h3,
  .partners-list .event-banner__txt h3 {
    font-size: 16px;
  }

  .partners-list .partners__txt span,
  .partners-list .event-banner__txt span {
    font-size: 12px;
  }
}
