/* ==========================================================================
   Storefront Stylesheet (도서출판 현동 — HYUNDONG BOOKS 공식 온라인 서점)
   100% Responsive PC <-> Mobile Structural Layout (Main Brand Color: #391802 | Bg: #f6f3ea)
   ========================================================================== */

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

main,
#storeMainContent,
.auth-page-wrap,
.standalone-page-wrap,
.detail-page-wrap {
  flex: 1 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-inline, 32px);
}

/* ==========================================================================
   1. Client-Aligned Top Util Bar (48px) + Centered Logo Band + Sticky 4-Menu GNB (56px)
   ========================================================================== */
.store-util-bar {
  position: relative;
  z-index: 106;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  font-size: 11px;
  color: #62574b;
  min-height: 38px;
  box-sizing: border-box;
}

.store-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  box-sizing: border-box;
}

.store-util-left,
.store-util-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: nowrap !important;
}

.store-util-right {
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
}

.store-util-social,
.top-sns-inline {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.store-util-sns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #62574b;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s ease;
}

.store-util-sns svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}

.store-util-sns:hover {
  color: #2e2119;
  text-decoration: none;
}

.store-util-sep {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--color-line, #d9d2c7);
  color: transparent;
  font-size: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.header-icon-btn.mobile-menu-btn,
.mobile-menu-btn {
  display: none;
}

#topRibbonText {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  line-height: 1.4;
}

.store-util-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.util-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #62574b;
  font-size: 11px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.util-user-badge:hover strong {
  color: #2e2119;
  text-decoration: underline;
}

.util-user-badge small {
  color: var(--color-eyebrow);
  font-weight: 500;
  font-size: 10.5px;
  white-space: nowrap;
}

.store-util-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #62574b;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.store-util-btn:hover,
.store-util-btn.is-active {
  color: #2e2119;
  text-decoration: none;
}

.util-admin-link {
  color: #817a70;
  font-size: 11px;
  font-weight: 400;
  padding-left: 0;
  padding-right: 12px;
  border-left: none;
  border-right: 1px solid var(--color-line, #d9d2c7);
}

.util-cs-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.util-cs-trigger {
  font-weight: 400;
  color: #62574b;
  padding: 4px 2px;
  border-radius: 0;
  background: transparent;
  text-decoration: none !important;
}

.util-cs-trigger:hover,
.util-cs-dropdown.is-open .util-cs-trigger {
  background: transparent;
  color: #2e2119;
}

.util-cs-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 184px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 260;
  flex-direction: column;
  gap: 2px;
}

.util-cs-dropdown.is-open .util-cs-menu {
  display: flex;
}

.util-cs-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-brand-900);
  text-decoration: none;
  white-space: nowrap;
}

.util-cs-menu a:hover {
  background: var(--color-brand-50);
  color: var(--color-seal);
}

.store-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 234, 0.96);
  backdrop-filter: blur(8px);
  border-top: none;
  border-bottom: none;
}

.store-header {
  background: var(--color-bg);
  position: relative;
  z-index: 102;
}

.store-header.store-logo-band {
  background: var(--color-bg);
  border-bottom: none;
}

.store-logo-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 112px;
}

body.auth-store-body .store-logo-band-inner {
  padding-block: 22px 18px;
}

.brand-logo-centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hyundong-main-logo-img {
  width: 292px;
  max-width: 68vw;
  height: auto;
  display: block;
  object-fit: contain;
}

.store-header-main {
  display: grid;
  grid-template-columns: auto minmax(200px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 26px);
  height: 74px;
  min-height: 74px;
  padding: 0;
  box-sizing: border-box;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-text {
  min-width: 0;
  white-space: nowrap;
}

.brand-logo-text strong,
.store-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--color-brand-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-hanja {
  font-style: normal;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--color-brand-500);
  letter-spacing: 0.04em;
  margin-left: 3px;
}

.brand-logo-text span,
.store-brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--color-brand-600);
  margin-top: 2px;
  white-space: nowrap;
}

/* Integrated Search Bar (Refined Quiet Pill, Never Clipped) */
.store-search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-brand-400);
  border-radius: 999px;
  background: #faf9f6;
  overflow: visible;
  position: relative;
  height: 44px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.store-search-box:focus-within {
  border-color: var(--color-brand-500);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(57, 24, 2, 0.14);
}

.store-search-select {
  border: none;
  border-right: 1px solid var(--color-border);
  border-radius: 999px 0 0 999px;
  background: transparent;
  padding: 0 10px 0 14px;
  height: 40px;
  line-height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand-800);
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 10px 0;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.auth-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .auth-brand-sub {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .auth-header-home-btn {
    display: none !important;
  }
}

@media (max-width: 619px) {
  .auth-header-inner {
    min-height: 58px;
    padding: 8px 0;
    gap: 8px;
  }
  .auth-header .brand-logo-text strong {
    font-size: 1.02rem;
  }
}

.store-search-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding: 0 12px;
  height: 100%;
  outline: none;
  min-width: 0;
  font-size: 0.89rem;
  text-overflow: ellipsis;
}

.store-search-submit {
  height: 36px;
  margin-right: 3px;
  padding: 0 15px;
  border: none;
  border-radius: 999px;
  background: var(--color-brand-700);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.store-search-submit:hover {
  background: var(--color-brand-900);
}

/* Decluttered Borderless Minimal Header Actions */
.store-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-brand-800);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-icon-btn:hover {
  background: var(--color-brand-50);
  color: var(--color-brand-900);
}

.header-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
}

.menu-bars-icon {
  display: inline-block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  flex-shrink: 0;
}

.count-pill {
  background: var(--color-seal);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Centered 4-Menu GNB (56px Sticky Bar, Warm Ivory #f6f3ea & Dropdown) */
.store-gnb {
  background: transparent;
  color: var(--color-ink);
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  position: relative;
  z-index: 98;
  border-top: none;
  border-bottom: none;
  box-sizing: border-box;
}

.store-gnb > .store-container,
.store-gnb-rail {
  height: 100%;
  position: relative;
  overflow: visible;
}

.store-gnb-rail::before,
.store-gnb-rail::after {
  display: none;
}

.store-gnb-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(24px, 6vw, 90px);
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: visible;
}

.store-gnb-list > li {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  position: relative;
}

.store-gnb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
  padding: 0 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.store-gnb-btn:hover {
  color: var(--color-eyebrow, #776452);
  font-weight: 500;
  background: transparent;
  border-bottom-color: var(--color-eyebrow, #776452);
}

.store-gnb-btn.is-active,
.gnb-item-has-sub.is-open > .store-gnb-btn {
  color: var(--color-accent-olive);
  font-weight: 700;
  background: transparent;
  border-bottom-color: transparent;
}

.gnb-caret-svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.gnb-item-has-sub.is-open .gnb-caret-svg,
.gnb-item-has-sub:hover .gnb-caret-svg {
  transform: rotate(180deg);
}

.gnb-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 166px;
  margin: 0;
  padding: 11px 15px;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(39, 28, 16, 0.11);
  z-index: 160;
}

.gnb-item-has-sub:hover > .gnb-submenu,
.gnb-item-has-sub:focus-within > .gnb-submenu,
.gnb-item-has-sub.is-open > .gnb-submenu {
  display: block;
}

.gnb-submenu-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 8px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.gnb-submenu-link:hover,
.gnb-submenu-link.is-active {
  background: #efe9df;
  color: var(--color-ink);
  font-weight: 400;
}

.store-gnb-item-right {
  margin-left: 0;
}

/* Mobile-only Header Controls & Bottom Navigation */
.header-icon-btn.mobile-only-btn,
.mobile-only-btn {
  display: none;
}

.mobile-search-drawer {
  display: none;
  padding: 10px 16px 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.mobile-search-drawer.is-open {
  display: block;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.52);
  z-index: 450;
  display: none;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(310px, 86vw);
  background: var(--color-surface);
  z-index: 460;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.24s ease, visibility 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer-head {
  padding: 16px 18px;
  background: var(--color-brand-800);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mobile-drawer-brand-text {
  min-width: 0;
  flex: 1;
}

.mobile-drawer-brand-text strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobileUserStatusText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.mobile-drawer-cat-btn {
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 600;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* ==========================================================================
   2. Quiet-Luxury Korean Editorial Bookstore Hero & 5-Shelf Category Strip
   ========================================================================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  background-color: #f2efe9;
  background-image:
    linear-gradient(
      96deg,
      rgba(250, 248, 243, 0.96) 0%,
      rgba(250, 248, 243, 0.88) 45%,
      rgba(246, 241, 233, 0.36) 70%,
      rgba(242, 236, 225, 0.16) 100%
    ),
    image-set(
      url("../images/hero-bg-pc.webp?v=20261113c") type("image/webp"),
      url("../images/hero-bg-pc.svg?v=20261113c") type("image/svg+xml")
    );
  background-size: cover, cover;
  background-position: center, right center;
  border-bottom: none;
  padding: 56px 0 54px;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 470px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
}

.hero-grid > * {
  min-width: 0;
}

.hero-editorial {
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  animation: heroRiseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(44, 40, 35, 0.06);
  color: #3d3831;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-kicker-sep {
  width: 1px;
  height: 12px;
  background: rgba(110, 102, 91, 0.35);
}

.hero-kicker-motto {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-seal);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.66rem, 2.45vw, 2.26rem);
  font-weight: 700;
  line-height: 1.36;
  margin: 0 0 15px;
  color: #1c1915;
  letter-spacing: -0.025em;
  word-break: keep-all;
  max-width: 22ch;
  animation: heroRiseIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero-desc {
  color: #4b453c;
  font-size: 0.98rem;
  line-height: 1.74;
  margin: 0 0 24px;
  max-width: 530px;
  word-break: keep-all;
  animation: heroRiseIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-spec-list {
  list-style: none;
  padding: 15px 0;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(57, 24, 2, 0.22);
  border-bottom: 1px solid rgba(57, 24, 2, 0.22);
  animation: heroRiseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-spec-list li {
  position: relative;
  min-width: 0;
  padding-left: 14px;
}

.hero-spec-list li:first-child {
  padding-left: 0;
}

.hero-spec-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(57, 24, 2, 0.22);
}

.hero-spec-list strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: #24201b;
  margin-bottom: 2px;
  white-space: nowrap;
}

.hero-spec-list span {
  display: block;
  font-size: 0.75rem;
  color: #6b6358;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: heroRiseIn 0.64s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-cta-primary {
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid #231f1b;
  background: #231f1b;
  color: #fffdf9;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px -8px rgba(28, 25, 21, 0.35);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta-primary:hover {
  background: #12100e;
  border-color: #12100e;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px rgba(28, 25, 21, 0.42);
}

.hero-cta-secondary {
  height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(57, 24, 2, 0.32);
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(8px);
  color: #2e2924;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hero-cta-secondary:hover {
  background: #ffffff;
  border-color: #827a6d;
}

@keyframes heroRiseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Curated Floating Gallery Showcase Card (Right Column) */
.hero-bookstand {
  position: relative;
  width: 100%;
  background: rgba(255, 253, 250, 0.91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(206, 197, 182, 0.78);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow:
    0 24px 48px -16px rgba(32, 27, 21, 0.16),
    0 2px 10px rgba(32, 27, 21, 0.04);
  animation: heroRiseIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-bookstand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
}

.hero-bookstand-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #5c554b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-bookstand-label small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: #8a8275;
}

.hero-step-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(57, 24, 2, 0.26);
  background: rgba(255, 255, 255, 0.8);
  color: #3a352e;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hero-step-btn:hover {
  background: #231f1b;
  border-color: #231f1b;
  color: #ffffff;
}

.hero-progress-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(57, 24, 2, 0.16);
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-brand-600), var(--color-seal));
  transform-origin: left center;
  animation: heroSlideTimer 5.2s linear infinite;
}

.hero-bookstand:hover .hero-progress-bar {
  animation-play-state: paused;
}

@keyframes heroSlideTimer {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-featured-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 2px 0 16px;
}

.hero-featured-card.is-swapping {
  animation: heroBookSwap 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroBookSwap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cover-pedestal {
  position: relative;
  cursor: pointer;
  background: linear-gradient(155deg, #f5f0e6 0%, #ebe3d5 100%);
  border: 1px solid rgba(196, 185, 168, 0.55);
  border-radius: 10px;
  padding: 12px 11px;
  transition: transform 0.22s ease;
}

.hero-cover-pedestal:hover {
  transform: translateY(-2px);
}

.hero-cover-pedestal .book-cover {
  box-shadow: 0 10px 20px -6px rgba(32, 27, 21, 0.24);
}

.hero-featured-info {
  min-width: 0;
}

.hero-featured-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-tag-accent {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(140, 58, 50, 0.09);
  color: var(--color-seal);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-tag-muted {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(57, 24, 2, 0.1);
  color: #4f493f;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-featured-title {
  margin: 8px 0 5px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: #1f1b17;
  cursor: pointer;
  word-break: keep-all;
}

.hero-featured-title:hover {
  color: var(--color-seal);
}

.hero-featured-sub {
  margin: 0 0 7px;
  font-size: 0.81rem;
  color: #5b5449;
  line-height: 1.48;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-featured-meta {
  font-size: 0.75rem;
  color: #82796c;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-featured-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-featured-price strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e1a16;
  letter-spacing: -0.02em;
}

.hero-featured-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.hero-btn-cart {
  background: #2b2722;
  border: 1px solid #2b2722;
  color: #ffffff;
  border-radius: 7px;
  font-weight: 700;
}

.hero-btn-cart:hover {
  background: #171412;
  border-color: #171412;
}

.hero-btn-detail {
  background: #ffffff;
  border: 1px solid #d5ccb9;
  color: #3a342c;
  border-radius: 7px;
  font-weight: 600;
}

.hero-btn-detail:hover {
  border-color: #8c8476;
  background: #faf8f4;
}

/* Soft Segmented Switcher Bar */
.hero-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(232, 225, 213, 0.65);
}

.hero-showcase-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 7px 9px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #625b50;
}

.hero-showcase-tab:hover {
  color: #24201b;
  background: rgba(255, 255, 255, 0.5);
}

.hero-showcase-tab.is-active {
  background: #ffffff;
  border-color: rgba(196, 186, 170, 0.6);
  color: #1d1915;
  box-shadow: 0 2px 8px rgba(32, 27, 21, 0.08);
}

.hero-showcase-tab small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.62;
  flex-shrink: 0;
}

.hero-showcase-tab.is-active small {
  color: var(--color-seal);
  opacity: 1;
}

.hero-showcase-tab span {
  font-size: 0.77rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Korean Medicine 5-Shelf Category Navigation Bar */
.hanui-plaque-section {
  padding: 20px 0 4px;
}

.hanui-plaque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 10px;
}

.hanui-plaque-card {
  position: relative;
  border: 1px solid #e2dbd0;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease;
}

.hanui-plaque-card:hover {
  transform: translateY(-2px);
  border-color: #b5ab9b;
  box-shadow: 0 8px 20px -8px rgba(36, 31, 24, 0.12);
}

.hanui-plaque-hanja {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f4f0e8;
  color: #463f36;
  border: 1px solid #e4ddd0;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hanui-plaque-card:hover .hanui-plaque-hanja {
  background: #2b2722;
  border-color: #2b2722;
  color: #fffdf9;
}

.hanui-plaque-text {
  min-width: 0;
  flex: 1;
}

.hanui-plaque-text strong {
  display: block;
  font-size: 0.89rem;
  font-weight: 700;
  color: #221e19;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hanui-plaque-text span {
  display: block;
  font-size: 0.75rem;
  color: #766e62;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hanui-plaque-count {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #787063;
  background: #f6f3ed;
  padding: 3px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.promo-mid-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 50%, rgba(140, 58, 50, 0.24) 0%, transparent 52%),
    linear-gradient(125deg, #3c3832 0%, #4d4840 58%, #5f594f 100%);
  color: #f6f4ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.section-block {
  padding-block: 56px 96px;
}

#storeMainContent > .store-container > .split-view-layout {
  padding-block: 56px 96px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  padding-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.05em;
  color: var(--color-ink, #302e29);
}

.section-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-muted, #817a70);
}

/* Home Bestseller Grid */
.bestseller-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.bestseller-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
  cursor: pointer;
}

.bestseller-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(44, 41, 37, 0.12);
  border-color: var(--color-brand-400);
}

.recommend-card-home {
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
}

.recommend-card-home:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-400);
}

.rank-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-brand-800);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-flag.is-top {
  background: var(--color-seal);
}

.bestseller-card-title {
  margin: 12px 0 4px;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bestseller-card-meta {
  font-size: 0.79rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.bestseller-card-price {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--color-brand-800);
}

/* ==========================================================================
   3. Catalog Layout (PC: Sidebar + Summary List <-> Mobile: Chips + Cards)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}

.catalog-layout > *,
.split-view-layout > *,
.hero-grid > *,
.book-summary-row > *,
.cart-item-card > *,
.detail-top-grid > * {
  min-width: 0;
}

.catalog-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: sticky;
  top: 136px;
}

.sidebar-group-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-brand-900);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-cat-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-item {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-secondary);
}

.sidebar-cat-item:hover {
  background: var(--color-brand-50);
  color: var(--color-brand-900);
}

.sidebar-cat-item.is-active {
  background: var(--color-brand-500);
  color: #ffffff;
  font-weight: 700;
}

.sidebar-notice-card {
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.mobile-category-chips {
  display: none;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.mobile-category-chips::-webkit-scrollbar {
  display: none;
}

.catalog-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-right {
  flex: 1 1 auto;
}

.catalog-view-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.catalog-view-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-summary-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 24px 124px minmax(0, 1fr) 168px;
  gap: 20px;
  align-items: start;
  transition: border-color 0.16s ease;
}

.book-summary-row:hover {
  border-color: var(--color-brand-400);
}

.book-check-col {
  padding-top: 6px;
}

.book-info-col h3 {
  margin: 4px 0;
  font-size: 1.08rem;
  font-family: var(--font-serif);
  cursor: pointer;
  color: var(--color-brand-900);
}

.book-info-col h3:hover {
  color: var(--color-brand-600);
  text-decoration: underline;
}

.book-sub-line {
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  margin: 0 0 6px;
}

.book-biblio-line {
  font-size: 0.81rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.book-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.price-sale {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand-900);
}

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

.book-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-action-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-summary-list.is-grid-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.book-summary-list.is-grid-view .book-summary-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 14px;
  gap: 10px;
}

.book-summary-list.is-grid-view .book-check-col,
.book-summary-list.is-grid-view .book-excerpt,
.book-summary-list.is-grid-view .book-sub-line {
  display: none;
}

/* ==========================================================================
   4. Cart, Checkout, Delivery Tracking & Customer Support Views
   ========================================================================== */
.split-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  padding: 28px 0 56px;
  align-items: start;
}

.sticky-summary-panel {
  position: sticky;
  top: 136px;
}

.free-ship-gauge-box {
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.gauge-track {
  height: 8px;
  background: var(--color-brand-200);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.gauge-fill {
  height: 100%;
  background: var(--color-brand-500);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 24px 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-brand-50);
  font-weight: 700;
  cursor: pointer;
}

.qty-stepper span {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.summary-row.is-total {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-brand-900);
}

.order-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.order-kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.delivery-steps,
.order-card-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.delivery-step,
.order-card-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.delivery-step small,
.order-card-step small {
  font-size: 0.74rem;
  opacity: 0.88;
}

.delivery-step.is-done,
.order-card-step.is-done {
  border-color: var(--color-brand-400);
  color: var(--color-brand-800);
  background: var(--color-brand-100);
  font-weight: 600;
}

.delivery-step.is-current,
.delivery-step.is-active,
.order-card-step.is-current,
.order-card-step.is-active {
  background: var(--color-editorial-warm, #ebe5d9);
  border-color: var(--color-brand-500, #391802);
  border-top: 2px solid var(--color-brand-500, #391802);
  color: var(--color-brand-500, #391802);
  font-weight: 700;
}

.waybill-lookup-box {
  background: var(--color-brand-50);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.waybill-lookup-box.is-pending {
  border-style: dashed;
  border-color: var(--color-border-strong);
}

.waybill-lookup-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.waybill-number-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.waybill-number-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-brand-900);
  letter-spacing: 0.02em;
}

.waybill-lookup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.waybill-url-guide {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.83rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.waybill-url-link {
  color: var(--color-brand-700);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.waybill-url-link:hover {
  color: var(--color-brand-900);
}

.carrier-directory-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.carrier-directory-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.carrier-directory-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--color-brand-900);
}

.carrier-directory-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.carrier-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.carrier-directory-item {
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.carrier-directory-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.carrier-directory-url {
  font-size: 0.77rem;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}

/* Book Detail Modal */
.detail-top-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}

/* Standalone Auth Pages (login.html, signup.html) — Editorial Storefront Match */
.auth-page-wrap {
  padding: 20px 16px 72px;
}

.auth-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.auth-shell.auth-shell-wide {
  max-width: 680px;
}

.auth-editorial-head {
  margin-bottom: 24px;
}

.auth-editorial-head h1 {
  margin: 6px 0 8px;
  font-family: var(--font-editorial, var(--font-serif));
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  color: var(--color-ink, #302e29);
  letter-spacing: -0.06em;
  line-height: 1.4;
}

.auth-editorial-head p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted, #817a70);
  line-height: 1.9;
  word-break: keep-all;
}

.auth-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 36px 34px;
  box-shadow: none;
  animation: viewFadeSlideIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card.auth-card-wide {
  max-width: 720px;
}

.auth-card-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card-head h1 {
  margin: 6px 0 8px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.06em;
  color: var(--color-ink, #302e29);
}

.auth-card-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-muted, #817a70);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.auth-mode-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-mode-tab:hover {
  color: var(--color-brand-500);
}

.auth-mode-tab.is-active {
  color: var(--color-brand-500);
  font-weight: 700;
  border-bottom-color: var(--color-brand-500);
}

.auth-section-head {
  padding-bottom: 10px;
  margin: 28px 0 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.auth-section-head:first-child {
  margin-top: 0;
}

.auth-section-num {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-seal);
  flex-shrink: 0;
}

.auth-section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--color-brand-500);
}

.auth-benefit-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.terms-agree-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 8px;
}

.terms-agree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.86rem;
}

.terms-preview-box {
  display: none;
  margin-top: 6px;
  margin-bottom: 8px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

.terms-preview-box.is-open {
  display: block;
}

/* Footer (Client v9 Light Editorial Warm Paper Footer) */
.store-footer {
  background: var(--color-bg);
  color: #787067;
  border-top: 1px solid var(--color-line, #d9d2c7);
  padding: 44px 0 52px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.75;
  margin-top: auto;
}

body.auth-store-body .store-footer {
  padding: 26px 0 32px;
}

.footer-policy-links {
  display: none;
}

.footer-policy-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-ink, #302e29);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-policy-btn:hover {
  color: var(--color-eyebrow, #776452);
  text-decoration: underline;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-grid > div:first-child,
.footer-info-col {
  flex: 1 1 360px;
  min-width: 0;
}

.footer-brand-row {
  margin: 0 0 12px;
}

.footer-brand-mark {
  height: 30px;
  width: auto;
  display: block;
}

.footer-meta-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-right-col {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  min-width: 0;
}

.footer-eng-sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--color-eyebrow, #776452);
  margin: 4px 0 8px;
}

.footer-meta-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 2px;
  font-size: 12px;
  line-height: 1.75;
  color: #787067;
  word-break: keep-all;
}

.footer-meta-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  word-break: keep-all;
}

.footer-meta-line strong,
.footer-meta-label {
  font-weight: 600;
  color: #544b43;
}

.footer-v9-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-ink, #302e29);
}

.footer-v9-links a {
  color: #544b43;
  text-decoration: none;
}

.footer-v9-links a.sf-footer-link-strong {
  color: var(--color-brand-500, #391802);
  font-weight: 700;
}

.footer-v9-links a:hover {
  color: var(--color-brand-500, #391802);
  text-decoration: underline;
}

.footer-util-link,
.footer-util-btn {
  background: none;
  border: none;
  padding: 0;
  color: #817a70;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: none;
}

.footer-util-link:hover,
.footer-util-btn:hover {
  color: var(--color-ink, #302e29);
  text-decoration: underline;
}

.footer-copyright-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e4dfd4;
  color: #847b71;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 767px) {
  .store-footer {
    padding: 22px 0 24px;
  }

  body.auth-store-body .store-footer {
    padding: 20px 0 24px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px;
  }

  .footer-grid > div:first-child,
  .footer-info-col,
  .footer-right-col {
    flex: 0 0 auto;
    width: 100%;
  }

  .footer-right-col {
    order: -1;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4dfd4;
  }

  .footer-v9-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 14px;
  }

  .footer-v9-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 12.5px;
  }

  .footer-brand-row {
    margin-bottom: 10px;
  }

  .footer-brand-mark {
    height: 26px;
  }

  .footer-meta-group {
    gap: 5px;
  }

  .footer-meta-line {
    font-size: 11.5px;
    line-height: 1.65;
    column-gap: 12px;
    row-gap: 2px;
  }

  .footer-copyright-bar {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 11px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   5. Continuous Multi-Viewport Fluid Breakpoints (Desktop -> Laptop -> Fold/Tablet -> Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
  .store-gnb-item-right {
    margin-left: 0;
  }

  .header-action-label {
    display: none;
  }

  .header-icon-btn {
    padding: 0 8px;
  }
}

@media (max-width: 1023px) {
  .brand-logo-text span,
  .store-brand span,
  .util-desktop-only {
    display: none !important;
  }

  .header-icon-btn.mobile-menu-btn,
  .mobile-menu-btn {
    display: inline-flex;
  }

  .store-header-main {
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 12px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-calligraphy-watermark {
    display: none;
  }

  .hanui-plaque-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .bestseller-grid {
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-sidebar {
    display: none;
  }

  .mobile-category-chips {
    display: flex;
  }

  .split-view-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticky-summary-panel {
    position: static;
  }

  .book-summary-list.is-grid-view {
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  }

  .carrier-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Intermediate Foldable & Small Tablet Band (Galaxy Z Fold 8 Unfolded: 620px - 767px) */
@media (min-width: 620px) and (max-width: 767px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .store-container {
    padding-inline: 20px;
  }

  .store-util-bar {
    min-height: 44px;
    font-size: 0.75rem;
  }

  .store-util-inner {
    min-height: 44px;
  }

  .pc-only-action,
  .pc-wide-only-action,
  #btnMobileSearchToggle {
    display: none !important;
  }

  #btnMobileMenu {
    display: inline-flex;
  }

  .store-util-bar .pc-only-search,
  .pc-only-search {
    display: flex !important;
    width: 170px;
  }

  .store-logo-band-inner {
    padding-block: 64px;
  }

  .hyundong-main-logo-img {
    width: 250px;
  }

  .store-header-main {
    grid-template-columns: auto auto minmax(170px, 1fr) auto;
    height: 68px;
    min-height: 68px;
    gap: 10px;
    padding: 0;
  }

  .brand-logo-mark,
  .brand-seal-mark {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .brand-hanja {
    display: none;
  }

  .brand-logo-text strong,
  .store-brand strong {
    font-size: 1.06rem;
    white-space: nowrap;
  }

  .store-gnb {
    display: block !important;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .store-gnb-list {
    gap: 20px;
  }

  .bestseller-grid,
  .book-summary-list.is-grid-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .book-summary-row {
    grid-template-columns: 108px minmax(0, 1fr) 144px;
    padding: 16px;
    gap: 16px;
  }

  .book-check-col {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-strong);
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-shadow: 0 -4px 16px rgba(57, 24, 2, 0.08);
  }

  .mobile-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 4px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    position: relative;
  }

  .mobile-tab-btn.is-active {
    color: var(--color-brand-500);
    font-weight: 800;
  }
}

/* Compact Mobile Band (<= 619px: iPhone SE 375px, Galaxy S 412px, Fold Cover 320px-360px) */
@media (max-width: 619px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .store-container {
    padding-inline: 16px;
  }

  .store-util-bar {
    min-height: 44px;
    font-size: 0.73rem;
  }

  .store-util-inner {
    min-height: 44px;
    gap: 6px;
  }

  #topRibbonText {
    line-height: 1.4;
    text-align: center;
  }

  #pcAuthUtilLinks,
  .pc-only-search,
  .pc-only-action,
  .pc-wide-only-action {
    display: none !important;
  }

  .store-logo-band-inner {
    padding-block: 54px 50px;
  }

  .hyundong-main-logo-img {
    width: 225px;
    max-width: 67vw;
  }

  .store-gnb {
    display: block !important;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }

  .store-gnb-list {
    gap: clamp(8px, 3vw, 18px);
    justify-content: space-between;
  }

  .store-gnb-btn {
    padding: 0 4px;
    font-size: clamp(0.75rem, 3.1vw, 0.85rem);
    letter-spacing: -0.025em;
  }

  .header-icon-btn.mobile-only-btn,
  .mobile-only-btn {
    display: inline-flex;
  }

  .store-header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: 58px;
    min-height: 58px;
    gap: 6px;
    padding: 0;
  }

  .brand-logo-mark,
  .brand-seal-mark {
    width: 32px;
    height: 32px;
    font-size: 0.86rem;
  }

  .brand-hanja {
    display: none;
  }

  .brand-logo-text strong,
  .store-brand strong {
    font-size: 1.04rem;
    white-space: nowrap;
  }

  .brand-logo-text span,
  .store-brand span {
    display: none !important;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .hero-banner {
    padding: 30px 0 28px;
    background-image:
      linear-gradient(
        180deg,
        rgba(250, 248, 243, 0.94) 0%,
        rgba(250, 248, 243, 0.88) 62%,
        rgba(244, 238, 228, 0.74) 100%
      ),
      image-set(
        url("../images/hero-bg-mobile.webp?v=20261113b") type("image/webp"),
        url("../images/hero-bg-mobile.svg?v=20261113b") type("image/svg+xml")
      );
    background-size: cover, cover;
    background-position: center, center bottom;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-kicker-sep,
  .hero-kicker-motto {
    display: none;
  }

  .hero-spec-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 18px;
  }

  .hero-spec-list li {
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .hero-spec-list li + li::before {
    display: none;
  }

  .hero-bookstand {
    padding: 16px;
  }

  .hero-featured-card {
    grid-template-columns: 106px minmax(0, 1fr);
    padding: 2px 0 12px;
    gap: 14px;
  }

  .hero-cover-pedestal {
    padding: 9px 8px;
  }

  .hero-showcase-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .hero-showcase-tab {
    padding: 6px 5px;
  }

  .hanui-plaque-count {
    display: none;
  }

  .hanui-plaque-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hanui-plaque-card:last-child {
    grid-column: auto;
  }

  .hanui-plaque-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .promo-mid-banner {
    padding: 18px;
  }

  .bestseller-grid,
  .book-summary-list.is-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .book-summary-row {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
    gap: 14px;
  }

  .book-check-col {
    display: none;
  }

  .book-action-col {
    grid-column: 1 / -1;
    flex-direction: row;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
  }

  .book-action-col .btn {
    flex: 1;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .cart-item-card {
    grid-template-columns: 24px 68px minmax(0, 1fr);
  }

  .cart-item-actions {
    grid-column: 2 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .order-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .delivery-steps,
  .order-card-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .delivery-step,
  .order-card-step {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    text-align: left;
  }

  .waybill-lookup-box {
    padding: 14px;
  }

  .waybill-lookup-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .waybill-lookup-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .waybill-lookup-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .carrier-directory-card {
    padding: 16px;
  }

  .carrier-directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .detail-cover-wrap {
    max-width: 190px;
    margin: 0 auto;
  }

  .auth-page-wrap {
    padding-block: 20px 40px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-strong);
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-shadow: 0 -4px 16px rgba(44, 41, 37, 0.08);
  }

  .mobile-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 4px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
  }

  .mobile-tab-btn.is-active {
    color: var(--color-brand-700);
    font-weight: 800;
  }
}

@media (max-width: 480px) {
  .brand-logo-text strong,
  .store-brand strong {
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .brand-logo-text span,
  .store-brand span {
    display: none !important;
  }
  .header-icon-btn {
    padding: 0 6px;
    min-height: 38px;
    font-size: 0.8rem;
  }
}

@media (max-width: 359px) {
  .store-container {
    padding-inline: 12px;
  }
  .brand-logo-mark,
  .brand-seal-mark {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .brand-logo {
    gap: 7px;
  }
  .brand-logo-text strong,
  .store-brand strong {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .header-icon-btn {
    padding: 0 5px;
    min-height: 36px;
    font-size: 0.76rem;
    gap: 3px;
  }
  .bestseller-grid,
  .book-summary-list.is-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .book-summary-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
}

/* ==========================================================================
   6. Standalone Routing & Page Architecture (Milestone 1)
   Breadcrumbs, Standalone Wrappers, CS & Policy Layouts, Book Detail Page
   ========================================================================== */

/* Standalone Page Wrapper */
.standalone-page-wrap {
  padding-block: 64px 120px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  padding: 10px 0 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--color-brand-900);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-border-strong);
  font-size: 0.76rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-brand-800);
  font-weight: 600;
}

/* Sub-nav Tabs (Customer Service & Policies) */
.sub-nav-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-nav-tab {
  padding: 12px 2px;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sub-nav-tab:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-eyebrow);
  background: transparent;
}

.sub-nav-tab.is-active {
  background: transparent;
  color: var(--color-accent-olive);
  border-bottom-color: var(--color-accent-olive);
  font-weight: 700;
}

/* Page Hero Headings */
.standalone-head {
  margin-bottom: 52px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
}

.standalone-head h1 {
  margin: 16px 0 12px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: clamp(34px, 4vw, 49px);
  color: var(--color-ink);
  letter-spacing: -0.07em;
  line-height: 1.45;
}

.standalone-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 2.0;
}

/* Standalone Policy Documents */
.policy-doc-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-ink);
  border-radius: 0;
  padding: 36px 4px;
  box-shadow: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.policy-article {
  margin-bottom: 32px;
}

.policy-article h2,
.policy-article h3 {
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.policy-article p {
  font-size: 13.5px;
  color: #635e55;
  line-height: 2.0;
  margin: 0 0 10px;
}

.policy-article ul,
.policy-article ol {
  margin: 8px 0 14px;
  padding-left: 22px;
  font-size: 13.5px;
  color: #635e55;
  line-height: 2.0;
}

.policy-article li {
  margin-bottom: 4px;
}

/* CS Notice List */
.notice-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.notice-cat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notice-list-wrap {
  border: none;
  border-top: 2px solid var(--color-ink);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.notice-list-header {
  display: grid;
  grid-template-columns: 80px 110px minmax(0, 1fr) 110px 80px;
  gap: 12px;
  padding: 17px 16px;
  background: var(--color-table-head, #f0ece4);
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
}

.notice-list-header .col-title {
  text-align: left;
}

.notice-row {
  display: grid;
  grid-template-columns: 80px 110px minmax(0, 1fr) 110px 80px;
  gap: 12px;
  align-items: center;
  padding: 19px 16px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.notice-row:last-child {
  border-bottom: 1px solid var(--color-line, #d9d2c7);
}

.notice-row:hover {
  background: var(--color-table-hover, #efebe3);
}

.notice-row.is-pinned {
  background: #faf8f5;
  font-weight: 500;
}

.notice-row .col-title {
  text-align: left;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-ink);
}

.notice-content-drawer {
  display: none;
  padding: 20px 24px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  white-space: pre-wrap;
}

.notice-content-drawer.is-open {
  display: block;
}

/* CS FAQ Accordion */
.faq-search-box {
  margin-bottom: 22px;
}

.faq-search-box .store-search-box {
  border-radius: 0;
  border: 1px solid var(--color-line, #d9d2c7);
  background: var(--color-input-paper, #fffdf8);
  height: 46px;
  padding: 0;
}

.faq-search-box .store-search-input {
  padding: 0 14px;
  font-size: 14px;
}

.faq-search-box .store-search-submit {
  border-radius: 0;
  height: 44px;
  padding: 0 20px;
  background: var(--color-ink, #302e29);
  color: var(--color-brand-50, #f6f3ea);
  font-size: 13px;
  font-weight: 500;
}

.faq-search-box .store-search-submit:hover {
  background: var(--color-brand-600, #2e1201);
  color: #ffffff;
}

.faq-accordion-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  margin-bottom: -1px;
  overflow: hidden;
  box-shadow: none;
  transition: background-color 0.16s ease;
}

.faq-accordion-item.is-open {
  border-color: var(--color-line);
}

.faq-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  transition: background 0.15s ease;
}

.faq-accordion-head:hover {
  background: var(--color-table-hover);
}

.faq-accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.faq-accordion-icon {
  font-size: 1rem;
  color: var(--color-eyebrow);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-accordion-item.is-open .faq-accordion-icon {
  transform: rotate(180deg);
}

.faq-accordion-body {
  display: none;
  padding: 18px 20px 22px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  border-top: 1px solid var(--color-line);
  background: var(--color-table-head);
  white-space: pre-line;
}

.faq-accordion-item.is-open .faq-accordion-body {
  display: block;
}

.faq-cta-box {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--color-editorial-warm);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: none;
}

.faq-cta-box h3 {
  margin: 0 0 6px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.faq-cta-box p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* 1:1 Inquiry Form & Customer Notice */
.cs-guide-banner {
  background: var(--color-editorial-warm);
  border: none;
  border-radius: 0;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  box-shadow: none;
}

.cs-guide-col h3 {
  margin: 0 0 8px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-ink);
}

.cs-guide-col p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.inquiry-form-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-ink);
  border-radius: 0;
  padding: 32px 0;
  box-shadow: none;
}

/* Reader Q&A Board */
.qna-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qna-card-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 20px 16px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.16s ease;
}

.qna-card-item:first-child {
  border-top: 2px solid var(--color-ink);
}

.qna-card-item:hover {
  background: var(--color-table-hover);
}

.qna-card-item.is-open {
  background: var(--color-surface);
}

.qna-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.qna-item-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.qna-item-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.qna-body-drawer {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.qna-card-item.is-open .qna-body-drawer {
  display: block;
}

.qna-question-text {
  font-size: 0.93rem;
  color: var(--color-text-primary);
  line-height: 1.75;
  white-space: pre-wrap;
  margin-bottom: 14px;
}

.qna-answer-box {
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand-700);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.qna-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--color-brand-900);
}

/* Standalone Book Detail Page */
.detail-page-wrap {
  padding-block: 48px 120px;
}

.detail-hero-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 0 40px;
  margin-bottom: 36px;
  box-shadow: none;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 43%) minmax(0, 1fr);
  gap: clamp(36px, 6.5vw, 84px);
  align-items: flex-start;
}

.detail-cover-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 0.77;
  margin: 0 auto;
  border-radius: 0;
  padding: 0;
  background: #e8e3da;
  overflow: hidden;
  box-shadow: none;
}

.detail-cover-container .book-cover,
.detail-cover-container .book-cover-art,
.detail-cover-container .detail-cover-sub-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-cover-container .book-cover-art.has-real-photo {
  padding: 0;
}

.detail-cover-container .book-cover-art::before,
.detail-cover-container .book-cover-art::after {
  display: none;
}

.detail-cover-container .book-cover-art:hover {
  transform: none;
  box-shadow: none;
}

.detail-cover-sub-photo {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.detail-cover-sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  background: rgba(34, 31, 27, 0.78);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}

.detail-gallery-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.detail-gallery-strip[hidden] {
  display: none !important;
}

.detail-gallery-strip::-webkit-scrollbar {
  display: none;
}

.detail-gallery-thumb {
  flex: 0 0 54px;
  width: 54px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border-radius: 0;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.detail-gallery-thumb:hover {
  border-color: var(--color-brand-500);
}

.detail-gallery-thumb.is-active {
  border-color: var(--color-brand-800);
  box-shadow: 0 0 0 2px rgba(57, 24, 2, 0.22);
}

.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.detail-info-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title-group h1 {
  margin: 16px 0 10px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 50px);
  color: var(--color-ink);
  letter-spacing: -0.07em;
  line-height: 1.42;
}

.detail-title-group p.sub-title {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.detail-biblio-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
}

.detail-pricing-panel {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-line, #d9d2c7);
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price-main .sale-price {
  font-size: 21px;
  font-weight: 650;
  color: var(--color-accent-olive, #64764c);
}

.detail-price-main .list-price {
  font-size: 14px;
  color: var(--color-price-regular, #8c867e);
  text-decoration: line-through;
  text-decoration-color: #978c80;
}

.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 6px;
  flex-wrap: wrap;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  overflow: hidden;
}

.qty-counter-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--color-surface-soft);
  color: var(--color-brand-900);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-counter-btn:hover {
  background: var(--color-brand-200);
}

.qty-counter-input {
  width: 52px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-weight: 700;
  font-size: 0.96rem;
  outline: none;
}

.detail-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 10px;
}

.detail-action-buttons .btn {
  min-height: 50px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

#detailHeroActionRow #btnHeroAddCart {
  background: var(--color-surface, #fcfbf7);
  color: var(--color-brand-500, #391802);
  border: 1px solid var(--color-brand-500, #391802);
  font-weight: 600;
}

#detailHeroActionRow #btnHeroAddCart:hover:not(:disabled) {
  background: var(--color-editorial-warm, #ebe5d9);
}

#detailHeroActionRow #btnHeroBuyNow {
  background: var(--color-brand-500, #391802);
  border-color: var(--color-brand-500, #391802);
  color: #ffffff;
  font-weight: 600;
}

#detailHeroActionRow #btnHeroBuyNow:hover:not(:disabled) {
  background: var(--color-brand-600, #2e1201);
  border-color: var(--color-brand-600, #2e1201);
}

/* Detail Sticky Tabs & Content Sections */
:root {
  --sticky-chrome-h: 121px;
}

@media (max-width: 767px) {
  :root {
    --sticky-chrome-h: 111px;
  }
  body:not(:has(.mobile-bottom-nav, .mobile-bottom-action-bar)) {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 619px) {
  :root {
    --sticky-chrome-h: 101px;
  }
}

@media (max-width: 359px) {
  .detail-action-buttons {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-bottom-action-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .mobile-bottom-action-bar .bar-price strong {
    font-size: 0.96rem;
  }
  .mobile-bottom-action-bar .bar-actions {
    gap: 6px;
  }
  .mobile-bottom-action-bar .btn {
    min-height: 40px;
    padding: 0 8px !important;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

.detail-section-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 52px 0 28px;
  margin-bottom: 24px;
  box-shadow: none;
}

.detail-section-card h2 {
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: 29px;
  letter-spacing: -0.05em;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
}

/* Mobile Bottom Fixed Action Bar */
.mobile-bottom-action-bar {
  display: none;
}

/* Responsive Structural Layouts */
@media (max-width: 900px) {
  .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .detail-cover-container {
    max-width: 240px;
  }
  .cs-guide-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .notice-list-header,
  .notice-row {
    grid-template-columns: 70px 95px minmax(0, 1fr) 95px;
  }
  .notice-list-header .col-views,
  .notice-row .col-views {
    display: none;
  }
}

@media (max-width: 767px) {
  .standalone-page-wrap {
    padding-block: 36px 72px;
  }
  .policy-doc-card,
  .inquiry-form-card,
  .detail-hero-card,
  .detail-section-card {
    padding-block: 24px;
    padding-inline: 0;
  }
  .notice-list-header {
    display: none;
  }
  .notice-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
    text-align: left;
  }
  .notice-row .col-num,
  .notice-row .col-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: left;
  }
  .detail-page-wrap {
    padding-block: 24px 84px;
  }
  .mobile-bottom-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 350;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-strong);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(44, 41, 37, 0.12);
  }
  .mobile-bottom-action-bar .bar-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mobile-bottom-action-bar .bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Milestone 4: Order/Fulfillment & Multi-Address Management (Features 14, 15, 16, 17)
   ========================================================================== */

/* Feature 15: Order History Book Cover Thumbnails (48x64px) */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-thumb-link {
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.order-item-thumb-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.order-item-thumb,
.order-book-thumb,
img.order-thumb,
.order-thumb-placeholder {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: block;
  background-color: var(--color-bg-subtle, #f5f3ef);
  box-sizing: border-box;
}

.order-item-thumb-fallback,
.order-thumb-placeholder {
  width: 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-100, #eae7e1);
  color: var(--color-brand-800, #4d473e);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
}

@media print {
  .order-item-thumb,
  .order-book-thumb,
  img.order-thumb,
  .order-thumb {
    display: inline-block !important;
  }
}

.order-item-meta {
  flex: 1;
  min-width: 0;
}

.order-item-title-link {
  display: inline-block;
  color: var(--color-brand-900);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  word-break: keep-all;
  transition: color 0.14s ease;
}

.order-item-title-link:hover {
  color: var(--color-brand-600);
  text-decoration: underline;
}

.order-item-sub {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-total {
  font-weight: 700;
  color: var(--color-brand-900);
}

/* Feature 17: Rosen Logistics Guidance Panel */
.rosen-guidance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--color-brand-50);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
}

.rosen-guidance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rosen-guidance-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rosen-guidance-url {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
}

.rosen-guidance-action {
  flex-shrink: 0;
}

/* Feature 16: Member Multi-Address Management */
.address-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.address-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.address-card:hover {
  border-color: var(--color-brand-400);
  box-shadow: var(--shadow-md);
}

.address-card.is-default {
  border-color: #c5b6a2;
  border-top: 2px solid var(--color-brand-500, #391802);
  background: linear-gradient(180deg, #faf9f7 0%, var(--color-surface) 100%);
  box-shadow: none;
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.address-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.address-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.address-field-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.address-field-row .field-label {
  width: 64px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.address-field-row .field-val {
  flex: 1;
  color: var(--color-brand-900);
  word-break: break-all;
}

/* Feature 16: Checkout Address Quick Selector */
.checkout-address-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-brand-900);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.checkout-addr-chip:hover {
  border-color: var(--color-brand-500);
  background: var(--color-brand-50);
}

.checkout-addr-chip.is-selected {
  background: var(--color-brand-800);
  border-color: var(--color-brand-800);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(44, 41, 37, 0.18);
}

.checkout-addr-chip.is-selected .badge {
  background: #ffffff;
  color: var(--color-brand-900);
}

.checkout-addr-chip.is-selected small {
  color: #dfd9cd;
}

@media (min-width: 620px) and (max-width: 767px) {
  .address-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 619px) {
  .address-book-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rosen-guidance-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .rosen-guidance-action {
    width: 100%;
  }
  .rosen-guidance-action .btn {
    width: 100%;
    justify-content: center;
  }
  .checkout-address-chips {
    flex-direction: column;
  }
  .checkout-addr-chip {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Milestone 5: Persona-Driven Bookstore UX & Continuous Responsive Components
   ========================================================================== */

.sub-nav-tabs::-webkit-scrollbar {
  display: none;
}

.sub-nav-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Integrated Search Suggest Popover (Recent Keywords, Popular Keywords, Instant Book Jump) */
.search-suggest-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  width: min(360px, calc(100vw - 24px));
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  z-index: 280;
  white-space: normal;
}

.search-suggest-popover.is-open {
  display: block;
}

.suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-brand-800);
  margin-bottom: 8px;
}

.suggest-clear-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.suggest-clear-btn:hover {
  color: var(--color-brand-900);
  text-decoration: underline;
}

.suggest-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggest-kw-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 8px 3px 11px;
  font-size: 0.8rem;
}

.suggest-kw-pill button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--color-brand-900);
  cursor: pointer;
}

.suggest-kw-pill .suggest-kw-del {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  padding: 0 3px;
}

.suggest-pop-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--color-brand-900);
  cursor: pointer;
}

.suggest-pop-chip:hover {
  background: var(--color-brand-50);
  border-color: var(--color-brand-500);
}

.suggest-pop-chip strong {
  color: var(--color-seal);
  font-size: 0.76rem;
}

.suggest-empty {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 6px 0;
}

.suggest-book-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggest-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-brand-50);
  text-decoration: none;
  color: var(--color-brand-900);
}

.suggest-book-row:hover {
  border-color: var(--color-brand-500);
  background: var(--color-surface);
}

.suggest-book-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggest-book-info strong {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-book-info span {
  font-size: 0.77rem;
  color: var(--color-text-secondary);
}

/* Floating Quick Wing (Recently Viewed Books + Scroll Top) */
.store-quick-floating {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 290;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.quick-fab-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-fab-btn {
  min-width: 46px;
  min-height: 42px;
  padding: 5px 9px;
  border-radius: 2px;
  border: 1px solid var(--color-line, #d9d2c7);
  background: rgba(246, 243, 234, 0.96);
  box-shadow: 0 4px 12px rgba(48, 46, 41, 0.08);
  color: #62574b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.quick-fab-btn:hover {
  border-color: var(--color-eyebrow, #776452);
  background: var(--color-editorial-warm, #ebe5d9);
}

.quick-fab-count {
  color: var(--color-brand-500);
  font-size: 12px;
}

.quick-fab-top {
  background: var(--color-editorial-warm, #ebe5d9);
  border-color: var(--color-line, #d9d2c7);
  color: var(--color-ink, #302e29);
  min-height: 36px;
}

.quick-fab-top:hover {
  background: var(--color-ink, #302e29);
  border-color: var(--color-ink, #302e29);
  color: var(--color-brand-50, #f6f3ea);
}

.quick-recent-popover {
  display: none;
  width: min(312px, calc(100vw - 28px));
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
}

.quick-recent-popover.is-open {
  display: block;
}

.quick-recent-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: min(380px, calc(100vh - 200px));
  overflow-y: auto;
}

.quick-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-brand-900);
  font-size: 0.81rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.quick-recent-item:hover {
  border-color: var(--color-brand-500);
  background: var(--color-surface);
}

.quick-recent-thumb {
  width: 38px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quick-recent-thumb.has-real-photo .book-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-recent-thumb.has-real-photo .quick-recent-thumb-fallback {
  display: none;
}

.quick-recent-thumb-fallback {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-brand-700);
}

.quick-recent-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-recent-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brand-900);
}

.quick-recent-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-recent-cat {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.quick-recent-price {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-brand-700);
}

@media (max-width: 767px) {
  .store-quick-floating {
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .quick-fab-btn {
    min-width: 38px;
    min-height: 34px;
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(246, 243, 234, 0.9);
  }
}

/* MyPage Hub, Points Ledger & Non-Panel-Card Order Utilities */
.mypage-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mypage-stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand-500);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}

.mypage-subtabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-brand-800);
}

.mypage-subtabs::-webkit-scrollbar {
  display: none;
}

.mypage-subtab-btn {
  padding: 9px 16px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mypage-subtab-btn.is-active {
  background: var(--color-brand-800);
  border-color: var(--color-brand-800);
  color: #ffffff;
}

.guest-order-lookup-bar,
.order-filter-bar,
.order-complete-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.point-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.point-ledger-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Track 1 · Track 3 · Track 4 — Catalog Sub-Search/Pagination, Order Complete
   Summary Card, Order Period/Status Filter Bar & Self-Service Claim Modal
   ========================================================================== */
.catalog-subsearch-wrap {
  flex: 1 1 150px;
  min-width: 140px;
  max-width: 230px;
}

.catalog-subsearch-input {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-brand-50);
  color: var(--color-text-primary);
}

.catalog-subsearch-input:focus {
  outline: none;
  border-color: var(--color-brand-600);
  background: #ffffff;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 56px;
  padding: 12px 8px 4px;
}

.catalog-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-brand-800);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.catalog-page-btn.is-nav {
  padding: 0 13px;
  font-weight: 600;
  background: var(--color-brand-50);
}

.catalog-page-btn:hover:not(:disabled):not(.is-active) {
  background: var(--color-brand-100);
  border-color: var(--color-brand-500);
}

.catalog-page-btn.is-active {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: #ffffff;
}

.catalog-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Dedicated Order Complete Confirmation Card (#orderCompleteCard) */
.order-complete-card {
  border: 1.5px solid var(--color-brand-400);
  border-left: 5px solid var(--color-brand-700);
  background: linear-gradient(180deg, #fffdf9 0%, var(--color-brand-50) 100%);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.order-complete-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.order-complete-title {
  margin: 2px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--color-brand-900);
  overflow-wrap: anywhere;
}

.order-complete-amount {
  color: var(--color-seal);
}

.order-complete-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.order-complete-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-complete-deposit-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-brand-300);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--color-brand-900);
  overflow-wrap: anywhere;
}

.order-complete-deposit-box span {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.order-complete-summary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.order-complete-meta-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
}

.order-complete-meta-item.is-wide {
  grid-column: 1 / -1;
}

.order-complete-meta-item .meta-label {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.order-complete-meta-item .meta-val {
  display: block;
  font-size: 0.88rem;
  color: var(--color-brand-900);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Order Period / Status Filter & Search Bar */
.order-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-filter-groups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.order-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.order-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brand-800);
  white-space: nowrap;
}

.order-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-filter-chips .chip-btn {
  white-space: nowrap;
}

.order-filter-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.order-history-search-wrap {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 440px;
}

.order-history-search-input {
  width: 100%;
  min-height: 38px;
  height: 38px;
  font-size: 0.86rem;
}

.order-filter-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Order Claim Summary Bar & Modal Target Box */
.order-claim-summary-bar {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-brand-300);
  background: var(--color-brand-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--color-brand-900);
}

.order-claim-modal-target {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-brand-50);
  font-size: 0.88rem;
  color: var(--color-brand-900);
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .catalog-subsearch-wrap {
    flex: 1 1 100%;
    max-width: none;
    order: -1;
  }
}

@media (max-width: 689px) {
  .order-complete-card {
    padding: 16px;
  }

  .order-complete-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-complete-actions {
    width: 100%;
  }

  .order-complete-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .order-filter-bar {
    padding: 14px;
  }

  .order-filter-group {
    width: 100%;
  }

  .order-filter-chips {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .order-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .order-history-search-wrap {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }

  .order-filter-summary {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   YES24-Style Main Hero Curation Showcase (Dark Stage + Wide 16:9 Image + Bottom Tab Strip, Zero Progress Bar)
   ========================================================================== */
.hero-banner.hero-curation-showcase {
  padding: 0;
  background-image: none;
  background-color: var(--hero-stage-bg, #1b1917);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.28s ease;
}

.hero-curation-stage {
  position: relative;
  padding: 36px 0;
  background: radial-gradient(circle at 74% 50%, rgba(57, 24, 2, 0.14) 0%, rgba(0, 0, 0, 0) 62%);
}

.hero-curation-stage-link {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 316px;
  text-decoration: none;
  color: #ffffff;
}

.hero-curation-stage-link.is-swapping {
  animation: heroCurationFade 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroCurationFade {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-curation-copy {
  min-width: 0;
  padding: 6px 0;
}

.hero-banner.hero-curation-showcase .hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 2.75vw, 2.52rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  max-width: none;
  word-break: keep-all;
  animation: none;
}

.hero-curation-sub {
  margin: 16px 0 0;
  font-size: clamp(0.93rem, 1.12vw, 1.06rem);
  font-weight: 400;
  line-height: 1.55;
  color: #d8d2c7;
  word-break: keep-all;
}

.hero-curation-visual {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.hero-curation-img-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #141210;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 46px -14px rgba(0, 0, 0, 0.6);
}

.hero-curation-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-curation-stage-link:hover .hero-curation-img-frame img {
  transform: scale(1.022);
}

.hero-curation-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 18, 16, 0.56);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.hero-curation-arrow.is-prev {
  left: 18px;
}

.hero-curation-arrow.is-next {
  right: 18px;
}

.hero-curation-stage:hover .hero-curation-arrow,
.hero-curation-arrow:focus-visible {
  opacity: 1;
}

.hero-curation-arrow:hover {
  background: rgba(57, 24, 2, 0.55);
}

.hero-curation-tabbar {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e6e1d7;
}

.hero-curation-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-left: 1px solid #e8e3da;
}

.hero-curation-tabs::-webkit-scrollbar {
  display: none;
}

.hero-curation-tab {
  flex: 1 1 0;
  min-width: 148px;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-right: 1px solid #e8e3da;
  background: #ffffff;
  color: #5c554b;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.hero-curation-tab:hover {
  background: #f7f4ee;
  color: #2b2824;
}

.hero-curation-tab.is-active {
  background: #2b2824;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 899px) {
  .hero-curation-arrow {
    display: none;
  }

  .hero-curation-tabbar-inner {
    padding: 0;
  }

  .hero-curation-tabs {
    border-left: none;
  }

  .hero-curation-tab {
    flex: 0 0 auto;
    min-width: 136px;
    height: 46px;
    padding: 0 15px;
    font-size: 0.86rem;
  }
}

@media (min-width: 660px) and (max-width: 899px) {
  .hero-curation-stage {
    padding: 26px 0;
  }

  .hero-curation-stage-link {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 20px;
    min-height: 224px;
  }

  .hero-banner.hero-curation-showcase .hero-title {
    font-size: clamp(1.36rem, 2.7vw, 1.76rem);
  }

  .hero-curation-sub {
    margin-top: 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 659px) {
  .hero-curation-stage {
    padding: 18px 0 22px;
  }

  .hero-curation-stage-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
  }

  .hero-curation-visual {
    order: -1;
    justify-content: center;
  }

  .hero-curation-img-frame {
    max-width: 100%;
    border-radius: 8px;
  }

  .hero-curation-copy {
    padding: 0;
  }

  .hero-banner.hero-curation-showcase .hero-title {
    font-size: clamp(1.32rem, 5.4vw, 1.62rem);
    line-height: 1.3;
  }

  .hero-curation-sub {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Project-Wide Natural Column, Card & Control Height Harmonization
   ========================================================================== */
.section-head {
  align-items: center;
}

.bestseller-card,
.hanui-plaque-card {
  height: 100%;
}

.book-summary-list.is-grid-view .book-summary-row {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-summary-list.is-grid-view .book-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-summary-list.is-grid-view .book-price-line {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 6px;
}

.book-summary-list.is-grid-view .book-action-col {
  margin-top: 8px;
}

/* Home 2-Column Recommend / Newest Book Cards */
.home-recommend-grid {
  align-items: stretch;
}

.recommend-card-home {
  margin-bottom: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.recommend-card-home.recommend-card-md {
  grid-template-columns: 98px minmax(0, 1fr);
}

.recommend-card-cover {
  cursor: pointer;
  align-self: center;
}

.recommend-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.recommend-card-title {
  margin: 6px 0 4px;
  font-size: 0.99rem;
  font-family: var(--font-serif);
  line-height: 1.35;
  cursor: pointer;
  color: var(--color-brand-900);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-card-title:hover {
  color: var(--color-seal);
}

.recommend-card-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-card-summary {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.recommend-card-foot > strong {
  font-size: 1.02rem;
  color: var(--color-brand-900);
}

/* Home Bottom 2-Column: Reader Reviews vs Notices & CS */
.home-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-community-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-community-col > .section-head {
  min-height: 58px;
}

.home-review-stack {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.home-review-card {
  margin-bottom: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
}

.home-review-book-link {
  font-weight: 700;
  font-size: 0.89rem;
  color: var(--color-brand-700);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-review-book-link:hover {
  color: var(--color-seal);
  text-decoration: underline;
}

.home-review-excerpt {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-cs-panel {
  flex: 1;
  margin-bottom: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.home-notice-list {
  display: flex;
  flex-direction: column;
}

.home-notice-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.home-notice-row:first-child {
  padding-top: 2px;
}

.home-notice-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.home-notice-btn:hover .home-notice-title {
  color: var(--color-seal);
  text-decoration: underline;
}

.home-notice-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cs-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-cs-shortcut-btn {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-brand-900);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.home-cs-shortcut-btn:hover {
  background: var(--color-brand-50);
  border-color: var(--color-brand-500);
}

.home-cs-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--color-brand-50);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

/* Book Detail 2-Column Hero & Related Books Equal Height */
@media (min-width: 901px) {
  .detail-hero-grid {
    grid-template-columns: 304px minmax(0, 1fr);
    align-items: stretch;
  }

  .detail-hero-media-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    height: 100%;
  }

  .detail-preview-trigger-btn {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
  }

  .detail-info-box {
    height: 100%;
  }

  .detail-qty-row {
    margin-top: auto;
  }

  .cs-guide-col + .cs-guide-col {
    border-left: 1px solid var(--color-border);
    padding-left: 20px;
  }
}

@media (max-width: 900px) {
  .detail-hero-media-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    align-items: center;
  }

  .detail-preview-trigger-btn {
    width: 100%;
    max-width: 240px;
  }
}

.related-book-cover {
  width: 100%;
  aspect-ratio: 0.77;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--color-cover-mat, #e9e4db);
}

.related-book-cover .book-cover-art {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.related-book-cover .book-cover-art.has-real-photo {
  padding: 0;
}

.related-book-cover .book-cover-art::before,
.related-book-cover .book-cover-art::after {
  display: none;
}

.related-book-cover .book-cover-art:hover {
  transform: none;
  box-shadow: none;
}

.related-book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.related-book-card:hover {
  border-color: var(--color-brand-500);
  transform: translateY(-2px);
}

.related-book-card-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--color-brand-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-book-card-author {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.related-book-card-price {
  font-size: 0.9rem;
  color: var(--color-brand-800);
  margin-top: auto;
  padding-top: 8px;
}

/* MyPage & CS Banner Height Alignment */
.mypage-activity-grid {
  align-items: stretch;
}

.mypage-activity-grid > .panel-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.address-book-grid {
  align-items: stretch;
}

.address-card {
  height: 100%;
}

.address-card-body {
  flex: 1;
}

.cs-guide-banner {
  align-items: stretch;
}

.cs-guide-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* PC Toolbar & Filter Bar Flush Control Heights */
@media (min-width: 768px) {
  .toolbar-right .toolbar-select,
  .toolbar-right .catalog-subsearch-input,
  .toolbar-right .btn-sm {
    height: 38px;
    min-height: 38px;
  }

  .notice-cat-chips .chip-btn,
  .qna-toolbar .btn-sm {
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .notice-filter-bar .store-search-box,
  .qna-toolbar .store-search-box {
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 767px) {
  .home-community-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .home-community-col > .section-head {
    min-height: 0;
  }

  .home-review-stack {
    grid-template-rows: auto;
  }

  .home-cs-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-grid {
  align-items: start;
}

.footer-grid p:last-child {
  margin-bottom: 0;
}

/* Foldable Flex Mode / Ultra-Short Landscape Height Guard (e.g. 412x420) */
@media (max-height: 520px) {
  :root {
    --sticky-chrome-h: 86px;
  }

  .store-util-bar {
    display: none !important;
  }

  .store-header-main {
    height: 50px;
    min-height: 50px;
  }

  .store-gnb {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }

  .mobile-tab-btn {
    min-height: 46px;
    padding: 4px 2px;
  }

  .mobile-bottom-action-bar {
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  }
}







/* ==========================================================================
   6. 도서출판 현동 (HYUNDONG BOOKS) Client-Aligned Sections & 100% Responsive UI
   Palette: #391802 (Main), #2e1201 (Dark Accent), #f6f3ea (Bg), #efeae0 (Frame), #e8ded7 (Border)
   ========================================================================== */

/* Top Util Bar Right Search Box Compact Fit */
.store-util-bar .store-search-box {
  width: clamp(164px, 15vw, 204px);
  height: 34px;
  border-width: 1px;
  border-color: var(--color-line, #d9d2c7);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.72);
}

.store-util-bar .store-search-select {
  height: 32px;
  line-height: 32px;
  border-radius: 0;
  padding: 0 4px 0 8px;
  font-size: 11px;
  font-weight: 400;
  color: #62574b;
}

.store-util-bar .store-search-input {
  padding: 0 4px 0 8px;
  font-size: 11.5px;
}

.store-util-bar .store-search-submit {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #62574b;
  border-radius: 0;
}

.store-util-bar .store-search-submit .header-icon-svg {
  width: 13px;
  height: 13px;
}

.store-util-bar .store-search-submit:hover {
  background: rgba(48, 46, 41, 0.06);
  color: #2e2119;
}

.store-util-bar .header-icon-btn {
  min-height: 32px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #62574b;
}

.store-util-bar .header-icon-btn:hover {
  background: transparent;
  color: #2e2119;
}

.store-util-bar .header-icon-only {
  width: 32px;
  padding: 0;
}

.store-util-bar .count-pill {
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 500;
  background: #3d2515;
  color: #ffffff;
  border-radius: 20px;
}

.store-util-bar .header-icon-btn[data-nav="cart"] {
  gap: 5px;
}

.store-util-bar .header-icon-btn[data-nav="cart"] .header-icon-svg {
  display: block;
  width: 17px;
  height: 17px;
}

@media (min-width: 1121px) {
  .store-util-bar .pc-wide-only-action .header-icon-svg {
    display: none;
  }
}

@media (max-width: 1120px) {
  .store-util-bar .header-icon-btn[data-nav="cart"] {
    gap: 4px;
    padding: 0 6px;
  }

  .store-util-bar .header-icon-btn[data-nav="cart"] .header-icon-svg {
    width: 19px;
    height: 19px;
  }
}

/* Mobile Drawer Submenu Accordion */
.mobile-drawer-accordion-btn .accordion-caret {
  font-size: 0.85rem;
  transition: transform 0.18s ease;
}

.mobile-drawer-accordion-btn[aria-expanded="true"] .accordion-caret {
  transform: rotate(180deg);
}

.mobile-drawer-sublist {
  display: none;
  flex-direction: column;
  padding: 4px 0 6px 14px;
  background: var(--color-brand-50);
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-sublist.is-open {
  display: flex;
}

.mobile-drawer-sublink {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.mobile-drawer-sublink:hover {
  color: var(--color-brand-500);
}

/* Home Fade Hero Banner (Balanced Editorial Ratio PC / 16:10 Mobile, Fade Transition, Zero Progress Bar) */
.hero-banner.hero-fade-banner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--gutter-inline) 0;
  border-bottom: none;
  background: var(--color-bg);
}

.hero-fade-banner .hero-fade-stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 33vw, 420px);
  min-height: 300px;
  max-height: 420px;
  background: #dfd7ca;
  border: none;
  border-radius: 6px;
  overflow: hidden;
}

.hero-fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  display: block;
  text-decoration: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-fade-slide picture,
.hero-fade-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}

.hero-fade-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: none;
}

.hero-fade-caption-kicker,
.hero-fade-caption .hero-title,
.hero-fade-caption .hero-curation-sub {
  margin: 0;
}

.hero-fade-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 6px;
  margin-top: 0;
  min-height: 36px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: rgba(246, 243, 234, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(48, 46, 41, 0.12);
  white-space: nowrap;
}

.hero-fade-dots {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.hero-fade-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(48, 46, 41, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.hero-fade-dot.is-active {
  width: 22px;
  background: var(--color-ink, #302e29);
}

.hero-fade-pause,
.hero-fade-arrow {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(48, 46, 41, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-ink, #302e29);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-fade-pause svg,
.hero-fade-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.hero-fade-pause {
  margin-left: 2px;
}

.hero-fade-pause:hover,
.hero-fade-arrow:hover {
  background: var(--color-ink, #302e29);
  border-color: var(--color-ink, #302e29);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-slide {
    transition: none !important;
  }
}

/* Home Recommended Books: Client V9 3-Col Editorial Shelf */
.home-bookshelf-section {
  margin-top: 0;
  padding: 115px 0;
}

.home-bookshelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  padding-bottom: 0;
  border-bottom: none;
}

.home-section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--color-eyebrow, #776452);
  text-transform: uppercase;
}

.home-bookshelf-head h2,
.home-editorial-head h2 {
  margin: 15px 0 0;
  font-family: var(--font-editorial, var(--font-serif));
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-ink, #302e29);
  letter-spacing: -0.06em;
}

.home-shelf-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-more-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-ink, #302e29);
  padding: 0 0 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--color-ink, #302e29);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-more-link:hover {
  color: var(--color-eyebrow, #776452);
  border-color: var(--color-eyebrow, #776452);
}

.home-bookshelf-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 38px;
  overflow: visible;
  padding-bottom: 0;
}

.home-shelf-card {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-shelf-card .hyundong-cover-frame {
  background: var(--color-cover-mat, #e9e4db);
}

.home-shelf-title {
  margin: 23px 0 11px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.035em;
  min-height: 0;
  color: var(--color-ink, #302e29);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-shelf-price {
  margin: 3px 0;
  min-height: 1.5em;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  gap: 12px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.home-shelf-desc {
  margin: 13px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.035em;
  min-height: calc(1.75em * 2);
  color: var(--color-text-muted, #817a70);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-shelf-cart-wrap {
  margin-top: auto;
  padding-top: 15px;
  width: 100%;
}

/* Home Full-Bleed Warm Editorial Statement Band (Client V9) */
.home-statement-band {
  margin-top: 0;
  width: 100%;
  padding: 120px 0;
  background: var(--color-editorial-warm, #ebe5d9);
  border-radius: 0;
  text-align: center;
}

.home-statement-band .home-section-kicker {
  display: block;
  margin-bottom: 0;
  letter-spacing: 0.24em;
  font-weight: 400;
}

.home-statement-heading {
  margin: 23px auto;
  font-family: var(--font-editorial, var(--font-serif));
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink, #302e29);
  letter-spacing: -0.07em;
  word-break: keep-all;
}

.home-statement-copy {
  margin: 13px auto 0;
  max-width: 620px;
  font-size: 13px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: -0.035em;
  color: var(--color-text-muted, #817a70);
  word-break: keep-all;
}

.home-statement-actions {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Home Brand Story + Board/CS Equal-Height 2-Col Editorial Grid */
.home-editorial-section {
  margin-top: 56px;
  padding-bottom: 48px;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.home-story-card,
.home-board-cs-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
}

.home-story-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  flex: 1 1 auto;
}

.home-story-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

.home-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-story-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--color-brand-500);
}

.home-story-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  word-break: keep-all;
}

.home-editorial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.home-board-preview-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.home-board-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.home-board-preview-item:hover {
  border-color: var(--color-brand-500);
}

.home-board-preview-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.home-board-preview-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-preview-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.home-cs-mini-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Catalog Page: Client 3x3 PC / 2-Col Mobile 4:5 Book Grid & Filter Toolbar */
.hyundong-catalog-wrap {
  padding-block: 88px 135px;
}

.hyundong-page-head {
  margin-bottom: 52px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hyundong-page-head h1 {
  margin: 16px 0 12px;
  font-family: var(--font-editorial, var(--font-serif));
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 400;
  color: var(--color-ink, #302e29);
  letter-spacing: -0.07em;
  line-height: 1.45;
}

.hyundong-page-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 2.0;
  color: var(--color-text-muted, #817a70);
}

.hyundong-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 42px;
  padding: 0 0 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
}

.hyundong-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hyundong-catalog-toolbar > .hyundong-chip-row {
  gap: 22px;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  padding-bottom: 0;
}

.hyundong-catalog-toolbar > .hyundong-chip-row .chip-btn {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 8px 2px 12px;
  min-height: 38px;
  font-size: 13.5px;
  color: var(--color-text-muted, #817a70);
}

.hyundong-catalog-toolbar > .hyundong-chip-row .chip-btn:hover {
  background: transparent;
  color: var(--color-ink, #302e29);
}

.hyundong-catalog-toolbar > .hyundong-chip-row .chip-btn.is-active {
  background: transparent;
  border-bottom-color: var(--color-accent-olive, #64764c);
  color: var(--color-accent-olive, #64764c);
  font-weight: 700;
}

.hyundong-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hyundong-toolbar-left,
.hyundong-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hyundong-toolbar-right .catalog-subsearch-input,
.hyundong-toolbar-right .toolbar-select {
  height: 36px;
  min-height: 36px;
  font-size: 12.5px;
  padding: 0 11px;
}

.hyundong-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 38px;
  row-gap: 58px;
}

.hyundong-book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.hyundong-card-link {
  display: block;
  text-decoration: none;
  min-width: 0;
}

.hyundong-book-card .hyundong-cover-frame {
  background: var(--color-cover-mat, #e9e4db);
}

.hyundong-card-title {
  margin: 23px 0 11px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.035em;
  min-height: calc(1.5em * 2);
  color: var(--color-ink, #302e29);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hyundong-card-link:hover .hyundong-card-title {
  color: var(--color-brand-500);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hyundong-card-desc {
  margin: 13px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.035em;
  min-height: calc(1.75em * 2);
  color: var(--color-text-muted, #817a70);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hyundong-card-price {
  margin: 3px 0;
  min-height: 1.5em;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  gap: 12px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.price-list-del {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-price-regular, #8c867e);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #978c80;
}

.price-sale-main {
  font-size: 17px;
  font-weight: 650;
  color: var(--color-accent-olive, #64764c);
}

.price-discount-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-danger);
}

.hyundong-card-foot {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hyundong-badge-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 24px;
  gap: 5px;
}

.hd-cover-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
  max-width: calc(100% - 20px);
}

.hd-book-badge,
.hyundong-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  box-sizing: border-box;
  background: #ede7dc;
  color: #391802;
  border: 1px solid #b9a68e;
}

.hd-book-badge.is-md,
.hyundong-card-badge.is-md {
  background: #ede7dc;
  color: #391802;
  border: 1px solid #b9a68e;
}

.hd-book-badge.is-best,
.hyundong-card-badge.is-best {
  background: #391802;
  color: #fcfbf7;
  border: 1px solid #391802;
}

.hd-book-badge.is-new,
.hyundong-card-badge.is-new {
  background: #fcfbf7;
  color: #391802;
  border: 1px solid #391802;
}

.hyundong-card-badge.is-sale {
  background: #f6f3ea;
  color: #64764c;
  border: 1px solid #8a9b72;
}

.book-rich-description {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--color-text-primary);
  word-break: keep-all;
}

.book-rich-description p {
  margin: 0 0 14px;
}

.book-rich-description p:last-child {
  margin-bottom: 0;
}

.book-rich-description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto;
}

.book-rich-description h2 {
  font-size: 1.3rem;
  color: var(--color-brand-500);
  margin: 22px 0 10px;
}

.book-rich-description h3 {
  font-size: 1.12rem;
  color: var(--color-brand-500);
  margin: 18px 0 8px;
}

.book-rich-description blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--color-brand-500);
  background: var(--color-bg);
  color: var(--color-text-secondary);
}

.hyundong-quick-cart-btn {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid var(--color-line, #d9d2c7);
  background: transparent;
  color: var(--color-ink, #302e29);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hyundong-quick-cart-btn:hover:not(:disabled) {
  background: #e9e3d8;
  border-color: #b8ae9f;
  color: var(--color-ink, #302e29);
}

.hyundong-quick-cart-btn:disabled {
  border-color: var(--color-line, #d9d2c7);
  color: var(--color-text-muted);
  background: #f0ece4;
  cursor: not-allowed;
}

/* About, Location, Board, Support Unified Subviews (Client V9) */
.hyundong-subview-wrap {
  padding-block: 88px 135px;
}

.about-editorial-banner {
  margin-bottom: 52px;
  padding: 80px 24px 110px;
  background: var(--color-editorial-warm, #ebe5d9);
  border-radius: 0;
  text-align: center;
}

.about-editorial-banner h2 {
  margin: 16px 0 20px;
  font-family: var(--font-editorial, var(--font-serif));
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-ink, #302e29);
  letter-spacing: -0.07em;
  word-break: keep-all;
}

.about-editorial-banner p {
  margin: 0 auto;
  max-width: 580px;
  font-size: 14px;
  font-weight: 400;
  line-height: 2.1;
  color: var(--color-text-muted, #817a70);
  word-break: keep-all;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 0 0 44px;
}

.about-story-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-story-photos figure {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: var(--color-cover-mat, #e9e4db);
  aspect-ratio: 4 / 5;
}

.about-story-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-principles-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.about-principle-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 24px 0 12px;
}

.about-principle-card h3 {
  margin: 10px 0 10px;
  font-family: var(--font-editorial, var(--font-serif));
  font-weight: 400;
  font-size: 1.24rem;
  letter-spacing: -0.04em;
  color: var(--color-ink, #302e29);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 60px;
  align-items: stretch;
}

.location-map-card,
.location-info-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-svg-box {
  width: 100%;
  border-radius: 0;
  border: none;
  overflow: hidden;
  background: #e9e3d8;
}

.v9-meta-dl {
  margin: 0;
  border-top: 1px solid var(--color-line, #d9d2c7);
}

.v9-meta-dl > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  font-size: 13px;
  line-height: 1.75;
}

.v9-meta-dl dt {
  color: var(--color-text-muted, #817a70);
  font-weight: 400;
}

.v9-meta-dl dd {
  margin: 0;
  color: var(--color-ink, #302e29);
}

.board-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.board-tag-pill.is-notice {
  background: #eef1ea;
  border: 1px solid #cad4bf;
  color: #4f603a;
}

.board-tag-pill.is-news {
  background: #f3efe6;
  border: 1px solid #d5cab9;
  color: #69594b;
}

.board-list-wrap {
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-ink, #302e29);
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  overflow: hidden;
}

.board-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 16px;
  background: var(--color-table-head, #f0ece4);
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted, #817a70);
  letter-spacing: -0.01em;
}

.board-post-item {
  border-bottom: 1px solid var(--color-line, #d9d2c7);
}

.board-post-item:last-child {
  border-bottom: none;
}

.board-post-btn {
  width: 100%;
  padding: 19px 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.board-post-btn:hover {
  background: var(--color-table-hover, #efebe3);
}

.board-post-drawer {
  padding: 18px 20px 22px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line, #d9d2c7);
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--color-ink, #302e29);
}

.support-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.qna-secret-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line, #d9d2c7);
  border-radius: 0;
  padding: 20px 4px;
  margin-bottom: 0;
}

.qna-lock-banner {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 2px;
  background: var(--color-table-head, #f0ece4);
  border: 1px solid var(--color-line, #d9d2c7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.qna-pin-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Adaptations for Client Sections */
@media (max-width: 900px) {
  .home-editorial-grid,
  .about-story-grid,
  .location-grid,
  .support-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .store-util-social {
    gap: 2px;
  }

  .store-util-sns {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }

  .store-util-sns:hover {
    background: var(--color-surface-soft);
    text-decoration: none;
  }

  .store-util-sns svg {
    width: 18px;
    height: 18px;
  }

  .store-util-sns span,
  .store-util-sep {
    display: none;
  }

  .hero-fade-banner {
    padding: 0;
  }

  .hero-fade-stage {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .hero-fade-caption {
    padding: 0;
  }

  .hero-fade-controls {
    bottom: 10px;
    padding: 4px 5px;
    gap: 7px;
    min-height: 32px;
  }

  .hero-fade-pause,
  .hero-fade-arrow {
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0.78rem;
  }

  .hero-fade-pause svg,
  .hero-fade-arrow svg {
    width: 11px;
    height: 11px;
  }

  .hero-fade-dots {
    gap: 5px;
  }

  .hero-fade-dot {
    width: 7px;
    height: 7px;
  }

  .hero-fade-dot.is-active {
    width: 18px;
  }

  .home-bookshelf-section {
    margin-top: 0;
    padding: 75px 0;
  }

  .home-bookshelf-head {
    margin-bottom: 28px;
  }

  .home-bookshelf-head h2 {
    font-size: 30px;
  }

  .home-statement-band {
    margin-top: 0;
    padding: 80px 15px;
  }

  .hyundong-catalog-wrap,
  .hyundong-subview-wrap {
    padding-block: 56px 85px;
  }

  .hyundong-catalog-toolbar > .hyundong-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
  }

  .hyundong-catalog-toolbar > .hyundong-chip-row::-webkit-scrollbar {
    display: none;
  }

  .hyundong-toolbar-right .toolbar-select,
  .hyundong-toolbar-right .catalog-subsearch-input {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .section-block,
  #storeMainContent > .store-container > .split-view-layout {
    padding-block: 32px 68px;
  }

  .about-editorial-banner {
    padding: 48px 18px;
    margin-bottom: 28px;
  }

  .board-table-head {
    padding: 14px 12px;
    font-size: 11px;
  }

  .home-bookshelf-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    overflow: visible;
  }

  .home-shelf-card {
    flex: none;
    width: 100%;
  }

  .home-story-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hyundong-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 34px;
  }

  .home-shelf-title,
  .hyundong-card-title {
    margin: 14px 0 6px;
    font-size: 14px;
  }

  .home-shelf-desc,
  .hyundong-card-desc {
    margin-top: 8px;
    font-size: 11px;
  }

  .price-list-del {
    font-size: 12px;
  }

  .price-sale-main {
    font-size: 14px;
  }

  .home-shelf-price,
  .hyundong-card-price {
    margin: 2px 0;
    gap: 8px;
  }

  .hyundong-card-foot {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 10px;
  }

  .hyundong-quick-cart-btn {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
  }

  .about-principles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-page-wrap {
    padding-block: 16px 48px;
  }

  .auth-editorial-head {
    margin-bottom: 18px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  #mobileSearchInput,
  .store-search-input,
  .form-input,
  .toolbar-select {
    font-size: 16px;
  }
}

body.auth-store-body {
  padding-bottom: 0 !important;
}

@media (max-width: 359px) {
  .store-container {
    padding-inline: 12px;
  }

  body.auth-store-body .store-logo-band-inner {
    padding-block: 18px 14px;
  }

  .store-gnb-list {
    gap: 6px;
  }

  .store-gnb-btn {
    font-size: 0.71rem;
    padding: 0 2px;
  }

  .hyundong-catalog-grid {
    column-gap: 12px;
    row-gap: 28px;
  }

  .hyundong-book-card .badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}


/* ==========================================================================
   7. Full-System Audit Polish: Auth Logo, Mobile Floating Guard & Summary Cards
   ========================================================================== */
.auth-brand-logo {
  height: 40px;
  width: auto;
  max-width: 168px;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}

body:has(.auth-page-wrap) .store-logo-band-inner {
  padding-block: 28px 20px;
}

.panel-card {
  word-break: keep-all;
}

.qty-counter-input {
  font-size: 16px;
}

.mypage-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mypage-summary-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line, #d9d2c7);
  border-top: 2px solid var(--color-brand-500);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mypage-summary-item > span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.mypage-summary-item > strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-brand-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .store-quick-floating {
    display: none !important;
  }

  body:has(.auth-page-wrap) .store-logo-band {
    display: none;
  }

  .mypage-summary-strip {
    gap: 8px;
  }

  .mypage-summary-item {
    padding: 12px 10px;
  }

  .mypage-summary-item > span {
    font-size: 0.72rem;
  }

  .mypage-summary-item > strong {
    font-size: 0.94rem;
  }
}
