﻿ :root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --text: #1a1d23;
  --muted: #5b6069;
  --primary: #3366ff;
  --primary-hover: #1a4de0;
  --ok: #0d9e3e;
  --warn: #e07800;
  --danger: #d93030;
  --border: #e2e4e9;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.04);
  --radius: 10px;
 }
 
 * {
   box-sizing: border-box;
 }
 
 html,
 body {
   height: 100%;
 }
 
 body {
   margin: 0;
   font-family: ui-sans-serif, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
   color: var(--text);
  background: var(--bg);
 }
 
 a {
   color: inherit;
   text-decoration: none;
 }
 
.chip:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(51, 112, 255, 0.6);
  outline-offset: 2px;
}

 .container {
   max-width: 1100px;
   margin: 0 auto;
   padding: 20px 16px 60px;
 }
 
 .nav {
   position: sticky;
   top: 0;
   z-index: 10;
  background: rgba(255, 255, 255, 0.92);`n  backdrop-filter: blur(12px);`n  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
 }
 
 .nav-inner {
   max-width: 1100px;
   margin: 0 auto;
  padding: 12px 16px;
   display: flex;
   align-items: center;
   gap: 14px;
 }
 
 .brand {
   display: flex;
   align-items: center;
   gap: 10px;
   font-weight: 700;
 }
 
 .logo {
   width: 34px;
   height: 34px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: var(--shadow-2);
 }
 
 .nav-links {
   margin-left: auto;
   display: flex;
   align-items: center;
   gap: 10px;
 }
 
 .chip {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: transparent;
 }
 
 .chip.active {
  color: var(--primary);
  border-color: rgba(51, 112, 255, 0.25);
  background: rgba(51, 112, 255, 0.08);
 }
 
 .hero {
   display: grid;
   grid-template-columns: 1.2fr 0.8fr;
   gap: 16px;
   margin-top: 18px;
 }
 
 .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
 }
 
 .panel-body {
   padding: 18px;
 }
 
 .title {
   font-size: 22px;
   line-height: 1.2;
   margin: 0 0 8px;`n  text-wrap: balance;
 }
 
 .subtitle {
   margin: 0;
   color: var(--muted);
   line-height: 1.6;`n  max-width: 68ch;
 }
 
 .search-row {
   display: flex;
   gap: 10px;
   margin-top: 14px;
 }
 
 input[type="text"],
 input[type="number"],
 select {
   width: 100%;
   padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
   color: var(--text);
   outline: none;
 }
 
 select option {
  color: #1f2329;
 }
 
 .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--primary);
  color: white;
   cursor: pointer;
   font-weight: 600;
   white-space: nowrap;
 }
 
.btn:hover {
  background: var(--primary-hover);
}

 .btn.ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
 }
 
 .btn.danger {
  background: rgba(245, 63, 63, 0.08);
  border-color: rgba(245, 63, 63, 0.25);
  color: var(--danger);
 }
 
 .row {
   display: flex;
   align-items: center;
   gap: 12px;
   flex-wrap: wrap;
 }
 
 .grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
 }
 
 @media (max-width: 980px) {
   .hero {
     grid-template-columns: 1fr;
   }
   .grid {
     grid-template-columns: repeat(2, 1fr);
   }
 }
 
 @media (max-width: 640px) {
   .grid {
     grid-template-columns: 1fr;
   }
 }
 
 .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
   overflow: hidden;
   cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
 }
 
 .card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(51, 112, 255, 0.18);
 }
 
 .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, rgba(51, 112, 255, 0.14), rgba(51, 112, 255, 0));
  display: flex;
  align-items: flex-end;
  padding: 12px;
 }
 
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 .cover-badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 6px 10px;
   border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 230, 235, 0.9);
   font-size: 12px;
  color: rgba(31, 35, 41, 0.9);
 }
 
 .card-body {
   padding: 12px;
 }
 
 .card-title {
   margin: 0 0 6px;
   font-size: 15px;`n  text-wrap: balance;
   line-height: 1.3;
 }
 
 .meta {
   color: var(--muted);
   font-size: 13px;
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
 }
 
 .price {
   margin-top: 10px;
   display: flex;
   align-items: center;
   justify-content: space-between;
 }
 
 .price strong {
   font-size: 18px;
 }
 
 .tag {
   padding: 4px 8px;
   border: none;
   border-radius: 999px;
   font-size: 12px;
   color: var(--muted);
  background: var(--surface-2);}
 
 .tag.ok {
  color: rgba(0, 180, 42, 0.95);
  background: rgba(0, 180, 42, 0.08);
 }
 
 .tag.warn {
  color: rgba(255, 125, 0, 0.95);
  background: rgba(255, 125, 0, 0.08);
 }
 
 .section-title {
   margin: 28px 0 12px;
   font-size: 15px;
   font-weight: 700;
   color: var(--muted);
   text-transform: none;
   letter-spacing: 0;
 }
 
 .kpis {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 10px;
   margin-top: 12px;
 }
 
 .kpi {
   padding: 12px;
  border-radius: 12px;
   border: 1px solid var(--border);
  background: var(--surface);
 }
 
 .kpi .label {
   color: var(--muted);
   font-size: 12px;
 }
 
 .kpi .value {
   font-size: 18px;
   margin-top: 6px;
   font-weight: 700;
 }
 
 .split {
   display: grid;
   grid-template-columns: 0.95fr 1.05fr;
   gap: 14px;
   margin-top: 18px;
 }
 
 @media (max-width: 980px) {
   .kpis {
     grid-template-columns: 1fr;
   }
   .split {
     grid-template-columns: 1fr;
   }
 }
 
 .list-filters {
   display: grid;
   grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
   gap: 10px;
 }
 
 @media (max-width: 980px) {
   .list-filters {
     grid-template-columns: 1fr 1fr;
   }
 }
 
 .detail-title {
   margin: 0 0 8px;
   font-size: 20px;
 }
 
 .detail-box {
   padding: 16px;
 }
 
 .divider {
   height: 1px;
   background: var(--border);
   margin: 12px 0;
 }
 
 .status {
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
 }
 
 .status .step {
   padding: 8px 10px;
   border-radius: 999px;
   border: 1px solid var(--border);
   color: var(--muted);
   font-size: 13px;
  background: var(--surface);
 }
 
 .status .step.on {
  border-color: rgba(51, 112, 255, 0.35);
  background: rgba(51, 112, 255, 0.08);
  color: var(--text);
 }
 
 .toast {
   position: fixed;
   bottom: 18px;
   left: 50%;
   transform: translateX(-50%);
   min-width: 260px;
   max-width: 520px;
   padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(229, 230, 235, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  color: var(--text);
   display: none;
 }
 
 .toast.show {
   display: block;
 }
 
 .footer-note {
   margin-top: 18px;
   color: var(--muted);
   font-size: 13px;
   line-height: 1.7;
 }

.publish-media {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.publish-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.publish-media-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.publish-media-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.publish-media-badge.on {
  color: var(--primary);
  border-color: rgba(51, 112, 255, 0.25);
  background: rgba(51, 112, 255, 0.08);
}

.publish-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 14px;
}

.media-card-head {
  margin-bottom: 12px;
}

.media-card-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.media-card-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.media-preview {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  border: 1px dashed rgba(51, 112, 255, 0.22);
  background: linear-gradient(180deg, rgba(51, 112, 255, 0.06), rgba(51, 112, 255, 0.02));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.media-preview-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.media-preview-empty strong {
  color: var(--text);
  font-size: 15px;
}

.media-preview-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 230, 235, 0.9);
  font-size: 12px;
  color: var(--text);
}

.media-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.media-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(51, 112, 255, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.table tr:hover td {
  background: rgba(51, 112, 255, 0.04);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.media-actions {
  margin-top: 12px;
}

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

@media (max-width: 640px) {
  .publish-media-head {
    flex-direction: column;
  }
}

/* ---- multi-image upload ---- */
.upload-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upload-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1.5px dashed rgba(51, 112, 255, 0.25);
  background: linear-gradient(180deg, rgba(51, 112, 255, 0.04), rgba(51, 112, 255, 0.01));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.upload-slot:hover {
  border-color: rgba(51, 112, 255, 0.45);
  background: linear-gradient(180deg, rgba(51, 112, 255, 0.08), rgba(51, 112, 255, 0.02));
}

.upload-slot.filled {
  border-style: solid;
  border-color: var(--border);
  background: var(--surface);
  cursor: default;
}

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

.upload-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.upload-slot-placeholder .plus {
  font-size: 28px;
  font-weight: 300;
  color: rgba(51, 112, 255, 0.5);
}

.upload-slot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 63, 63, 0.88);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 2;
}

.upload-slot.filled:hover .upload-slot-remove {
  display: block;
}

.upload-slot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 640px) {
  .upload-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- detail image gallery ---- */
.detail-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(51, 112, 255, 0.08), rgba(51, 112, 255, 0));
  overflow: hidden;
}

.detail-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.detail-gallery-img.active {
  display: block;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
}

.detail-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 120ms ease, border-color 120ms ease;
}

.detail-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.detail-thumb:hover {
  opacity: 0.9;
}

/* ---- chat ---- */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.chat-header-name {
  font-weight: 700;
  font-size: 16px;
}

.chat-header-product {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  padding: 12px 0;
}

.chat-date-divider {
  text-align: center;
  margin: 8px 0;
}

.chat-date-divider span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.chat-input-bar input {
  flex: 1;
}

.chat-conversation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  margin-bottom: 8px;
}

.chat-conversation:hover {
  background: var(--surface-2);
  border-color: rgba(51, 112, 255, 0.18);
}

.chat-conv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(51, 112, 255, 0.18), rgba(51, 112, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.chat-conv-body {
  flex: 1;
  min-width: 0;
}

.chat-conv-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.chat-conv-preview {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-meta {
  text-align: right;
  flex-shrink: 0;
}

.chat-conv-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ---- homepage: category grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 6px;
}

.category-card {
  padding: 18px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(51, 112, 255, 0.22);
}

.category-card .cat-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.category-card .cat-name {
  font-weight: 700;
  font-size: 14px;
}

.category-card .cat-count {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- section headers ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.section-header .more {
  font-size: 13px;
  color: var(--primary);
}

/* ---- product status badges ---- */
.card-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.card-status-badge.reserved {
  background: rgba(255, 125, 0, 0.9);
}

.card-status-badge.sold {
  background: rgba(100, 106, 115, 0.86);
}

.card.sold-card {
  opacity: 0.72;
  pointer-events: auto;
}

/* five-column list filters */
.list-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 0.9fr;
  gap: 10px;
}

@media (max-width: 980px) {
  .list-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .list-filters {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- want / favorite ---- */
.want-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.want-btn:hover {
  border-color: rgba(245, 63, 63, 0.35);
  background: rgba(245, 63, 63, 0.04);
}

.want-btn.active {
  color: var(--danger);
  border-color: rgba(245, 63, 63, 0.3);
  background: rgba(245, 63, 63, 0.07);
}

.want-count {
  font-weight: 700;
}

.card-want-badge {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- offer / bargaining ---- */
.offer-panel {
  padding: 14px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 12px;
}

.offer-panel .row {
  gap: 8px;
}

.offer-panel input[type="number"] {
  max-width: 140px;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-card-body {
  flex: 1;
  min-width: 0;
}

.offer-card-price {
  font-size: 18px;
  font-weight: 800;
}

.offer-card-price .original {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-left: 6px;
}

.offer-card-price .arrow {
  color: var(--primary);
  font-weight: 700;
  margin: 0 6px;
}

.offer-card-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.offer-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.offer-status-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.offer-status-tag.pending {
  background: rgba(255, 125, 0, 0.1);
  color: var(--warn);
}

.offer-status-tag.accepted {
  background: rgba(0, 180, 42, 0.1);
  color: var(--ok);
}

.offer-status-tag.rejected {
  background: rgba(245, 63, 63, 0.1);
  color: var(--danger);
}

/* ---- star rating ---- */
.star-rating {
  display: inline-flex;
  gap: 4px;
  cursor: pointer;
}

.star-rating .star {
  font-size: 30px;
  color: var(--border);
  transition: color 100ms ease;
  user-select: none;
}

.star-rating .star.filled {
  color: #f5a623;
}

.star-rating .star:hover {
  color: #f5a623;
}

.star-rating.readonly {
  cursor: default;
}

.star-rating.readonly .star:hover {
  color: inherit;
}

.star-rating.readonly .star.filled {
  color: #f5a623;
}

.stars-display {
  color: #f5a623;
  font-size: 14px;
}

/* ---- rating cards ---- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 10px;
}

.rating-avg {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.rating-avg-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.rating-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
}

.rating-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.rating-comment {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 6px;
}

.rating-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.avg-rating-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.avg-rating-display .stars-display {
  font-size: 13px;
}

/* ---- order tabs ---- */
.order-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
}

.order-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 120ms ease, border-color 120ms ease;
}

.order-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* ---- seller section ---- */
.seller-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.seller-section-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}


/* ---- detail description ---- */
.detail-description {
  padding: 2px 0;
}

.detail-description-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.detail-description-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- detail page enhancements ---- */
.detail-offer-strikethrough {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 14px;
  margin-left: 6px;
  font-weight: 500;
}

.detail-offer-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 125, 0, 0.1);
  color: var(--warn);
  font-weight: 600;
}

/* ---- empty state ---- */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 36px 20px;
}

/* ---- hero simple (homepage compact) ---- */
.hero-simple {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .media-spinner {
    transition: none !important;
  }
  .media-spinner {
    animation: none;
  }
}

/* ---- form textarea ---- */
textarea.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}