/* ============================================================
   2027shopdemo — 모듈 페이지 공통 헤더/푸터  (prefix: sh-)
   ------------------------------------------------------------
   메인페이지(VIZEN SHOP)와 통일된 쇼핑몰 헤더를 shop/board 등
   모든 모듈 페이지에 적용. self-contained — 전역 셀렉터(* body a)
   는 건드리지 않아 기존 모듈 CSS와 충돌하지 않는다.
   ============================================================ */

:root {
  --sh-ink:       #1c1a17;
  --sh-ink-body:  #45413a;
  --sh-ink-soft:  #6f6a5f;
  --sh-ink-muted: #9c968a;
  --sh-ink-inv:   #f7f4ee;
  --sh-cream:     #faf7f1;
  --sh-line:      #e7e2d7;
  --sh-point:     #a8472e;
  --sh-point-soft:#c97c52;
  --sh-font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif;
  --sh-font-d: "Poppins", "Pretendard Variable", "Noto Sans KR", sans-serif;
  --sh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── Header ───────── */
.sh-header {
  line-height: 1.5;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sh-line);
  font-family: var(--sh-font);
}
.sh-header * { box-sizing: border-box; }
.sh-header-in {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.sh-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.sh-mnav-head .sh-logo img { height: 26px; }

/* ───────── Wordmark (VIZEN SHOP) ───────── */
.sh-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sh-ink);
}
.sh-wordmark-ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--sh-ink);
}
.sh-wordmark-txt {
  font-family: var(--sh-font-d);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sh-ink);
}
.sh-wordmark-txt b {
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 2px;
  color: var(--sh-ink-soft);
}
.sh-mnav-head .sh-wordmark-ico { width: 23px; height: 23px; }
.sh-mnav-head .sh-wordmark-txt { font-size: 1.08rem; }
.sh-gnb {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
}
.sh-gnb > li { position: relative; }
.sh-gnb > li > a {
  position: relative;
  display: block;
  padding: 28px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sh-ink) !important;
  text-decoration: none;
}
.sh-gnb > li > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 22px;
  width: 0; height: 1.5px;
  background: var(--sh-ink);
  transition: width 0.4s var(--sh-ease);
}
.sh-gnb > li:hover > a::after { width: 100%; }
.sh-drop {
  position: absolute;
  top: 76px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.1);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--sh-ease), transform 0.35s var(--sh-ease);
}
.sh-gnb > li:hover .sh-drop {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sh-drop a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sh-ink-soft) !important;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
.sh-drop a:hover { background: var(--sh-cream); color: var(--sh-ink) !important; }
.sh-utils {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.sh-utils a {
  display: inline-flex;
  align-items: center;
  color: var(--sh-ink-soft) !important;
  text-decoration: none;
  transition: color 0.3s;
}
.sh-utils a:hover { color: var(--sh-ink) !important; }
.sh-utils svg { width: 19px; height: 19px; }
.sh-burger { display: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--sh-ink); }
.sh-burger svg { width: 24px; height: 24px; }

/* 헤더 높이만큼 본문 확보 */
.sh-spacer { height: 77px; }

/* ───────── Mobile Nav ───────── */
.sh-mnav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s var(--sh-ease);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  font-family: var(--sh-font);
}
.sh-mnav.is-open { transform: translateX(0); }
.sh-mnav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.sh-mnav-close { background: none; border: 0; cursor: pointer; color: var(--sh-ink); padding: 0; }
.sh-mnav-close svg { width: 26px; height: 26px; }
.sh-mnav-list { list-style: none; margin: 0; padding: 0; }
.sh-mnav-list > li > a {
  display: block;
  padding: 15px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sh-ink) !important;
  text-decoration: none;
  border-bottom: 1px solid #f0ece3;
}
.sh-mnav-sub { list-style: none; margin: 0; padding: 4px 0 10px 14px; }
.sh-mnav-sub li a {
  display: block;
  padding: 8px 6px;
  font-size: 0.9rem;
  color: var(--sh-ink-soft) !important;
  text-decoration: none;
}

/* ───────── Footer ───────── */
.sh-footer {
  background: var(--sh-ink);
  color: rgba(247, 244, 238, 0.62);
  padding: clamp(48px, 6vw, 76px) 0 34px;
  font-family: var(--sh-font);
  margin-top: 60px;
}
.sh-footer * { box-sizing: border-box; }
.sh-footer-in {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.sh-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}
.sh-footer-logo {
  font-family: var(--sh-font-d);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--sh-ink-inv);
  margin-bottom: 16px;
}
.sh-footer-logo b { color: var(--sh-point-soft); }
.sh-footer-desc { font-size: 0.84rem; line-height: 1.85; }
.sh-footer-h {
  font-family: var(--sh-font-d);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sh-ink-inv);
  margin-bottom: 16px;
}
.sh-footer-list { list-style: none; margin: 0; padding: 0; }
.sh-footer-list li { margin-bottom: 10px; }
.sh-footer-list a {
  font-size: 0.85rem;
  color: rgba(247, 244, 238, 0.62) !important;
  text-decoration: none;
  transition: color 0.3s;
}
.sh-footer-list a:hover { color: var(--sh-ink-inv) !important; }
.sh-footer-tel {
  font-family: var(--sh-font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sh-ink-inv);
  margin-bottom: 8px;
  display: block;
  text-decoration: none;
}
.sh-footer-hours { font-size: 0.74rem; line-height: 1.8; }
.sh-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.74rem;
  line-height: 1.7;
}
.sh-footer-bottom a { color: rgba(247,244,238,0.62) !important; text-decoration: none; }
.sh-footer-bottom a:hover { color: var(--sh-ink-inv) !important; }
.sh-fb-links { display: flex; gap: 18px; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .sh-gnb, .sh-utils .sh-u-pc { display: none; }
  .sh-burger { display: inline-flex; }
}
@media (max-width: 768px) {
  .sh-footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .sh-footer-top { grid-template-columns: 1fr; }
  .sh-utils .sh-admin-btn { padding: 7px 12px; font-size: 0.72rem; }
}

/* ───────── 관리자 버튼 ───────── */
.sh-utils .sh-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--sh-ink);
  color: #ffffff !important;
  border-radius: 999px;
  font-family: var(--sh-font-d);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s var(--sh-ease);
}
.sh-utils .sh-admin-btn:hover { background: var(--sh-point); color: #ffffff !important; }
.sh-utils .sh-admin-btn svg { width: 14px; height: 14px; }

/* ───────── 상품목록/카테고리 배너 ───────── */
.sh-listhero {
  position: relative;
  overflow: hidden;
  background-color: #faf7f1;
  background-image:
    linear-gradient(100deg, #faf7f1 0%, #faf7f1 38%, rgba(250, 247, 241, 0.62) 64%, rgba(250, 247, 241, 0.20) 100%),
    url('/img/shop_banner_bg.jpg');
  background-size: auto, cover;
  background-position: center, right 18%;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 1px solid var(--sh-line);
  font-family: var(--sh-font);
}
.sh-listhero-in {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 72px) clamp(16px, 4vw, 48px);
}
.sh-listhero-in * { box-sizing: border-box; }
.sh-listhero-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  color: var(--sh-ink-muted);
  margin-bottom: 16px;
}
.sh-listhero-crumb a { color: var(--sh-ink-muted) !important; text-decoration: none; transition: color 0.25s; }
.sh-listhero-crumb a:hover { color: var(--sh-ink) !important; }
.sh-listhero-crumb b { color: var(--sh-ink); font-weight: 600; }
.sh-listhero-crumb span { color: #cdc6b6; }
.sh-listhero-eyebrow {
  display: block;
  font-family: var(--sh-font-d);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sh-point);
  margin-bottom: 11px;
}
.sh-listhero-title {
  font-family: var(--sh-font-d);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--sh-ink);
  line-height: 1.1;
}
.sh-listhero-desc {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--sh-ink-soft);
}
