/* ============================================================
   HERITAGE CRAFTS — responsive stylesheet
   Warm heritage palette · fluid grids · mobile-first
   ============================================================ */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2520;
  --muted: #6f665c;
  --accent: #9e2b25;
  --accent-soft: #c2553f;
  --border: #e8e0d4;
  --gold: #b08d57;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(43, 37, 32, 0.05), 0 10px 28px rgba(43, 37, 32, 0.07);
  --maxw: 1180px;
  --font-display: Georgia, "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--accent);
}

.lang-switcher select {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer-inner nav a {
  color: var(--muted);
}

.site-footer-inner nav a:hover {
  color: var(--accent);
}

.footer-section h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  color: var(--muted);
}

.social-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 9vw, 96px) 0;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(178, 141, 87, 0.18), transparent 70%),
    linear-gradient(180deg, #f3ece1 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 0.35em;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
}

/* ---------- Card grid (fluid, no media queries needed) ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid--tight {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ---------- Card ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--ink);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(43, 37, 32, 0.06), 0 18px 40px rgba(43, 37, 32, 0.1);
  color: var(--ink);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0e9dd;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.card-price {
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

/* play badge for craft video */
.play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(158, 43, 37, 0.9);
  border-radius: 50%;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 20px 0 8px;
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Category / article / product page ---------- */

.page-head {
  margin: 20px 0 28px;
}

.page-head .lede {
  color: var(--muted);
  max-width: 720px;
}

.iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Product detail ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.gallery {
  display: grid;
  gap: 12px;
}

/* 大图主展示：单张图片填充满左列布局 */
.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

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

/* 缩略图条：点击切换主图 */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

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

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 8px 0 16px;
}

.variant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.variant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}

.variant .name {
  font-weight: 600;
}

.variant .price {
  font-weight: 600;
  color: var(--accent);
}

.variant del {
  color: var(--muted);
  font-weight: 400;
  margin-right: 6px;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-soft);
  color: #fff;
}

.artisan-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink);
}

/* ---------- Artisan detail ---------- */

.artisan-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 20px 0 32px;
}

.artisan-head .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Article ---------- */

.article {
  max-width: 760px;
  margin: 24px auto 0;
}

.article .cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 16px 0 24px;
  border: 1px solid var(--border);
}

.article-body {
  font-size: 1.05rem;
  color: #3a332c;
}

.article-list-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  color: var(--ink);
}

.article-list-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.article-list-item h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

/* ---------- Empty state ---------- */

.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 720px) {
  .product {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .artisan-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .artisan-head .photo {
    max-width: 240px;
  }

  .article-list-item {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    order: 3;
    gap: 16px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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

/* ---------- Cart ---------- */

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-line-media img {
  width: 96px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.cart-line-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-line-name {
  font-family: var(--font-display);
  font-weight: 600;
}

.cart-line-option {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-line-price,
.cart-line-subtotal {
  font-weight: 600;
  color: var(--accent);
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-line-qty input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.cart-summary {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: right;
}

.cart-summary p {
  margin: 4px 0;
}

.cart-summary .btn {
  margin-top: 12px;
}

.btn--ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ---------- Checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.checkout-form p,
.form-field {
  margin: 0 0 14px;
}

.checkout-form label,
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.order-summary {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-summary h2 {
  font-size: 1.15rem;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.order-summary-totals {
  margin-top: 12px;
  text-align: right;
}

.order-summary-totals p {
  margin: 4px 0;
}

.order-summary-total {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Order success ---------- */

.order-success {
  max-width: 680px;
}

.order-items {
  margin: 0 0 16px;
  padding-left: 20px;
}

.payment-note {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- Cart / checkout responsive ---------- */

@media (max-width: 720px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-line-media img {
    width: 64px;
  }
}

/* ---------- Frontend wiring ---------- */

.cart-link {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.cart-link:hover {
  color: var(--accent);
}

.messages {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.message {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 10px;
}

.message.success {
  border-color: #7a9b76;
  background: #f0f5ee;
  color: #3d5a3a;
}

.message.error {
  border-color: var(--accent);
  background: #f9ecea;
  color: var(--accent);
}

.message.warning {
  border-color: var(--gold);
  background: #faf3e6;
  color: #8a6a2f;
}

.message.info {
  border-color: #9fb0c0;
  background: #eef2f5;
  color: #46586b;
}

.qty-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.qty-add input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 720px) {
  .qty-add {
    width: 100%;
  }

  .qty-add input {
    flex: 1;
    min-width: 64px;
  }
}

.sold-out { color: var(--muted); font-size: 0.9rem; }
.variant--soldout { opacity: 0.7; }

/* ---------- Product content sections ---------- */

.product-sections {
  display: grid;
  gap: 40px;
}

.product-section {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.product-section:last-child {
  margin-bottom: 0;
}

.product-section--media-left,
.product-section--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* 偶数版块把配图放到右侧，形成左右交替的节奏 */
.product-section--media-right .product-section-media {
  order: 2;
}

.product-section-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-section-kind {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-section-body h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.product-section-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* ---------- Customer shares (buyer showcases) ---------- */

.share-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.share {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.share-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.share-author {
  font-weight: 600;
}

.share-title {
  color: var(--muted);
  font-size: 0.9rem;
}

.share-content {
  margin: 0 0 12px;
  color: var(--ink);
}

.share-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-images img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .product-section--media-left,
  .product-section--media-right {
    grid-template-columns: 1fr;
  }

  /* 单列时图片一律回到文字上方 */
  .product-section--media-right .product-section-media {
    order: 0;
  }
}

/* ---------- Featured testimonial carousel ---------- */

.carousel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.carousel-slide {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* 所有 slide 叠在同一格，viewport 高度 = 单条高度，JS 只切 is-active */
.carousel-viewport {
  display: grid;
}

.carousel-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.carousel-slide.is-active {
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.carousel-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel-body {
  margin: 0;
}

.carousel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.carousel-quote {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.carousel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.carousel-author {
  font-weight: 600;
  color: var(--ink);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--accent);
}

/* 键盘焦点必须可见（轮播全靠按钮操作） */
.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .carousel {
    padding: 20px;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accounts ---------- */

.container--narrow {
  max-width: 560px;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent);
}

.btn--danger {
  background: var(--accent);
}

.btn--danger:hover {
  background: var(--accent-soft);
}

.account-form p {
  margin: 0 0 16px;
}

.account-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.account-form .helptext,
.account-form .errorlist {
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.account-form .errorlist {
  color: var(--accent);
  list-style: none;
  padding: 0;
}

.account-card {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.account-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-alt {
  margin-top: 20px;
  color: var(--muted);
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.order-number {
  font-weight: 600;
  font-family: var(--font-display);
}

.order-claimed {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

.order-status {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.85rem;
}

.order-items {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--muted);
}

.order-total {
  margin: 0 0 6px;
  font-weight: 600;
}

.order-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.points-balance {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.points-table thead th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
}

.points-cell {
  font-weight: 600;
}

.points-cell--earn {
  color: #2e7d32;
}

.points-cell--adjust {
  color: var(--accent);
}

.pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: var(--muted);
}
