:root {
  --ink: #141820;
  --ink-soft: #3a4250;
  --paper: #e8ecef;
  --paper-deep: #d5dce3;
  --surface: #f4f6f8;
  --accent: #1f6b66;
  --accent-deep: #15534f;
  --accent-soft: #d7ebe8;
  --line: rgba(20, 24, 32, 0.12);
  --danger: #9b2c2c;
  --shadow: 0 18px 50px rgba(20, 24, 32, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", "Apple SD Gothic Neo", serif;
  --font-body: "Figtree", "Apple SD Gothic Neo", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 107, 102, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(20, 24, 32, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f5 0%, var(--paper) 45%, #dde4ea 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(20, 24, 32, 0.06);
}

.cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cart-badge:hover {
  transform: translateY(-1px);
  background: #000;
}

.cart-badge__count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

main {
  padding: 1.75rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(72vh, 640px);
  animation: rise 0.7s ease both;
}

.hero__copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero__copy .lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.meta-row strong {
  color: var(--ink);
  font-weight: 650;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.price small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 107, 102, 0.28);
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--block {
  width: 100%;
}

.cover-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: float-in 0.9s ease both;
}

.cover {
  width: min(100%, 320px);
  aspect-ratio: 2 / 3;
  border-radius: 4px 14px 14px 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #1f6b66 0%, #143c3a 48%, #0e2423 100%);
  color: #f4f8f7;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transform: rotate(-2deg);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent);
}

.cover::after {
  content: "";
  position: absolute;
  inset: auto -20% -15% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.cover__series {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.cover__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0;
  position: relative;
  z-index: 1;
}

.cover__author {
  font-size: 0.95rem;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.section {
  margin-top: 2.5rem;
  animation: rise 0.65s ease 0.12s both;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
}

.section p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.035em;
}

.layout-split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.cart-list,
.order-list {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.cart-item__thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(180deg, #1f6b66, #0e2423);
}

.cart-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.cart-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  margin-top: 0.65rem;
}

.qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.qty span {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 650;
}

.cart-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.summary {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.85rem;
}

.summary dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}

.summary .row--total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(31, 107, 102, 0.35);
  border-color: var(--accent);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.pay-method {
  position: relative;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-method input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(31, 107, 102, 0.1);
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.notice--warn {
  background: rgba(155, 44, 44, 0.08);
  color: var(--danger);
}

.result {
  width: min(520px, 100%);
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.result__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.result.is-fail .result__icon {
  background: rgba(155, 44, 44, 0.12);
  color: var(--danger);
}

.result h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.result p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.result-table {
  text-align: left;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.result-table div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.result-table dt {
  color: var(--ink-soft);
}

.result-table dd {
  margin: 0;
  font-weight: 650;
  word-break: break-all;
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 40;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .hero,
  .layout-split {
    grid-template-columns: 1fr;
  }

  .cover-stage {
    order: -1;
    min-height: auto;
  }

  .cover {
    width: min(100%, 240px);
    transform: rotate(0deg);
  }

  .summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item__price {
    grid-column: 2;
  }

  .pay-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    min-height: 3.75rem;
  }

  .nav a:not(.cart-badge) {
    display: none;
  }

  .hero__copy h1 {
    font-size: 2rem;
  }
}

/* ====================================================
   윤슬스토어 (YUNSEUL STORE) 확장 스타일
==================================================== */

.brand__sub {
  font-size: 0.5em !important;
  font-weight: 500;
  vertical-align: baseline;
  margin-left: 3px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-weight: 550;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-deep);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav-user-greeting {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.nav-admin-link {
  color: #b45309 !important;
  font-weight: 600 !important;
}

.btn-signup-pill {
  padding: 0.35rem 0.85rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.82rem;
  transition: opacity 0.15s;
}

.btn-signup-pill:hover {
  opacity: 0.85;
}

.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: underline;
}

/* 뱃지 */
.genre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  width: fit-content;
}

.type-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(20, 24, 32, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-badge--sw {
  background: #e0e7ff;
  color: #3730a3;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.rank-badge--sales {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.rank-badge--popular {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.rank-badge--views {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

/* 섹션 타이틀 */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* 1. 상단 추천 상품 2개 (Featured) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(20, 24, 32, 0.16);
}

.featured-card__media {
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.25;
}

.featured-card__desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
}

.price-original {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.95rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.price-discount {
  color: #e11d48;
  font-weight: 700;
  font-size: 1.1rem;
}

/* 2. 랭킹 3대 상품 (Rankers) */
.rankers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.ranker-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.ranker-card:hover {
  transform: translateY(-4px);
}

.ranker-card__header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranker-card__media {
  height: 220px;
  background: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ranker-card__media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.ranker-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.ranker-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.ranker-card__author {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* 3. 10개 샘플 상품 그리드 */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.product-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.08);
}

.product-card__media {
  aspect-ratio: 3/4;
  background: #182230;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-card__media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-card__genre {
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__author {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.product-card__price {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ====================================================
   상세 페이지 (Detail Page) 스타일
==================================================== */
.detail-top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.detail-cover-box {
  background: #0f172a;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-cover-box img {
  max-width: 100%;
  max-height: 520px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-info__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin: 0;
}

.detail-meta-list {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-wishlist {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wishlist.is-active {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* 상세페이지 하단 연속 섹션 */
.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.detail-section {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2.25rem;
  box-shadow: 0 6px 20px rgba(20, 24, 32, 0.04);
}

.detail-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.6rem;
}

.toc-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  white-space: pre-line;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.oneline-box {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  line-height: 1.5;
}

.summary-box,
.preface-box {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  white-space: pre-line;
}

.sample-image-container {
  margin-top: 1.5rem;
  background: #0f172a;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.sample-image-container img {
  max-width: 100%;
  border-radius: 10px;
}

/* 리뷰 */
.review-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
}

.review-item__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.review-stars {
  color: #f59e0b;
  font-weight: bold;
}

/* 같은 장르 3권 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: flex;
  gap: 1rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.related-card__thumb {
  width: 70px;
  height: 95px;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* 환불 및 약관 동의 */
.policy-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.software-terms-card {
  background: #fef2f2;
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid #ef4444;
  margin-bottom: 1rem;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.consent-audit-info {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
  padding-left: 2rem;
}

/* ====================================================
   주문 내역 & 관리자 스타일
==================================================== */
.orders-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.orders-filter-bar select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

.order-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(20, 24, 32, 0.04);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 650;
  color: var(--ink-soft);
}

/* 반응형 */
@media (max-width: 1024px) {
  .sample-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid,
  .rankers-grid {
    grid-template-columns: 1fr;
  }
  .detail-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sample-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
}
