/*
 * petdeal redesign v4 — "calm scan" pass
 * Loads after redesign-v3.css and only overrides.
 *
 * 1) Auto-ads containment  : 상품 카드/그리드 내부에 구글 자동광고가 끼어들지 않게 차단
 * 2) Tokens & rhythm       : 그림자/라운드/간격 통일
 * 3) Header & chip bar     : 스캔 동선 정리
 * 4) Hero                  : 밀도/대비 조정
 * 5) Section heads         : 위계 강화
 * 6) Product cards         : 이미지·현재가 중심으로 재구성, 반복 소음 제거
 * 7) Panels / guides / footer
 * 8) Mobile polish
 */

/* =====================================================================
 * 1) Auto-ads containment
 * 구글 자동광고(Auto ads)가 상품 그리드/섹션 내부에 삽입한 배치만 차단한다.
 * 섹션 사이(.pd-home-sections 직속)와 사이드레일/앵커 광고는 그대로 둔다.
 * ================================================================== */
.pd-home-section .google-auto-placed,
.pd-home-section ins.adsbygoogle,
.pd-product-grid .google-auto-placed,
.pd-product-grid ins.adsbygoogle,
.pd-product-grid > div[id^="div-gpt"],
.pd-category-panel-grid .google-auto-placed,
.pd-category-panel-grid ins.adsbygoogle,
.pd-category-panel .google-auto-placed,
.pd-category-panel ins.adsbygoogle,
.pd-guide-grid .google-auto-placed,
.pd-guide-grid ins.adsbygoogle,
.pd-pet-hub__grid .google-auto-placed,
.pd-pet-hub__grid ins.adsbygoogle,
.pd-category-grid .google-auto-placed,
.pd-category-grid ins.adsbygoogle,
.pd-chip-bar .google-auto-placed,
.pd-chip-bar ins.adsbygoogle,
.pd-home-hero .google-auto-placed,
.pd-home-hero ins.adsbygoogle,
.pd-filter-bar .google-auto-placed,
.pd-filter-bar ins.adsbygoogle,
.pd-detail-layout .google-auto-placed,
.pd-detail-layout ins.adsbygoogle,
.pd-page-intro .google-auto-placed,
.pd-page-intro ins.adsbygoogle {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================================
 * 2) Tokens & rhythm
 * ================================================================== */
:root {
  --pd-bg: hsl(36 33% 97%);
  --pd-border: hsl(30 12% 89%);
  --pd-shadow: 0 1px 2px rgba(23, 20, 15, 0.04), 0 12px 28px rgba(23, 20, 15, 0.05);
  --pd-shadow-hover: 0 2px 4px rgba(23, 20, 15, 0.05), 0 18px 40px rgba(23, 20, 15, 0.1);
  --pd-radius: 16px;
  --pd-primary-soft: hsl(24 100% 96%);
  --pd-up: #c2410c;
  --pd-down: #0f766e;
}

body {
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.pd-home-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-home-section {
  margin-top: 0 !important;
}

/* =====================================================================
 * 3) Header & chip bar
 * ================================================================== */
.pd-site-header {
  background: rgba(255, 253, 250, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--pd-border);
}

.pd-site-nav__link {
  position: relative;
  padding: 6px 2px;
}

.pd-site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pd-primary);
  transition: right 0.18s ease;
}

.pd-site-nav__link:hover::after,
.pd-site-nav__link.is-current::after {
  right: 0;
}

.pd-chip {
  border: 1px solid var(--pd-border);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pd-chip:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary-strong);
}

.pd-chip--active {
  border-color: transparent;
}

/* =====================================================================
 * 4) Hero
 * ================================================================== */
.pd-home-hero {
  position: relative;
  background:
    radial-gradient(640px 300px at 82% -10%, rgba(255, 138, 61, 0.14), transparent 70%),
    radial-gradient(520px 260px at 12% 110%, rgba(59, 66, 148, 0.08), transparent 70%),
    linear-gradient(180deg, #fffdf9 0%, #fdf7ef 100%);
  border: 1px solid var(--pd-border);
  box-shadow: var(--pd-shadow);
}

.pd-home-hero__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.pd-home-hero__title span {
  background: linear-gradient(120deg, var(--pd-primary) 0%, var(--pd-primary-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-home-hero__chips li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--pd-border);
}

.pd-button--primary {
  box-shadow: 0 8px 18px rgba(235, 97, 16, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pd-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(235, 97, 16, 0.3);
}

.pd-button--ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--pd-border);
}

.pd-button--ghost:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary-strong);
}

/* =====================================================================
 * 5) Section heads
 * ================================================================== */
.pd-react-section-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pd-border);
}

.pd-react-section-head__icon {
  background: var(--pd-primary-soft);
  color: var(--pd-primary-strong);
  border: 1px solid rgba(235, 97, 16, 0.16);
}

.pd-react-section-head__title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pd-react-section-head__basis {
  color: var(--pd-text-soft);
}

.pd-react-section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pd-border);
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pd-react-section-head__link:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary-strong);
}

.pd-react-section-head__link::after {
  content: "→";
  font-size: 0.82em;
}

/* =====================================================================
 * 6) Product cards — 이미지·현재가 중심, 반복 요소는 낮은 톤으로
 * ================================================================== */
.pd-product-grid {
  gap: 16px;
}

.pd-product-card {
  box-shadow: var(--pd-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pd-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pd-shadow-hover);
  border-color: hsl(24 60% 84%);
}

.pd-product-card__media {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--pd-muted);
}

.pd-product-card__image {
  padding: 18px;
  transition: transform 0.25s ease;
}

.pd-product-card:hover .pd-product-card__image {
  transform: scale(1.045);
}

.pd-product-card__option-chip {
  border: 1px solid var(--pd-border);
  font-weight: 700;
}

.pd-product-card__body {
  gap: 8px;
}

.pd-product-card__brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pd-product-card__title {
  font-size: 0.94rem;
  font-weight: 600;
  min-height: 2.7em;
}

.pd-product-card__title-link:hover {
  color: var(--pd-primary-strong);
}

/* 현재가 라인: 배경 상자 제거, 가격을 키워서 첫 시선 고정 */
.pd-product-card__price-line {
  padding: 2px 0;
  border-radius: 0;
  background: transparent !important;
}

.pd-product-card__price {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pd-secondary);
}

.pd-status-badge {
  font-weight: 700;
}

/* 지표: 채운 상자 3개 → 얇은 구분선 한 줄 */
.pd-product-card__metric-grid {
  gap: 0;
  border-top: 1px solid var(--pd-muted);
  border-bottom: 1px solid var(--pd-muted);
  padding: 8px 0;
}

.pd-product-card__metric {
  background: transparent;
  border-radius: 0;
  padding: 0 6px;
}

.pd-product-card__metric + .pd-product-card__metric {
  border-left: 1px solid var(--pd-muted);
}

.pd-product-card__metric span {
  font-size: 0.66rem;
}

.pd-product-card__metric strong {
  margin-top: 2px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pd-product-card__comparison {
  font-size: 0.74rem;
}

.pd-product-card__basis {
  font-size: 0.66rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-product-card__button {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-primary-strong) 100%);
  box-shadow: 0 6px 14px rgba(235, 97, 16, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pd-product-card__button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(235, 97, 16, 0.26);
}

/* =====================================================================
 * 7) Panels / guides / trust / footer
 * ================================================================== */
.pd-category-panel {
  padding: 18px;
  box-shadow: var(--pd-shadow);
}

.pd-category-panel__head h3 {
  font-size: 1.02rem;
  font-weight: 800;
}

.pd-product-grid--compact .pd-product-card__media {
  aspect-ratio: 4 / 3;
}

.pd-guide-card {
  box-shadow: var(--pd-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pd-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pd-shadow-hover);
}

.pd-home-trust {
  border-style: dashed;
}

/* =====================================================================
 * 8) Mobile polish
 * ================================================================== */
@media (max-width: 768px) {
  .pd-home-sections {
    gap: 28px;
  }

  .pd-home-hero {
    padding: 38px 18px 32px;
  }

  .pd-home-hero__actions {
    width: 100%;
  }

  .pd-home-hero__actions .pd-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .pd-product-grid {
    gap: 10px;
  }

  .pd-product-card__body {
    padding: 12px;
    gap: 6px;
  }

  .pd-product-card__title {
    font-size: 0.86rem;
  }

  .pd-product-card__price {
    font-size: 1.14rem;
  }

  .pd-product-card__actions {
    padding: 0 12px 12px;
  }

  .pd-product-card__button {
    min-height: 40px;
    font-size: 0.82rem;
  }

  .pd-react-section-head {
    gap: 6px;
  }

  .pd-react-section-head__link {
    align-self: flex-end;
    margin-top: -34px;
  }
}

/* =====================================================================
 * 9) Product detail v4 — 구매 판단 흐름 재구성
 * ================================================================== */

/* Ad Intents(본문 내 인텐트 링크/칩) 콘텐츠 영역 차단 — google-anno-skip과 이중 방어 */
.pd-page-shell a.google-anno,
.pd-page-shell .google-anno-sc,
.pd-site-footer a.google-anno,
.pd-chart-block .google-auto-placed,
.pd-chart-block ins.adsbygoogle,
.pd-detail-meta-line .google-auto-placed,
.pd-detail-meta-line ins.adsbygoogle,
.pd-detail-trust .google-auto-placed,
.pd-detail-trust ins.adsbygoogle {
  display: none !important;
}

.pd-detail-breadcrumb {
  color: var(--pd-text-soft);
  font-size: 0.78rem;
}

.pd-detail-breadcrumb a:hover {
  color: var(--pd-primary-strong);
}

.pd-detail-media-box {
  box-shadow: var(--pd-shadow);
}

.pd-detail-media-box__image {
  background: #fff;
}

.pd-detail-title {
  font-size: clamp(1.22rem, 2.4vw, 1.6rem);
  line-height: 1.34;
  letter-spacing: -0.02em;
}

/* 현재가 라인: 라벨 + 큰 가격 + 판단 뱃지 */
.pd-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
}

.pd-detail-price-row__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pd-text-soft);
}

.pd-detail-price-row__price {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pd-detail-price-row .pd-status-badge {
  align-self: center;
}

/* CTA row: 쿠팡 CTA(주) + 공유(보조) */
.pd-detail-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.pd-detail-cta-row .pd-detail-primary-cta {
  flex: 1 1 auto;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-primary-strong) 100%);
  box-shadow: 0 8px 18px rgba(235, 97, 16, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pd-detail-cta-row .pd-detail-primary-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(235, 97, 16, 0.28);
}

.pd-detail-share__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--pd-border);
  border-radius: 13px;
  background: #fff;
  color: var(--pd-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pd-detail-share__button:hover,
.pd-detail-share__button:focus-visible {
  outline: none;
  border-color: var(--pd-primary);
  color: var(--pd-primary-strong);
}

.pd-detail-share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.pd-detail-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pd-detail-disclosure {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* 옵션 선택 */
.pd-detail-variant-picker label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pd-secondary);
}

.pd-detail-variant-picker select {
  min-height: 44px;
  font-weight: 600;
}

/* 비교 요약: 불릿 텍스트 → 톤 있는 콜아웃 */
.pd-detail-comparison-block {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pd-primary-soft);
  border: 1px solid rgba(235, 97, 16, 0.14);
}

.pd-detail-comparison-title {
  font-size: 0.78rem;
}

.pd-detail-comparison-list li {
  font-size: 0.8rem;
  color: var(--pd-text);
}

/* 축약 메타 라인 */
.pd-detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--pd-text-soft);
  font-size: 0.72rem;
}

.pd-detail-meta-line li + li::before {
  content: "·";
  margin: 0 6px;
  opacity: 0.6;
}

p.pd-detail-meta-line--chart {
  display: block;
  margin-top: 10px;
}

/* 가격 분석 카드: 라벨-값 인라인 컴팩트 */
.pd-analytics-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--pd-border);
}

.pd-analytics-card__value {
  font-variant-numeric: tabular-nums;
}

.pd-analytics-card__delta {
  font-weight: 700;
}

/* 데스크톱: 이미지 컬럼 sticky, 분석 3열 */
@media (min-width: 1024px) {
  .pd-detail-layout__media {
    position: sticky;
    top: 84px;
  }
}

@media (max-width: 768px) {
  .pd-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pd-detail-price-row {
    padding: 12px 14px;
  }

  .pd-detail-cta-row {
    position: relative;
  }

  .pd-detail-share__button {
    padding: 0 14px;
  }
}

/* =====================================================================
 * 10) CONCISE + CONVENIENCE — 소프트 디자인 유지, 더 간결하게 + 편의 기능
 * ================================================================== */

/* 홈 그리드 카드는 핵심만: 비교 문장/수집 시각은 목록·상세에서만 노출 */
.pd-product-grid--home .pd-product-card__comparison,
.pd-product-grid--home .pd-product-card__basis,
.pd-product-grid--compact .pd-product-card__comparison,
.pd-product-grid--compact .pd-product-card__basis {
  display: none;
}

.pd-product-grid--compact .pd-product-card__metric-grid {
  display: none;
}

/* ---------- 데이터 요약 스트립 ---------- */
.pd-home-statbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pd-home-statbar__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--pd-shadow);
}

.pd-home-statbar__item strong {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pd-secondary);
  font-variant-numeric: tabular-nums;
}

.pd-home-statbar__item span {
  font-size: 0.72rem;
  color: var(--pd-text-soft);
}

/* ---------- 최근 본 상품 스트립 ---------- */
.pd-rv {
  margin-top: 16px;
  background: var(--pd-card);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  padding: 14px 16px;
  box-shadow: var(--pd-shadow);
}

.pd-rv__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pd-rv__heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pd-secondary);
}

.pd-rv__hint {
  font-size: 0.68rem;
  color: var(--pd-text-soft);
}

.pd-rv__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pd-rv__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--pd-card);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pd-rv__item:hover {
  border-color: var(--pd-primary);
  transform: translateY(-1px);
}

.pd-rv__item img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--pd-muted);
}

.pd-rv__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pd-rv__title {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--pd-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-rv__price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pd-secondary);
  font-variant-numeric: tabular-nums;
}

/* ---------- 맨 위로 버튼 ---------- */
.pd-top-button {
  position: fixed;
  left: 16px;
  bottom: 92px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pd-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pd-secondary);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--pd-shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease;
  z-index: 800;
}

.pd-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pd-top-button:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary-strong);
}

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
  .pd-home-statbar {
    gap: 8px;
  }

  .pd-home-statbar__item {
    padding: 10px 12px;
  }

  .pd-home-statbar__item strong {
    font-size: 0.92rem;
  }

  .pd-home-statbar__item span {
    font-size: 0.64rem;
  }

  .pd-rv__track {
    grid-auto-columns: minmax(180px, 210px);
  }

  .pd-top-button {
    left: 12px;
    bottom: 96px;
    width: 38px;
    height: 38px;
  }
}

/* =====================================================================
 * 11) RHYTHM + CTR PASS — 간격 리듬 통일 · 밀착 해소 · 시인성/클릭 동선 강화
 * ================================================================== */

/* ---------- 버그 수정: 활성 칩이 흰 배경+흰 글자로 보이지 않던 문제 ---------- */
.pd-chip.pd-chip--active,
.pd-chip--active {
  background: var(--pd-secondary);
  border-color: var(--pd-secondary);
  color: #fff;
}

.pd-chip.pd-chip--active:hover {
  background: var(--pd-secondary);
  color: #fff;
}

/* ---------- 홈 수직 리듬: 18px 스텝으로 통일 (기존: 스탯바-칩바 0px 밀착) ---------- */
.pd-page-shell--home .pd-home-hero {
  padding: 56px 0 40px;
}

.pd-home-statbar {
  margin-top: 18px;
}

.pd-page-shell--home .pd-chip-bar {
  margin-top: 18px;
  margin-bottom: 0;
}

.pd-page-shell--home .pd-home-sections {
  margin-top: 26px;
}

.pd-rv {
  margin-top: 18px;
}

.pd-home-trust {
  padding-bottom: 22px;
}

/* ---------- 목록 페이지: 인트로-필터 밀착(8px) 해소 ---------- */
.pd-page-shell--catalog .pd-filter-bar {
  margin-top: 16px;
}

/* ---------- 스탯바: 클릭 가능한 동선으로 (CTR) ---------- */
a.pd-home-statbar__item {
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.pd-home-statbar__item:hover {
  transform: translateY(-2px);
  border-color: var(--pd-primary);
  box-shadow: var(--pd-shadow-hover);
}

.pd-home-statbar__arrow {
  opacity: 0;
  transition: opacity 0.15s ease;
  color: var(--pd-primary-strong);
  font-weight: 700;
}

a.pd-home-statbar__item:hover .pd-home-statbar__arrow {
  opacity: 1;
}

.pd-home-statbar__item--deal strong {
  color: var(--pd-primary-strong);
}

.pd-home-statbar__item--deal {
  border-color: rgba(235, 97, 16, 0.35);
  background: linear-gradient(180deg, #fff 0%, var(--pd-primary-soft) 140%);
}

/* ---------- 섹션 "전체 보기" 시인성 강화 (CTR) ---------- */
.pd-react-section-head__link {
  border-color: rgba(235, 97, 16, 0.45);
  color: var(--pd-primary-strong);
}

.pd-react-section-head__link:hover {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
}

/* ---------- 뱃지 가독성 미세 보강 ---------- */
.pd-status-badge {
  line-height: 1.1;
}

.pd-status-badge--below-avg {
  background: rgba(13, 148, 136, 0.16);
  color: #0b5e57;
}

/* ---------- 모바일 리듬 ---------- */
@media (max-width: 768px) {
  .pd-page-shell--home .pd-home-hero {
    padding: 40px 0 30px;
  }

  .pd-home-statbar {
    margin-top: 14px;
  }

  .pd-page-shell--home .pd-chip-bar {
    margin-top: 14px;
  }

  .pd-page-shell--home .pd-home-sections {
    margin-top: 20px;
  }

  .pd-home-statbar__item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pd-home-statbar__arrow {
    display: none;
  }
}

/* =====================================================================
 * 12) DETAIL ANALYTICS + PRICE-LINE + INTERACTIVE HERO PASS
 * ================================================================== */

/* ---------- 가격 분석 카드: 뒤죽박죽 정렬 → 라벨 상단 / 값 좌하 / 델타 우하 고정 ---------- */
.pd-analytics-grid {
  gap: 12px;
}

.pd-analytics-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "value delta";
  align-items: end;
  gap: 8px 10px;
  min-height: 78px;
  padding: 14px 16px;
}

.pd-analytics-card__label {
  grid-area: label;
  align-self: start;
  font-size: 0.72rem;
}

.pd-analytics-card__value {
  grid-area: value;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.pd-analytics-card__delta {
  grid-area: delta;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(235, 97, 16, 0.1);
}

/* ---------- 카드 가격 라인: 상태가 눈에 들어오도록 톤 복원 + 가격 색상 연동 ---------- */
.pd-product-card__price-line {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.07) !important;
}

.pd-product-card__price-line--near-low {
  background: rgba(22, 101, 52, 0.09) !important;
}

.pd-product-card__price-line--near-low .pd-product-card__price {
  color: #166534;
}

.pd-product-card__price-line--below-avg {
  background: rgba(15, 118, 110, 0.09) !important;
}

.pd-product-card__price-line--below-avg .pd-product-card__price {
  color: #0f766e;
}

.pd-product-card__price-line--dropping {
  background: rgba(194, 65, 12, 0.09) !important;
}

.pd-product-card__price-line--dropping .pd-product-card__price {
  color: #c2410c;
}

.pd-product-card__price-line--out-of-stock {
  background: rgba(239, 68, 68, 0.08) !important;
}

.pd-product-card__price-line .pd-status-badge {
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.65);
}

/* ---------- 인터랙티브 히어로: 커서 스포트라이트 + 플로팅 블롭 ---------- */
.pd-page-shell--home .pd-home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  border-radius: 24px;
  margin-top: 18px;
  padding: 64px 32px 52px;
  background:
    radial-gradient(560px 320px at var(--pd-mx, 72%) var(--pd-my, 18%), rgba(255, 138, 61, 0.17), transparent 62%),
    radial-gradient(680px 380px at 6% 112%, rgba(59, 66, 148, 0.07), transparent 65%),
    linear-gradient(180deg, #fffdf9 0%, #fdf6ed 100%);
  box-shadow: var(--pd-shadow);
  transition: box-shadow 0.25s ease;
}

.pd-page-shell--home .pd-home-hero:hover {
  box-shadow: var(--pd-shadow-hover);
}

.pd-page-shell--home .pd-home-hero::before,
.pd-page-shell--home .pd-home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  pointer-events: none;
  will-change: transform;
}

.pd-page-shell--home .pd-home-hero::before {
  width: 260px;
  height: 260px;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.32), transparent 70%);
  animation: pd-hero-float-a 11s ease-in-out infinite;
}

.pd-page-shell--home .pd-home-hero::after {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(80, 92, 200, 0.16), transparent 70%);
  animation: pd-hero-float-b 14s ease-in-out infinite;
}

@keyframes pd-hero-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 20px) scale(1.08); }
}

@keyframes pd-hero-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}

.pd-page-shell--home .pd-home-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 19, 35, 0.05) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(420px 300px at var(--pd-mx, 72%) var(--pd-my, 18%), rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: radial-gradient(420px 300px at var(--pd-mx, 72%) var(--pd-my, 18%), rgba(0, 0, 0, 0.9), transparent 70%);
  opacity: 1;
  pointer-events: none;
}

.pd-page-shell--home .pd-home-hero__inner {
  position: relative;
}

.pd-page-shell--home .pd-home-hero__title {
  transition: transform 0.3s ease;
}

.pd-page-shell--home .pd-home-hero:hover .pd-home-hero__title {
  transform: translateY(-2px);
}

/* 히어로 칩: 보더 박스 → 도트 마커 인라인 라벨 */
.pd-home-hero__chips {
  gap: 8px 18px;
  margin-top: 18px;
}

.pd-home-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--pd-text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
}

.pd-home-hero__chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pd-primary), var(--pd-primary-strong));
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.14);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .pd-page-shell--home .pd-home-hero::before,
  .pd-page-shell--home .pd-home-hero::after {
    animation: none;
  }
}

@media (max-width: 768px) {
  .pd-page-shell--home .pd-home-hero {
    padding: 44px 20px 36px;
    border-radius: 18px;
  }

  .pd-analytics-card {
    min-height: 64px;
    padding: 12px 14px;
  }
}
