/* ============================================================
   REALQUEST — Antique Bookshop Theme
   ============================================================ */

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

:root {
  --bg-deep: #1a140e;
  --bg-panel: #221a12;
  --bg-card: #2c2218;
  --bg-card-hover: #362a1e;
  --bg-header: #120e08;
  --bg-section-dark: #16110c;

  --gold: #b89858;
  --gold-light: #d4b06a;
  --gold-dim: #8a7040;
  --gold-faint: rgba(184, 152, 88, 0.1);

  --text-primary: #e8dcc8;
  --text-secondary: #b8a888;
  --text-dim: #7a6c58;

  --red: #c44030;
  --red-hover: #d44a3a;
  --green: #4a8848;

  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1200px;
  --header-h: 56px;

  --font-display: 'Cinzel', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* --- Page System --- */
.page {
  position: fixed; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto; z-index: 1;
  background: var(--bg-deep);
}
.page.active { opacity: 1; pointer-events: auto; z-index: 10; }

/* --- Transition --- */
.transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.transition-overlay.show { opacity: 1; pointer-events: auto; }
.transition-text {
  font-family: var(--font-display);
  color: var(--gold); font-size: 1rem; letter-spacing: 2px;
}

/* --- Toast --- */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); color: var(--text-primary);
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  font-size: 0.85rem;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease; z-index: 10000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ============================================================
   OPENING
   ============================================================ */
#page-opening { display: flex; align-items: center; justify-content: center; }

.opening-bg {
  position: absolute; inset: 0;
  background: url('../images/library-bg.jpg') center/cover no-repeat;
  filter: brightness(0.3);
}
.opening-content { position: relative; z-index: 2; text-align: center; padding: 2rem; }
.opening-logo { margin-bottom: 2rem; }

.logo-ornament-top, .logo-ornament-bottom {
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.8rem auto;
}
.logo-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700; color: var(--gold);
  letter-spacing: 0.3em; line-height: 1.2;
}
.logo-sub {
  font-size: 1rem; color: var(--text-secondary);
  letter-spacing: 0.5em; margin-top: 0.3rem;
}
.opening-tagline {
  color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2.5rem;
}
.btn-enter {
  font-family: var(--font-display);
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); padding: 0.9rem 3rem;
  font-size: 0.95rem; letter-spacing: 0.15em;
  cursor: pointer; transition: all 0.3s; border-radius: var(--radius);
}
.btn-enter:hover { background: var(--gold); color: var(--bg-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(184,152,88,0.15);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.15em;
  cursor: pointer; white-space: nowrap;
}
.header-nav { display: flex; gap: 1.5rem; }
.nav-link {
  color: var(--text-secondary); font-size: 0.82rem;
  transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; padding: 0.4rem; transition: color 0.2s; position: relative;
}
.icon-btn:hover { color: var(--gold); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 0.6rem; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 4px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-secondary); transition: background 0.2s;
}
.hamburger:hover span { background: var(--gold); }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: var(--text-secondary);
  font-size: 2rem; cursor: pointer;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 1.2rem; text-align: center;
}
.mobile-nav a { color: var(--text-primary); font-size: 1.1rem; transition: color 0.2s; }
.mobile-nav a:hover { color: var(--gold); }

/* Search */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  background: var(--bg-header); padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--gold-dim);
}
.search-inner {
  max-width: var(--max-width); margin: 0 auto; display: flex; gap: 0.5rem;
}
.search-inner input {
  flex: 1; background: var(--bg-panel); border: 1px solid var(--gold-dim);
  color: var(--text-primary); padding: 0.6rem 1rem;
  border-radius: var(--radius); font-size: 0.9rem; outline: none;
}
.search-inner input:focus { border-color: var(--gold); }
.search-inner button {
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.5rem; cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: clamp(250px, 40vw, 400px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/library-bg.jpg') center/cover no-repeat;
  filter: brightness(0.25);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold); letter-spacing: 0.25em; font-weight: 700;
}
.hero-sub { color: var(--text-primary); font-size: clamp(0.9rem, 2vw, 1.2rem); margin-top: 0.5rem; }
.hero-desc { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.8rem; }

/* ============================================================
   CATEGORY BAR
   ============================================================ */
.category-bar {
  background: var(--bg-header);
  border-bottom: 1px solid rgba(184,152,88,0.1);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; gap: 0.3rem; padding: 0.6rem 1rem; white-space: nowrap;
}
.cat-btn {
  background: none; border: none; color: var(--text-secondary);
  font-size: 0.82rem; padding: 0.35rem 0.8rem;
  cursor: pointer; border-radius: 20px; transition: all 0.2s; white-space: nowrap;
}
.cat-btn:hover { color: var(--gold); }
.cat-btn.active { color: var(--bg-deep); background: var(--gold); font-weight: 500; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 2.5rem 0; }
.section--dark { background: var(--bg-section-dark); }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.section-header { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.5rem; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.section-title-en {
  font-family: var(--font-display); font-size: 0.7rem;
  color: var(--text-dim); letter-spacing: 0.15em;
}

.section-divider {
  display: flex; align-items: center; gap: 0.8rem;
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
}
.dv-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.dv-diamond { width: 8px; height: 8px; background: var(--gold-dim); transform: rotate(45deg); }

/* ============================================================
   QUEST GRID & CARDS
   ============================================================ */
.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
@media (max-width: 768px) {
  .quest-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .quest-card-title { font-size: 0.75rem; }
  .quest-card-price { font-size: 0.85rem; }
  .quest-card-body { padding: 0.5rem 0.6rem; }
}

.quest-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(184,152,88,0.08);
}
.quest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: rgba(184,152,88,0.2);
}
.quest-card-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; background: var(--bg-panel);
}
.quest-card-body { padding: 0.7rem 0.8rem; }
.quest-card-badge {
  display: inline-block; background: var(--gold); color: var(--bg-deep);
  font-size: 0.6rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.3rem;
}
.quest-card-title {
  font-size: 0.85rem; font-weight: 500; color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.quest-card-price { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-top: 0.3rem; }
.quest-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }
.quest-card-genre {
  font-size: 0.65rem; background: rgba(184,152,88,0.12);
  color: var(--text-secondary); padding: 0.15rem 0.5rem; border-radius: 3px;
}
.quest-card-rating { font-size: 0.7rem; color: var(--gold-dim); }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.section-about-teaser { text-align: center; padding: 3rem 1rem; }
.about-teaser-text {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.9; margin: 1.5rem 0 2rem;
}
.ux-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.ux-step {
  background: var(--bg-card); border: 1px solid rgba(184,152,88,0.15);
  border-radius: var(--radius); padding: 0.6rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; color: var(--text-secondary);
}
.ux-step-num { font-family: var(--font-display); color: var(--gold); font-size: 0.9rem; font-weight: 700; }
.ux-step-arrow { color: var(--text-dim); font-size: 1rem; }

@media (max-width: 600px) {
  .about-teaser-text br { display: none; }
  .ux-steps { gap: 0.2rem; }
  .ux-step { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--red); color: #fff; border: none;
  padding: 0.8rem 2rem; font-size: 0.9rem; font-weight: 700;
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s; text-align: center;
}
.btn-primary:hover { background: var(--red-hover); }

.btn-secondary {
  background: transparent; border: 1px solid var(--gold-dim);
  color: var(--gold); padding: 0.6rem 1.5rem;
  font-size: 0.85rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--gold); color: var(--bg-deep); }

.btn-accept {
  background: var(--red); color: #fff; border: none;
  padding: 0.9rem 0; font-size: 1rem; font-weight: 700;
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s; width: 100%;
}
.btn-accept:hover { background: var(--red-hover); }
.btn-accept.accepted { background: var(--green); cursor: default; }

.btn-purchase {
  display: block; width: 100%;
  padding: 1rem 0; font-size: 1.15rem; font-weight: 700;
  color: var(--bg-deep); background: linear-gradient(135deg, var(--gold), #d4a84b);
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: all 0.3s;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(184,152,88,0.35);
}
.btn-purchase:hover {
  background: linear-gradient(135deg, #d4a84b, var(--gold));
  box-shadow: 0 6px 24px rgba(184,152,88,0.5);
  transform: translateY(-2px);
}
.btn-purchase.purchased {
  background: var(--green); color: #fff;
  box-shadow: none; cursor: default; transform: none;
}

/* ============================================================
   QUEST DETAIL
   ============================================================ */
.detail-content { padding-top: var(--header-h); min-height: 100vh; }

.detail-hero { position: relative; height: clamp(200px, 35vw, 300px); overflow: hidden; }
.detail-hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.detail-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.detail-hero-title {
  font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: #fff; line-height: 1.3;
}

.detail-body { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.detail-story { color: var(--text-primary); font-size: 0.9rem; line-height: 2; margin-bottom: 2rem; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.spec-item {
  background: var(--bg-card); border: 1px solid rgba(184,152,88,0.1);
  border-radius: var(--radius); padding: 0.8rem;
}
.spec-label { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.spec-value { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

.detail-section { margin-bottom: 1.5rem; }
.detail-section-header {
  background: var(--red); color: #fff;
  padding: 0.5rem 1rem; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.8rem;
}
.detail-section-body {
  padding: 0 0.5rem; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.8;
}
.detail-section-body ul { list-style: none; padding: 0; }
.detail-section-body li::before { content: '\30FB'; color: var(--text-dim); }

.creator-contact { padding: 0 0.5rem; }
.creator-contact a { display: block; color: var(--gold); font-size: 0.85rem; margin-bottom: 0.3rem; }

.detail-reviews { margin-top: 2rem; }
.detail-reviews h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.review-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 0.8rem; border: 1px solid rgba(184,152,88,0.08);
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.review-user { font-size: 0.8rem; color: var(--text-secondary); }
.review-stars { color: var(--gold); font-size: 0.85rem; }
.review-text { font-size: 0.85rem; color: var(--text-primary); line-height: 1.7; }
.review-date { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.4rem; }

.review-form {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1.5rem; border: 1px solid rgba(184,152,88,0.15);
}
.review-form-stars { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.review-form-label { font-size: 0.85rem; color: var(--text-secondary); }
.star-select { display: flex; gap: 0.2rem; }
.star-btn {
  font-size: 1.5rem; cursor: pointer; color: var(--text-dim);
  transition: color 0.15s; user-select: none;
}
.star-btn:hover, .star-btn.selected { color: var(--gold); }
.review-textarea {
  width: 100%; background: var(--bg-panel); border: 1px solid rgba(184,152,88,0.15);
  border-radius: var(--radius); color: var(--text-primary); padding: 0.8rem;
  font-size: 0.85rem; font-family: inherit; resize: vertical;
}
.review-textarea:focus { outline: none; border-color: var(--gold-dim); }
.review-login-hint { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; }
.review-login-hint a { color: var(--gold); }

.review-footer {
  display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem;
}
.review-like-btn {
  background: none; border: 1px solid rgba(184,152,88,0.2);
  color: var(--text-dim); font-size: 0.72rem; padding: 0.2rem 0.6rem;
  border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.review-like-btn:hover, .review-like-btn.liked {
  color: var(--gold); border-color: var(--gold-dim);
}
.review-report-btn {
  background: none; border: none; color: var(--text-dim);
  font-size: 0.7rem; cursor: pointer; transition: color 0.2s;
}
.review-report-btn:hover { color: var(--red); }

/* Favorite button on cards */
.quest-card-thumb-wrap { position: relative; }
.fav-btn {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.5); border: none;
  color: var(--text-secondary); font-size: 1.2rem;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.fav-btn:hover { background: rgba(0,0,0,0.7); color: var(--red); }
.fav-btn.active { color: var(--red); }

/* Report button on detail */
.detail-actions {
  display: flex; justify-content: flex-end; margin-top: 1rem;
}
.btn-report {
  background: none; border: 1px solid var(--text-dim);
  color: var(--text-dim); font-size: 0.75rem;
  padding: 0.3rem 0.8rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.btn-report:hover { border-color: var(--red); color: var(--red); }

/* Password reset link */
.auth-forgot { font-size: 0.75rem; text-align: right; margin-top: 0.5rem; }
.auth-forgot a { color: var(--text-dim); }
.auth-forgot a:hover { color: var(--gold); }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.static-content {
  padding-top: var(--header-h); min-height: 100vh;
  max-width: 800px; margin: 0 auto;
  padding-left: 1rem; padding-right: 1rem; padding-bottom: 3rem;
}
.page-title {
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary);
  padding: 2rem 0 1.5rem; border-bottom: 1px solid rgba(184,152,88,0.15);
  margin-bottom: 1.5rem;
}
.static-body { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.9; }
.static-body h2 {
  font-size: 1.1rem; color: var(--text-primary);
  margin: 2rem 0 0.8rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(184,152,88,0.1);
}
.static-body h3 { font-size: 0.95rem; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.static-body p { margin-bottom: 0.8rem; }
.static-body ul, .static-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.static-body li { margin-bottom: 0.3rem; }
.legal-body h2 { font-size: 1rem; }
.tokushoho-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.tokushoho-table th, .tokushoho-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(184,152,88,0.12);
  text-align: left; font-size: 0.85rem; vertical-align: top;
}
.tokushoho-table th {
  width: 35%; color: var(--gold-dim); font-weight: 500; white-space: nowrap;
}
.tokushoho-table td { color: var(--text-primary); }

.news-item { padding: 1rem 0; border-bottom: 1px solid rgba(184,152,88,0.08); }
.news-date { font-size: 0.75rem; color: var(--text-dim); }
.news-category {
  display: inline-block; font-size: 0.65rem;
  background: var(--gold-faint); color: var(--gold);
  padding: 0.1rem 0.5rem; border-radius: 3px; margin-left: 0.5rem;
}
.news-title { font-size: 0.9rem; margin-top: 0.3rem; color: var(--text-primary); }
.empty-state { color: var(--text-dim); font-size: 0.9rem; padding: 2rem 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-panel);
  border: 1px solid rgba(184,152,88,0.2); color: var(--text-primary);
  padding: 0.7rem; border-radius: var(--radius);
  font-size: 0.9rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--bg-panel); border: 1px solid rgba(184,152,88,0.2);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 90%; max-width: 400px; position: relative;
}
.modal-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.5rem; cursor: pointer;
}
.modal-title { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 1.5rem; }
.auth-switch { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; text-align: center; }
.auth-switch a { color: var(--gold); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: -400px; bottom: 0;
  width: 380px; max-width: 90vw;
  background: var(--bg-panel);
  border-left: 1px solid rgba(184,152,88,0.15);
  z-index: 301; display: flex; flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(184,152,88,0.1);
}
.cart-header h3 { font-size: 1rem; color: var(--text-primary); }
.cart-close {
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.5rem; cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
  display: flex; gap: 0.8rem; padding: 0.8rem 0;
  border-bottom: 1px solid rgba(184,152,88,0.06);
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: var(--radius);
  object-fit: cover; background: var(--bg-card);
}
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.8rem; color: var(--text-primary); }
.cart-item-price { font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-top: 0.2rem; }
.cart-item-remove {
  background: none; border: none; color: var(--text-dim);
  font-size: 0.75rem; cursor: pointer; margin-top: 0.3rem;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer { padding: 1rem 1.2rem; border-top: 1px solid rgba(184,152,88,0.1); }
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem;
}
.cart-checkout {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 0.8rem; font-size: 0.95rem; font-weight: 700;
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s;
}
.cart-checkout:hover { background: var(--red-hover); }

/* ============================================================
   MY PAGE
   ============================================================ */
.mypage-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(184,152,88,0.1);
}
.mypage-avatar {
  width: 50px; height: 50px; background: var(--bg-card);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold); border: 2px solid var(--gold-dim);
}
.mypage-name { font-size: 1rem; font-weight: 700; }
.mypage-email { font-size: 0.75rem; color: var(--text-dim); }

.mypage-section { margin-bottom: 2rem; }
.mypage-section h3 {
  font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.8rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(184,152,88,0.1);
}
.mypage-logout {
  background: none; border: 1px solid var(--text-dim);
  color: var(--text-dim); padding: 0.5rem 1.5rem;
  border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
}
.mypage-logout:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid rgba(184,152,88,0.1);
  padding: 2rem 1rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 1rem;
}
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.2rem; margin-bottom: 1rem;
}
.footer-nav a { font-size: 0.75rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; color: var(--text-dim); }
