/* =========================================================
   H티켓 — Visual Rebuild v4 (2026-08-06)
   login-find 와 같은 화이트 + 로고 H 배경색 톤
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --tg-c: #611EFA;
  --tg-cd: #4A10D0;
  --tg-cl: #A078FC;
  --tg-gold: #B98A2E;
  --tg-soft: #F6F2FF;
  --tg-soft2: #E9E0FE;
  --tg-ink: #0B1220;
  --tg-txt: #374151;
  --tg-mute: #6B7280;
  --tg-mute2: #9CA3AF;
  --tg-line: rgba(11, 18, 32, 0.07);
  --tg-line2: rgba(11, 18, 32, 0.12);
  --tg-bg: #ffffff;
  --tg-paper: #F8FAFC;
  --tg-r: 18px;
  --tg-rs: 12px;
  --tg-sh: 0 2px 6px rgba(15,23,42,.04), 0 10px 28px rgba(15,23,42,.05);
  --tg-sh-lg: 0 12px 32px rgba(74,16,208,.14), 0 4px 10px rgba(15,23,42,.05);

  --default-font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --heading-font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --accent-color: #611EFA;
  --heading-color: #0B1220;
  --background-color: #F8FAFC;
  --default-color: #374151;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-hover-color: #611EFA;
  --nav-dropdown-hover-color: #611EFA;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--default-font) !important;
  color: var(--tg-txt) !important;
  background: var(--tg-paper) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.sitename, .section-title h2, .navmenu a {
  font-family: var(--heading-font) !important;
  letter-spacing: -0.02em;
  color: var(--tg-ink);
}

/* ========== HEADER: modern white + cobalt (전체 페이지 공통) ========== */
/*
  주의: .header 에 backdrop-filter / filter / transform 을 주면 안 된다.
  해당 속성은 자손의 position:fixed 기준(containing block)을 .header 로 바꿔버려,
  모바일 메뉴가 헤더 높이만큼만 잡히는 문제가 발생한다.
*/
.header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 8px 24px rgba(15,23,42,.04) !important;
  backdrop-filter: none !important;
  filter: none !important;
  transform: none !important;
  position: sticky !important;
  top: 0;
  z-index: 2000 !important;
  overflow: visible !important;
}

/* Top bar */
.header .top-bar {
  background: #F8FAFC !important;
  border-bottom: 1px solid rgba(15,23,42,.06);
  color: #475569 !important;
  padding: 0 !important;
}
.header .mg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  font-size: 12.5px;
  font-weight: 600;
}
.header .mg-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.header .mg-topbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F6F2FF;
  color: #4A10D0;
  border: 1px solid rgba(97,30,250,.16);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.header .mg-topbar__center {
  flex: 1.4;
  text-align: center;
  min-width: 0;
}
.header .mg-topbar__center .announcement-slider {
  height: 22px;
  overflow: hidden;
}
.header .mg-topbar__center .swiper-slide {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B !important;
  line-height: 22px;
}
.header .mg-topbar__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.header .mg-topbar__right a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569 !important;
  text-decoration: none !important;
  padding: 5px 10px;
  border-radius: 999px;
  transition: all .18s ease;
  font-weight: 700;
  font-size: 12.5px;
}
.header .mg-topbar__right a:hover {
  color: #4A10D0 !important;
  background: #F6F2FF;
}
.header .mg-topbar__right a.mg-topbar__cta {
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(74,16,208,.22);
}
.header .mg-topbar__right a.mg-topbar__cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
}

/* legacy top-bar links (other pages) */
.header .top-bar a,
.header .top-bar .top-bar-item,
.announcement-slider {
  color: #475569 !important;
}
.header .top-bar a:hover {
  color: #4A10D0 !important;
}

/* Main bar */
.header .main-header {
  background: #fff !important;
}
.header .mg-mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 20px;
}
.header .logo {
  position: relative;
  flex-shrink: 0;
  max-height: none !important;
  align-items: center;
  gap: 0;
  overflow: visible !important;
}
.header .main-header,
.header .mg-mainbar {
  overflow: visible !important;
}
.header .logo .sitename {
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.header .logo .sitename img {
  max-height: 46px;
  height: 46px;
  width: auto;
  max-width: none;
  display: block;
}

/* 로고 하단 슬로건: 서서히 등장 → 유지 → 서서히 사라짐 */
.header .mg-logo-bubble {
  position: absolute;
  left: 62%;
  top: calc(100% - 8px) !important;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-40%);
  transform-origin: top center;
  animation: mgLogoBubbleCycle 8s ease-in-out infinite;
}
.header .mg-logo-bubble__panel {
  position: relative;
  display: block;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid rgba(194, 120, 60, 0.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.85) inset,
    0 4px 12px rgba(180, 110, 50, .10);
  white-space: nowrap;
}
.header .mg-logo-bubble__panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #FFEDD5;
  border-left: 1px solid rgba(194, 120, 60, 0.28);
  border-top: 1px solid rgba(194, 120, 60, 0.28);
  transform: translateX(-50%) rotate(45deg);
}
.header .mg-logo-bubble__mask {
  display: block;
  overflow: visible;
  width: auto;
}
.header .mg-logo-bubble__text {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #9A5B24;
  line-height: 1.2;
  white-space: nowrap;
}
@keyframes mgLogoBubbleCycle {
  0%, 8% {
    opacity: 0;
    transform: translateX(-40%) translateY(2px) scale(.96);
  }
  28% {
    opacity: 1;
    transform: translateX(-40%) translateY(0) scale(1);
  }
  62% {
    opacity: 1;
    transform: translateX(-40%) translateY(0) scale(1);
  }
  88%, 100% {
    opacity: 0;
    transform: translateX(-40%) translateY(2px) scale(.98);
  }
}
@media (max-width: 991.98px) {
  .header .mg-logo-bubble {
    display: block;
    top: calc(100% - 8px) !important;
  }
  .header .mg-logo-bubble__panel {
    padding: 3px 7px;
  }
  .header .mg-logo-bubble__text {
    font-size: 9.5px;
  }
  .header .mg-mainbar {
    padding-bottom: 18px;
  }
}
.header .desktop-search-form {
  display: none !important;
}
.header .mg-mainbar-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.header .search-form .input-group {
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.header .search-form .input-group:focus-within {
  border-color: rgba(97,30,250,.45);
  box-shadow: 0 0 0 3px rgba(97,30,250,.1);
  background: #fff;
}
.header .search-form .form-control {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #0B1220 !important;
  border-radius: 0 !important;
  padding: 11px 18px !important;
  font-size: 14px;
  font-weight: 500;
}
.header .search-form .form-control::placeholder {
  color: #94A3B8;
}
.header .search-form .btn {
  background: transparent !important;
  color: #4A10D0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 16px !important;
  box-shadow: none !important;
  font-size: 16px;
}

.header .header-actions {
  gap: 6px;
  flex-shrink: 0;
}
.header .header-action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  color: #0B1220 !important;
  background: #F8FAFC !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  transition: all .18s ease;
  font-size: 18px;
}
.header .header-action-btn:hover {
  color: #4A10D0 !important;
  background: #F6F2FF !important;
  border-color: rgba(97,30,250,.28) !important;
}
.header .header-action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(74,16,208,.35);
  border: 2px solid #fff;
}
.header .mobile-nav-toggle {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.07);
  color: #0B1220 !important;
  font-size: 22px;
  cursor: pointer;
}

/* Nav */
.header .header-nav {
  background: #fff !important;
  border-top: 1px solid rgba(15,23,42,.06);
}
.header .navmenu a {
  color: #0B1220 !important;
}
.header .navmenu a:hover,
.header .navmenu a.active {
  color: #4A10D0 !important;
}
.header .navmenu a.mg-nav-accent {
  color: #4A10D0 !important;
  font-weight: 800;
}
.header .navmenu a.active i,
.header .navmenu .active:focus i {
  background: #611EFA !important;
}

.header .dropdown-menu {
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(15,23,42,.1) !important;
  padding: 0 !important;
  overflow: hidden;
  margin-top: 8px !important;
}
.header .dropdown-menu .dropdown-header {
  background: linear-gradient(135deg, #F6F2FF, #E9E0FE);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(97,30,250,.14);
}
.header .dropdown-menu .dropdown-header h6 {
  color: #0B1220 !important;
  font-weight: 800;
}
.header .dropdown-menu .dropdown-body {
  padding: 8px;
}
.header .dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  color: #374151;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.header .dropdown-menu .dropdown-item:hover {
  background: #F6F2FF !important;
  color: #4A10D0 !important;
}

@media (min-width: 1200px) {
  .header .header-nav {
    display: none !important;
  }

  /* container / pill 래퍼가 드롭다운을 자르지 않도록 */
  .header,
  .header .main-header,
  .header .main-header > .container-fluid,
  .header .mg-mainbar,
  .header .navmenu,
  .header .navmenu > ul,
  .header .navmenu li,
  .header .navmenu .dropdown {
    overflow: visible !important;
  }

  .header .main-header {
    position: relative;
    z-index: 1002;
    border-bottom: 1px solid rgba(15,23,42,.06);
  }

  .header .mg-mainbar {
    gap: 16px;
    padding: 12px 0 22px;
  }

  .header .navmenu.mg-mainbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: auto;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1003;
  }

  /* 필 배경은 ::before 로 — ul 자체는 잘림 없는 flex */
  .header .navmenu > ul {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px 8px;
    list-style: none;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible !important;
  }
  .header .navmenu > ul::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 -1px 0 rgba(15,23,42,.04) inset,
      0 8px 22px rgba(15,23,42,.07),
      0 2px 6px rgba(74,16,208,.05);
    pointer-events: none;
    z-index: 0;
  }
  .header .navmenu > ul > li {
    position: relative;
    z-index: 1;
  }
  .header .navmenu > ul > li.dropdown {
    z-index: 2;
  }
  .header .navmenu > ul > li.dropdown:hover {
    z-index: 20;
  }
  .header .navmenu > ul > li > a {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 9px 12px !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: -.015em;
    color: #334155 !important;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition:
      color .18s ease,
      background .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease;
  }
  .header .navmenu > ul > li > a:hover {
    color: #4A10D0 !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #F6F2FF 100%);
    border-color: rgba(97,30,250,.22);
    box-shadow:
      0 1px 0 rgba(255,255,255,.95) inset,
      0 6px 14px rgba(74,16,208,.12);
    transform: translateY(-1px);
  }
  .header .navmenu > ul > li > a.active {
    color: #fff !important;
    background: linear-gradient(180deg, #A078FC 0%, #4A10D0 100%);
    border-color: rgba(74,16,208,.35);
    box-shadow:
      0 1px 0 rgba(255,255,255,.28) inset,
      0 8px 18px rgba(74,16,208,.28),
      0 2px 4px rgba(74,16,208,.18);
    transform: translateY(-1px);
  }
  .header .navmenu > ul > li > a.mg-nav-accent {
    color: #4A10D0 !important;
    background: linear-gradient(180deg, #F6F2FF 0%, #E9E0FE 100%);
    border-color: rgba(97,30,250,.28);
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 4px 12px rgba(74,16,208,.1);
    font-weight: 800;
  }
  .header .navmenu > ul > li > a.mg-nav-accent:hover,
  .header .navmenu > ul > li > a.active.mg-nav-accent {
    color: #fff !important;
    background: linear-gradient(180deg, #A078FC 0%, #4A10D0 100%);
  }
  .header .navmenu > ul > li > a .toggle-dropdown {
    font-size: 11px;
    opacity: .7;
  }

  /*
   * PC 상품권 서브메뉴 — 1단 flat 리스트(.mg-gift-submenu)
   * 중첩 .dropdown ul 은 절대 펼치지 않음(유령 높이 방지)
   */
  .header .navmenu > ul > li.dropdown > ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    min-width: 220px;
    width: max-content;
    border: 1px solid rgba(15,23,42,.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(15,23,42,.16) !important;
    padding: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    z-index: 9999 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
  }

  .header .navmenu > ul > li.dropdown:hover > ul,
  .header .navmenu > ul > li.dropdown.mg-dd-open > ul {
    display: block !important;
  }

  .header .navmenu > ul > li.dropdown > ul > li {
    min-width: 200px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    line-height: 1.3 !important;
  }

  .header .navmenu > ul > li.dropdown > ul > li.mg-dd-label {
    margin: 6px 0 3px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #3D0EBE !important;
    letter-spacing: .04em;
    pointer-events: none;
    border-radius: 9px;
    background: #E9E0FE !important;
    border: 1px solid rgba(85,20,232,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  }
  .header .navmenu > ul > li.dropdown > ul > li.mg-dd-label:first-child {
    margin-top: 0 !important;
  }

  .header .navmenu > ul > li.dropdown > ul > li > a {
    display: block !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 8px 14px !important;
    white-space: nowrap;
    color: #334155 !important;
    line-height: 1.35 !important;
  }
  .header .navmenu > ul > li.dropdown > ul > li > a:hover {
    background: linear-gradient(180deg, #F6F2FF, #E9E0FE) !important;
    color: #4A10D0 !important;
  }

  /* 구형 중첩 서브메뉴가 남아있어도 높이 0으로 완전 제거 */
  .header .navmenu > ul > li.dropdown ul ul,
  .header .navmenu > ul > li.dropdown .dropdown > ul,
  .header .navmenu > ul > li.dropdown .dropdown:hover > ul,
  .header .navmenu > ul > li.dropdown:hover .dropdown > ul,
  .header .navmenu > ul > li.dropdown.mg-dd-open .dropdown > ul {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1199.98px) {
  /* 모바일: 메인바에서는 자리 차지 안 함, 햄버거로 전체 오버레이 오픈 */
  .header .mg-mainbar-nav {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}
@media (max-width: 991.98px) {
  .header .mg-topbar__center { display: none; }
  .header .mg-mainbar { padding: 10px 0 20px; gap: 12px; }
  .header .logo .sitename img { max-height: 36px; height: 36px; }
}

/* ========== INDEX MAIN (P2P-style cobalt) ========== */
body.index-page {
  background: #fff !important;
}
body.index-page::before {
  display: none;
}
body.index-page .main,
body.index-page .footer {
  position: relative;
  z-index: 1;
}

/* 메인 영역 체크 격자 — 가운데 진하고 가장자리로 갈수록 희미 */
body.index-page .main {
  background-color: #ffffff !important;
  position: relative;
  isolation: isolate;
}
body.index-page .main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(74,16,208, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,16,208, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
}
body.index-page .main > * {
  position: relative;
  z-index: 1;
}

/* 헤더는 메인보다 위에 — 드롭다운이 hero에 가려지지 않게 */
body.index-page .header {
  position: sticky !important;
  top: 0;
  z-index: 2000 !important;
  overflow: visible !important;
}

body.index-page .mg-container,
body.category-page .mg-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
body.index-page .mg-hero {
  position: relative;
  padding: 88px 0 64px;
  background: transparent;
  border-bottom: 1px solid rgba(15,23,42,.07);
  overflow: hidden;
}
body.index-page .mg-hero__copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 8px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.index-page .mg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #F6F2FF;
  color: #4A10D0;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(97,30,250,.18);
}
body.index-page .mg-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A078FC;
  box-shadow: 0 0 0 4px rgba(97,30,250,.15);
  animation: mgPulse 1.6s infinite;
}
@keyframes mgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
body.index-page .mg-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  margin: 22px auto 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #0B1220;
  max-width: 860px;
}
body.index-page .mg-hero h1 .mg-hero__eyeline {
  display: block;
  font-size: .4em;
  font-weight: 700;
  color: #6B7280;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
body.index-page .mg-hero h1 .grad {
  background: linear-gradient(135deg, #611EFA 0%, #4A10D0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.index-page .mg-hero__sub {
  font-size: 17px;
  color: #6B7280;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 540px;
}
body.index-page .mg-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
body.index-page .mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .2s;
  text-decoration: none !important;
}
body.index-page .mg-btn--primary {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(74,16,208,.28);
}
body.index-page .mg-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74,16,208,.38);
  color: #fff !important;
}
body.index-page .mg-btn--ghost {
  background: #fff;
  color: #0B1220 !important;
  border-color: rgba(15,23,42,.13);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
body.index-page .mg-btn--ghost:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  color: #0B1220 !important;
}
body.index-page .mg-trust {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
body.index-page .mg-trust__item {
  min-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(97,30,250,.14);
  box-shadow: 0 6px 18px rgba(74,16,208,.06);
}
body.index-page .mg-trust__num {
  font-size: 22px;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
}
body.index-page .mg-trust__num .grad {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.index-page .mg-trust__lab {
  font-size: 11px;
  color: #6B7280;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Products */
body.index-page .mg-products,
body.category-page .mg-products {
  padding: 48px 0 36px;
  background: transparent;
}
body.index-page .mg-shead,
body.category-page .mg-shead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}
body.index-page .mg-shead__tag,
body.category-page .mg-shead__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #4A10D0;
  letter-spacing: .08em;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #F6F2FF;
  border: 1px solid rgba(97,30,250,.18);
}
body.index-page .mg-shead h2,
body.category-page .mg-shead h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #0B1220;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
body.index-page .mg-shead p,
body.category-page .mg-shead p {
  color: #6B7280;
  font-size: 15px;
  margin: 0;
}
body.index-page .mg-products .mg-container,
body.category-page .mg-products .mg-container,
body.category-page .mg-value .mg-container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
body.index-page .mg-product-grid,
body.category-page .mg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 306px);
  gap: 16px;
  justify-content: center;
}
body.index-page .mg-product,
body.category-page .mg-product {
  width: 306px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(74,16,208,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
body.index-page .mg-product:hover,
body.category-page .mg-product:hover {
  transform: translateY(-3px);
  border-color: rgba(97,30,250,.35);
  box-shadow: 0 14px 32px rgba(74,16,208,.12);
}
body.index-page .mg-product__media,
body.category-page .mg-product__media {
  position: relative;
  display: block;
  width: 306px !important;
  height: 306px !important;
  max-width: 306px !important;
  max-height: 306px !important;
  background: #F8FAFC;
  overflow: hidden;
  flex-shrink: 0;
}
body.index-page .mg-product__media img,
body.category-page .mg-product__media img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 306px !important;
  height: 306px !important;
  max-width: 306px !important;
  max-height: 306px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  transform: none !important;
}
body.index-page .mg-product__tag,
body.category-page .mg-product__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(74,16,208,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
body.category-page .mg-product__tag {
  font-size: 13.5px;
  padding: 6px 12px;
  letter-spacing: -.01em;
}
body.category-page .mg-product__tag.is-prepare,
body.index-page .mg-product__tag.is-prepare {
  background: #D97706;
}
body.category-page .mg-product.is-prepare {
  opacity: .96;
}
body.category-page .mg-product__stock.is-prepare {
  color: #B45309 !important;
  font-weight: 800;
}
body.index-page .mg-product__body,
body.category-page .mg-product__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
body.index-page .mg-product__title,
body.category-page .mg-product__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}
body.category-page .mg-product__title {
  font-size: 17px;
}
body.index-page .mg-product__title a,
body.category-page .mg-product__title a {
  color: #0B1220 !important;
  text-decoration: none !important;
}
body.index-page .mg-product__meta,
body.category-page .mg-product__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
body.index-page .mg-product__price,
body.category-page .mg-product__price {
  font-size: 17px;
  font-weight: 900;
  color: #4A10D0;
  letter-spacing: -.02em;
}
body.category-page .mg-product__price {
  font-size: 20px;
}
body.index-page .mg-product__stock,
body.category-page .mg-product__stock {
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
}
body.index-page .mg-product__actions,
body.category-page .mg-product__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
body.index-page .mg-product__btn,
body.category-page .mg-product__btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
body.category-page .mg-product__btn {
  font-size: 15px;
  padding: 11px 8px;
}
body.index-page .mg-product__btn--ghost,
body.category-page .mg-product__btn--ghost {
  background: #F6F2FF;
  color: #4A10D0;
  border: 1px solid #DCCEFE;
}
body.index-page .mg-product__btn--ghost:hover,
body.category-page .mg-product__btn--ghost:hover {
  background: #E9E0FE;
}
body.index-page .mg-product__btn--primary,
body.category-page .mg-product__btn--primary {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(74,16,208,.22);
}
body.index-page .mg-product__btn--primary:hover,
body.category-page .mg-product__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74,16,208,.3);
}
/* 입고예정: 구매하기(파랑)와 구분되는 앰버 톤 */
body.category-page .mg-product__btn.mg-product__btn--primary.is-prepare,
body.category-page .mg-product__btn.is-prepare {
  background: linear-gradient(135deg, #FBBF24, #D97706) !important;
  border: 1px solid #B45309 !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(217,119,6,.22) !important;
  cursor: default;
  transform: none !important;
}
body.category-page .mg-product__btn.mg-product__btn--primary.is-prepare:hover,
body.category-page .mg-product__btn.is-prepare:hover {
  background: linear-gradient(135deg, #F59E0B, #B45309) !important;
  transform: none !important;
  box-shadow: 0 6px 16px rgba(180,83,9,.28) !important;
}
/* 입고예정 장바구니: 파란 ghost와 구분되는 연한 앰버 */
body.category-page .mg-product__btn.mg-product__btn--ghost.is-prepare,
body.category-page .mg-product__btn.mg-product__btn--ghost.is-prepare:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  color: #B45309 !important;
  box-shadow: none !important;
}
body.category-page .mg-product__btn--ghost:disabled:not(.is-prepare),
body.category-page .mg-product__btn:disabled:not(.is-prepare) {
  opacity: .55;
  cursor: not-allowed;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
}

/* Value */
body.index-page .mg-value,
body.category-page .mg-value {
  padding: 28px 0 48px;
  background: transparent;
  border-top: 1px solid rgba(15,23,42,.06);
}
body.index-page .mg-value__grid,
body.category-page .mg-value__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.index-page .mg-value__card,
body.category-page .mg-value__card {
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 24px rgba(74,16,208,.05);
}
body.index-page .mg-value__ico,
body.category-page .mg-value__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F2FF;
  color: #4A10D0;
  font-size: 20px;
  margin-bottom: 12px;
  border: 1px solid #DCCEFE;
}
body.index-page .mg-value__card h3,
body.category-page .mg-value__card h3 {
  font-size: 16px;
  font-weight: 900;
  color: #0B1220;
  margin: 0 0 6px;
}
body.index-page .mg-value__card p,
body.category-page .mg-value__card p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.55;
  margin: 0;
}

/* hide legacy hero/product styles if leftover */
body.index-page .ecommerce-hero-1 { display: none !important; }

@media (max-width: 1299.98px) {
  body.index-page .mg-product-grid,
  body.category-page .mg-product-grid {
    grid-template-columns: repeat(2, 306px);
  }
}
@media (max-width: 991.98px) {
  body.index-page .mg-hero { padding: 48px 0 40px; }
  body.index-page .mg-hero__copy { min-height: 0; padding-top: 8px; }
  body.index-page .mg-product-grid,
  body.category-page .mg-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  body.index-page .mg-product,
  body.category-page .mg-product {
    width: 100%;
  }
  body.index-page .mg-product__media,
  body.category-page .mg-product__media {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
  }
  body.index-page .mg-product__media img,
  body.category-page .mg-product__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  body.index-page .mg-value__grid,
  body.category-page .mg-value__grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  body.index-page .mg-container,
  body.category-page .mg-container { padding: 0 16px; }
  body.index-page .mg-hero { padding: 36px 0 32px; }
  body.index-page .mg-hero h1 { font-size: 28px; }
  body.index-page .mg-product-grid,
  body.category-page .mg-product-grid { grid-template-columns: 1fr; }
  body.index-page .mg-trust__item { min-width: 110px; }
}

/* ========== AUTH: split-screen ========== */
body.login-register-page {
  background: #fff !important;
}
body.login-register-page .header {
  position: sticky !important;
  top: 0;
  z-index: 2000 !important;
  overflow: visible !important;
}
body.login-register-page .main,
body.login-register-page .footer {
  position: relative;
  z-index: 1;
}
body.login-register-page .main {
  background-color: #ffffff !important;
  isolation: isolate;
}
body.login-register-page .main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(74,16,208, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,16,208, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
}
body.login-register-page .main > * {
  position: relative;
  z-index: 1;
}

body.login-register-page .page-title,
body.checkout-page .page-title.yk-hero-title,
body.account-page .page-title.yk-hero-title,
body.cart-page .page-title.yk-hero-title {
  display: none !important;
}

body.login-register-page .login-register.section {
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

body.login-register-page .login-register > .container {
  max-width: 560px !important;
  padding: 28px 20px 36px !important;
  margin: 0 auto;
}

body.login-register-page .login-register .row {
  margin: 0 !important;
  min-height: 0;
}

body.login-register-page .login-register .row > [class*="col-"] {
  max-width: 100%;
  flex: 0 0 100%;
  padding: 0 !important;
}

body.login-register-page .login-register-wraper {
  display: block !important;
  min-height: 0;
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: 0 12px 36px rgba(74,16,208,.08) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  background: #fff !important;
  overflow: hidden;
  animation: none !important;
}

body.login-register-page .login-register-wraper::before {
  display: none !important;
}

body.login-register-page .yk-form-brand {
  display: none !important;
}

body.login-register-page .yk-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  background: #fff;
  width: 100%;
}

body.login-register-page .nav-tabs {
  margin: 0 !important;
  padding: 2rem 2rem 0;
  justify-content: center !important;
  gap: 8px;
  border: 0 !important;
  background: transparent;
}

body.login-register-page .tab-content {
  padding: 1.25rem 2rem 2.25rem;
  background: transparent;
}

body.login-register-page .nav-tabs .nav-link {
  border-radius: 999px !important;
  background: var(--tg-paper) !important;
  color: var(--tg-mute) !important;
  border: 1px solid var(--tg-line) !important;
  padding: 0.55rem 1rem !important;
  margin-right: 0.5rem;
  transform: none !important;
  font-weight: 700;
}

body.login-register-page .nav-tabs .nav-link.active {
  color: #fff !important;
  border-color: var(--tg-c) !important;
  background: var(--tg-c) !important;
  box-shadow: 0 6px 16px rgba(97,30,250,0.22) !important;
}

body.login-register-page .form-control {
  border-radius: var(--tg-rs) !important;
  border: 1px solid var(--tg-line2) !important;
  background: #fff !important;
  box-shadow: none !important;
  min-height: 48px;
}

/* 이메일 입력 + 중복확인 버튼 간격 */
body.login-register-page .mg-email-check-group {
  gap: 10px;
  flex-wrap: nowrap;
}
body.login-register-page .mg-email-check-group > .form-control {
  border-radius: var(--tg-rs) !important;
}
body.login-register-page .mg-email-check-group > .btn {
  border-radius: var(--tg-rs) !important;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 48px;
  padding-left: 14px;
  padding-right: 14px;
}

/* 회원가입 이메일 OTP */
body.login-register-page .mg-ev-send-row {
  margin-top: 10px;
}
body.login-register-page .mg-ev-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #64748B;
  font-weight: 600;
}
body.login-register-page .mg-ev-block {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
body.login-register-page .mg-ev-code-group {
  gap: 8px;
}
body.login-register-page .mg-ev-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}
body.login-register-page .mg-ev-timer {
  font-size: 12.5px;
  font-weight: 700;
  color: #4A10D0;
}
body.login-register-page .mg-ev-msg {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  min-height: 18px;
}
body.login-register-page .mg-ev-msg.is-ok { color: #15803D; }
body.login-register-page .mg-ev-msg.is-error { color: #DC2626; }

body.login-register-page .form-control:focus {
  border-color: rgba(97,30,250,0.55) !important;
  box-shadow: 0 0 0 3px rgba(97,30,250,0.12) !important;
}


body.login-register-page .btn-primary {
  border-radius: var(--tg-rs) !important;
  background: linear-gradient(135deg, #A078FC, #4A10D0) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(97,30,250,0.22) !important;
  min-height: 52px;
  font-weight: 800;
}

body.login-register-page .btn-primary:hover {
  background: var(--tg-cd) !important;
  transform: none !important;
}

body.login-register-page .mg-auth-help {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,.07);
}
body.login-register-page .mg-auth-help__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.06);
  color: #475569 !important;
  text-decoration: none !important;
  transition: border-color .18s, background .18s;
}
body.login-register-page .mg-auth-help__item:hover {
  background: #F6F2FF;
  border-color: rgba(97,30,250,.22);
  color: #4A10D0 !important;
}
body.login-register-page .mg-auth-help__item i {
  color: #611EFA;
  font-size: 16px;
  margin-top: 2px;
}
body.login-register-page .mg-auth-help__item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.35;
}
body.login-register-page .mg-auth-help__item strong {
  font-size: 13.5px;
  color: #0B1220;
  font-weight: 800;
}

body.login-register-page .mg-auth-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
body.login-register-page .mg-auth-notes__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(97,30,250,.14);
  box-shadow: 0 6px 16px rgba(74,16,208,.05);
}
body.login-register-page .mg-auth-notes__item i {
  color: #4A10D0;
  font-size: 16px;
  margin-top: 1px;
}
body.login-register-page .mg-auth-notes__item p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  body.login-register-page .login-register > .container {
    max-width: 100% !important;
    padding: 20px 16px 28px !important;
  }
  body.login-register-page .nav-tabs {
    padding: 1.5rem 1.25rem 0;
  }
  body.login-register-page .tab-content {
    padding: 1rem 1.25rem 1.75rem;
  }
}

/* ========== NOTICE / PRODUCT DETAILS / CATEGORY / TOS (shared chrome) ========== */
body.notice-page,
body.product-details-page,
body.category-page,
body.tos-page,
body.privacy-page,
body.contact-page,
body.csList-page,
body.cart-page,
body.checkout-page,
body.account-page {
  background: #fff !important;
}
body.notice-page .header,
body.product-details-page .header,
body.category-page .header,
body.tos-page .header,
body.privacy-page .header,
body.contact-page .header,
body.csList-page .header,
body.cart-page .header,
body.checkout-page .header,
body.account-page .header {
  position: sticky !important;
  top: 0;
  z-index: 2000 !important;
  overflow: visible !important;
}
body.notice-page .main,
body.notice-page .footer,
body.product-details-page .main,
body.product-details-page .footer,
body.category-page .main,
body.category-page .footer,
body.tos-page .main,
body.tos-page .footer,
body.privacy-page .main,
body.privacy-page .footer,
body.contact-page .main,
body.contact-page .footer,
body.csList-page .main,
body.csList-page .footer,
body.cart-page .main,
body.cart-page .footer,
body.checkout-page .main,
body.checkout-page .footer,
body.account-page .main,
body.account-page .footer {
  position: relative;
  z-index: 1;
}
body.notice-page .main,
body.product-details-page .main,
body.category-page .main,
body.tos-page .main,
body.privacy-page .main,
body.contact-page .main,
body.csList-page .main,
body.cart-page .main,
body.checkout-page .main,
body.account-page .main {
  background-color: #ffffff !important;
  isolation: isolate;
}
body.notice-page .main::before,
body.product-details-page .main::before,
body.category-page .main::before,
body.tos-page .main::before,
body.privacy-page .main::before,
body.contact-page .main::before,
body.csList-page .main::before,
body.cart-page .main::before,
body.checkout-page .main::before,
body.account-page .main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(74,16,208, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,16,208, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 38%, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 78%);
}
body.notice-page .main > *,
body.product-details-page .main > *,
body.category-page .main > *,
body.tos-page .main > *,
body.privacy-page .main > *,
body.contact-page .main > *,
body.csList-page .main > *,
body.cart-page .main > *,
body.checkout-page .main > *,
body.account-page .main > * {
  position: relative;
  z-index: 1;
}

body.notice-page .mg-page-title,
body.product-details-page .mg-page-title,
body.category-page .mg-page-title,
body.tos-page .mg-page-title,
body.privacy-page .mg-page-title,
body.contact-page .mg-page-title,
body.csList-page .mg-page-title,
body.cart-page .mg-page-title,
body.checkout-page .mg-page-title,
body.account-page .mg-page-title {
  background: transparent !important;
  padding: 36px 0 8px !important;
  border: 0 !important;
}
body.notice-page .mg-page-title__inner,
body.product-details-page .mg-page-title__inner,
body.category-page .mg-page-title__inner,
body.tos-page .mg-page-title__inner,
body.privacy-page .mg-page-title__inner,
body.contact-page .mg-page-title__inner,
body.csList-page .mg-page-title__inner,
body.cart-page .mg-page-title__inner,
body.checkout-page .mg-page-title__inner,
body.account-page .mg-page-title__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}
body.notice-page .mg-page-title__tag,
body.product-details-page .mg-page-title__tag,
body.category-page .mg-page-title__tag,
body.tos-page .mg-page-title__tag,
body.privacy-page .mg-page-title__tag,
body.contact-page .mg-page-title__tag,
body.csList-page .mg-page-title__tag,
body.cart-page .mg-page-title__tag,
body.checkout-page .mg-page-title__tag,
body.account-page .mg-page-title__tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #4A10D0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
body.notice-page .mg-page-title h1,
body.product-details-page .mg-page-title h1,
body.category-page .mg-page-title h1,
body.tos-page .mg-page-title h1,
body.privacy-page .mg-page-title h1,
body.contact-page .mg-page-title h1,
body.csList-page .mg-page-title h1,
body.cart-page .mg-page-title h1,
body.checkout-page .mg-page-title h1,
body.account-page .mg-page-title h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
}
body.notice-page .mg-page-title p,
body.product-details-page .mg-page-title p,
body.category-page .mg-page-title p,
body.tos-page .mg-page-title p,
body.privacy-page .mg-page-title p,
body.contact-page .mg-page-title p,
body.csList-page .mg-page-title p,
body.cart-page .mg-page-title p,
body.checkout-page .mg-page-title p,
body.account-page .mg-page-title p {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
}
body.notice-page .mg-page-title .breadcrumbs ol,
body.product-details-page .mg-page-title .breadcrumbs ol,
body.category-page .mg-page-title .breadcrumbs ol,
body.tos-page .mg-page-title .breadcrumbs ol,
body.privacy-page .mg-page-title .breadcrumbs ol,
body.contact-page .mg-page-title .breadcrumbs ol,
body.csList-page .mg-page-title .breadcrumbs ol,
body.cart-page .mg-page-title .breadcrumbs ol,
body.checkout-page .mg-page-title .breadcrumbs ol,
body.account-page .mg-page-title .breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
}
body.notice-page .mg-page-title .breadcrumbs a,
body.product-details-page .mg-page-title .breadcrumbs a,
body.category-page .mg-page-title .breadcrumbs a,
body.tos-page .mg-page-title .breadcrumbs a,
body.privacy-page .mg-page-title .breadcrumbs a,
body.contact-page .mg-page-title .breadcrumbs a,
body.csList-page .mg-page-title .breadcrumbs a,
body.cart-page .mg-page-title .breadcrumbs a,
body.checkout-page .mg-page-title .breadcrumbs a,
body.account-page .mg-page-title .breadcrumbs a {
  color: #475569 !important;
  text-decoration: none !important;
}
body.notice-page .mg-page-title .breadcrumbs .current,
body.product-details-page .mg-page-title .breadcrumbs .current,
body.category-page .mg-page-title .breadcrumbs .current,
body.tos-page .mg-page-title .breadcrumbs .current,
body.privacy-page .mg-page-title .breadcrumbs .current,
body.contact-page .mg-page-title .breadcrumbs .current,
body.csList-page .mg-page-title .breadcrumbs .current,
body.cart-page .mg-page-title .breadcrumbs .current,
body.checkout-page .mg-page-title .breadcrumbs .current,
body.account-page .mg-page-title .breadcrumbs .current {
  color: #4A10D0;
}

/* ========== LEGAL (tos / privacy) ========== */
body.tos-page .mg-legal,
body.privacy-page .mg-legal {
  padding: 28px 0 64px !important;
  background: transparent !important;
}
body.tos-page .mg-legal .container,
body.privacy-page .mg-legal .container {
  max-width: 920px;
}
body.tos-page .mg-legal__panel,
body.privacy-page .mg-legal__panel {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(74,16,208,.06);
  padding: 28px 28px 24px;
}
body.tos-page .mg-legal__meta,
body.privacy-page .mg-legal__meta {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}
body.tos-page .mg-legal__badge,
body.privacy-page .mg-legal__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #4A10D0;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
body.tos-page .mg-legal__meta p,
body.privacy-page .mg-legal__meta p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.55;
}
body.tos-page .mg-legal__intro,
body.privacy-page .mg-legal__intro {
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}
body.tos-page .mg-legal__intro p,
body.privacy-page .mg-legal__intro p {
  margin: 0 0 8px;
}
body.tos-page .mg-legal__intro p:last-child,
body.privacy-page .mg-legal__intro p:last-child {
  margin-bottom: 0;
}
body.tos-page .mg-legal__body .content-section,
body.privacy-page .mg-legal__body .content-section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.tos-page .mg-legal__body h3,
body.privacy-page .mg-legal__body h3 {
  margin: 0 0 14px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0B1220 !important;
}
body.tos-page .mg-legal__pre,
body.privacy-page .mg-legal__pre {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  margin: 0 0 18px;
  padding: 18px 18px;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}
body.tos-page .mg-legal__note,
body.privacy-page .mg-legal__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: #F6F2FF !important;
  border: 1px solid #DCCEFE !important;
}
body.tos-page .mg-legal__note i,
body.privacy-page .mg-legal__note i {
  color: #4A10D0;
  font-size: 18px;
  margin-top: 1px;
}
body.tos-page .mg-legal__note p,
body.privacy-page .mg-legal__note p {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 600;
}
body.tos-page .mg-legal__contact,
body.privacy-page .mg-legal__contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #F8FAFC, #fff);
  border: 1px solid rgba(15,23,42,.08);
}
body.tos-page .mg-legal__contact-ico,
body.privacy-page .mg-legal__contact-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #4A10D0;
  font-size: 20px;
  flex-shrink: 0;
}
body.tos-page .mg-legal__contact h4,
body.privacy-page .mg-legal__contact h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
  color: #0B1220;
}
body.tos-page .mg-legal__contact p,
body.privacy-page .mg-legal__contact p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}
body.tos-page .mg-legal__link,
body.privacy-page .mg-legal__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(74,16,208,.22);
}
body.tos-page .mg-legal__link:hover,
body.privacy-page .mg-legal__link:hover {
  filter: brightness(1.05);
}
body.tos-page .tos-header,
body.tos-page .tos-contact,
body.privacy-page .privacy-header,
body.privacy-page .privacy-contact {
  display: none !important;
}
@media (max-width: 575.98px) {
  body.tos-page .mg-legal__panel,
  body.privacy-page .mg-legal__panel {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }
  body.tos-page .mg-legal__pre,
  body.privacy-page .mg-legal__pre {
    padding: 14px 12px;
    font-size: 13px;
  }
}

/* ========== CONTACT ========== */
body.contact-page .mg-contact {
  padding: 28px 0 64px !important;
  background: transparent !important;
}
body.contact-page .mg-contact .container {
  max-width: 1080px;
  margin: 0 auto;
}
body.contact-page .mg-contact__channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
body.contact-page .mg-contact__channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
}
body.contact-page .mg-contact__channel i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F6F2FF;
  color: #4A10D0;
  font-size: 18px;
  flex: 0 0 auto;
}
body.contact-page .mg-contact__channel strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 2px;
}
body.contact-page .mg-contact__channel span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0B1220;
  word-break: break-all;
}
body.contact-page .mg-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
body.contact-page .mg-contact__aside {
  display: grid;
  gap: 12px;
}
body.contact-page .mg-contact__note {
  display: flex;
  gap: 12px;
  padding: 18px 18px 16px;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 16px;
}
body.contact-page .mg-contact__note i {
  color: #4A10D0;
  font-size: 18px;
  margin-top: 2px;
}
body.contact-page .mg-contact__note h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
}
body.contact-page .mg-contact__note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748B;
}
body.contact-page .mg-contact__history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #DCCEFE;
  background: #F6F2FF;
  color: #4A10D0 !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}
body.contact-page .mg-contact__history:hover {
  background: #E9E0FE;
}
body.contact-page .mg-contact__map {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
}
body.contact-page .mg-contact__map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}
body.contact-page .mg-contact__map p {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
body.contact-page .mg-contact__panel {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(74,16,208,.06);
  padding: 26px 26px 22px;
}
body.contact-page .mg-contact__panel-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}
body.contact-page .mg-contact__panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
}
body.contact-page .mg-contact__panel-head p {
  margin: 0;
  font-size: 14px;
  color: #6B7280;
}
body.contact-page .mg-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
body.contact-page .mg-contact__field--full {
  grid-column: 1 / -1;
}
body.contact-page .mg-contact__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
}
body.contact-page .mg-contact__form .form-control {
  min-height: 48px;
  border-radius: 12px !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  box-shadow: none !important;
  background: #fff !important;
}
body.contact-page .mg-contact__form textarea.form-control {
  min-height: 160px;
  padding-top: 12px;
  resize: vertical;
}
body.contact-page .mg-contact__form .form-control:focus {
  border-color: rgba(97,30,250,.55) !important;
  box-shadow: 0 0 0 3px rgba(97,30,250,.12) !important;
}
body.contact-page .mg-contact__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
body.contact-page .mg-contact__btn {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(97,30,250,.22);
  cursor: pointer;
}
body.contact-page .mg-contact__btn:hover {
  filter: brightness(1.04);
}
body.contact-page .mg-contact__btn--ghost {
  background: #fff;
  color: #4A10D0;
  border: 1px solid #DCCEFE;
  box-shadow: none;
}
body.contact-page .mg-contact__form .loading,
body.contact-page .mg-contact__form .error-message,
body.contact-page .mg-contact__form .sent-message {
  display: none;
}
@media (max-width: 991.98px) {
  body.contact-page .mg-contact__channels {
    grid-template-columns: 1fr 1fr;
  }
  body.contact-page .mg-contact__layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  body.contact-page .mg-contact__channels {
    grid-template-columns: 1fr;
  }
  body.contact-page .mg-contact__grid {
    grid-template-columns: 1fr;
  }
  body.contact-page .mg-contact__panel {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }
  body.contact-page .mg-contact__actions {
    flex-direction: column;
  }
  body.contact-page .mg-contact__btn,
  body.contact-page .mg-contact__btn--ghost {
    width: 100%;
  }
}

/* ========== CS LIST ========== */
body.csList-page .mg-cslist {
  padding: 28px 0 64px !important;
  background: transparent !important;
}
body.csList-page .mg-cslist .container {
  max-width: 1080px;
  margin: 0 auto;
}
body.csList-page .mg-cslist__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
body.csList-page .mg-cslist__summary {
  font-size: 14px;
  color: #64748B;
  font-weight: 600;
}
body.csList-page .mg-cslist__summary strong {
  color: #4A10D0;
  font-weight: 900;
  font-size: 18px;
  margin-right: 4px;
}
body.csList-page .mg-cslist__write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(97,30,250,.22);
  border: 0;
}
body.csList-page .mg-cslist__write:hover {
  filter: brightness(1.04);
}
body.csList-page .mg-cslist__write.is-off {
  background: #E2E8F0;
  color: #64748B !important;
  box-shadow: none;
  cursor: default;
  filter: none;
}
body.csList-page .mg-cslist__alert,
body.contact-page .mg-contact__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  font-size: 13px;
  font-weight: 600;
  word-break: keep-all;
}
body.csList-page .mg-cslist__alert i,
body.contact-page .mg-contact__alert i {
  flex-shrink: 0;
  margin-top: 2px;
}
body.contact-page .mg-contact__alert strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}
body.csList-page .mg-cslist__write--block {
  width: 100%;
  margin-top: 14px;
}
body.csList-page .mg-cslist__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}
body.csList-page .mg-cslist__list {
  display: grid;
  gap: 10px;
}
body.csList-page .mg-cslist__item {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
  overflow: hidden;
}
body.csList-page .mg-cslist__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
}
body.csList-page .mg-cslist__q-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
body.csList-page .mg-cslist__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #C2410C;
  font-size: 11px;
  font-weight: 800;
}
body.csList-page .mg-cslist__item.is-answered .mg-cslist__status {
  background: #F6F2FF;
  border-color: #DCCEFE;
  color: #4A10D0;
}
body.csList-page .mg-cslist__item.is-checking .mg-cslist__status {
  background: #F5F3FF;
  border-color: #DDD6FE;
  color: #6D28D9;
}
body.csList-page .mg-cslist__item.is-done .mg-cslist__status {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}
body.csList-page .mg-cslist__done-note {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  word-break: keep-all;
}
body.csList-page .mg-cslist__q strong {
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.01em;
  word-break: break-word;
}
body.csList-page .mg-cslist__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
}
body.csList-page .mg-cslist__meta span {
  white-space: nowrap;
}
body.csList-page .mg-cslist__q > i {
  color: #94A3B8;
  font-size: 16px;
  transition: transform .18s ease;
  flex: 0 0 auto;
}
body.csList-page .mg-cslist__item.is-open .mg-cslist__q > i {
  transform: rotate(180deg);
  color: #4A10D0;
}
body.csList-page .mg-cslist__a {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(15,23,42,.06);
}
body.csList-page .mg-cslist__ask {
  padding: 14px 0 12px;
}
body.csList-page .mg-cslist__ask h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
}
body.csList-page .mg-cslist__ask p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  word-break: break-word;
}
body.csList-page .mg-cslist__reply {
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
  padding: 14px 14px 12px;
}
body.csList-page .mg-cslist__reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
body.csList-page .mg-cslist__reply-head i {
  color: #4A10D0;
}
body.csList-page .mg-cslist__reply-head strong {
  font-size: 13px;
  font-weight: 900;
  color: #0B1220;
}
body.csList-page .mg-cslist__reply-head span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
}
body.csList-page .mg-cslist__reply-body {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  word-break: break-word;
}
body.csList-page .mg-cslist__empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(74,16,208,.06);
}
body.csList-page .mg-cslist__empty i {
  font-size: 36px;
  color: #C8B0FD;
}
body.csList-page .mg-cslist__empty h2 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0B1220;
}
body.csList-page .mg-cslist__empty p {
  margin: 0 0 18px;
  color: #64748B;
  font-size: 14px;
}
body.csList-page .mg-cslist__aside {
  display: grid;
  gap: 12px;
}
body.csList-page .mg-cslist__help,
body.csList-page .mg-cslist__tips {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
}
body.csList-page .mg-cslist__help i {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F6F2FF;
  color: #4A10D0;
  font-size: 18px;
  margin-bottom: 10px;
}
body.csList-page .mg-cslist__help h3,
body.csList-page .mg-cslist__tips h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
}
body.csList-page .mg-cslist__help p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748B;
}
body.csList-page .mg-cslist__tips ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 991.98px) {
  body.csList-page .mg-cslist__layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  body.csList-page .mg-cslist__q {
    padding: 14px 14px;
  }
  body.csList-page .mg-cslist__a {
    padding: 0 14px 14px;
  }
  body.csList-page .mg-cslist__toolbar {
    align-items: stretch;
  }
  body.csList-page .mg-cslist__write {
    width: 100%;
  }
}

body.product-details-page .product-details.section {
  padding: 28px 0 56px !important;
  background: transparent !important;
}
body.product-details-page .product-details .product-info,
body.product-details-page .product-details .product-images,
body.product-details-page .product-details .info-item {
  background: #fff;
}
body.product-details-page .product-details .product-title {
  color: #0B1220 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em;
}
body.product-details-page .product-details .price .current-price {
  color: #4A10D0 !important;
  font-weight: 900 !important;
}

/* 상세설명 / 특이사항 탭 */
body.product-details-page .mg-detail-tabs {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(74,16,208,.06);
  overflow: hidden;
}
body.product-details-page .mg-detail-tabs > .nav-tabs {
  display: flex;
  gap: 8px;
  margin: 0 !important;
  padding: 14px 16px 0 !important;
  border: 0 !important;
  background: #F8FAFC;
  border-bottom: 1px solid rgba(15,23,42,.06) !important;
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-item {
  margin: 0;
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent !important;
  border-radius: 999px 999px 0 0 !important;
  background: transparent !important;
  color: #64748B !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 12px 18px !important;
  margin: 0 !important;
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link i {
  font-size: 15px;
  color: #94A3B8;
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link:hover {
  color: #4A10D0 !important;
  background: rgba(239,246,255,.8) !important;
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link.active {
  color: #4A10D0 !important;
  background: #fff !important;
  border-color: rgba(15,23,42,.08) rgba(15,23,42,.08) #fff !important;
  box-shadow: 0 -2px 10px rgba(74,16,208,.06);
}
body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link.active i {
  color: #611EFA;
}
body.product-details-page .mg-detail-tabs > .tab-content {
  padding: 0;
  background: #fff;
}
body.product-details-page .mg-detail-panel {
  padding: 28px 28px 32px;
}
body.product-details-page .mg-detail-panel__head {
  margin-bottom: 18px;
}
body.product-details-page .mg-detail-panel__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #4A10D0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
body.product-details-page .mg-detail-panel__head h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
}
body.product-details-page .mg-detail-panel__body {
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
}
body.product-details-page .mg-detail-panel__body p {
  margin: 0;
}
body.product-details-page .mg-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.product-details-page .mg-specs-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.07);
}
body.product-details-page .mg-specs-card__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #4A10D0;
  font-size: 18px;
}
body.product-details-page .mg-specs-card__content h5 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
}
body.product-details-page .mg-specs-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
body.product-details-page .mg-specs-list > div {
  display: grid;
  gap: 4px;
}
body.product-details-page .mg-specs-list dt {
  font-size: 12px;
  font-weight: 800;
  color: #4A10D0;
  letter-spacing: .02em;
}
body.product-details-page .mg-specs-list dd {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  body.product-details-page .mg-detail-tabs > .nav-tabs {
    padding: 12px 12px 0 !important;
    gap: 4px;
  }
  body.product-details-page .mg-detail-tabs > .nav-tabs .nav-link {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  body.product-details-page .mg-detail-panel {
    padding: 20px 16px 24px;
  }
  body.product-details-page .mg-specs-grid {
    grid-template-columns: 1fr;
  }
}

body.notice-page .faq.section {
  padding: 28px 0 56px !important;
  background: transparent !important;
}
body.notice-page .faq-list .faq-item {
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(74,16,208,.05) !important;
  margin-bottom: 12px !important;
  padding: 18px 20px !important;
  transition: border-color .18s, box-shadow .18s;
}
body.notice-page .faq-list .faq-item:hover,
body.notice-page .faq-list .faq-item.faq-active {
  border-color: rgba(97,30,250,.28) !important;
  box-shadow: 0 12px 28px rgba(74,16,208,.1) !important;
}
body.notice-page .faq-list .faq-item h3,
body.notice-page .faq-list .faq-item .faq-header {
  color: #0B1220 !important;
  font-weight: 800 !important;
}
body.notice-page .faq-list .faq-item .faq-toggle {
  color: #4A10D0 !important;
}

/* ========== ACCOUNT (MGIFT) ========== */
body.account-page .account.section,
body.account-page .mg-account {
  padding: 8px 0 72px !important;
  background: transparent !important;
}
body.account-page .account .container::before,
body.account-page .account .container::after,
body.account-page .account > .container::before,
body.account-page .account > .container::after,
body.account-page .mg-account > .container::before,
body.account-page .mg-account > .container::after,
body.account-page .mg-account .container::before,
body.account-page .mg-account .container::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body.account-page .account .profile-menu,
body.account-page .account .content-area {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

body.account-page .mg-account__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}
body.account-page .mg-account__tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.1);
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
body.account-page .mg-account__tabs button.is-active {
  border-color: #C8B0FD;
  background: #F6F2FF;
  color: #4A10D0;
}

body.account-page .mg-account__layout {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15,23,42,.05);
  overflow: hidden;
  min-height: 520px;
}
body.account-page .mg-account__aside {
  padding: 22px 16px;
  background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
  border-right: 1px solid rgba(15,23,42,.07);
}
body.account-page .mg-account__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}
body.account-page .mg-account__avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}
body.account-page .mg-account__who {
  min-width: 0;
  display: grid;
  gap: 2px;
}
body.account-page .mg-account__who strong {
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.account-page .mg-account__who span {
  font-size: 12px;
  font-weight: 650;
  color: #64748B;
}
body.account-page .mg-account__nav .nav {
  gap: 4px;
}
body.account-page .mg-account__nav .nav-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.account-page .mg-account__nav .nav-link i {
  width: 18px;
  text-align: center;
  color: #94A3B8;
  font-size: 16px;
}
body.account-page .mg-account__nav .nav-link span {
  flex: 1;
  text-align: left;
}
body.account-page .mg-account__count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}
body.account-page .mg-account__nav .nav-link:hover {
  background: #F1F5F9 !important;
  color: #0B1220 !important;
}
body.account-page .mg-account__nav .nav-link.active {
  background: #F6F2FF !important;
  color: #4A10D0 !important;
}
body.account-page .mg-account__nav .nav-link.active i {
  color: #4A10D0;
}
body.account-page .mg-account__nav .nav-link.active .mg-account__count {
  background: #4A10D0;
  color: #fff;
}

body.account-page .mg-account__main {
  min-width: 0;
  padding: 26px 28px 30px;
  background: #fff;
}
body.account-page .mg-account__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}
body.account-page .mg-account__panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.02em;
  word-break: keep-all;
}
body.account-page .mg-account__panel-head p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  word-break: keep-all;
}

body.account-page .mg-account .orders-grid {
  display: grid;
  gap: 12px;
}
body.account-page .mg-account .order-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  overflow: hidden;
}
body.account-page .mg-account .order-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
body.account-page .mg-account .order-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
body.account-page .mg-account .order-id .label {
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
}
body.account-page .mg-account .order-id .value {
  color: #0B1220;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
body.account-page .mg-account .order-date {
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  word-break: keep-all;
}
body.account-page .mg-account .order-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
}
body.account-page .mg-account .product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.account-page .mg-account .product-grid img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
}
body.account-page .mg-account .order-info {
  flex: 1;
  min-width: 180px;
  display: grid;
  gap: 8px;
}
body.account-page .mg-account .info-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
}
body.account-page .mg-account .info-row .price {
  color: #0B1220;
  font-weight: 900;
}
body.account-page .mg-account .status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  word-break: keep-all;
}
body.account-page .mg-account .status.delivered {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
body.account-page .mg-account .status.cancelled {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
body.account-page .mg-account .status.shipped {
  background: #F6F2FF;
  color: #4A10D0;
  border: 1px solid #DCCEFE;
}
body.account-page .mg-account .order-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}
body.account-page .mg-account .order-footer .btn-track,
body.account-page .mg-account .order-footer .btn-details {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.1);
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body.account-page .mg-account .order-footer .btn-details {
  border-color: #DCCEFE;
  background: #F6F2FF;
  color: #4A10D0;
}
body.account-page .mg-account .tracking-info,
body.account-page .mg-account .order-details {
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.07);
  background: #F8FAFC;
}

body.account-page .mg-account .settings-content {
  display: grid;
  gap: 12px;
}
body.account-page .mg-account .settings-section {
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 14px;
  padding: 18px;
}
body.account-page .mg-account .settings-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  color: #0B1220;
}
body.account-page .mg-account .settings-section .form-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
body.account-page .mg-account .settings-section .form-control {
  border-radius: 10px;
  border-color: #E2E8F0;
  min-height: 44px;
  background: #fff;
}
body.account-page .mg-account .settings-section .form-control:focus {
  border-color: #C8B0FD;
  box-shadow: 0 0 0 3px rgba(97,30,250,.15);
}
body.account-page .mg-account .danger-zone {
  border-color: #FECACA !important;
  background: #FFF7F7 !important;
}
body.account-page .mg-account .danger-zone h3 {
  color: #B91C1C;
}

body.account-page .mg-account__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 40px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(148,163,184,.55);
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(219,234,254,.75), transparent 70%),
    #F8FAFC;
}
body.account-page .mg-account__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #E9E0FE;
  box-shadow: 0 8px 20px rgba(74,16,208,.08);
  color: #4A10D0;
  font-size: 28px;
  margin-bottom: 16px;
}
body.account-page .mg-account__empty h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0B1220;
  word-break: keep-all;
}
body.account-page .mg-account__empty p {
  margin: 0 0 18px;
  max-width: 320px;
  color: #64748B;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}
body.account-page .mg-account__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #4A10D0;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
body.account-page .mg-account__empty-btn:hover {
  background: #3D0EBE;
}

body.account-page .mg-account__pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
body.account-page .mg-account__pager .page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
body.account-page .mg-account__pager .btn-primary {
  background: #4A10D0 !important;
  border-color: #4A10D0 !important;
}
body.account-page .mg-account__pager-meta {
  margin-left: 4px;
  color: #64748B;
  font-size: 13px;
}
body.account-page .mg-account .btn-save,
body.account-page .mg-account .form-buttons .btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #4A10D0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
body.account-page .mg-account .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #FECACA;
  border-radius: 10px;
  background: #fff;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 800;
}
body.account-page .mg-account .timeline-item .timeline-icon { color: #4A10D0; }
body.account-page .mg-account .timeline-item.completed .timeline-icon { color: #16A34A; }

@media (max-width: 991.98px) {
  body.account-page .mg-account__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  body.account-page .mg-account__aside {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
  }
  body.account-page .mg-account__main {
    padding: 20px 16px 22px;
  }
  body.account-page .mg-account .order-footer .btn-track,
  body.account-page .mg-account .order-footer .btn-details {
    flex: 1 1 auto;
  }
  body.account-page .mg-account__empty {
    min-height: 260px;
  }
}

/* ========== CHECKOUT AGREE + CHECKOUT FORM (MGIFT) ========== */
body.checkout-page .mg-checkout-agree,
body.checkout-page .mg-checkout {
  padding: 28px 0 64px !important;
  background: transparent !important;
}
body.checkout-page .mg-checkout-agree > .container::before,
body.checkout-page .mg-checkout-agree > .container::after,
body.checkout-page .mg-checkout > .container::before,
body.checkout-page .mg-checkout > .container::after {
  content: none !important;
  display: none !important;
}
body.checkout-page .mg-checkout-agree .agree-container {
  max-width: 760px;
  margin: 0 auto;
}
body.checkout-page .mg-checkout-agree__progress {
  max-width: 760px;
  margin: 0 auto 20px;
}
body.checkout-page .mg-checkout-agree .progress-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
body.checkout-page .mg-checkout-agree .progress-step-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 800;
}
body.checkout-page .mg-checkout-agree .progress-step-item span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #E2E8F0;
  color: #64748B;
  font-size: 11px;
}
body.checkout-page .mg-checkout-agree .progress-step-item.active {
  border-color: #C8B0FD;
  background: #F6F2FF;
  color: #4A10D0;
}
body.checkout-page .mg-checkout-agree .progress-step-item.active span {
  background: #4A10D0;
  color: #fff;
}
body.checkout-page .mg-checkout-agree .progress-step-item.done {
  border-color: #86EFAC;
  background: #F0FDF4;
  color: #15803D;
}
body.checkout-page .mg-checkout-agree .progress-step-item.done span {
  background: #16A34A;
  color: #fff;
}
body.checkout-page .mg-checkout-agree .agree-step {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
}
body.checkout-page .mg-checkout-agree .agree-step.locked {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(.25);
}
body.checkout-page .mg-checkout-agree .agree-step.completed {
  border-color: #86EFAC;
  background: linear-gradient(180deg, #F0FDF4, #fff);
}
body.checkout-page .mg-checkout-agree .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}
body.checkout-page .mg-checkout-agree .agree-step.completed .step-badge {
  background: linear-gradient(135deg, #16A34A, #4ADE80);
}
body.checkout-page .mg-checkout-agree .step-title {
  font-size: 18px;
  font-weight: 900;
  color: #0B1220;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
body.checkout-page .mg-checkout-agree .step-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #F8FAFC;
  border-radius: 12px;
  border-left: 4px solid #5514E8;
}
body.checkout-page .mg-checkout-agree .integrated-safe-box {
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  padding: 16px;
  background: #F8FAFC;
}
body.checkout-page .mg-checkout-agree .integrated-safe-title {
  font-size: 14px;
  font-weight: 800;
  color: #0B1220;
  line-height: 1.55;
  margin-bottom: 12px;
  word-break: keep-all;
}
body.checkout-page .mg-checkout-agree .integrated-safe-list {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}
body.checkout-page .mg-checkout-agree .question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.checkout-page .mg-checkout-agree .question-options label {
  flex: 1 1 140px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: #334155;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
body.checkout-page .mg-checkout-agree .question-options label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.checkout-page .mg-checkout-agree .question-options label.selected-no {
  border-color: #86EFAC;
  background: #F0FDF4;
  color: #15803D;
}
body.checkout-page .mg-checkout-agree .question-options label.selected-yes {
  border-color: #FCA5A5;
  background: #FEF2F2;
  color: #B91C1C;
}
body.checkout-page .mg-checkout-agree .warning-banner,
body.checkout-page .mg-checkout-agree .success-banner {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
body.checkout-page .mg-checkout-agree .warning-banner.show,
body.checkout-page .mg-checkout-agree .success-banner.show {
  display: flex;
}
body.checkout-page .mg-checkout-agree .warning-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}
body.checkout-page .mg-checkout-agree .success-banner {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}
body.checkout-page .mg-checkout-agree .notice-box,
body.checkout-page .mg-checkout-agree .notice-box-red {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}
body.checkout-page .mg-checkout-agree .notice-box {
  background: #F6F2FF;
  border: 1px solid #DCCEFE;
  color: #2A0878;
}
body.checkout-page .mg-checkout-agree .notice-box-red {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #7F1D1D;
}
body.checkout-page .mg-checkout-agree .notice-box > i,
body.checkout-page .mg-checkout-agree .notice-box-red > i {
  margin-top: 2px;
  flex: 0 0 auto;
}
body.checkout-page .mg-checkout-agree .notice-box__body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
body.checkout-page .mg-checkout-agree .notice-box__body strong {
  font-weight: 900;
}
body.checkout-page .mg-checkout-agree .final-consent {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
}
body.checkout-page .mg-checkout-agree .final-consent-text {
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
  margin-bottom: 14px;
  line-height: 1.5;
}
body.checkout-page .mg-checkout-agree .agree-submit-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
body.checkout-page .mg-checkout-agree__back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.1);
  background: #fff;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
body.checkout-page .mg-checkout-agree .agree-submit-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  height: auto;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(97,30,250,.22);
  cursor: pointer;
  aspect-ratio: auto;
}
body.checkout-page .mg-checkout-agree .agree-submit-btn i {
  flex: 0 0 auto;
  font-size: 1.15em;
  line-height: 1;
}
body.checkout-page .mg-checkout-agree .agree-submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(.2);
}
body.checkout-page .mg-checkout .container {
  max-width: 1120px;
}
body.checkout-page .mg-checkout .checkout-section {
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(74,16,208,.05) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
}
body.checkout-page .mg-checkout .checkout-section .section-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid rgba(15,23,42,.06) !important;
  padding: 16px 20px !important;
}
body.checkout-page .mg-checkout .checkout-section .section-header h3 {
  color: #0B1220 !important;
  font-weight: 900;
  font-size: 16px;
}
body.checkout-page .mg-checkout .checkout-section .section-number {
  background: linear-gradient(135deg, #A078FC, #4A10D0) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800;
}
@media (max-width: 575.98px) {
  body.checkout-page .mg-checkout-agree .agree-step {
    padding: 18px 14px;
  }
  body.checkout-page .mg-checkout-agree .progress-step-item {
    font-size: 12px;
  }
  body.checkout-page .mg-checkout-agree .agree-submit-container {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  body.checkout-page .mg-checkout-agree__back,
  body.checkout-page .mg-checkout-agree .agree-submit-btn {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 52px;
    max-height: none;
  }
}

/* ========== CART (MGIFT) ========== */
body.cart-page .mg-cart {
  padding: 28px 0 64px !important;
  background: transparent !important;
}
body.cart-page .mg-cart .container {
  max-width: 1120px;
  margin: 0 auto;
}
body.cart-page .mg-cart > .container::before,
body.cart-page .mg-cart > .container::after {
  content: none !important;
  display: none !important;
}
body.cart-page .mg-cart__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
body.cart-page .mg-cart__summary-count {
  font-size: 14px;
  color: #64748B;
  font-weight: 600;
}
body.cart-page .mg-cart__summary-count strong {
  color: #4A10D0;
  font-weight: 900;
  font-size: 18px;
  margin-right: 4px;
}
body.cart-page .mg-cart__browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.1);
  background: #fff;
  color: #0B1220 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
body.cart-page .mg-cart__browse:hover {
  border-color: #C8B0FD;
  color: #4A10D0 !important;
}
body.cart-page .mg-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}
body.cart-page .mg-cart__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.9fr 0.8fr;
  gap: 12px;
  padding: 0 18px 10px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
body.cart-page .mg-cart__head span:not(:first-child) {
  text-align: center;
}
body.cart-page .cart-items {
  display: grid;
  gap: 10px;
}
body.cart-page .cart-item.mg-cart__item,
body.cart-page .mg-cart__item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
  padding: 16px 48px 16px 16px;
  overflow: hidden;
}
body.cart-page .mg-cart__item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.9fr 0.8fr;
  gap: 12px;
  align-items: center;
}
body.cart-page .mg-cart__product .product-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
body.cart-page .mg-cart__product .product-image {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,.06);
}
body.cart-page .mg-cart__product .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.cart-page .mg-cart__product .product-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
  letter-spacing: -.01em;
  word-break: break-word;
}
body.cart-page .mg-cart__product .product-meta {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 4px;
}
body.cart-page .mg-cart__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  margin-bottom: 4px;
}
body.cart-page .mg-cart__price,
body.cart-page .mg-cart__qty,
body.cart-page .mg-cart__total {
  text-align: center;
}
body.cart-page .current-price,
body.cart-page .item-total span {
  font-size: 15px;
  font-weight: 900;
  color: #0B1220;
}
body.cart-page .item-total span {
  color: #4A10D0;
}
body.cart-page .quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body.cart-page .quantity-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: #F8FAFC;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.cart-page .quantity-btn:hover {
  background: #F6F2FF;
  color: #4A10D0;
}
body.cart-page .quantity-input {
  width: 48px;
  height: 36px;
  border: 0;
  text-align: center;
  font-weight: 800;
  color: #0B1220;
  background: #fff;
  -moz-appearance: textfield;
}
body.cart-page .quantity-input::-webkit-outer-spin-button,
body.cart-page .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.cart-page .remove-item-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(220,38,38,.15);
}
body.cart-page .remove-item-btn:hover {
  background: #DC2626;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
body.cart-page .cart-limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
body.cart-page .cart-limit-badge i {
  font-size: 11px;
  flex-shrink: 0;
}
body.cart-page .cart-limit-badge em {
  font-style: normal;
  font-weight: 700;
}
body.cart-page .cart-limit-badge.mobile {
  background: #F6F2FF;
  color: #3D0EBE;
  border: 1px solid #DCCEFE;
}
body.cart-page .cart-limit-badge.mobile em { color: #5514E8; }
body.cart-page .cart-limit-badge.jiryu {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}
body.cart-page .cart-limit-badge.jiryu em { color: #B45309; }
body.cart-page .mg-cart__empty {
  text-align: center;
  padding: 56px 20px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(74,16,208,.06);
}
body.cart-page .mg-cart__empty i {
  font-size: 42px;
  color: #C8B0FD;
}
body.cart-page .mg-cart__empty h2 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0B1220;
}
body.cart-page .mg-cart__empty p {
  margin: 0 0 18px;
  color: #64748B;
  font-size: 14px;
}
body.cart-page .mg-cart__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #A078FC, #4A10D0);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(97,30,250,.22);
}
body.cart-page .mg-cart__aside {
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 96px;
  z-index: 2;
}
/* main.css .cart-summary sticky 와 충돌 → 주문합계만 sticky 되면 구매안내가 안으로 겹침 */
body.cart-page .cart .cart-summary,
body.cart-page .mg-cart__summary.cart-summary,
body.cart-page .mg-cart__summary {
  position: static !important;
  top: auto !important;
}
body.cart-page .btn-add-more-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #5514E8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(85,20,232,.18);
}
body.cart-page .btn-add-more-top:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(85,20,232,.28);
}
body.cart-page .btn-add-more-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8B0FD;
}
body.cart-page .btn-add-more-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
body.cart-page .btn-add-more-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
body.cart-page .btn-add-more-sub {
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
body.cart-page .btn-add-more-arrow {
  margin-left: auto;
  color: rgba(255,255,255,.4);
}
body.cart-page .mg-cart__summary {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
}
body.cart-page .mg-cart__summary .summary-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  color: #0B1220;
}
body.cart-page .mg-cart__summary .summary-item,
body.cart-page .mg-cart__summary .summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
body.cart-page .mg-cart__summary .summary-label {
  color: #64748B;
  font-weight: 600;
}
body.cart-page .mg-cart__summary .summary-value {
  color: #0B1220;
  font-weight: 800;
}
body.cart-page .mg-cart__summary .summary-item.discount .summary-value {
  color: #94A3B8;
}
body.cart-page .mg-cart__summary .summary-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
body.cart-page .mg-cart__summary .summary-total .summary-label,
body.cart-page .mg-cart__summary .summary-total .summary-value {
  font-size: 16px;
  font-weight: 900;
  color: #0B1220;
}
body.cart-page .mg-cart__summary .summary-total .summary-value {
  color: #4A10D0;
}
body.cart-page .checkout-button {
  margin-top: 14px;
}
body.cart-page .mg-cart__checkout,
body.cart-page .checkout-button .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #A078FC, #4A10D0) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(97,30,250,.22);
}
body.cart-page .mg-cart__checkout:hover,
body.cart-page .checkout-button .btn:hover {
  filter: brightness(1.04);
  color: #fff !important;
}
body.cart-page .continue-shopping .btn-link {
  color: #64748B !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.cart-page .continue-shopping .btn-link:hover {
  color: #4A10D0 !important;
}
body.cart-page .order-limit-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7f7, #fff);
  border: 1px solid #ffdede;
  color: #7f1d1d;
  font-size: 13px;
}
body.cart-page .order-limit-note .bi {
  flex: 0 0 auto;
  font-size: 18px;
  color: #b91c1c;
  background: rgba(185,28,28,.06);
  padding: 6px;
  border-radius: 8px;
}
body.cart-page .order-limit-title {
  font-weight: 800;
  color: #991b1b;
  font-size: 13px;
}
body.cart-page .order-limit-amount {
  font-weight: 900;
  color: #b91c1c;
  font-size: 15px;
}
body.cart-page .order-limit-sub {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}
body.cart-page .mg-cart__tips {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(74,16,208,.05);
}
body.cart-page .mg-cart__tips h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: #0B1220;
}
body.cart-page .mg-cart__tips ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: #64748B;
  font-size: 13px;
  line-height: 1.7;
}
body.cart-page .mg-cart__tips a {
  color: #4A10D0;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 991.98px) {
  body.cart-page .mg-cart__layout {
    grid-template-columns: 1fr;
  }
  body.cart-page .mg-cart__aside {
    position: static;
  }
  body.cart-page .mg-cart__item-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.cart-page .mg-cart__price,
  body.cart-page .mg-cart__qty,
  body.cart-page .mg-cart__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 10px;
    border-top: 1px dashed rgba(15,23,42,.08);
  }
  body.cart-page .mg-cart__label {
    margin: 0;
  }
}
@media (max-width: 575.98px) {
  body.cart-page .mg-cart__item {
    padding: 14px 44px 14px 14px;
  }
  body.cart-page .remove-item-btn {
    top: 12px;
    right: 8px;
    transform: none;
  }
  body.cart-page .remove-item-btn:hover {
    transform: scale(1.08);
  }
  body.cart-page .cart-limit-badge {
    white-space: normal;
    font-size: 10.5px;
    flex-wrap: wrap;
  }
  body.cart-page .mg-cart__product .product-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
}

body.checkout-page .checkout-section {
  background: #fff !important;
  border: 1px solid var(--tg-line) !important;
  border-radius: var(--tg-r) !important;
  box-shadow: var(--tg-sh) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
}

body.checkout-page .checkout-section:hover {
  box-shadow: var(--tg-sh) !important;
}

body.checkout-page .checkout-section .section-header {
  background: var(--tg-soft) !important;
  color: var(--tg-ink);
  border-bottom: 1px solid rgba(97,30,250,0.14) !important;
  padding: 16px 20px !important;
}

body.checkout-page .checkout-section .section-header h3 {
  color: var(--tg-ink) !important;
  font-weight: 800;
}

body.checkout-page .checkout-section .section-number {
  background: var(--tg-c) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800;
}

body.checkout-page .checkout .section-content .payment-options.mall-pay-options,
body.checkout-page .mall-pay-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  border: 0 !important;
  margin: 0 0 8px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

body.checkout-page .mall-pay-options .payment-option {
  flex: none !important;
  min-width: 0 !important;
  width: 100% !important;
  border: 1px solid rgba(15,23,42,.1) !important;
  border-radius: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  position: relative;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.checkout-page .mall-pay-options .payment-option input[type=radio] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none;
}

body.checkout-page .mall-pay-options .payment-option label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 64px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  text-align: left !important;
  height: auto !important;
  cursor: pointer;
  box-shadow: none !important;
}

body.checkout-page .mall-pay-options .payment-option.active {
  background: #F6F2FF !important;
  border-color: #C8B0FD !important;
  box-shadow: 0 0 0 3px rgba(97,30,250,.1);
}

body.checkout-page .mall-pay-options .payment-option.active .payment-label,
body.checkout-page .mall-pay-options .payment-option.active .payment-icon {
  color: #4A10D0 !important;
}

body.checkout-page .mall-pay-options .payment-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  border-radius: 12px;
  background: #F6F2FF;
  color: #4A10D0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem !important;
  flex: 0 0 auto;
}

body.checkout-page .mall-pay-options .payment-option.active .payment-icon {
  background: #fff;
  color: #4A10D0;
}

body.checkout-page .mall-pay-options .payment-label {
  font-weight: 800;
  font-size: 15px;
  color: #0B1220;
  line-height: 1.35;
}

body.checkout-page .mall-pay-options .payment-option.disabled-option {
  opacity: .55;
  background: #F8FAFC !important;
}

body.checkout-page .mall-pay-options .payment-option.disabled-option label {
  cursor: not-allowed;
  pointer-events: none;
}

#receiveEmail {
  border-radius: var(--tg-rs) !important;
  border: 1px solid var(--tg-line2) !important;
  min-height: 50px;
  background: #fff;
}

#receiveEmail:focus {
  border-color: rgba(97,30,250,0.55) !important;
  box-shadow: 0 0 0 3px rgba(97,30,250,0.12);
}

#btnMatchEmail {
  border-radius: var(--tg-rs) !important;
  border: 1px solid rgba(97,30,250,0.35) !important;
  color: var(--tg-cd) !important;
  background: var(--tg-soft);
  font-weight: 800;
}

.hx-friend-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(97,30,250,0.22);
  border-radius: var(--tg-r);
  background: var(--tg-soft);
}

.hx-friend-panel .hx-v {
  font-weight: 800;
  white-space: nowrap;
  color: var(--tg-ink);
}

body.checkout-page .place-order-btn,
body.checkout-page .btn-primary.place-order-btn {
  border-radius: var(--tg-rs) !important;
  border: 0 !important;
  min-height: 56px;
  background: linear-gradient(135deg, #A078FC, #4A10D0) !important;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(97,30,250,0.24) !important;
}

body.account-page .order-card,
body.account-page .orders-grid > * {
  border-radius: var(--tg-r) !important;
  border: 1px solid var(--tg-line) !important;
  box-shadow: var(--tg-sh) !important;
  background: #fff;
}

.badge-pay-method {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tg-soft);
  color: var(--tg-cd);
  border: 1px solid #DCCEFE;
  font-size: 12px;
  font-weight: 800;
}

/* Virtual account */
body.checkout-page.vact-alone,
.vact-wrap {
  background: var(--tg-paper);
}

.vact-wrap h1 {
  font-weight: 900;
  font-size: 2rem;
  color: var(--tg-ink);
}

.vact-card {
  border-radius: var(--tg-r) !important;
  border: 1px solid rgba(97,30,250,0.22) !important;
  box-shadow: var(--tg-sh) !important;
  background: #fff;
}

.vact-amt { color: var(--tg-cd) !important; font-weight: 900; }

/* ========== FOOTER: white refined (전체 페이지 공통) ========== */
.footer {
  background: #ffffff !important;
  color: #64748B !important;
  border-top: 1px solid rgba(15,23,42,.07);
  margin-top: 0;
}
.footer a {
  color: #334155 !important;
  text-decoration: none !important;
  transition: color .18s;
}
.footer a:hover {
  color: #4A10D0 !important;
}
.footer .footer-main,
.footer .footer-top {
  padding: 56px 0 40px !important;
  border-bottom: 1px solid rgba(15,23,42,.06) !important;
  background: #fff !important;
}
.footer .footer-bottom {
  padding: 18px 0 !important;
  background: #F8FAFC !important;
  border-top: 0 !important;
}
.footer .sitename {
  color: #0B1220 !important;
}
.footer h4,
.footer h5,
.footer .footer-widget h4 {
  color: #0B1220 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  margin-bottom: 16px !important;
}
.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-links li {
  margin-bottom: 10px;
  color: #64748B;
  font-size: 14px;
  font-weight: 500;
}
.footer .footer-links a {
  color: #475569 !important;
  font-weight: 600;
}
.footer .footer-links a:hover {
  color: #4A10D0 !important;
}
.footer .footer-about p,
.footer .footer-widget p,
.footer .contact-item {
  color: #64748B !important;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 6px;
}
.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer .contact-item i {
  color: #611EFA;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.footer .legal-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  color: #475569 !important;
  font-size: 12.5px;
  font-weight: 700;
}
.footer .legal-links a:hover {
  border-color: rgba(97,30,250,.35);
  color: #4A10D0 !important;
  background: #F6F2FF;
}
.footer .copyright,
.footer .copyright p {
  color: #94A3B8 !important;
  font-size: 13px;
  margin: 0;
}
.footer .copyright .sitename {
  color: #0B1220 !important;
  font-weight: 800;
}
.footer .payment-methods,
.footer .app-buttons,
.footer .social-links,
.footer .social-icons {
  display: none !important;
}

/* index refined footer layout */
.footer .mg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 36px 28px;
}
.footer .mg-footer-logo img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.footer .mg-footer-lead {
  font-size: 16px;
  font-weight: 700;
  color: #0B1220 !important;
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.footer .mg-footer-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.footer .mg-footer-meta li {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  display: flex;
  gap: 10px;
}
.footer .mg-footer-meta li span {
  min-width: 52px;
  color: #94A3B8;
  font-weight: 700;
  font-size: 12px;
}
.footer .mg-footer-help {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F6F2FF;
  border: 1px solid rgba(97,30,250,.16);
  color: #475569 !important;
  font-size: 13px;
  line-height: 1.55;
}
.footer .mg-footer-help a {
  color: #4A10D0 !important;
  font-weight: 800;
}
.footer .mg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .footer .mg-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer .mg-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 575.98px) {
  .footer .mg-footer-grid {
    grid-template-columns: 1fr;
  }
  .footer .footer-main,
  .footer .footer-top {
    padding: 40px 0 28px !important;
  }
  .footer .mg-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes tgReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   GLOBAL PREMIUM POLISH — 카드 / 버튼 / 배지 (전체 페이지 공통)
   ========================================================= */
.category-card,
.product-card,
.product-item,
.order-card,
.blog-card,
.checkout-section,
.cart-summary,
.summary-card {
  background: #fff !important;
  border: 1px solid var(--tg-line) !important;
  border-radius: var(--tg-r) !important;
  box-shadow: var(--tg-sh) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.product-card:hover,
.product-item:hover {
  transform: translateY(-4px);
  border-color: rgba(97,30,250,0.32) !important;
  box-shadow: var(--tg-sh-lg) !important;
}

.btn-primary,
.btn-shop,
.place-order-btn {
  background: linear-gradient(135deg, var(--tg-cl), var(--tg-cd)) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800;
  border-radius: var(--tg-rs) !important;
  box-shadow: 0 8px 20px rgba(97,30,250,0.22) !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-shop:hover,
.place-order-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.badge-pay-method,
.discount-badge,
.promo-badge {
  background: var(--tg-soft) !important;
  color: var(--tg-cd) !important;
  border: 1px solid var(--tg-soft2) !important;
  font-weight: 800;
}

/* =========================================================
   GLOBAL TYPOGRAPHY / SECTION / FORM / TABLE 정돈
   ========================================================= */
.section {
  padding: 72px 0;
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 900;
  color: var(--tg-ink);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tg-cl), var(--tg-cd));
}

.section-title p {
  color: var(--tg-mute);
  font-size: 1rem;
  margin-bottom: 0;
}

.light-background {
  background: var(--tg-paper) !important;
}

/* 페이지 타이틀 / 브레드크럼 */
.page-title {
  background: linear-gradient(135deg, var(--tg-soft), #fff) !important;
  border-bottom: 1px solid var(--tg-line);
  padding: 34px 0 !important;
}

.page-title h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--tg-ink);
  letter-spacing: -0.025em;
}

.page-title .breadcrumbs ol,
.breadcrumbs ol {
  color: var(--tg-mute);
  font-size: 0.9rem;
}

.breadcrumbs ol a {
  color: var(--tg-cd);
}

/* 폼 요소 공통 */
.form-control,
.form-select,
textarea.form-control {
  border: 1px solid var(--tg-line2);
  border-radius: var(--tg-rs);
  min-height: 46px;
  color: var(--tg-ink);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(97,30,250,0.5);
  box-shadow: 0 0 0 3px rgba(97,30,250,0.12);
}

.form-label {
  font-weight: 700;
  color: var(--tg-ink);
  font-size: 0.92rem;
}

.btn-outline-primary,
.btn-collection {
  border: 1px solid var(--tg-soft2) !important;
  color: var(--tg-cd) !important;
  background: #fff !important;
  border-radius: var(--tg-rs) !important;
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-collection:hover {
  background: var(--tg-soft) !important;
  border-color: rgba(97,30,250,0.4) !important;
}

/* 테이블 */
.table > :not(caption) > * > * {
  padding: 14px 12px;
  border-color: var(--tg-line);
}

.table thead th {
  background: var(--tg-paper);
  color: var(--tg-ink);
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--tg-line2) !important;
  white-space: nowrap;
}

/* 페이지네이션 */
.pagination .page-link {
  border: 1px solid var(--tg-line);
  color: var(--tg-txt);
  border-radius: 10px;
  margin: 0 3px;
  font-weight: 700;
}

.pagination .page-item.active .page-link {
  background: var(--tg-c);
  border-color: var(--tg-c);
  color: #fff;
}

/* 가격 강조 */
.price,
.product-price,
.amount {
  color: var(--tg-cd) !important;
  font-weight: 800;
}

/* 스크롤 탑 버튼 */
.scroll-top {
  background: linear-gradient(135deg, var(--tg-cl), var(--tg-cd)) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(97,30,250,0.28) !important;
}

/* =========================================================
   MOBILE NAVIGATION — 프리미엄 슬라이드 패널 (전체 페이지 공통)
   ========================================================= */
@media (max-width: 1199.98px) {
  .mobile-nav-toggle {
    font-size: 26px !important;
    color: var(--tg-ink) !important;
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 0 !important;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-toggle:hover {
    background: var(--tg-soft);
  }

  /* 열렸을 때 닫기 버튼: 화면 기준 고정 (부모 기준 absolute 문제 제거) */
  .mobile-nav-active .mobile-nav-toggle {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff !important;
    z-index: 10001;
  }

  /* 오버레이 */
  .mobile-nav-active .navmenu {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    background: rgba(6, 10, 18, 0.5) !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 9998;
  }

  /* 헤더가 fixed 기준(containing block)이 되지 않도록 방지 */
  .header,
  .header-nav,
  .header-nav > .container-fluid,
  .header-nav .position-relative {
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    perspective: none !important;
  }

  .mobile-nav-active .header-nav,
  .mobile-nav-active .header-nav > .container-fluid,
  .mobile-nav-active .header-nav .position-relative {
    overflow: visible !important;
    position: static !important;
  }

  /*
    핵심 수정: main.css 는 .navmenu ul 에 position:absolute + inset(60/20/20/20) 를 주고 있어
    height 가 부모(.position-relative, 사실상 높이 0) 기준으로 계산되면서
    첫 항목(홈으로)만 보이고 나머지가 잘렸음. inset/position 을 완전히 리셋한다.
  */
  .mobile-nav-active .navmenu > ul {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: min(88vw, 350px);
    max-width: 100%;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    max-height: 100%;
    margin: 0 !important;
    padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: -20px 0 50px rgba(6,10,18,0.32) !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: tgSlideIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* 패널 상단 브랜드 헤더 */
  .mobile-nav-active .navmenu > ul::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: 112px;
    padding: 0;
    margin-bottom: 8px;
    background-color: transparent;
    background-image:
      url("/assets/img/h_ticket_original_with_ribbon_right.png?v20260922r"),
      linear-gradient(#ffffff, #ffffff),
      linear-gradient(135deg, var(--tg-c), var(--tg-cd));
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position:
      30px calc(100% - 22px),
      18px calc(100% - 12px),
      center;
    background-size:
      auto 36px,
      230px 56px,
      cover;
    border-radius: 0;
  }

  .navmenu ul li {
    min-width: 0;
  }

  /* 1depth 항목 */
  .mobile-nav-active .navmenu > ul > li {
    flex: 0 0 auto;
    margin: 0 14px;
    border-bottom: 1px solid var(--tg-line);
  }

  .mobile-nav-active .navmenu > ul > li:last-child {
    border-bottom: 0;
  }

  .mobile-nav-active .navmenu > ul > li > a {
    padding: 16px 8px !important;
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--tg-ink) !important;
    letter-spacing: -0.01em;
  }

  .mobile-nav-active .navmenu > ul > li > a.active {
    color: var(--tg-c) !important;
  }

  .navmenu a:hover,
  .navmenu a.active {
    color: var(--tg-c) !important;
  }

  /* 드롭다운 토글 아이콘 */
  .navmenu a .toggle-dropdown {
    width: 28px !important;
    height: 28px !important;
    background: var(--tg-soft) !important;
    color: var(--tg-cd) !important;
    flex: 0 0 auto;
  }

  .navmenu .active .toggle-dropdown,
  .navmenu .dropdown-active > a .toggle-dropdown {
    background: var(--tg-c) !important;
    color: #fff !important;
  }

  /* 2depth / 3depth */
  .navmenu .dropdown ul {
    position: static !important;
    inset: auto !important;
    background: var(--tg-paper) !important;
    border: 0 !important;
    border-radius: 12px !important;
    margin: 2px 0 12px !important;
    padding: 6px 4px !important;
    box-shadow: none !important;
    overflow: visible;
  }

  .navmenu .dropdown ul ul {
    background: transparent !important;
    margin: 0 0 0 8px !important;
  }

  .navmenu .dropdown > .dropdown-active {
    background: var(--tg-paper) !important;
  }

  .navmenu .dropdown ul a {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--tg-txt) !important;
    padding: 11px 14px !important;
  }

  .navmenu .dropdown ul a:hover {
    color: var(--tg-c) !important;
  }
}

@keyframes tgSlideIn {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* =========================================================
   MOBILE NAV — refined override (soft brand + icons)
   ========================================================= */
@media (max-width: 1199.98px) {
  /* Close button sits inside the logo card (right drawer) */
  .mobile-nav-active .mobile-nav-toggle {
    top: calc(12px + env(safe-area-inset-top, 0px) + 8px + 18px) !important;
    right: 30px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #F6F2FF !important;
    color: #4A10D0 !important;
    border: 1px solid rgba(97,30,250,.18) !important;
    box-shadow: none !important;
    font-size: 22px !important;
  }

  .mobile-nav-active .navmenu {
    background: rgba(15, 23, 42, 0.42) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-nav-active .navmenu > ul {
    width: min(86vw, 336px) !important;
    padding:
      calc(12px + env(safe-area-inset-top, 0px))
      0
      calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 22px 0 0 22px !important;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 140px) !important;
    box-shadow: -18px 0 48px rgba(15,23,42,.18) !important;
  }

  .mobile-nav-active .navmenu > ul::before {
    content: "" !important;
    height: 72px !important;
    margin: 8px 18px 14px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(97,30,250,.12);
    background-color: #fff !important;
    background-image:
      url("/assets/img/h_ticket_original_with_ribbon_right.png?v20260922r"),
      radial-gradient(ellipse 80% 120% at 100% 0%, rgba(97,30,250,.10), transparent 55%) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 16px center, left top !important;
    background-size: auto 36px, auto !important;
    box-shadow: 0 8px 22px rgba(74,16,208,.06);
    color: transparent !important;
    font-size: 0 !important;
  }

  .mobile-nav-active .navmenu > ul > li {
    margin: 0 14px 4px !important;
    border-bottom: 0 !important;
    border-radius: 14px;
    overflow: hidden;
  }

  .mobile-nav-active .navmenu > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 12px;
    padding: 13px 12px !important;
    font-size: .98rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    border-radius: 14px;
    transition: background .18s ease, color .18s ease;
  }

  .mobile-nav-active .navmenu > ul > li > a::before {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    background: #F6F2FF;
    color: #4A10D0;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(97,30,250,.14);
  }

  .mobile-nav-active .navmenu > ul > li:nth-child(1) > a::before { content: "\f423"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(2) > a::before { content: "\f3ec"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(3) > a::before { content: "\f171"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(4) > a::before { content: "\f244"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(5) > a::before { content: "\f2dc"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(6) > a::before { content: "\f4e1"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(7) > a::before { content: "\f414"; }
  .mobile-nav-active .navmenu > ul > li:nth-child(8) > a::before { content: "\f484"; }

  .mobile-nav-active .navmenu > ul > li > a:hover,
  .mobile-nav-active .navmenu > ul > li > a:focus {
    background: #F1F5F9 !important;
    color: #4A10D0 !important;
  }

  .mobile-nav-active .navmenu > ul > li > a.active,
  .mobile-nav-active .navmenu > ul > li > a.mg-nav-accent {
    background: linear-gradient(135deg, #F6F2FF, #E9E0FE) !important;
    color: #4A10D0 !important;
  }

  .mobile-nav-active .navmenu > ul > li > a.active::before,
  .mobile-nav-active .navmenu > ul > li > a.mg-nav-accent::before {
    background: #4A10D0;
    color: #fff;
    box-shadow: none;
  }

  .mobile-nav-active .navmenu a .toggle-dropdown,
  .mobile-nav-active .navmenu a i.toggle-dropdown {
    width: 30px !important;
    height: 30px !important;
    margin-left: auto;
    border-radius: 9px !important;
    background: #F6F2FF !important;
    color: #4A10D0 !important;
    border: 1px solid rgba(97,30,250,.18) !important;
    opacity: 1 !important;
  }

  .mobile-nav-active .navmenu a .toggle-dropdown::before,
  .mobile-nav-active .navmenu a i.toggle-dropdown::before {
    color: #4A10D0 !important;
    opacity: 1 !important;
  }

  /* Keep chevron on a light chip even when open (dark chip hid the arrow) */
  .mobile-nav-active .navmenu .active > a .toggle-dropdown,
  .mobile-nav-active .navmenu .dropdown-active > a .toggle-dropdown,
  .mobile-nav-active .navmenu .active > a i.toggle-dropdown,
  .mobile-nav-active .navmenu .dropdown-active > a i.toggle-dropdown {
    background: #E9E0FE !important;
    color: #3D0EBE !important;
    border-color: rgba(97,30,250,.28) !important;
  }

  .mobile-nav-active .navmenu .active > a .toggle-dropdown::before,
  .mobile-nav-active .navmenu .dropdown-active > a .toggle-dropdown::before {
    color: #3D0EBE !important;
  }

  /* 상품권 종류 모바일 서브메뉴 */
  .mobile-nav-active .navmenu > ul > li.dropdown {
    overflow: visible !important;
  }

  .mobile-nav-active .navmenu > ul > li.dropdown > ul,
  .mobile-nav-active .navmenu .mg-gift-submenu {
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 6px 0 12px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.06) !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    left: auto !important;
  }

  .mobile-nav-active .navmenu > ul > li.dropdown > ul.dropdown-active,
  .mobile-nav-active .navmenu .mg-gift-submenu.dropdown-active {
    display: block !important;
  }

  /* 모바일 카테고리 라벨: PC와 같은 소프트 칩 (파란 솔리드 바 금지) */
  body.mobile-nav-active .header .navmenu ul.mg-gift-submenu > li.mg-dd-label,
  body.mobile-nav-active .navmenu ul.mg-gift-submenu > li.mg-dd-label,
  .mobile-nav-active .navmenu .mg-dd-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: auto !important;
    margin: 12px 0 6px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    background: #E9E0FE !important;
    background-image: none !important;
    color: #3D0EBE !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .03em;
    line-height: 1.25 !important;
    border: 1px solid #DCCEFE !important;
    border-left: 3px solid #5514E8 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    pointer-events: none !important;
  }

  body.mobile-nav-active .header .navmenu ul.mg-gift-submenu > li.mg-dd-label:first-child,
  body.mobile-nav-active .navmenu ul.mg-gift-submenu > li.mg-dd-label:first-child,
  .mobile-nav-active .navmenu .mg-dd-label:first-child {
    margin-top: 2px !important;
  }

  .mobile-nav-active .navmenu .mg-gift-submenu > li,
  .mobile-nav-active .navmenu > ul > li.dropdown > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    min-width: 0 !important;
  }

  .mobile-nav-active .navmenu .mg-gift-submenu > li > a,
  .mobile-nav-active .navmenu > ul > li.dropdown > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin: 0 0 4px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: #F8FAFC !important;
    border: 1px solid rgba(15,23,42,.06) !important;
    color: #334155 !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    letter-spacing: -.015em;
    box-shadow: none !important;
  }

  .mobile-nav-active .navmenu .mg-gift-submenu > li > a::before,
  .mobile-nav-active .navmenu > ul > li.dropdown > ul > li > a::before {
    display: none !important;
    content: none !important;
  }

  .mobile-nav-active .navmenu .mg-gift-submenu > li > a:hover,
  .mobile-nav-active .navmenu .mg-gift-submenu > li > a:active,
  .mobile-nav-active .navmenu > ul > li.dropdown > ul > li > a:hover,
  .mobile-nav-active .navmenu > ul > li.dropdown > ul > li > a:active {
    background: #F6F2FF !important;
    color: #4A10D0 !important;
    border-color: rgba(97,30,250,.22) !important;
  }

  .mobile-nav-active .navmenu > ul > li.dropdown > a .toggle-dropdown {
    transition: transform .2s ease, background .18s ease;
  }
  .mobile-nav-active .navmenu > ul > li.dropdown > a.active .toggle-dropdown,
  .mobile-nav-active .navmenu > ul > li.dropdown > a.active i.toggle-dropdown {
    transform: rotate(180deg);
    background: #E9E0FE !important;
  }

  .mobile-nav-active .navmenu .dropdown ul a:hover {
    background: #fff !important;
    color: #4A10D0 !important;
  }
}

/* desktop nav styles moved into HEADER block above */

@media (max-width: 767.98px) {
  body.index-page .ecommerce-hero-1.hero {
    min-height: 72vh;
  }
  body.index-page .ecommerce-hero-1 .content-col {
    padding: 8vh 0 7vh !important;
  }
  body.login-register-page .nav-tabs,
  body.login-register-page .tab-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .main-header .d-flex.py-3 {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }

  .header .top-bar {
    font-size: 12px;
  }

  .header .top-bar .top-bar-item {
    padding: 7px 0;
  }

  .header-actions {
    gap: 2px;
  }

  .logo .sitename img {
    max-height: 30px;
  }

  /* 모바일에선 헤더 검색폼 숨기고 공간 확보 */
  .main-header .desktop-search-form {
    display: none !important;
  }

  .section {
    padding: 42px 0 !important;
  }

  .section-title h2 {
    font-size: 1.5rem !important;
    font-weight: 900;
  }

  .section-title p {
    font-size: 0.93rem;
  }

  .category-card,
  .product-card,
  .product-item {
    border-radius: 14px !important;
  }

  .btn-primary,
  .btn-shop,
  .place-order-btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px !important;
  }

  .footer {
    text-align: left;
  }

  .footer .footer-top > .row > [class*="col-"] {
    margin-bottom: 26px;
  }
}
