/* =========================================================================
   AGORA — 디자인 시스템 & 전역 스타일
   ========================================================================= */

:root {
  --ink: #14161c;
  --ink-soft: #4b4f5b;
  --ink-faint: #8a8e99;
  --line: #e7e7ea;
  --line-soft: #f0f0f2;
  --surface: #ffffff;
  --bg: #fafafa;
  --accent: #ff5b3c;
  --accent-dark: #e2432a;
  --accent-soft: #fff1ed;
  --success: #1f9d55;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 22, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 22, 28, 0.10);
  --font-kr: "Noto Sans KR", sans-serif;
  --font-en: "Manrope", sans-serif;
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en), var(--font-kr);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.01em;
}
.topbar-inner b { color: #ffb199; }
.topbar-right { opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.main-nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  padding: 8px 0;
}
.header-search button {
  border: none;
  background: var(--ink);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-text-link { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.header-text-link:hover { color: var(--accent); }
.cart-link { position: relative; display: flex; color: var(--ink); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f2f2; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-dark { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--line-soft); }
.btn-full { width: 100%; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 15% 15%, #2b2f77 0%, #191b3d 55%, #0e0f24 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 24px 110px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-kicker {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #ffb199;
  margin: 0 0 18px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 640px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; }
.hero-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,91,60,0.35), transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 64px 24px; }
.section-alt { background: var(--surface); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.section-head .section-title { margin: 0; }
.section-link { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.section-link:hover { color: var(--accent); }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  justify-content: flex-end;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-icon { font-size: 30px; }
.category-name { font-weight: 700; font-size: 15px; }

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.product-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-emoji { font-size: 54px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18)); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  color: #fff;
}
.product-badge-best { background: var(--accent); }
.product-badge-new { background: #1f9d55; }

.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 12px; color: var(--ink-faint); font-weight: 600; margin: 0; }
.product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-rating { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.stars { color: #f5a623; }
.review-count { color: var(--ink-faint); }

.product-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.discount-rate { color: var(--accent); font-weight: 800; font-size: 15px; }
.price { font-weight: 800; font-size: 17px; }
.price-lg { font-size: 30px; }
.original-price { color: var(--ink-faint); text-decoration: line-through; font-size: 13px; }

.btn-add-cart {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-add-cart:hover { background: var(--ink); color: #fff; }

/* ---------- Promo banner ---------- */
.promo-banner { padding: 0 24px 80px; }
.promo-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(120deg, var(--accent-soft), #fff);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid #ffe1d6;
}
.promo-kicker { color: var(--accent-dark); font-weight: 800; letter-spacing: 0.08em; font-size: 12.5px; margin: 0 0 8px; }
.promo-inner h3 { font-size: 26px; margin: 0; line-height: 1.35; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink-soft); }

.page-heading { font-size: 28px; font-weight: 800; margin: 0 0 26px; }

/* ---------- Products listing layout ---------- */
.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
}
.filters { position: sticky; top: 96px; align-self: start; }
.filters-title { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.filter-list a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.filter-list a:hover { background: var(--line-soft); }
.filter-list a.active { background: var(--ink); color: #fff; }
.filter-banner {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
  line-height: 1.5;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.result-count { font-size: 14px; color: var(--ink-soft); margin: 0; }
.sort-form select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  background: #fff;
  font-weight: 600;
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
}
.pagination a:hover { background: var(--line-soft); }
.pagination a.active { background: var(--ink); color: #fff; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* ---------- Product detail ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
}
.detail-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.detail-emoji { font-size: 130px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.2)); }

.detail-info { display: flex; flex-direction: column; }
.detail-name { font-size: 27px; font-weight: 800; margin: 6px 0 12px; line-height: 1.4; }
.detail-rating { font-size: 14px; margin-bottom: 20px; }
.detail-price-box { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.detail-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tag { background: var(--line-soft); color: var(--ink-soft); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; font-weight: 600; }

.detail-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.meta-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.meta-row b { color: var(--ink); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button {
  width: 36px; height: 36px;
  border: none; background: var(--line-soft);
  font-size: 16px; font-weight: 700; color: var(--ink-soft);
}
.qty-control button:hover { background: var(--line); }
.qty-control input {
  width: 48px; text-align: center; border: none; outline: none;
  font-size: 14px; font-weight: 700; -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.detail-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line); margin-bottom: 22px;
  font-size: 15px; font-weight: 600;
}
.detail-total-row b { font-size: 22px; color: var(--accent); }

.detail-actions { display: flex; gap: 12px; }
.detail-actions .btn { flex: 1; }

.related-section { margin-top: 88px; }

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto 32px;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}
.cart-item-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cart-item-thumb.small { width: 48px; height: 48px; font-size: 22px; }
.cart-item-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14.5px; }
.cart-item-price { font-size: 13px; color: var(--ink-faint); }
.cart-item-total { font-weight: 800; font-size: 15px; white-space: nowrap; }
.cart-item-remove {
  border: none; background: transparent; color: var(--ink-faint);
  font-size: 15px; width: 32px; height: 32px; border-radius: 50%;
}
.cart-item-remove:hover { background: var(--line-soft); color: var(--ink); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.cart-summary h3 { font-size: 16px; margin: 0 0 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.summary-hint { font-size: 12.5px; color: var(--accent-dark); margin: 4px 0 18px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.checkout-block {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-block h3 { font-size: 16px; margin: 0 0 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-row input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-row input:focus { border-color: var(--ink); }

.checkout-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.checkout-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; }

.pay-methods { display: flex; gap: 10px; }
.pay-method {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-method.active, .pay-method:has(input:checked) { border-color: var(--ink); background: var(--line-soft); }
.pay-method input { accent-color: var(--ink); }
.pay-hint { font-size: 12px; color: var(--ink-faint); margin: 12px 0 0; }
.form-error { color: var(--accent-dark); font-size: 13px; margin-top: 10px; min-height: 16px; }

/* ---------- Order success ---------- */
.order-success { max-width: 640px; margin: 0 auto; text-align: center; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.success-sub { color: var(--ink-soft); margin-bottom: 32px; }
.order-detail-block { text-align: left; }
.order-success .detail-actions { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); margin-top: 40px; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer-col p { font-size: 13px; line-height: 1.8; margin: 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ---------- Toast ---------- */
.agora-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.agora-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { max-width: 480px; margin: 0 auto; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .main-nav { display: none; }
  .header-search { max-width: none; }
  .products-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero-title { font-size: 36px; }
  .promo-inner { flex-direction: column; text-align: center; padding: 36px 24px; }
}

@media (max-width: 620px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .topbar-right { display: none; }
  .cart-item { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
  .cart-item-total { grid-column: 2; text-align: right; }
  .cart-item-remove { position: absolute; top: 10px; right: 10px; }
  .cart-item { position: relative; }
}

/* =========================================================================
   Login gate
   ========================================================================= */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 15% 15%, #2b2f77 0%, #191b3d 55%, #0e0f24 100%);
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.login-brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.login-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form input[type="password"] {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  outline: none;
  text-align: center;
  transition: border-color 0.15s ease;
}
.login-form input[type="password"]:focus { border-color: var(--ink); }
.login-error {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 0;
}
.login-hint {
  color: var(--ink-faint);
  font-size: 12px;
  margin: 24px 0 0;
}

.logout-form { display: flex; }
.logout-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.logout-btn:hover { background: var(--line-soft); color: var(--ink); }

/* =========================================================================
   Q&A / 리뷰 / 1:1 문의 / 주문조회
   ========================================================================= */
.qa-section { margin-top: 64px; }
.qa-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.qa-tab {
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.qa-tab.active { color: var(--ink); border-color: var(--ink); }
.qa-panel { display: none; }
.qa-panel.active { display: block; }

.qa-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.qa-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.qa-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.qa-item-title { font-weight: 700; font-size: 14.5px; }
.qa-item-meta { font-size: 12.5px; color: var(--ink-faint); }
.qa-item-content { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 10px; }
.qa-answer-box {
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
}
.qa-answer-box b { color: var(--accent-dark); }
.qa-status-pending { color: var(--accent-dark); font-weight: 700; font-size: 12.5px; }
.qa-status-answered { color: var(--success); font-weight: 700; font-size: 12.5px; }

.review-item { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.review-item:first-child { padding-top: 0; }
.review-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.review-item-author { font-weight: 700; font-size: 13.5px; }
.review-item-meta { font-size: 12px; color: var(--ink-faint); }
.review-item-content { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 6px 0 0; }
.review-best-tag {
  display: inline-flex;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.rating-input { display: flex; gap: 4px; }
.rating-input button {
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--line);
  cursor: pointer;
  padding: 0;
}
.rating-input button.active { color: #f5a623; }

.lookup-form {
  max-width: 420px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lookup-order-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.review-form-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 10px;
  background: var(--bg);
}
.review-already { font-size: 13px; color: var(--ink-faint); }
