/* ============================================
   여성클리닉 시술 영역 — 피부과 구조 + 장바구니
   ============================================ */

/* Rose Gold 색상 변수 */
:root {
  --woman-rose-gold: #B76E79;
  --woman-rose-gold-light: #D4A5A5;
  --woman-rose-gold-dark: #9A5A64;
  --woman-gold-accent: #D4AF37;
  --woman-cream: #FFF8F5;
  --woman-cream-light: #FFFBF9;
  --woman-glass-bg: rgba(255, 248, 245, 0.7);
  --woman-glass-border: rgba(183, 110, 121, 0.2);
  --woman-danger: #e74c3c;
}

/* ============================================
   1. 시술 섹션 베이스 (흰색 통일)
   ============================================ */
.woman-treatment-section {
  background: #fff;
  padding: 80px 0;
  position: relative;
}
.woman-treatment-container {
  max-width: 1469px;
  margin: 0 auto;
}

/* ============================================
   2. 카드 메뉴 — 피부과와 같은 구조·클래스
   ============================================ */
/* 아래 카드 메뉴 규칙은 피부과 값을 그대로 옮긴 것이다. 두 화면이 갈리면 안 된다 */
.menu-cards-swiper-container {
  position: relative;
  z-index: 20;
  margin: 30px 0 12px;
}
.menu-cards-custom-scrollbar {
  display: none;
}
.menu-cards-swiper {
  position: relative;
  z-index: 20;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
}
.menu-cards-swiper::-webkit-scrollbar {
  height: 8px;
}
.menu-cards-swiper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
.menu-cards-swiper::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 6px;
  margin-top: 8px;
}
.menu-cards-swiper .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  transform: none !important;
  min-width: 100%;
  width: max-content;
}
.menu-cards-swiper .swiper-slide {
  width: auto !important;
  height: auto;
  flex: 1 0 max-content;
  min-width: max-content;
  scroll-snap-align: start;
}
.menu-cards-swiper-pagination {
  display: none !important;
}
.main-menu-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  padding: 0 14px;
  border: 1.5px solid #EDEDED;
  text-align: center;
  position: relative;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.main-menu-card.active {
  background: #6d28d9;
  color: #fff;
  font-weight: 600;
  border-color: #6d28d9;
  box-shadow: 0 3px 12px rgba(109, 40, 217, 0.3);
}
.main-menu-card img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-menu-card:hover {
  border-color: #c4b5fd;
  color: var(--point-color);
}
.main-menu-card.active:hover {
  background: #6d28d9;
  color: #fff;
  border-color: #6d28d9;
}
.main-menu-card:hover img {
  transform: scale(1.1);
}

/* ============================================
   3. 카테고리 그리드
   ============================================ */
/* 아래 분류 규칙도 피부과 값을 그대로 옮긴 것이다 */
.category-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  z-index: 15;
}
.category-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}
.category-link {
  font-family: 'SUIT-Regular', var(--font-multilang);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 25%;
  min-width: 0;
  padding: 13px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: #000;
  background: #F7F7F8;
  border: none;
  border-bottom: 1px solid #DDD;
  border-right: 1px solid #DDD;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
  position: relative;
  border-radius: 0;
}
.category-link:nth-child(4n) {
  border-right: none;
}
.category-link:hover {
  background: #6d28d9;
  color: #fff;
  font-weight: 600;
}
.category-link:active {
  transform: scale(0.98);
}
.category-link.active {
  background: #6d28d9;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  outline: none;
}

/* ============================================
   4. 시술 레이아웃 (좌: 리스트 / 우: 장바구니)
   ============================================ */
.woman-treatment-section .treatment-layout {
  margin-top: 16px;
}
.woman-treatment-section .treatment-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 18px;
  align-items: flex-start;
}

/* 퀵메뉴(.aside)가 오른쪽 80px 을 fixed 로 차지한다. 1024 이하는 퀵메뉴를 숨기고
   1920 이상은 자리가 남지만, 그 사이에서는 장바구니 가격·총액·삭제가 가려진다 */
@media (min-width: 1025px) and (max-width: 1919px) {
  .woman-treatment-section .treatment-wrap {
    grid-template-columns: 1fr 300px;
    padding-right: 100px;
  }
}
/* 이 아래 시술 목록 규칙은 피부과 값을 그대로 옮긴 것이다. 두 화면이 갈리면 안 된다 */
.woman-treatment-section .treatment-list-wrap {
  padding: 0 16px 16px 20px;
  min-width: 0;
}
.woman-treatment-section .treatment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #eeeef2;
  border-radius: 12px;
  overflow: hidden;
}
.woman-treatment-section .treat-group:last-child .treatment-item:last-child {
  border-bottom: none;
}
/* 이름으로 찾기와 정렬 */
.woman-treatment-section .treat-find {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.woman-treatment-section .treat-find input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e6e6ee;
  border-radius: 10px;
  font-size: 13px;
}
.woman-treatment-section .treat-find select {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #e6e6ee;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

/* 분류 머리 — 구르는 동안 위에 붙어 지금 어디를 보고 있는지 알려준다 */
.woman-treatment-section .treat-group-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #f3f0ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
}
.woman-treatment-section .treat-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 700;
}

/* 한 시술이 한 줄이다. 설명 224자를 늘 펼쳐 두면 한 줄이 198px 를 먹는다 */
.woman-treatment-section .treatment-item {
  border-bottom: 1px solid #f2f2f5;
}
/* PC 는 상세를 늘 보여준다. 접는 장치는 좁은 화면에서만 켠다 */
.woman-treatment-section .treat-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
.woman-treatment-section .treatment-title {
  font-family: 'SUIT-Light', var(--font-multilang);
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woman-treatment-section .treat-row-chev {
  display: none;
  flex: 0 0 14px;
  color: #c4c4cc;
  font-size: 11px;
  transition: transform 0.2s;
}
.woman-treatment-section .treat-row-body {
  padding: 0 12px 12px;
}
.woman-treatment-section .treatment-desc {
  font-family: 'SUIT-Light', var(--font-multilang);
  font-size: 13px;
  color: #888;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 모바일에서만 2줄 말줄임 (피부과 동일) */
@media (max-width: 768px) {
  .woman-treatment-section .treatment-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.woman-treatment-section .treatment-btn-wrap {
  margin-top: 8px;
  text-align: right;
}
.woman-treatment-section .treatment-price {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}
.woman-treatment-section .treatment-price .percent {
  color: var(--danger);
  margin-right: 6px;
  margin-left: 6px;
  font-size: 13px;
}
.woman-treatment-section .treatment-price .line-through {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  /* 스크립트가 만든 문자열에는 공백이 없다. 여백으로 잡아야 값이 붙지 않는다 */
  margin-right: 6px;
}
.woman-treatment-section .treatment-price .discount-price {
  color: var(--danger);
  margin-right: 6px;
}
.woman-treatment-section .treatment-price .consultation-needed {
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
}

/* ============================================
   5. 버튼들 (시술후기 / 상세보기 / 시술담기)
   ============================================ */
.woman-treatment-section .treatment-btn-wrap button,
.woman-treatment-section .treatment-btn-wrap a {
  display: inline-block;
  line-height: normal;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--point-color);
  color: var(--point-color);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s, color 0.2s;
}
.woman-treatment-section .treatment-btn-wrap .treatment-review-btn {
  background: #f8f4ff;
  border-color: #e6d9ff;
  color: #8b5cf6;
}
.woman-treatment-section .treatment-btn-wrap .treatment-review-btn:hover {
  background: #e6d9ff;
  color: #7c3aed;
}
.woman-treatment-section .treatment-add-btn {
  background: #6d28d9 !important;
  color: #fff !important;
  border-color: #6d28d9 !important;
}
.woman-treatment-section .treatment-add-btn:hover {
  background: #5b21b6 !important;
  border-color: #5b21b6 !important;
  color: #fff !important;
}
/* 보라 바탕에서 그림이 묻히지 않게 테를 두른다 */
.woman-treatment-section .treatment-add-btn .btn-icon {
  margin-right: 4px;
  font-size: 13px;
  text-shadow: 0 1px 0 #000, 0 0 2px #000;
}
.woman-treatment-section .treatment-add-btn.treat-btn-added,
.woman-treatment-section .treatment-add-btn.btn-disabled,
.woman-treatment-section .treatment-add-btn:disabled {
  background: #e9ecef !important;
  border-color: #ccc !important;
  color: #999 !important;
  cursor: default !important;
}
.woman-treatment-section .treatment-add-btn.treat-btn-added:hover,
.woman-treatment-section .treatment-add-btn.btn-disabled:hover,
.woman-treatment-section .treatment-add-btn:disabled:hover {
  background: #e9ecef !important;
  border-color: #ccc !important;
  color: #999 !important;
  transform: none;
}


/* ============================================
   7. 빈 상태
   ============================================ */
.treatment-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  background: #fafafa;
  border-radius: 12px;
  margin: 12px 0;
}
.treatment-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: grayscale(20%);
}
.treatment-empty .empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}
.treatment-empty .empty-desc {
  font-size: 13px;
  color: #999;
}

/* ============================================
   8. 우측 장바구니
   ============================================ */
.woman-treatment-cart-wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f0f0f3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 아래로 쓸어 닫을 수 있다는 표시. 서랍으로 뜨는 모바일에서만 보인다 */
.woman-cart-grab {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #d4d4d8;
  margin: 8px auto 0;
  flex: 0 0 auto;
}
.woman-treatment-cart-close {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #3f3f46;
}
.woman-treatment-cart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px 16px;
  border-bottom: 1px solid #f1f1f4;
  flex: 0 0 auto;
}
.woman-treatment-cart-header .cart-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
}
.woman-cart-clear {
  height: 44px;
  padding: 0 8px;
  border: none;
  background: none;
  color: #8b8b95;
  font-size: 13px;
  cursor: pointer;
}
.woman-cart-clear:hover {
  color: #3f3f46;
}
.cart-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-right: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
}
.cart-header-count.has-items {
  animation: cartPulse 0.4s ease;
}
@keyframes cartPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.woman-treatment-cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
}
.woman-treatment-cart-list::-webkit-scrollbar {
  width: 4px;
}
.woman-treatment-cart-list::-webkit-scrollbar-track {
  background: transparent;
}
.woman-treatment-cart-list::-webkit-scrollbar-thumb {
  background: #ddd6fe;
  border-radius: 4px;
}
.woman-treatment-cart-list::-webkit-scrollbar-thumb:hover {
  background: #c4b5fd;
}
.woman-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 16px;
  text-align: center;
  color: #6b6b76;
  font-size: 14px;
}
.woman-cart-empty-icon {
  font-size: 34px;
  margin-bottom: 10px;
  display: block;
}
.woman-cart-empty-action {
  display: inline-block;
  height: 44px;
  margin-top: 14px;
  padding: 0 20px;
  border: 1px solid #6d28d9;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.woman-cart-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px 10px;
  border: 1px solid #eeeef2;
  /* 재렌더 시 깜빡임 방지를 위해 fadeIn 애니메이션 제거 */
}
.woman-cart-item:hover {
  border-color: #ddd6fe;
}
.woman-cart-item-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.woman-cart-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woman-cart-item .woman-cnt-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e4ea;
  border-radius: 999px;
}
.woman-cart-item .woman-cnt {
  width: 30px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.woman-cart-item .woman-cnt::-webkit-outer-spin-button,
.woman-cart-item .woman-cnt::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* 누르는 자리는 44px, 눈에 보이는 동그라미는 28px */
.woman-cart-item .woman-cnt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  user-select: none;
}
.woman-cart-item .woman-cnt-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 16px;
  line-height: 1;
}
.woman-cart-item .woman-cnt-btn:disabled {
  cursor: default;
}
.woman-cart-item .woman-cnt-btn:disabled span {
  background: #f4f4f6;
  color: #c4c4cc;
}
.woman-cart-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.woman-cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
/* 곱한 값만 보이면 검산이 안 된다. 두 개 이상일 때 단가를 함께 적는다 */
.woman-cart-item-unit {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8b8b95;
}
.woman-cart-item-remove {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 0;
}
.woman-cart-item-remove svg {
  width: 17px;
  height: 17px;
}
.woman-cart-item-remove:hover {
  color: var(--woman-danger);
}
.cart-consultation-notice {
  font-size: 11px;
  color: #888;
  padding: 6px 10px;
  background: #fafafa;
  border-radius: 4px;
  margin-top: 6px;
}
.woman-treatment-cart-foot {
  flex: 0 0 auto;
  border-top: 1px solid #f1f1f4;
  background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.woman-treatment-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b6b76;
}
.woman-treatment-cart-total > span:first-child {
  font-weight: 600;
}
.woman-treatment-cart-sum {
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}
.woman-treatment-cart-reserve {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0;
  background: #6d28d9;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.woman-treatment-cart-reserve:hover {
  background: #5b21b6;
}
.woman-treatment-cart-reserve:active {
  transform: translateY(0);
}

/* ============================================
   9. 모바일 카트 보기 버튼 + 백드롭 (모바일 전용)
   ============================================ */
.woman-treatment-cart-show {
  display: none;
}
.woman-cart-backdrop {
  display: none;
}

/* ============================================
   10. 반응형 (모바일)
   ============================================ */
@media (max-width: 1024px) {
  /* 모바일: aside 전체 숨김 (consultation 플로팅으로 대체) */
  body:has(.woman-treatment-section) .aside {
    display: none !important;
  }

  .woman-treatment-section {
    padding: 60px 0 100px;
  }

  .menu-cards-swiper {
    padding: 0;
  }

  /* 좁은 화면에서만 제목이 첫 줄을 통째로 쓰고, 상세를 접는다 */
  .woman-treatment-section .treat-row-head {
    flex-wrap: wrap;
    cursor: pointer;
  }
  .woman-treatment-section .treat-row-chev {
    display: block;
  }
  .woman-treatment-section .treat-row-open .treat-row-chev {
    transform: rotate(180deg);
  }
  .woman-treatment-section .treat-row-body {
    display: none;
  }
  .woman-treatment-section .treat-row-open .treat-row-body {
    display: block;
  }
  .woman-treatment-section .treatment-title {
    flex: 1 0 100%;
    display: block;
  }
  .woman-treatment-section .treatment-price {
    margin-left: auto;
  }

  /* 시술 레이아웃: 1열 (장바구니는 모바일 하단 슬라이드업) */
  .woman-treatment-section .treatment-wrap {
    grid-template-columns: 1fr;
  }

  .woman-treatment-section .treatment-list-wrap {
    padding: 0;
  }

  /* 모바일 장바구니 슬라이드업 */
  .woman-treatment-cart-wrap {
    position: fixed;
    /* PC 의 sticky top:16px 을 풀어야 바닥에 붙는다 — 안 풀면 공중에 떠 멈춘다 */
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    min-width: 100%;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    /* 닫힘 — 가속 곡선으로 짧게. 사람은 사라지는 것이 빠른 쪽을 자연스럽게 느낀다 */
    transform: translateY(100%);
    visibility: hidden;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0);
    transition:
      transform 0.2s cubic-bezier(0.3, 0, 0.8, 0.15),
      box-shadow 0.2s linear,
      visibility 0s linear 0.2s;
    max-height: 78vh;
    overscroll-behavior: contain;
  }
  .woman-cart-grab {
    display: block;
  }
  /* 열림 — 감속 곡선으로 길게. 끝에서 천천히 안착해야 툭 멈추지 않는다 */
  .woman-treatment-cart-wrap.active {
    transform: translateY(0);
    visibility: visible;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
    transition:
      transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
      box-shadow 0.5s linear,
      visibility 0s;
  }
  .woman-treatment-cart-close {
    display: flex;
  }
  .woman-treatment-cart-header {
    padding-top: 10px;
  }
  /* display 는 전환이 안 돼 팝 하고 나타났다 — opacity 로 바꾸고 시트와 같은 곡선을 쓴다 */
  .woman-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.3, 0, 0.8, 0.15);
  }
  .woman-cart-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  }

  /* 움직임을 줄여 달라고 설정한 기기는 즉시 전환한다 */
  @media (prefers-reduced-motion: reduce) {
    .woman-treatment-cart-wrap,
    .woman-treatment-cart-wrap.active,
    .woman-cart-backdrop,
    .woman-cart-backdrop.active {
      transition-duration: 0.01ms;
    }
  }

  /* 띠가 덮는 높이만큼 꼬리말 아래를 비운다 — 맨 아래 링크가 띠 밑에 숨지 않게 */
  body:has(.woman-treatment-cart-show) .footer {
    margin-bottom: calc(var(--quickmenu-height, 0px) + 56px);
  }

  /* 이벤트 안내 띠는 장바구니 띠 위에 띄운다 */
  body:has(.woman-treatment-cart-show) .ev-toast { bottom: calc(var(--quickmenu-height, 0px) + 56px + 16px); }

  /* 장바구니 띠 — 색·문구·위치를 피부과와 맞춘다. bottom 은 quick-menu.js 가 넣는 값 */
  .woman-treatment-cart-show {
    display: flex !important;
    position: fixed;
    bottom: var(--quickmenu-height, 0px);
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
    background: #6d28d9;
    color: #fff;
    border: none;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 12px rgba(109, 40, 217, 0.25);
    cursor: pointer;
    transition: background 0.2s;
  }
  .woman-treatment-cart-show:active {
    background: #5b21b6;
  }
  .woman-treatment-cart-show .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.95);
    color: #6d28d9;
    font-size: 12px;
    font-weight: 800;
    padding: 0 6px;
  }
}

@media (max-width: 768px) {
  .woman-treatment-container {
    padding: 0 16px;
  }
  .menu-cards-swiper {
    padding: 0;
    overflow: hidden;
  }
  .menu-cards-swiper .swiper-wrapper {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    transform: translate3d(0, 0, 0) !important;
    min-width: unset;
    width: 100%;
  }
  .menu-cards-swiper .swiper-wrapper::-webkit-scrollbar {
    display: none;
  }
  .menu-cards-custom-scrollbar {
    position: relative;
    height: 6px;
    background: #f0ecf5;
    border-radius: 3px;
    margin: 6px 16px 0;
    overflow: hidden;
  }
  .menu-cards-custom-scrollbar .scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #9b87b5;
    border-radius: 3px;
    min-width: 30px;
    transition: left 0.05s linear;
  }
  .menu-cards-swiper .swiper-slide {
    width: auto !important;
    flex: 0 0 auto;
    min-width: auto;
  }
  .main-menu-card {
    flex: 0 0 auto;
    height: 34px;
    font-size: 12px;
    padding: 0 12px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .main-menu-card img {
    width: 18px;
    height: 18px;
  }
  .category-tabs-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
  }
  .category-link {
    flex-direction: column;
    gap: 4px;
    min-height: 52px;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.2;
    border: none;
    transition: all 0.25s;
  }
  .category-link:hover {
    transform: none;
    box-shadow: none;
  }
  .category-link:active {
    transform: scale(0.96);
  }
  .category-link.active {
    outline: 2px solid var(--point-color, #6d28d9);
    outline-offset: -2px;
    font-weight: 700;
    box-shadow: none;
  }
  .category-link:nth-child(1)  { background: #f3f0ff; color: #5b21b6; }
  .category-link:nth-child(2)  { background: #eff6ff; color: #1e40af; }
  .category-link:nth-child(3)  { background: #fdf2f8; color: #9d174d; }
  .category-link:nth-child(4)  { background: #ecfdf5; color: #065f46; }
  .category-link:nth-child(5)  { background: #fefce8; color: #854d0e; }
  .category-link:nth-child(6)  { background: #fff7ed; color: #9a3412; }
  .category-link:nth-child(7)  { background: #f0f9ff; color: #075985; }
  .category-link:nth-child(8)  { background: #faf5ff; color: #6b21a8; }
  .category-link:nth-child(9)  { background: #fef2f2; color: #991b1b; }
  .category-link:nth-child(10) { background: #f0fdf4; color: #166534; }
  .category-link:nth-child(11) { background: #fffbeb; color: #92400e; }
  .category-link:nth-child(12) { background: #eef2ff; color: #3730a3; }
  .category-link:nth-child(n+13) { background: #f5f3ff; color: #5b21b6; }
  .woman-treatment-section .treatment-title {
    font-size: 14px;
  }
  .woman-treatment-section .treatment-desc {
    font-size: 12px;
  }
  .woman-treatment-section .treatment-price {
    font-size: 13px;
  }
  .woman-treatment-section .treatment-price .percent {
    font-size: 12px;
  }
  .woman-treatment-section .treatment-price .line-through {
    font-size: 12px;
  }
  .woman-treatment-section .treatment-btn-wrap button,
  .woman-treatment-section .treatment-btn-wrap a {
    font-size: 12px;
    padding: 4px 10px;
  }
  .woman-treatment-section .treatment-list-wrap {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .main-menu-card {
    height: 32px;
    font-size: 11px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 6px;
  }
  .main-menu-card img {
    width: 16px;
    height: 16px;
  }
  .woman-treatment-section .treatment-title {
    font-size: 15px;
  }
  .woman-treatment-section .treatment-desc {
    font-size: 11px;
  }
  .woman-treatment-section .treatment-price {
    font-size: 12px;
  }
  .woman-treatment-section .treatment-price .percent {
    font-size: 11px;
  }
  .woman-treatment-section .treatment-price .line-through {
    font-size: 11px;
  }
  .woman-treatment-section .treatment-btn-wrap button,
  .woman-treatment-section .treatment-btn-wrap a {
    font-size: 11px;
    padding: 3px 8px;
  }
  .category-tabs-wrapper {
    gap: 4px;
    padding: 8px;
  }
  .category-link {
    min-height: 48px;
    padding: 8px 4px;
    font-size: 11px;
    border-radius: 10px;
  }
}

/* ============================================
   11. 사이드 메뉴 예약 버튼 (유지)
   ============================================ */
.side-menu-reserve {
  background: linear-gradient(135deg, var(--woman-rose-gold) 0%, var(--woman-rose-gold-dark) 100%) !important;
  border-radius: 12px !important;
}
.side-menu-reserve span {
  color: #fff !important;
}
.side-menu-reserve:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

/* 휴대폰에서만 퀵메뉴를 되살린다 (769~1024 는 세로 막대라 본문을 덮는다) */
@media (max-width: 768px) {
  body:has(.woman-treatment-section) .aside {
    display: block !important;
  }
}
