/* ==========================================================================
   category.css (카테고리 목록 페이지 - 예: 축하화환)
   - 반응형: PC 퍼스트
     PC     : 1100px 이상 (기본값)
     Tablet : @media (max-width: 1099px)
     Mobile : @media (max-width: 767px)
   - Figma 프레임(Category(FAFB)/PC/1100px~)이 PC 시안만 제공되어,
     Tablet · Mobile 레이아웃은 index.html 의 기존 패턴(occa-list, best-container,
     product-card-list 등)을 따라 구성함. 실제 시안이 나오면 확인 후 조정 필요.
   ========================================================================== */

/* ==========================================================================
   카테고리 타이틀
   ========================================================================== */
.category-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로 대체 */
.category-title__inner::after {
  content: '';
  position: absolute;
  left: var(--space-side);
  right: var(--space-side);
  bottom: 0;
  border-bottom: 1px solid var(--border-default);
}

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

.category-title__tagline {
  font-size: var(--fz-body-l);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--brand-primary);
}

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

/* ==========================================================================
   BEST 상품
   ========================================================================== */
.category-best {
  width: 100%;
  padding-top: var(--space-64);
}

.category-best__head {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-48);
}

.category-best__label {
  font-size: var(--fz-label-l);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--brand-primary);
}

.category-best__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-24);
  width: 100%;
}

.category-best__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32) var(--space-24);
}

/* 대표(hero) 카드 : 공통 .product-card 를 그대로 쓰고 뱃지 위치·찜버튼 크기만 이 페이지에서 조정 */
.category-best__hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.category-best__hero .wish-btn {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
}

.category-best__hero .wish-btn img {
  width: 17.5px;
  height: 16.25px;
}

/* 히어로 카드 타이포·간격 : Figma product-card Size=L(373:4106) 스펙 반영
   (공통 .product-card 는 Size=M 기준값이라, 이 카드에서만 페이지 스코프로 덮어씀) */
.category-best__hero .product-card__info {
  gap: 12px;
}

.category-best__hero .product-card__title {
  gap: 6px;
}

.category-best__hero .product-card__name {
  font-size: 18px;
}

.category-best__hero .product-card__desc {
  font-size: 16px;
  line-height: 1.4;
}

.category-best__hero .review {
  gap: 6px;
}

.category-best__hero .review img {
  width: 12px;
  height: 16px;
}

.category-best__hero .review__score {
  font-size: 18px;
}

.category-best__hero .review__count {
  font-size: 15px;
}

.category-best__hero .product-card__price {
  gap: 6px;
}

.category-best__hero .price {
  gap: var(--space-8);
}

.category-best__hero .price__now {
  font-size: 22px;
  font-weight: 700;
}

.category-best__hero .price__origin {
  font-size: 14px;
  font-weight: 300;
}

.category-best__hero .price__member {
  font-size: 15px;
}

.category-best__hero .price__point {
  font-size: 14px;
}

/* ==========================================================================
   주문 전 확인 사항
   ========================================================================== */
.category-notice {
  width: 100%;
  padding-top: var(--space-96);
}

.category-notice__box {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-48) var(--space-48);
  border-radius: 8px;
  background: var(--base-surface);
}

.category-notice__tit {
  font-size: var(--fz-body-l);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  padding-left: var(--space-24);
}

.category-notice__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-left: 24px;
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.category-notice__list li {
  list-style: disc;
}

/* 기본 disc 마커가 본문 글자에 비해 커 보여서 마커만 축소 */
.category-notice__list li::marker {
  font-size: 0.6em;
}

/* ==========================================================================
   상세필터 + 상품 목록
   ========================================================================== */
.category-product {
  width: 100%;
  padding-top: var(--space-96);
}

.category-product .inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

/* ----- 상세필터 ----- */
.category-filter {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
}

.category-filter__menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}

.category-filter__tabs {
  display: flex;
  align-items: center;
  gap: var(--space-48);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-filter__tabs::-webkit-scrollbar {
  display: none;
}

.category-filter__tab {
  font-size: var(--fz-body-m);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.category-filter__tab.is-active {
  font-weight: 600;
}

.category-filter__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 12px 16px;
  border: 0.7px solid var(--border-default);
  border-radius: 8px;
  flex-shrink: 0;
}

.category-filter__selected {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-16);
  width: 100%;
}

/* ===== [수정] 2026-08-11 / 칩이 잘려 보이는 가로 스크롤 대신, 자리가 모자라면
   줄바꿈되도록 변경. 위 .category-filter__selected 도 align-items 를
   flex-start 로 바꿔 reset 버튼이 줄바꿈된 칩들의 첫 줄에 맞춰지게 함 ===== */
.category-filter__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  flex: 1;
  min-width: 0;
}
/* ===== [수정 끝] ===== */

.category-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  border: 0.5px solid var(--brand-primary);
  border-radius: 100px;
  background: rgba(246, 233, 234, 0.5);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
  flex-shrink: 0; /* ===== [추가] 2026-08-11 / 줄바꿈 시에도 칩이 찌그러지지 않도록 ===== */
  white-space: nowrap;
}

.category-filter__chip button {
  font-size: var(--fz-body-l);
  line-height: var(--lh-body);
  color: var(--brand-primary);
}

.category-filter__reset {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 15px;
  font-weight: 300;
  line-height: var(--lh-tight);
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 9px;
  margin-right: 5px;
}

/* ==========================================================================
   상세필터 팝업 / 바텀시트 (Figma filter-popup 456:49090, Mobile 456:48954)
   - PC · Tablet : category-filter__btn 아래 앵커되는 드롭다운 (.filter-popup)
   - Mobile      : 화면 하단에서 올라오는 바텀시트 (.filter-sheet), 딤 배경 포함
   - 안쪽 제목/아코디언/옵션/버튼 스타일(.filter-popup__title 등)은 두 컨텍스트가 공유
   ========================================================================== */
.filter-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
}

.filter-popup[hidden] {
  display: none;
}

/* Mobile 에서는 바텀시트(.filter-sheet)만 쓰므로 기본적으로 숨김 */
.filter-sheet {
  display: none;
}

.filter-popup__panel,
.filter-sheet__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-32) 0 var(--space-24);
  background: var(--base-white);
}

.filter-popup__panel {
  max-width: calc(100vw - 2 * var(--space-side));
  /* 아코디언이 다 펼쳐지면 내용이 길어져서, 패널 자체 높이를 뷰포트 기준으로 제한하고
     .filter-popup__menu 안쪽만 스크롤되게 함 (아래) — 그래야 제목의 닫기(X)가
     스크롤에 밀려 화면 위로 사라지지 않고 항상 보임 */
  max-height: min(600px, 80vh);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-height: 480px;
}

.filter-popup__title {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-side) var(--space-16);
  border-bottom: 1px solid var(--border-default);
  /* 고정폭 오버레이 컴포넌트라 search-mo/allmenu-mo 와 같은 방식으로 브레이크포인트별
     축소 토큰 대신 Figma 고정값을 쓰고, 요청에 따라 전부 +1px 함 (18px → 19px) */
  font-size: 18px;
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.filter-popup__close {
  position: absolute;
  top: 0;
  right: var(--space-side);
  width: 16px;
  height: 16px;
}

/* 타이틀·버튼은 고정, 이 메뉴(단수/가격대/배송지역) 영역만 스크롤됨 —
   .filter-popup__panel / .filter-sheet__panel 의 max-height 안에서 남는 공간을 채움 */
.filter-popup__menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
}

.filter-toggle {
  width: 100%;
  border-top: 0.7px solid var(--border-default);
}

/* 타이틀에 새로 생긴 구분선과 겹치므로, 스크롤 영역 맨 위(첫 아코디언)의
   자체 상단 테두리는 없앤다 */
.filter-popup__menu .filter-toggle:first-child {
  border-top: 0;
}

.filter-toggle:last-child {
  border-bottom: 0.7px solid var(--border-default);
}

.filter-toggle__tit {
  width: 100%;
}

.filter-toggle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 var(--space-side);
  font-size: 16px;
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--text-primary);
  text-align: left;
}

/* 닫힘 상태가 위쪽 화살표(180deg), 열림 상태가 기본(아래쪽) — Figma 원본 그대로 */
.filter-toggle__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url('../../images/category/icon-chevron-down.svg') center / 12px 7px no-repeat;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.filter-toggle.is-open .filter-toggle__icon {
  transform: rotate(0deg);
}

.filter-toggle__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: 25px 70px;
  border-top: 0.7px solid var(--border-default);
}

.filter-toggle__options[hidden] {
  display: none;
}

.filter-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  cursor: pointer;
}

/* 체크박스는 시각적으로 숨기고, 옆의 .filter-option__box 를 실제 표시용으로 사용 */
.filter-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.filter-option__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 0.5px solid var(--text-muted);
  border-radius: 3px;
}

/* icon-check-active.svg 자체가 빨간 배경 + 체크 마크가 합쳐진 완성형 아이콘이라
   별도로 배경색을 얹지 않고 아이콘 하나로 20x20 박스를 통째로 대체함 */
.filter-option__input:checked + .filter-option__box {
  border: none;
  background: url('../../images/category/icon-check-active.svg') center / 20px 20px no-repeat;
}

.filter-option__input:focus-visible + .filter-option__box {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.filter-popup__btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding: 0 var(--space-side);
  margin-top: 20px;
}

.filter-popup__btns .btn {
  width: 100%;
  font-size: 15px;
}

/* ----- 상품 개수 · 정렬 ----- */
.category-product__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-bottom: 15px; */
}

.category-product__count {
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.category-product__sort {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.category-product__sort-icon {
  width: 8px;
  height: 8px;
  transform: rotate(90deg);
}

/* 정렬 옵션창 : Figma sort-popup(456:49077) — PC·Tablet·Mobile 공통, 고정폭 오버레이라
   filter-popup 과 동일하게 토큰 대신 시안 고정값을 사용 */
.sort-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 150px;
  padding: 12px 0;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--base-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sort-popup[hidden] {
  display: none;
}

.sort-popup__option {
  width: 100%;
  padding: 12px 32px;
  font-size: 15px; /* --fz-body-xs 는 Mobile 에서 13px로 줄지만, 160px 고정폭 팝업이라 Figma 값 그대로 고정 */
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
}

.sort-popup__option.is-active {
  color: var(--brand-primary);
}

/* ----- 상품 그리드 : 공통 .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%;
}
/* ===== [추가 끝] ===== */

.category-product__more {
  align-self: center;
  margin-top: var(--space-32);
}

/* ==========================================================================
   리본 문구 작성 가이드
   ========================================================================== */
.category-message {
  width: 100%;
  padding-top: var(--space-96);
}

.category-message__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
  width: 100%;
}

.category-message__tit {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-top: var(--space-96);
  border-top: 0.7px solid var(--border-default);
}

.category-message__desc {
  font-size: var(--fz-body-m);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.category-message__list {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  width: 100%;
}

.category-message__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
  padding: var(--space-48) var(--space-24);
  border: 1px solid var(--border-default);
  border-radius: 8px;
}

.category-message__card-tit {
  font-size: var(--fz-body-xl);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.category-message__example {
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.category-message__sample {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding:var(--space-32);
  border-radius: 5px;
  background: var(--base-surface);
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

/* ==========================================================================
   자주 묻는 질문 (아코디언)
   - index.html 의 .why__list / .toggle 과 동일한 구조·동작 패턴을
     이 페이지 전용 클래스(.faq-toggle)로 별도 구현 (js/pages/category.js 참고)
   ========================================================================== */
.category-faq {
  width: 100%;
  padding-top: var(--space-96);
}

.category-faq__tit {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-bottom: var(--space-32);
}

.category-faq__desc {
  font-size: var(--fz-body-s);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.category-faq__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faq-toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: 100%;
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--border-default);
}

.category-faq__list .faq-toggle:last-child {
  border-bottom: 0;
}

.faq-toggle__tit {
  width: 100%;
  font-size: var(--fz-body-m);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

.faq-toggle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  width: 100%;
  font-weight: inherit;
  text-align: left;
}

.faq-toggle__txt {
  flex: 1;
}

.faq-toggle__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: url('../../images/common/icon/icon-toggle-open.svg') center / 10px 10px no-repeat;
  transition: transform 0.2s ease;
}

.faq-toggle.is-open .faq-toggle__icon {
  transform: rotate(45deg);
}

.faq-toggle__desc {
  display: none;
  padding-right: var(--space-48);
  font-size: var(--fz-body-s);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.faq-toggle.is-open .faq-toggle__desc {
  display: block;
  padding-right: 30px;
  padding-bottom: 4px;
}

/* ===== [추가] 2026-08-12 / 동양란 등급표 (faq-toggle__desc 내부 table) ===== */
/* 테이블 너비를 내용에 맞춰 자동 축소(shrink-to-fit)시켜, 각 열의 구분선이
   그 열에서 가장 긴 텍스트 길이로 통일되도록 함 (width:100% 미지정) */
.faq-toggle__table {
  margin-top: var(--space-16);
  border-collapse: collapse;
  font-size: var(--fz-body-s);
}

.faq-toggle__table th,
.faq-toggle__table td {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
  line-height: var(--lh-tight);
  font-weight: 400;
}

.faq-toggle__table thead th {
  padding-top: 0;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-toggle__table tbody tr:last-child th,
.faq-toggle__table tbody tr:last-child td {
  border-bottom: 0;
}

.faq-toggle__table th[scope="row"] {
  padding-right: var(--space-12);
  font-weight: 400;
  color: var(--text-primary);
}

.faq-toggle__table td {
  color: var(--text-secondary);
}
/* ===== [추가 끝] ===== */

/* ==========================================================================
   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 와 동일한
     패턴으로 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;
}

/* ==========================================================================
   메시지 카드 이렇게 적어보세요
   - ===== [수정] 2026-08-12 / bouquet.html, plant.html, flower-box.html,
     flower-basket.html, air-purifying-plant.html 5개 페이지가 함께 쓰는 블록으로
     확인되어 주석 정정 (기존 "bouquet.html 전용" 표기가 실제와 다름) =====
   - .category-message 와 같은 파일을 category.html 과 공유하지만, 카드 3개 +
     예문별 개별 박스 구성이라 기존 .category-message 정의는 건드리지 않고
     새 BEM 블록으로 추가함
   ========================================================================== */
.message-card {
  width: 100%;
  padding-top: var(--space-96);
}

.message-card__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
  width: 100%;
}

.message-card__tit {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-top: var(--space-96);
  border-top: 0.7px solid var(--border-default);
}

.message-card__desc {
  font-size: var(--fz-body-s);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.message-card__list {
  display: flex;
  align-items: stretch;
  gap: var(--space-32);
  width: 100%;
}

.message-card__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
  padding: var(--space-48) var(--space-32);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: var(--base-white);
}

.message-card__card-tit {
  font-size: var(--fz-body-xl);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

.message-card__example {
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--text-muted);
}

.message-card__sample {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

/* 예문 박스 padding : Figma 원본 값(10/30/20)이 --space 토큰 스케일과 맞지 않아 하드코딩 (.category-message__sample 과 동일한 전례) */
.message-card__sample li {
  padding: 10px 30px 10px 20px;
  border-radius: 5px;
  background: var(--base-surface);
  font-size: var(--fz-body-xs);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--text-secondary);
}

/* ===== [추가] 2026-08-12 / bouquet.html 폴더 탭 : PC는 기존 카드 3개 그대로,
   Tablet·Mobile 에서만 탭 전환 UI로 전환. .message-card--tab 은 bouquet.html
   에만 있는 modifier 클래스라 다른 4개 페이지(plant/flower-box/flower-basket/
   air-purifying-plant)에는 영향 없음.
   탭 마크업(.message-card__tabs)은 PC에서 숨기고, 패널(.message-card__card)의
   hidden 속성은 PC에서만 무력화해 3개 모두 노출 — hidden 자체는 그대로 두고
   화면폭에 따라 display 만 다르게 덮어씀 (common.css 의 hidden 무력화 방식과 동일) */
.message-card__tabs {
  display: none;
}

.message-card--tab .message-card__card[hidden] {
  display: flex;
}
/* ===== [추가 끝] ===== */

/* ==========================================================================
   Tablet (768px ~ 1099px)
   ========================================================================== */
@media (max-width: 1099px) {
  /* BEST : PC와 동일하게 대표 카드 + 2x2 그리드를 좌우 배치 (Figma Tablet 시안 : 비율 3:4) */
  .category-best__list {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  }

  /* 상품 그리드 : 4열 → 3열, 칸 간격도 Figma Tablet 값(36px/12px)에 맞춰 토큰으로 축소 */
  .product-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-48) var(--space-12);
  }

  .category-notice__box {
    padding: var(--space-48) var(--space-32);
  }

  /* 대표 카드 BEST 뱃지 : Figma best_icon 컴포넌트의 Size=S 값 적용
     (common.css 의 .best-badge--s 와 동일한 값 — 공통 클래스는 그대로 두고 이 페이지에서만 반영) */
  .category-best__hero-badge {
    width: auto;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .category-best__hero-badge .best-badge__label {
    font-size: 10px;
    font-weight: 600;
  }

  .category-filter__chip {
    padding: 5px 15px;
    font-size: 12px;
  }

  /* ===== [추가] 2026-08-12 / bouquet.html 폴더 탭 (Tablet·Mobile 공통, .message-card--tab 스코프) :
     이 블록이 Tablet(max-width:1099px)에 있어 Mobile(max-width:767px, 폭이 더 좁은 하위 구간)에서도
     함께 적용됨 ===== */
  .message-card--tab .message-card__list {
    flex-direction: column;
    gap: 0;
  }

  .message-card--tab .message-card__tabs {
    display: flex;
    gap: var(--space-8);
  }

  .message-card--tab .message-card__tab {
    flex: 1 1 0;
    padding: var(--space-12);
    border: 1px solid var(--border-default);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--base-surface);
    color: var(--text-muted);
    font-size: var(--fz-body-s);
    font-weight: 500;
    line-height: var(--lh-tight);
    text-align: center;
  }

  .message-card--tab .message-card__tab.is-active {
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
    background: var(--base-white);
    color: var(--brand-primary);
  }

  .message-card--tab .message-card__card {
    border-radius: 0 0 8px 8px;
  }

  .message-card--tab .message-card__card-tit {
    display: none;
  }

  /* PC에서 무력화했던 hidden 을 여기서 다시 살려 탭으로 선택된 패널만 노출 */
  .message-card--tab .message-card__card[hidden] {
    display: none;
  }
  /* ===== [추가 끝] ===== */
}

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

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

  /* BEST : 대표 카드 + 그리드를 다시 세로 1열로 (Figma Mobile 시안 : 카드 3~5개 세로 스택) */
  .category-best__list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 2x2 그리드도 세로 1열로 (공통 .product-card 가 가로형으로 자동 전환됨) */
  .category-best__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
  }

  /* Figma Mobile 시안 : 대표 카드 1개 + 나머지 2개까지만 노출(총 3개), 3·4번째 카드는 숨김 */
  .category-best__grid .product-card:nth-child(n + 3) {
    display: none;
  }

  .category-best__hero .wish-btn {
    right: 8px;
    bottom: 8px;
    width: 20px;
    height: 20px;
  }

  .category-best__hero .wish-btn img {
    width: 8.75px;
    height: 8.13px;
  }

  /* Figma Mobile 시안 : 대표 카드 BEST 뱃지는 모바일에서 노출하지 않음 */
  .category-best__hero-badge {
    display: none;
  }

  /* 히어로 카드 텍스트 : 모바일에서는 PC용 Size=L 값 대신 .category-best__grid 카드(공통 .product-card
     Size=S-w 기본값)와 동일한 수치로 통일 (Figma Mobile 시안 : 대표 카드도 그리드 카드와 같은 타이포 사용) */
  .category-best__hero .product-card__info {
    gap: clamp(4px, 8vw, 8px);
  }

  .category-best__hero .product-card__title {
    gap: 2px;
  }

  .category-best__hero .product-card__name {
    font-size: 15px;
  }

  .category-best__hero .product-card__desc {
    font-size: 12.5px;
    line-height: var(--lh-heading);
  }

  .category-best__hero .review {
    gap: 5px;
  }

  .category-best__hero .review img {
    width: 10px;
    height: 13px;
  }

  .category-best__hero .review__score {
    font-size: 14px;
  }

  .category-best__hero .review__count {
    font-size: 13px;
  }

  .category-best__hero .product-card__price {
    gap: 2px;
  }

  .category-best__hero .price {
    gap: var(--space-12);
  }

  .category-best__hero .price__now {
    font-size: 16px;
  }

  .category-best__hero .price__origin {
    font-size: 12px;
    font-weight: 400;
  }

  .category-best__hero .price__member {
    font-size: 12px;
  }

  .category-best__hero .price__point {
    font-size: 12px;
  }

  .category-notice__box {
    padding: var(--space-32) var(--space-24);
  }

  /* 필터 초기화 : 아이콘만 남기고 텍스트는 숨김 (Figma Mobile 시안) */
  .category-filter__reset span {
    display: none;
  }

  /* 상세필터 열기 버튼 : 50px 은 모바일엔 커서 36px로 축소, 패딩도 같이 줄임
     (아이콘 20x20 은 그대로 두고 여백만 8px로) */
  .category-filter__btn {
    width: 40px;
    height: 40px;
    padding: 12px;
  }

  /* 상세필터 : PC·Tablet 드롭다운은 숨기고, 하단 바텀시트만 사용 */
  .filter-popup {
    display: none;
  }

  .filter-sheet {
    display: flex;
    align-items: flex-end;
    position: fixed;
    inset: 0;
    z-index: 200;
  }

  .filter-sheet[hidden] {
    display: none;
  }

  .filter-sheet__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
  }

  .filter-sheet__panel {
    position: relative;
    width: 100%;
    max-height: 85vh;
    border-radius: 8px 8px 0 0;
  }

  /* 패널 전체가 아니라 .filter-popup__menu 안쪽만 스크롤 — 위 PC/Tablet 과 동일한 이유 */
  .filter-sheet__panel .filter-popup__menu {
    overscroll-behavior: contain;
  }

  .filter-popup__btns {
    padding: 0 var(--space-side);
  }

  /* 바텀시트가 열린 동안 뒤쪽 본문 스크롤 잠금 */
  body.is-filter-open {
    overflow: hidden;
  }

  /* 상품 그리드 : Figma Mobile 시안은 2열 그리드 유지 (공통 .product-card 의 가로형 전환은
     아래에서 이 그리드 안 카드만 다시 세로형으로 되돌림) */
  .product-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-48) var(--space-16);
  }

  .product-card-list .product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    max-width: none;
  }

  .product-card-list .product-card__img {
    min-width: 0;
  }

  .product-card-list .product-card__info {
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }

  /* 리본 가이드 카드 : 세로 스택 */
  .category-message__list {
    flex-direction: column;
    align-items: stretch;
  }

  .category-message__tit {
    padding-top: var(--space-64);
  }

  .category-message__card-tit,
  .message-card__card-tit{
    font-size: 16px;
  }

  /* 메시지 카드 : 세로 스택 */
  .message-card__list {
    flex-direction: column;
  }

  .message-card__tit {
    padding-top: var(--space-64);
  }

  .faq-toggle__desc {
    font-size: var(--fz-body-xs);
  }


  /* 전화상담 : 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;
  }
}
