:root {
  --primary: #E11B22;
  --primary-alt: #FF1F1F;
  --text: #222;
  --muted: #727272;
  --line: #e8e8e8;
  --bg: #fff;
  --bg-soft: #f8f8f8;
  --radius: 12px;
  --header-h: 56px;
  --promo-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: auto; }

/* Hide list until infinite-scroll pages are restored (no mid-scroll flash) */
html.is-list-restoring,
html.is-list-restoring body {
  scroll-behavior: auto !important;
}
body.is-list-restoring .product-grid,
body.is-list-restoring [data-infinite] {
  opacity: 0;
  pointer-events: none;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.promo-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  min-height: var(--promo-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  min-width: 0;
  z-index: 1;
}

.header-row .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  min-width: 0;
  overflow: visible;
  flex-shrink: 0;
  z-index: 1;
}

.header-row .logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: none; /* override global img max-width:100% — prevents squish */
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-btn svg { width: 22px; height: 22px; }

.header-back {
  margin-left: -8px;
  color: var(--text);
}

.header-back:hover {
  color: var(--primary);
  background: rgba(225, 27, 34, 0.06);
}

.header-deals-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 30px;
  padding: 0 12px;
  margin-left: -4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-deals-badge:hover {
  color: #fff;
  background: #000;
  transform: translateY(-1px);
}

@media (max-width: 380px) {
  .header-deals-badge {
    padding: 0 8px;
    font-size: 0.625rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
  z-index: 1;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-auth-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Floating FAB stack (09STORY-style) */
.fab-stack {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.fab {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(216, 45, 40, 0.38);
  -webkit-tap-highlight-color: transparent;
  animation: fabFloat 2.4s ease-in-out infinite;
}

.fab svg {
  width: 22px;
  height: 22px;
}

.fab--search {
  background: linear-gradient(135deg, #2a3140 0%, #1a1f2a 100%);
  box-shadow: 0 8px 22px rgba(26, 31, 42, 0.35);
  animation-delay: 0s;
}

.fab--cart {
  background: linear-gradient(135deg, #e83333 0%, #b51e1e 100%);
  animation-delay: 0.35s;
}

.fab--cart .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #d82d28;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.fab.is-bounce {
  animation: fabBounce 0.65s cubic-bezier(0.18, 0.9, 0.28, 1.25);
}

.fab.is-jingle {
  animation: fabCartJingle 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.fab.is-bounce.is-jingle {
  animation: fabCartCatch 0.7s cubic-bezier(0.18, 0.9, 0.28, 1.25);
}

.fab--cart .badge.is-pop {
  animation: fabBadgePop 0.45s cubic-bezier(0.18, 0.9, 0.28, 1.35);
}

@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes fabBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes fabCartJingle {
  0% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-12deg) scale(1.12); }
  30% { transform: rotate(10deg) scale(1.12); }
  45% { transform: rotate(-8deg) scale(1.06); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0) scale(1); }
}

@keyframes fabCartCatch {
  0% { transform: translateY(0) scale(1) rotate(0); }
  20% { transform: translateY(-10px) scale(1.22) rotate(-10deg); }
  40% { transform: translateY(2px) scale(0.92) rotate(8deg); }
  60% { transform: translateY(-4px) scale(1.08) rotate(-4deg); }
  80% { transform: translateY(0) scale(1.02) rotate(2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes fabBadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Search sheet: categories + search bar */
.search-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  pointer-events: none;
}

.search-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.search-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.search-sheet.is-open .search-sheet__backdrop {
  opacity: 1;
}

.search-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 12px 16px 20px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease;
}

.search-sheet.is-open .search-sheet__panel {
  transform: translateY(0);
  opacity: 1;
}

.search-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.search-sheet__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-sheet__form {
  margin-bottom: 14px;
}

.search-sheet__label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted, #8a93a0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-sheet__cats {
  padding-bottom: 4px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
}

.search-form button {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-nav.is-open { display: block; }

.mobile-nav__panel {
  width: min(300px, 86vw);
  height: 100%;
  margin-left: auto;
  background: var(--bg);
  padding: 20px 16px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
}

.mobile-nav__panel a {
  display: block;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}

.category-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  border: 0;
  background: #f5f7fa;
  color: #1a1d24;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.category-badge:hover {
  background: #ebeff5;
  color: var(--primary);
}

.category-badge.is-active {
  background: var(--primary);
  color: #fff;
}

.category-badge.is-active:hover {
  background: var(--primary);
  color: #fff;
  filter: brightness(0.95);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 16px 0;
  background: #1a1d24;
  aspect-ratio: 2.5 / 1;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #1a1d24;
}

.hero-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  font-family: 'Pretendard', 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 36rem;
  z-index: 2;
}

.hero-caption__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd2d7;
  opacity: 0.95;
  line-height: 1.2;
}

.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-family: 'SUIT', 'Pretendard', sans-serif;
}

.hero-caption p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.96;
  font-family: 'Pretendard', 'SUIT', sans-serif;
}

.hero-caption .hero-em {
  color: #ffe650;
  font-weight: 800;
}

.hero-slide--membership .hero-caption {
  right: 34%;
  max-width: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(12, 10, 14, 0.72) 0%, rgba(12, 10, 14, 0.28) 78%, transparent 100%);
}

.hero-slide--membership .hero-caption h2 {
  white-space: nowrap;
}

.hero-slide--membership img {
  object-position: 62% center;
}

/* hero-mobile-readable — same frame height for every slide */
@media (max-width: 640px) {
  .hero-slider {
    margin: 12px 0;
    border-radius: 10px;
    aspect-ratio: 2.15 / 1;
  }
  .hero-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  .hero-caption__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-caption h2 {
    font-size: 1.15rem;
    margin-bottom: 5px;
  }
  .hero-caption p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .hero-slide--membership .hero-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 28%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 10px 12px 12px;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(90deg, rgba(10, 8, 12, 0.84) 0%, rgba(10, 8, 12, 0.48) 72%, transparent 100%);
  }
  .hero-slide--membership .hero-caption__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.07em;
  }
  .hero-slide--membership .hero-caption h2 {
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
    line-height: 1.22;
    white-space: nowrap;
  }
  .hero-slide--membership .hero-caption p {
    font-size: clamp(0.78rem, 3.5vw, 0.875rem);
    line-height: 1.4;
  }
}



.section { padding: 8px 0 24px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.125rem;
}

.section-head a {
  color: var(--muted);
  font-size: 0.875rem;
}

.section-more {
  color: var(--text, #111);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--primary);
  text-decoration: underline;
}

.section--todays-deals {
  padding: 12px 0 4px;
}

.todays-deals-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 16px 14px 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.todays-deals-panel .section-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.todays-deals-panel .section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.todays-deals-panel .section-head h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Trendy break between Today's Deals and All Products */
.shop-section-break {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 28px 0 12px;
  overflow: hidden;
}

.shop-section-break__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(225, 27, 34, 0.08), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

.shop-section-break__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.shop-section-break__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #111 18%, #111 82%, transparent);
  opacity: 0.85;
}

.shop-section-break__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.section--all-products {
  padding-top: 4px;
  margin-top: 0;
  border-top: 0;
}

.section--all-products .section-head {
  margin-bottom: 14px;
}

.section--all-products .section-head h2 {
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .todays-deals-panel {
    padding: 18px 18px 22px;
  }

  .shop-section-break {
    margin: 36px 0 12px;
    padding: 34px 0 16px;
  }

  .shop-section-break__badge {
    padding: 9px 18px;
    font-size: 0.75rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.product-card__img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
  flex: 0 0 auto;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ship-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.product-card__img img.is-fallback {
  object-fit: contain;
  padding: 18%;
  background: #fafafa;
}

.product-card__body {
  padding: 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
}

.product-card__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-lock,
.btn-add {
  margin-top: auto;
}

.price-sale {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.price-cust {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: line-through;
}

.discount-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-add {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-add:hover { background: var(--primary); }

.site-footer {
  margin-top: 48px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-top {
  display: grid;
  gap: 28px;
  padding: 36px 16px 28px;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 48px;
  }
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand__logo img {
  height: 28px;
  width: auto;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px 28px;
}

.footer-nav__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-nav__list a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-nav__list a:hover {
  color: var(--primary);
}

.footer-entities {
  display: grid;
  gap: 16px;
  padding: 0 16px 28px;
}

@media (min-width: 900px) {
  .footer-entities {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.footer-entity {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.footer-entity__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-entity__badge--alt {
  background: var(--text);
}

.footer-entity__name {
  margin: 12px 0 0;
  color: var(--text);
  font-family: 'SUIT', 'Pretendard', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-entity__copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-meta {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.footer-meta__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
}

.footer-meta__row--block {
  grid-template-columns: 1fr;
  gap: 4px;
}

.footer-meta dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.footer-meta dd {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
}

.footer-meta a {
  color: #4a4a4a;
  text-decoration: underline;
  text-decoration-color: rgba(225, 27, 34, 0.35);
  text-underline-offset: 2px;
}

.footer-meta a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px 18px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom__note {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.page-title {
  margin: 20px 0 16px;
  font-size: 1.375rem;
}

.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted, #8a93a0);
}

.empty-state p {
  margin: 0 0 12px;
}

.empty-state .btn-primary {
  display: inline-flex;
  margin-top: 8px;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 480px;
  margin: 28px auto 0;
}

.form-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: stretch;
}
.phone-row input {
  flex: 1;
  margin-bottom: 0;
}
.phone-row .btn-secondary {
  white-space: nowrap;
  padding: 10px 12px;
  flex-shrink: 0;
}
.phone-status {
  min-height: 1.2em;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.agree-block {
  margin: 14px 0 4px;
  padding: 14px 14px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.agree-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.agree-row .terms-link,
.terms-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
#btnSubmit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.product-detail {
  display: grid;
  gap: 24px;
  padding: 16px 0 0;
}

@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}

.product-detail__img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.product-detail__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.product-detail__img .ship-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 0.6875rem;
}

.product-detail__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.product-shipping {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.product-shipping.is-free {
  border-color: #c9e8d4;
  background: #f3fff7;
}

.product-shipping__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-shipping__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.product-shipping__summary {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  letter-spacing: -0.01em;
}

.product-shipping.is-free .product-shipping__summary {
  color: #1a7f4b;
}

.product-shipping__detail {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.product-basic {
  margin-top: 24px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.product-story {
  margin: 20px 0 48px;
  display: grid;
  gap: 20px;
}

.product-highlights {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 22px;
  display: grid;
  gap: 14px;
}

.product-highlights__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-highlights__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(225, 27, 34, 0.18);
}

.product-highlights__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.product-highlights__title {
  margin: 0;
  font-family: 'SUIT', 'Pretendard', sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.product-highlights__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-highlights__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #3a3a3a;
}

.product-highlights__list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.product-gallery {
  display: grid;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.product-gallery__item {
  margin: 0;
}

.product-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery--html {
  padding: 12px;
  text-align: center;
}

.product-gallery--html img {
  margin: 0 auto;
}

/* Cart page — card list */
.cart-page {
  padding-bottom: 28px;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cart-item.is-soldout {
  opacity: 0.72;
}

.cart-item__thumb {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f5f8;
  flex-shrink: 0;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__thumb .ship-badge {
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  font-size: 0.5rem;
  border-radius: 4px;
}

.cart-item__thumb img.is-fallback {
  object-fit: contain;
  padding: 16px;
}

.cart-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__warn {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 800;
}

.cart-item__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item__unit {
  font-weight: 500;
  color: var(--muted, #8a93a0);
  font-size: 0.75rem;
}

.cart-item__ship {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item__ship.is-free {
  color: #1a7f4b;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.cart-qty__btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: #f5f7fa;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cart-qty__btn:active {
  background: #ebeff5;
}

.cart-qty__val {
  min-width: 32px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 800;
}

.cart-item__line {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cart-item__remove {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted, #8a93a0);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item__remove:hover {
  color: var(--primary);
}

.cart-summary {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfc;
}

.cart-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  margin-top: 6px;
}

.cart-summary__row:first-child {
  margin-top: 0;
}

.cart-summary__row strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cart-summary__row--total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 700;
}

.cart-summary__row--total strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.cart-summary__note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted, #8a93a0);
}

.cart-summary__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  text-align: center;
}

.cart-summary__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .cart-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
  }

  .cart-page .list-head {
    grid-column: 1 / -1;
  }

  .cart-summary {
    margin-top: 0;
    position: sticky;
    top: calc(var(--header-h, 56px) + 16px);
  }

  .cart-item {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 14px;
  }

  .cart-item__thumb {
    width: 112px;
    height: 112px;
  }
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 8px 0 12px;
}

.list-head .page-title { margin: 0; }

.page-title__link {
  color: inherit;
  text-decoration: none;
}

.page-title__link:hover {
  color: var(--primary);
}

.list-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.sort-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0 0 16px;
}

.sort-links__sep {
  color: var(--muted);
  opacity: 0.5;
  user-select: none;
}

.sort-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.sort-link:hover {
  color: var(--primary);
}

.sort-link.is-active {
  color: var(--text, #1a1d24);
  font-weight: 700;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 12px;
}

.pager__btn,
.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
}

.pager__num.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager__ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

.infinite-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 28px 0 16px;
  min-height: 48px;
}

.infinite-scroll__sentinel {
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.infinite-scroll__msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.infinite-scroll.is-loading .infinite-scroll__msg::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: infiniteSpin 0.7s linear infinite;
}

@keyframes infiniteSpin {
  to { transform: rotate(360deg); }
}

.infinite-scroll.is-done .infinite-scroll__msg {
  font-weight: 500;
}

.alert-error {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff2f2;
  color: var(--primary);
  font-size: 0.875rem;
}

/* Closed mall — locked prices */
.price-lock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 0;
}
.price-lock__label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}
.price-lock__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
  box-sizing: border-box;
  border: 1px solid transparent;
  line-height: 1.2;
  text-align: center;
}
.price-lock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.price-lock__cta--secondary {
  background: #fff;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

/* Product cards: keep Log In / Join Now on one fluid row */
.product-card .price-lock {
  width: 100%;
  gap: clamp(4px, 1.2vw, 8px);
}
.product-card .price-lock__actions {
  flex-wrap: nowrap;
  width: 100%;
  gap: clamp(4px, 1.1vw, 8px);
}
.product-card .price-lock__cta {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  white-space: nowrap;
  font-size: clamp(0.625rem, 0.45rem + 1.6vw, 0.8125rem);
  padding: clamp(5px, 0.35rem + 0.9vw, 8px) clamp(4px, 0.25rem + 1vw, 10px);
  border-radius: clamp(6px, 1.5vw, 8px);
}
.price-lock--detail {
  margin: 16px 0;
  padding: 16px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  border-radius: var(--radius);
}
.price-lock--detail .price-lock__label { font-size: 0.9375rem; color: var(--text); }
.price-lock--detail .price-lock__cta { padding: 12px 18px; font-size: 0.9375rem; }

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 88px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2f2;
  border: 1px solid #ffd0d0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}
.member-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-chip__badge {
  flex: 0 0 auto;
  background: #146c3c;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.625rem;
}

.members-banner {
  background: linear-gradient(135deg, #1a1d24, #3a1014);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 16px 0 8px;
}
.members-banner h2 { margin: 0 0 8px; font-size: 1.125rem; }
.members-banner p { margin: 0 0 14px; opacity: 0.9; font-size: 0.875rem; }
.members-banner .btn-primary { background: var(--primary); border: 0; color: #fff; }

.steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.step__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.8125rem; flex-shrink: 0;
}
.step.is-done { border-color: #b8e0c8; background: #f3fff7; }
.step.is-done .step__num { background: #1a7f4b; }
.step.is-current { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(225,27,34,0.12); }

.pay-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}
.pay-box dl { margin: 0; display: grid; gap: 8px; }
.pay-box dt { font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.pay-box dd { margin: 0 0 8px; font-weight: 700; font-size: 1rem; }

.bankbook-box {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.bankbook-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.04);
}

.bankbook-card__head {
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(225, 27, 34, 0.08) 0%, rgba(255, 255, 255, 0) 100%),
    #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.bankbook-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bankbook-card__amount-label {
  margin: 12px 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.bankbook-card__amount {
  margin: 0;
  font-family: 'SUIT', 'Pretendard', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.2;
}

.bankbook-card__account {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.bankbook-card__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.bankbook-card__account-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bankbook-card__account-no {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  word-break: break-all;
  line-height: 1.35;
}

.bankbook-copy-btn {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bankbook-copy-btn:hover {
  background: var(--bg-soft);
  border-color: #d0d0d0;
  color: var(--primary);
}

.bankbook-copy-btn__ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bankbook-copy-btn__ico--check {
  position: absolute;
  opacity: 0;
  transform: scale(0.7);
}

.bankbook-copy-btn.is-copied {
  background: #f0fff7;
  border-color: #8ed0aa;
  color: #1b7a4a;
}

.bankbook-copy-btn.is-copied .bankbook-copy-btn__ico--copy {
  opacity: 0;
}

.bankbook-copy-btn.is-copied .bankbook-copy-btn__ico--check {
  opacity: 1;
  transform: scale(1);
}

.bankbook-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bankbook-card__meta-item {
  padding: 14px 18px;
}

.bankbook-card__meta-item + .bankbook-card__meta-item {
  border-left: 1px solid var(--line);
}

.bankbook-card__meta-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.bankbook-form {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 480px) {
  .bankbook-card__meta {
    grid-template-columns: 1fr;
  }

  .bankbook-card__meta-item + .bankbook-card__meta-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eee;
}
.status-pill.pending_payment { background: #ffe8cc; color: #8a4b00; }
.status-pill.pending_approval { background: #e0ecff; color: #1a3f8a; }
.status-pill.approved { background: #d8f5e3; color: #146c3c; }
.status-pill.rejected, .status-pill.suspended { background: #ffd6d6; color: #8a1212; }

.alert-ok {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #e8f8ef;
  color: #146c3c;
  font-size: 0.875rem;
}

.card-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.back-link {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.back-link a { color: var(--muted); }
.back-link a:hover { color: var(--primary); }

.muted { color: var(--muted); }

.form-card input.is-readonly,
.form-card input:disabled {
  background: #f3f3f3;
  color: #666;
  cursor: not-allowed;
}

.detail-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 0;
}
.detail-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.detail-dl dd { margin: 0; font-size: 0.9375rem; }

.order-list,
.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 24px;
}

.order-card,
.inquiry-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-card:hover,
.inquiry-card:hover {
  border-color: #f0b4b7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.order-card__top,
.inquiry-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.order-card__status,
.inquiry-card__status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff2f2;
  padding: 3px 8px;
  border-radius: 999px;
}

.order-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.order-card__total {
  color: var(--text);
  font-weight: 800;
}

.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-items li:last-child { border-bottom: 0; }
.order-items__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.inquiry-body {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.9375rem;
}
.inquiry-body--reply {
  background: #fff8f8;
  border: 1px solid #ffd6d6;
  border-radius: 10px;
  padding: 12px 14px;
}

/* NicePay method selectors */
.pg-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pg-pay-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 10px;
  background: #fff;
  padding: 12px 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text, #222);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-sizing: border-box;
  text-align: center;
}
.pg-pay-btn:hover {
  border-color: #cfcfcf;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.pg-pay-btn--card {
  border-color: #ffd0d0;
  background: linear-gradient(180deg, #fff7f7, #fff);
  color: var(--primary, #E11B22);
}
.pg-pay-btn--kakao {
  border-color: #f5e6a8;
  background: #fee500;
  color: #191600;
}
.pg-pay-btn--naver {
  border-color: #b8e6c8;
  background: #03c75a;
  color: #fff;
}
.pg-pay-options {
  display: grid;
  gap: 8px;
}
.pg-pay-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line, #e8e8e8);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  grid-template-columns: none !important;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.pg-pay-option input {
  width: auto !important;
  margin: 0;
  padding: 0;
}
.pg-pay-option:has(input:checked) {
  border-color: var(--primary, #E11B22);
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px rgba(225,27,34,.15);
}
@media (max-width: 520px) {
  .pg-pay-grid { grid-template-columns: 1fr; }
}
