/* ============================================================
   MEGADEAL · TIME DEAL 기획전 — style.css
   구성 순서: 0.토큰 → 1.기본 → 2.레이아웃 → 3.컴포넌트 → 4.유틸리티
   ============================================================ */

/* ============================================================
   0. 디자인 토큰 (:root) — 색 / 타이포 / 여백 / 모션의 단일 진실.
   팔레트 전체를 바꾸려면 이 블록의 --color-* 값만 수정하면 됩니다.
   ============================================================ */
:root {
  /* ---- Color: Base ---- */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6fb;
  --color-hero-bg: #eee9ff;
  --color-surface: #ffffff;

  /* ---- Color: Text ---- */
  --color-text: #111111;
  --color-text-body: #333333;
  --color-text-muted: #777777;
  --color-text-muted-alt: #666666;
  --color-text-faint: #aaaaaa;
  --color-text-on-accent: #ffffff;

  /* ---- Color: Border ---- */
  --color-border: #ddd8e8;
  --color-border-hairline: #eceaf2;

  /* ---- Color: Accent (Violet — 포인트) ---- */
  --color-accent: #7c3aed;
  --color-accent-hover: #6527d9;
  --color-accent-soft: #f1eaff;

  /* ---- Color: Semantic ---- */
  --color-delivery: #0ba678;
  --color-delivery-bg: #e8f8f2;
  --color-soldout-bg: #f2f2f5;
  --color-soldout-text: #999999;

  /* ---- Font ---- */
  --font-sans: "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;

  /* ---- Font sizes (fluid, rem 기반이라 OS 글자 크기 설정에도 함께 스케일) ---- */
  --fs-hero-word: clamp(2.75rem, 1.9rem + 4.2vw, 6rem);
  --fs-hero-badge: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-hero-period: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  --fs-hero-notice: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --fs-section-title: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-tab: clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem);
  --fs-category-title: 0.875rem;
  --fs-product-name: 1.125rem;
  --fs-sku: 0.75rem;
  --fs-badge: 0.75rem;
  --fs-price-lg: 1.25rem;
  --fs-price-sm: 1rem;
  --fs-benefit: 0.8125rem;
  --fs-timedeal: 0.875rem;
  --fs-delivery: 0.75rem;

  /* ---- Space ---- */
  --space-2xs: 0.25rem; /* 4 */
  --space-xs: 0.5rem;   /* 8 */
  --space-sm: 1rem;     /* 16 */
  --space-md: 1.5rem;   /* 24 */
  --space-lg: 2rem;     /* 32 */
  --space-xl: 2.5rem;   /* 40 */
  --space-2xl: 3.5rem;  /* 56 */

  /* ---- Radius ---- */
  --radius-card: 1rem;         /* 16px */
  --radius-card-mobile: 0.5rem; /* 8px */
  --radius-badge-box: 0.5rem;   /* 8px */
  --radius-pill: 0.25rem;       /* 4px */
  --radius-circle: 50%;

  /* ---- Shadow ---- */
  --shadow-card: 0 0 1px rgba(17, 17, 17, 0.16), 0 2px 10px rgba(76, 29, 149, 0.1);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 480ms;

  /* ---- Layout ---- */
  --content-max-width: 91.25rem; /* 1460px */
  --header-height: 4rem;         /* 64px */
  --tabs-height: 3.375rem;       /* 54px */
}

/* ============================================================
   1. 기본(reset / base)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

em {
  font-style: normal;
}

/* ---- 포커스 접근성 ---- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-sm);
  z-index: 200;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---- 모션 존중 ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   2. 레이아웃
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

main {
  overflow-x: clip;
}

/* ============================================================
   3. 컴포넌트
   ============================================================ */

/* ---------------------------------------------------------
   3.1 사이트 헤더
   --------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border-hairline);
  background: var(--color-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--header-height);
}

@media (min-width: 480px) {
  .site-header__inner {
    gap: var(--space-md);
  }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-shrink: 0;
}

.logo__main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* 좁은 화면(<480px)에서는 국문 서브 로고를 숨겨 검색창 폭을 확보 */
.logo__sub {
  display: none;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
}

@media (min-width: 480px) {
  .logo__sub {
    display: inline;
  }
}

.header-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 28rem;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  border-radius: 999px;
  padding-inline: var(--space-xs);
  transition: border-color var(--dur) var(--ease);
}

@media (min-width: 480px) {
  .header-search {
    padding-inline: var(--space-sm);
  }
}

.header-search:focus-within {
  border-color: var(--color-accent);
}

.header-search input {
  flex: 1;
  border: none;
  background: none;
  padding-block: 0.5rem;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--color-text);
}

.header-search input::placeholder {
  color: var(--color-text-faint);
}

.header-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  padding: 0.25rem;
}

.header-search svg {
  width: 1.125rem;
  height: 1.125rem;
}

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}

.header-cart:hover {
  color: var(--color-accent-hover);
}

.header-cart svg {
  width: 1.375rem;
  height: 1.375rem;
}

.cart-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   3.2 히어로 (섹션 1) — CSS/SVG 제작, 이미지 미사용
   --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-hero-bg);
  overflow: hidden;
  padding-block: var(--space-lg) var(--space-2xl);
}

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hero__breadcrumb a {
  color: var(--color-text-muted);
}

.hero__breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero__bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-deco circle {
  stroke: var(--color-accent);
  opacity: 0.14;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-hero-badge);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: var(--fs-hero-word);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero__title span {
  display: block;
  color: var(--color-accent);
}

.hero__period {
  font-size: var(--fs-hero-period);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.hero__notice {
  font-size: var(--fs-hero-notice);
  color: var(--color-text-body);
  max-width: 34rem;
  line-height: 1.6;
}

.hero__clock {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: clamp(9rem, 22vw, 14rem);
  height: clamp(9rem, 22vw, 14rem);
}

.hero__clock svg {
  width: 100%;
  height: 100%;
}

.hero-clock__face {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.hero-clock__tick {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
}

.hero-clock__hand {
  stroke: var(--color-accent);
  stroke-linecap: round;
  transform-origin: 60px 60px;
}

.hero-clock__hand--hour {
  stroke-width: 5;
  animation: hero-clock-spin 12s linear infinite;
}

.hero-clock__hand--minute {
  stroke-width: 3.5;
  opacity: 0.7;
  animation: hero-clock-spin 4s linear infinite;
}

.hero-clock__pin {
  fill: var(--color-accent);
}

@keyframes hero-clock-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero__share {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-sm);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-circle);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

@media (min-width: 768px) {
  .hero__share {
    right: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .hero__share {
    right: var(--space-xl);
  }
}

.hero__share:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--color-accent-hover);
}

.hero__share svg {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------------------------------------------------------
   3.3 섹션 공통 헤딩 / BEST DEAL 캐러셀 (섹션 2)
   --------------------------------------------------------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.best-deal {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.carousel-controls {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.carousel-arrow {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-circle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.carousel-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

.carousel-arrow:active:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: scale(0.94);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.best-deal-carousel {
  overflow: hidden;
}

.best-deal-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-top: 0.375rem;
  padding-bottom: var(--space-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.best-deal-track::-webkit-scrollbar {
  height: 6px;
}

.best-deal-track::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
}

.best-deal-card {
  flex: 0 0 auto;
  width: 15rem;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .best-deal-card {
    width: 13.3rem;
  }
}

@media (min-width: 1024px) {
  .best-deal-card {
    width: 16rem;
  }
}

.best-deal-card__link {
  display: block;
  height: 100%;
}

.best-deal-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-card-mobile);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (min-width: 768px) {
  .best-deal-card__inner {
    border-radius: var(--radius-card);
  }
}

.best-deal-card__link:hover .best-deal-card__inner {
  transform: translateY(-4px);
  box-shadow: 0 0 1px rgba(17, 17, 17, 0.2), 0 10px 24px rgba(76, 29, 149, 0.16);
}

.best-deal-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-hero-bg);
}

.best-deal-card__media .cat-icon {
  width: 68%;
  height: 68%;
  margin: auto;
  position: absolute;
  inset: 0;
}

.best-deal-card__body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.best-deal-card__timer {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.375rem;
}

.best-deal-card__timer .timedeal-countdown {
  color: var(--color-accent);
}

.best-deal-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-deal-card__sku {
  font-size: 0.75rem;
  color: var(--color-text-muted-alt);
}

.best-deal-card__price {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.best-deal-card__price strong {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.best-deal-card__price em {
  font-size: 0.75rem;
}

/* ---------------------------------------------------------
   3.4 카테고리 필터 탭 (섹션 3) — sticky + scroll-spy
   --------------------------------------------------------- */
.category-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-bg);
  border-block: 1px solid var(--color-border-hairline);
}

.category-tabs__inner {
  position: relative;
}

.category-tabs__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.5rem;
  min-height: var(--tabs-height);
}

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

.category-tabs__list li {
  flex-shrink: 0;
}

.category-tabs__list a {
  display: inline-flex;
  align-items: center;
  height: 2.75rem; /* 44px 터치 타깃 확보 */
  font-size: var(--fs-tab);
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.category-tabs__list a:hover {
  color: var(--color-text);
}

.category-tabs__list a.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------------------------------------------------------
   3.5 카테고리별 상품 그리드 (섹션 4) — 헤어라인 표 격자
   --------------------------------------------------------- */
.category-section {
  background: var(--color-bg);
}

.category-section__inner {
  padding-block: var(--space-lg) var(--space-md);
}

.tab-title {
  font-size: var(--fs-category-title);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.tab-title .counter {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 0.375rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--color-border-hairline);
  border-left: 1px solid var(--color-border-hairline);
}

/* 스펙: 상품 그리드는 4열(데스크톱) → 2열(태블릿·모바일) 2단만 존재.
   768px에서 3열로 바뀌지 않고 1024px 전까지는 2열을 유지한다. */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------
   3.6 상품 카드 (섹션 5)
   --------------------------------------------------------- */
.product-card {
  border-right: 1px solid var(--color-border-hairline);
  border-bottom: 1px solid var(--color-border-hairline);
  background: var(--color-bg);
  transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.product-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: var(--space-md) var(--space-sm) 1.75rem;
}

@media (min-width: 1024px) {
  .product-card__inner {
    padding: var(--space-lg) var(--space-md);
  }
}

.product-card--soldout {
  filter: grayscale(35%);
}

.product-card--soldout .product-card__inner {
  opacity: 0.62;
}

/* 플래그 텍스트 뱃지 줄 */
.product-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.product-card__flags li {
  font-size: var(--fs-badge);
  color: var(--color-text-muted);
  position: relative;
  padding-right: 0.5rem;
}

.product-card__flags li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.125rem;
  color: var(--color-border);
}

/* 상품명 */
.product-card__name {
  margin-bottom: 0.375rem;
}

.product-card__title {
  font-size: var(--fs-product-name);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.product-card__sub {
  font-weight: 400;
  color: var(--color-text-body);
}

.product-card__sku {
  font-size: var(--fs-sku);
  color: var(--color-text-muted-alt);
  margin-top: 0.25rem;
}

/* 리뷰 */
.product-card__review {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.star-icon {
  width: 0.75rem;
  height: 0.75rem;
  fill: var(--color-accent);
}

.product-card__count {
  color: var(--color-text-muted);
}

/* 상품 이미지 — .icon-frame 이 정사각 기준틀, 뱃지는 이 틀 기준으로 배치 */
.product-card__image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
}

.icon-frame {
  position: relative;
  width: 8.625rem;
  height: 8.625rem;
}

/* 스펙: 상품 이미지는 210×210(데스크톱·태블릿 공통) → 138×138(모바일) 2단만 존재.
   그리드 열수 전환(1024px)과는 별개로 768px에서 바로 데스크톱 크기로 전환한다. */
@media (min-width: 768px) {
  .icon-frame {
    width: 13.125rem;
    height: 13.125rem;
  }
}

.icon-frame .cat-icon {
  width: 100%;
  height: 100%;
}

.cat-icon--mirror {
  transform: scaleX(-1);
}

.cat-icon-bg {
  fill: var(--color-hero-bg);
}

.cat-icon-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-icon-fill {
  fill: var(--color-accent-soft);
  stroke: none;
}

/* 원형 뱃지 (MALL ONLY) — 이미지 프레임 우상단 모서리에 겹쳐 배치 */
.badge-circle {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.35);
}

/* 타임딜 박스 */
.timedeal-box {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: var(--space-sm);
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-badge-box);
  background: var(--color-bg-alt);
  font-size: var(--fs-timedeal);
  flex-wrap: wrap;
}

.timedeal-box__clock {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.timedeal-box__label {
  font-weight: 700;
  color: var(--color-text);
}

.timedeal-countdown {
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.timedeal-box__sep {
  color: var(--color-border);
}

.timedeal-box__stock {
  color: var(--color-text-body);
}

.timedeal-box--soldout {
  color: var(--color-soldout-text);
  background: var(--color-soldout-bg);
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timedeal-box--soldout svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* 가격 */
.product-card__price {
  width: 100%;
  margin-top: var(--space-sm);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.price-discount {
  font-size: var(--fs-price-lg);
  color: var(--color-text);
  white-space: nowrap;
}

.price-sale {
  font-size: var(--fs-price-lg);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.price-sale em,
.price-original em,
.price-benefit em {
  font-size: 0.75em;
}

.price-original {
  font-size: var(--fs-price-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-top: 0.125rem;
  white-space: nowrap;
}

.price-benefit {
  margin-top: 0.375rem;
  font-size: var(--fs-benefit);
  color: var(--color-accent);
}

.price-benefit strong {
  white-space: nowrap;
  font-weight: 700;
}

/* 배송 뱃지 — 참조 사이트의 "면 채움 없는 보더+텍스트" 문법을 그대로 따름 */
.badge-delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: var(--space-sm);
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--color-delivery);
  border-radius: var(--radius-pill);
  color: var(--color-delivery);
  background: var(--color-bg);
  font-size: var(--fs-delivery);
  font-weight: 700;
}

.badge-delivery svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

/* ---------------------------------------------------------
   3.7 유의사항 아코디언 (섹션 9)
   --------------------------------------------------------- */
.notice {
  background: var(--color-bg-alt);
  padding-block: var(--space-lg);
}

.notice-accordion {
  border-top: 1px solid var(--color-border-hairline);
}

.notice-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.notice-accordion__trigger svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-text-muted);
  transition: transform var(--dur) var(--ease);
}

.notice-accordion__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.notice-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}

.notice-accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.notice-accordion__panel-inner {
  overflow: hidden;
}

.notice-accordion__panel ul {
  padding-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notice-accordion__panel li {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  padding-left: 0.875rem;
  position: relative;
}

.notice-accordion__panel li::before {
  content: "-";
  position: absolute;
  left: 0;
}

/* ---------------------------------------------------------
   3.8 푸터 (섹션 10)
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  padding-block: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--color-border-hairline);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer-contact dt {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.footer-contact dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-contact + .footer-contact {
  margin-top: var(--space-sm);
}

.footer-contact--hours dd {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-left: auto;
}

.footer-social a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-circle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-social a:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.footer-social svg {
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer hr {
  border: none;
  border-top: 1px solid var(--color-border-hairline);
  margin: 0 0 var(--space-md);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-legal__brand {
  font-weight: 700;
  color: var(--color-text-body) !important;
}

.footer-copyright {
  margin-top: var(--space-sm);
  font-size: 0.6875rem;
  color: var(--color-text-faint);
}

@media (min-width: 768px) {
  .site-footer__top {
    align-items: center;
  }
}

/* ============================================================
   4. 유틸리티
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
