/* ============================================================
   전시관(hall) 전용 스타일 — 관 헤더(_hallHeader.php) + 관 메인(hallMain.php)
   기존 몰과 완전 분리된 톤: 딥 네이비 + 라임 포인트. 반응형 단일 헤더(별도 모바일 크롬 없음).
   ============================================================ */

:root {
  /* 딥네이비 톤 유지하되 명도 한 단계 상향(#10141f → #232c42). 라임 포인트는 그대로 */
  --hh-bg: #232c42;
  --hh-bg2: #2f3a55;
  --hh-accent: #c8f550;
  --hh-text: #ffffff;
  --hh-muted: rgba(255, 255, 255, 0.72);
  /* 본점(reset.css --w-container: 1380px)과 동일 폭. reset.css 미로드 환경 대비 폴백 1380px */
  --hh-frame: var(--w-container, 1380px);
}

/* ---------- 관 헤더 ---------- */
.hh-header { position: sticky; top: 0; z-index: 1000; background: var(--hh-bg); color: var(--hh-text); }
.hh-frame { max-width: var(--hh-frame); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }

/* 상단 띠(본점 복귀·로그인) — 아래로 스크롤하면 접어서 헤더가 화면을 덜 가리게. 위로 올리면 다시 펼침 */
.hh-topstrip { background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px;
  max-height: 40px; overflow: hidden; transition: max-height .25s ease, opacity .2s ease; }
.hh-header.is-compact .hh-topstrip { max-height: 0; opacity: 0; border-bottom-color: transparent; }
@media (prefers-reduced-motion: reduce) { .hh-topstrip { transition: none; } }
.hh-topstrip .hh-frame { height: 34px; justify-content: space-between; }
.hh-topstrip a { color: var(--hh-muted); text-decoration: none; }
.hh-topstrip a:hover { color: var(--hh-text); }
/* 본점 복귀 링크 — 떠리마켓 워드마크만(mallHead와 동일 파일).
   원본은 진한 녹색/네이비라 어두운 관 헤더에서 안 보이므로 필터로 흰색 녹아웃 처리 */
.hh-back { display: inline-flex; align-items: center; opacity: .72; transition: opacity .15s; }
.hh-back:hover { opacity: 1; }
.hh-back-logo { display: block; height: 17px; width: auto; filter: brightness(0) invert(1); }
.hh-top-right { display: flex; align-items: center; gap: 14px; }
.hh-user { color: var(--hh-muted); }
.hh-user strong { color: var(--hh-accent); font-weight: 700; }

.hh-mainbar .hh-frame { height: 64px; }
.hh-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--hh-text); white-space: nowrap; }
/* 티티마켓 워드마크 — 원본 ttmarket.png는 흰 배경이라 배경을 알파로 빼고 글자를 흰색으로 반전한
   ttmarket_white.png 사용(원본에서 생성). 어두운 헤더 위에 배경 없이 그대로 올라간다. */
.hh-logo-img { display: block; height: 26px; width: auto; }  /* 본점 로고와 글자 크기 일치(아래 주석 참고) */
.hh-logo-tag {
  font-size: 12px; font-weight: 800; letter-spacing: -0.2px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--hh-accent); color: #10141f;
}

.hh-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hh-nav::-webkit-scrollbar { display: none; }
.hh-nav-item {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  color: var(--hh-muted); font-size: 15px; font-weight: 600; transition: color .15s, background .15s;
}
.hh-nav-item:hover { color: var(--hh-text); background: rgba(255, 255, 255, 0.07); }
.hh-nav-item.is-active { color: #10141f; background: var(--hh-accent); }

.hh-actions { display: flex; align-items: center; }
.hh-cart { position: relative; display: inline-flex; padding: 8px; color: var(--hh-text); }
.hh-cart-badge {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hh-accent); color: #10141f; font-size: 11px; font-weight: 800; border-radius: 999px;
}

@media (max-width: 768px) {
  .hh-topstrip .hh-frame { height: 30px; }
  .hh-mainbar .hh-frame { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  .hh-logo { order: 1; }
  .hh-logo-img { height: 22px; }
  .hh-logo-tag { font-size: 11px; padding: 2px 8px; }
  .hh-actions { order: 2; margin-left: auto; }
  .hh-nav { order: 3; flex-basis: 100%; }
  .hh-nav-item { font-size: 14px; padding: 7px 12px; }
}

/* ---------- 관 모드 내부 페이지 보정 ----------
   본점 헤더는 sticky가 아니라 각 페이지 sticky 요소가 top:0 기준이지만,
   관 헤더는 sticky라 그대로 두면 겹친다. --hh-h(관 헤더 실측 높이, _hallHeader.php JS)만큼 내려준다.
   선택자 특이도(html + class)로 mallView.css의 .tabs{top:0} 을 !important 없이 덮는다. */
html .hh-header { z-index: 1100; }                 /* 내부 sticky(.tabs z-index:1000)보다 위 */
html .tabs { top: var(--hh-h, 99px); }             /* mallView 떠리스토리/상품상세 탭바 */
html .imgArea { top: calc(var(--hh-h, 99px) + 12px); } /* mallView 좌측 이미지 갤러리 */

/* ---------- 관 메인 ---------- */
.hm-hero { background: linear-gradient(135deg, #232c42 0%, #35447a 58%, #4a5f9c 100%); color: #fff; }
.hm-hero-inner { max-width: var(--hh-frame); margin: 0 auto; padding: 56px 16px 48px; }
.hm-hero-kicker { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--hh-accent); margin: 0 0 14px; }
.hm-hero-title { font-size: 38px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; margin: 0 0 12px; }
.hm-hero-desc { font-size: 15px; color: rgba(255, 255, 255, 0.72); margin: 0; }
.hm-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hm-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: all .15s;
}
.hm-chip:hover { background: var(--hh-accent); border-color: var(--hh-accent); color: #10141f; }

/* 메인 배너(admin 전시관 관리 > 신상관 배너관리) — 화면 폭을 꽉 채우는 풀블리드.
   높이를 화면폭에 비례해 고정하고 object-fit:cover로 좌우를 잘라내, 어떤 해상도에서도 띠가 유지된다. */
.hm-hero-banner { width: 100%; }
.hm-hero-banner.is-multi { position: relative; }
.hm-banner-item { display: block; }
.hm-hero-banner.is-multi .hm-banner-item { display: none; }
.hm-hero-banner.is-multi .hm-banner-item.is-on { display: block; }
.hm-banner-item img {
  display: block; width: 100%;
  height: clamp(240px, 21.9vw, 560px);   /* 2560×560 원본 비율 기준 */
  object-fit: cover; object-position: center;
}

.hm-body { max-width: var(--hh-frame); margin: 0 auto; padding: 12px 16px 64px; }

/* PC: 본점 mallList와 동일하게 좌우 패딩 제거 → 끝선 일치 */
@media (min-width: 769px) {
  .hh-frame { padding: 0; }
  .hm-hero-inner { padding-left: 0; padding-right: 0; }
  .hm-body { padding-left: 0; padding-right: 0; }
}

.hm-section { margin-top: 44px; }
.hm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hm-section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.hm-section-desc { font-size: 13px; color: #7b8290; margin: 4px 0 0; }
.hm-more { font-size: 13px; font-weight: 600; color: #4b5563; text-decoration: none; white-space: nowrap; }
.hm-more:hover { color: #111; }
.hm-more span { color: #9aa1ad; font-weight: 500; }

.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.hm-card { display: block; text-decoration: none; color: inherit; }
.hm-card-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.hm-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.hm-card:hover .hm-card-thumb img { transform: scale(1.04); }
.hm-card-info { padding: 10px 2px 0; }
.hm-card-name {
  font-size: 14px; line-height: 1.4; color: #333; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hm-card-dc { color: #e8442e; font-weight: 800; font-size: 15px; }
.hm-card-price strong { font-size: 16px; font-weight: 800; color: #111; }
.hm-card-price del { font-size: 12px; color: #b0b6c0; }

.hm-empty { padding: 72px 0; text-align: center; color: #8a919e; font-size: 15px; }
.hm-empty-sm { padding: 36px 0; }

@media (max-width: 768px) {
  .hm-hero-inner { padding: 36px 16px 30px; }
  .hm-banner-item img { height: clamp(300px, 82vw, 420px); }
  .hm-hero-title { font-size: 27px; }
  .hm-section { margin-top: 34px; }
  .hm-section-title { font-size: 19px; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
}
