/* ===== 매장 상세 페이지 (megatelecom.co.kr /store/*) =====
   디자인 핸드오프(design_handoff_store_page) 확정값 기반. 공통 헤더/푸터/예약모달은
   layout.js가 주입(공용) — 여기서는 매장 페이지 본문(탭·히어로·이벤트·드로어)만 담당. */

.sd-scope {
  --ink: #16181D; --red: #E60012; --red-hover: #C00010; --red-chip: #FFF0F1;
  --gray: #8A90A0; --gray-light: #C9CDD6; --border: #ECEDF0; --surface: #F7F8FA;
  --green: #22C55E; --kakao: #FAE100; --kakao-ink: #3C1E1E;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
}
.sd-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sd-scope a { text-decoration: none; color: inherit; }

/* ---- 매장 탭 바 ---- */
.sd-tabs-outer { border-bottom: 1px solid var(--border); background: #fff; }
.sd-tabs { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; gap: 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sd-tabs::-webkit-scrollbar { display: none; }
.sd-tab { flex: 0 0 auto; padding: 15px 2px; font-size: 15px; font-weight: 500; color: var(--gray); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.sd-tab.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--red); }

/* ---- 히어로 ---- */
.sd-hero { max-width: 1240px; margin: 0 auto; padding: 52px 24px 0; display: flex; gap: 44px; flex-wrap: wrap; }
.sd-hero-left { flex: 1 1 440px; min-width: 0; }
.sd-hero-right { flex: 0 1 400px; }

.sd-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.sd-badge-kt { background: var(--red-chip); color: var(--red); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
.sd-badge-store { border: 1px solid var(--border); color: var(--gray); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; letter-spacing: .02em; }
.sd-badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--gray); }
.sd-badge-status .sd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.sd-h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 16px; }
.sd-intro { font-size: 16px; line-height: 1.75; color: var(--gray); max-width: 44ch; text-wrap: pretty; margin: 0 0 24px; }

.sd-info { max-width: 540px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.sd-info-row { display: flex; align-items: baseline; gap: 14px; padding: 13px 16px; }
.sd-info-row + .sd-info-row { border-top: 1px solid var(--border); }
.sd-info-label { flex: 0 0 40px; font-size: 11.5px; font-weight: 700; color: var(--gray); }
.sd-info-val { font-size: 14.5px; line-height: 1.55; }
.sd-info-val.phone { font-weight: 700; }

.sd-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 9px; font-size: 14.5px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; }
.sd-btn-red { background: var(--red); color: #fff; }
.sd-btn-red:hover { background: var(--red-hover); }
.sd-btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.sd-btn-kakao { background: var(--kakao); color: var(--kakao-ink); }

.sd-langs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-langs-label { font-size: 11.5px; font-weight: 700; color: var(--gray); }
.sd-lang-pill { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }

/* 우측 열: 사진 + 오시는 길 */
.sd-photo { height: 280px; border-radius: 14px; border: 1px solid var(--border); object-fit: cover; width: 100%; display: block; background: var(--surface); }
.sd-photo-ph { display: flex; align-items: center; justify-content: center; color: var(--gray-light); font-size: 13px; font-weight: 600; text-align: center; }
.sd-directions { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.sd-dir-label { font-size: 11.5px; font-weight: 700; color: var(--gray); }
.sd-dir-line { font-size: 14.5px; font-weight: 700; margin: 6px 0 6px; }
.sd-dir-note { font-size: 13.5px; line-height: 1.75; color: var(--gray); margin-bottom: 14px; }
.sd-map { width: 100%; height: 200px; border-radius: 10px; border: 0; display: block; background: var(--surface); }
.sd-map-links { display: flex; gap: 8px; margin-top: 10px; }
.sd-map-link { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 40px; background: #fff; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; font-weight: 700; }

/* ---- 매장 이벤트 ---- */
.sd-events { max-width: 1240px; margin: 0 auto; padding: 60px 24px 0; }
.sd-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sd-sec-title { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; margin: 0; }
.sd-sec-sub { font-size: 12.5px; color: var(--gray); }
.sd-admin-btn { margin-left: auto; height: 34px; padding: 0 12px; border: 1px solid var(--border); background: #fff; color: var(--gray); font-size: 12px; font-weight: 700; border-radius: 8px; cursor: pointer; font-family: inherit; }

.sd-banner { border-radius: 14px; display: flex; flex-wrap: wrap; overflow: hidden; }
.sd-banner-l { flex: 1 1 380px; padding: 34px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.sd-banner-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); margin-bottom: 14px; }
.sd-banner-title { font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; letter-spacing: -.03em; margin: 0 0 12px; }
.sd-banner-sub { font-size: 14.5px; line-height: 1.75; opacity: .86; max-width: 42ch; margin: 0 0 20px; }
.sd-banner-cta { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 9px; font-size: 14.5px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; }
.sd-banner-period { font-size: 12.5px; opacity: .72; margin-top: 12px; }
.sd-banner-r { flex: 0 1 360px; min-height: 230px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.sd-banner-r-ph { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; opacity: .6; }

/* 배너 테마 프리셋 (글자색 전부 흰색) */
.sd-theme-red   { background: #E60012; color: #fff; }
.sd-theme-ink   { background: #16181D; color: #fff; }
.sd-theme-navy  { background: #1B2A44; color: #fff; }
.sd-theme-green { background: #123A33; color: #fff; }
.sd-theme-plum  { background: #2C1A33; color: #fff; }
.sd-banner .sd-banner-cta { background: #fff; }              /* CTA 배경 = 배너 글자색(흰) */
.sd-theme-red   .sd-banner-cta { color: #E60012; }           /* CTA 글자 = 배너 배경색 */
.sd-theme-ink   .sd-banner-cta { color: #16181D; }
.sd-theme-navy  .sd-banner-cta { color: #1B2A44; }
.sd-theme-green .sd-banner-cta { color: #123A33; }
.sd-theme-plum  .sd-banner-cta { color: #2C1A33; }

.sd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.sd-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.sd-card-tag { align-self: flex-start; font-size: 11px; font-weight: 700; background: var(--red-chip); color: var(--red); padding: 4px 9px; border-radius: 5px; margin-bottom: 12px; }
.sd-card-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; margin: 0 0 8px; }
.sd-card-desc { font-size: 13.5px; line-height: 1.7; color: var(--gray); margin: 0 0 16px; }
.sd-card-period { font-size: 11.5px; font-weight: 600; color: var(--gray-light); margin-top: auto; }

/* 페이지 하단 여백(푸터 앞) */
.sd-bottom-spacer { height: 60px; }

/* ---- 모바일 하단 고정 액션바 (<760px) ---- */
.sd-actionbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 10px 14px; gap: 8px; }
.sd-actionbar .sd-ab-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 9px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; }

/* ---- 관리자 드로어 ---- */
.sd-drawer-ov { display: none; position: fixed; inset: 0; z-index: 9600; background: rgba(22,24,29,.5); }
.sd-drawer-ov.open { display: block; }
.sd-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(410px, 100%); background: #fff; overflow-y: auto; padding: 24px; box-shadow: -12px 0 40px rgba(0,0,0,.2); }
.sd-drawer h3 { font-size: 19px; font-weight: 800; margin: 0; }
.sd-drawer-sub { font-size: 12.5px; color: var(--gray); margin: 4px 0 18px; }
.sd-field { margin-bottom: 16px; }
.sd-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray); margin-bottom: 7px; }
.sd-input, .sd-textarea { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; font-size: 14px; font-family: inherit; color: var(--ink); box-sizing: border-box; }
.sd-textarea { resize: vertical; }
.sd-swatches { display: flex; gap: 10px; }
.sd-swatch { width: 42px; height: 42px; border-radius: 10px; cursor: pointer; border: 2px solid rgba(0,0,0,.12); }
.sd-swatch.sel { border-color: var(--ink); }
.sd-drawer-actions { display: flex; gap: 8px; margin-top: 20px; }
.sd-drawer-close { position: absolute; top: 18px; right: 18px; border: none; background: #F6F7F9; width: 34px; height: 34px; border-radius: 9px; font-size: 20px; cursor: pointer; }

/* ---- 관리자 로그인 모달 (?admin=1 진입 시에만) ---- */
.sd-admin-login-ov { display: none; position: fixed; inset: 0; z-index: 9700; background: rgba(22,24,29,.55); align-items: center; justify-content: center; padding: 24px; }
.sd-admin-login-ov.open { display: flex; }
.sd-admin-login { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 26px; }

/* 등장 애니메이션 (예약/드로어 공용) */
@keyframes sdRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ================= 반응형 ================= */
@media (max-width: 1060px) {
  .sd-hero-right { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .sd-wrap { padding-left: 18px; padding-right: 18px; }
  .sd-tabs { padding: 0 18px; gap: 20px; }
  .sd-hero { padding: 26px 18px 0; gap: 28px; }
  .sd-events { padding: 40px 18px 0; }
  .sd-actionbar { display: flex; }
  .sd-bottom-spacer { height: 84px; }  /* 하단 액션바(76px) 확보 */
  .sd-cta-row { display: none; }         /* 히어로 CTA는 하단 액션바로 대체 */
}
