:root {
  --primary: #004da0;
  --primary-dark: #003a7a;
  --price: #1a6fd4;
  --accent: #ff6b00;
  --danger: #e53935;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #222222;
  --text-secondary: #888888;
  --text-muted: #aaaaaa;
  --border: #eeeeee;
  --radius: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

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

.page {
  min-height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(60px + var(--safe-bottom));
}

.page--order {
  padding-bottom: calc(64px + var(--safe-bottom));
}

.page--detail {
  padding-bottom: calc(56px + var(--safe-bottom));
  background: #fff;
}

/* ---------- Header ---------- */
.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #f5f5f5;
  border-radius: 17px;
  color: var(--text-muted);
  font-size: 13px;
}

.search-box svg {
  flex-shrink: 0;
  color: #bbb;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 8px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}

.nav-header__title {
  font-size: 17px;
  font-weight: 600;
}

.nav-header__side {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #333;
}

/* ---------- Category ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 0;
  padding: 16px 8px 12px;
  background: #fff;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #444;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(145deg, #fff8f0, #ffe8d0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.category-icon--blue { background: linear-gradient(145deg, #eef6ff, #d6e8ff); }
.category-icon--green { background: linear-gradient(145deg, #f0fff4, #d4f5e0); }
.category-icon--pink { background: linear-gradient(145deg, #fff0f5, #ffd6e5); }
.category-icon--purple { background: linear-gradient(145deg, #f5f0ff, #e0d4ff); }
.category-icon--teal { background: linear-gradient(145deg, #f0fffc, #d0f5ef); }

/* ---------- Banner ---------- */
.banner {
  margin: 10px 12px;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffe566 0%, #ffc107 45%, #ff9800 100%);
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  color: #5a3200;
}

.banner__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.banner__headline {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.banner__cta {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  font-size: 11px;
  color: #c45a00;
  font-weight: 600;
}

.banner__deco {
  position: absolute;
  right: 8px;
  bottom: 0;
  font-size: 72px;
  line-height: 1;
  opacity: 0.95;
}

/* ---------- Section ---------- */
.section-title {
  text-align: center;
  padding: 16px 0 12px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f4f8;
}

.product-card__body {
  padding: 8px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__spec {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.product-card__meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.product-card__footer {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.price {
  color: var(--price);
  font-weight: 700;
  font-size: 16px;
}

.price small {
  font-size: 12px;
}

.price-origin {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.cart-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Bottom Tab ---------- */
.tab-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(54px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 30;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #999;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

/* ---------- Detail ---------- */
.detail-hero {
  position: relative;
  background: #fff;
}

.detail-hero__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f7fa;
}

.detail-hero__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

.detail-hero__nav .back-btn,
.detail-hero__nav .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(90deg, #003d82, #0056b3);
  color: #fff;
}

.price-bar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-tag {
  display: inline-block;
  padding: 2px 6px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  border-radius: 3px;
  font-weight: 600;
}

.price-bar__price {
  font-size: 22px;
  font-weight: 700;
}

.price-bar__price span {
  font-size: 13px;
  font-weight: 400;
}

.price-bar__origin {
  font-size: 13px;
  text-decoration: line-through;
  opacity: 0.7;
  margin-left: 6px;
}

.price-bar__sold {
  font-size: 13px;
  opacity: 0.9;
}

.detail-info {
  padding: 14px 14px 0;
  background: #fff;
}

.detail-info__title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-info__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.detail-info__fav {
  color: #999;
  padding-top: 2px;
}

.detail-info__spec {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.detail-row__label {
  width: 48px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.detail-row__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flash-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--danger);
  font-size: 12px;
}

.flash-tag::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--danger);
  border-radius: 2px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13 2L3 14h8l-1 8 10-12h-8l1-8z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M13 2L3 14h8l-1 8 10-12h-8l1-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.qty-row {
  justify-content: space-between;
}

.qty-row__stock {
  flex: 1;
  color: var(--text-secondary);
  font-size: 12px;
  padding-left: 8px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper__btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.stepper__btn--minus {
  background: #f0f0f0;
  color: #666;
}

.stepper__btn--plus {
  background: var(--primary);
  color: #fff;
}

.stepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper__val {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.detail-action {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(52px + var(--safe-bottom));
  padding: 6px 10px var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 30;
}

.detail-action__link {
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
  position: relative;
  gap: 1px;
}

.badge {
  position: absolute;
  top: -2px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.btn {
  height: 40px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.btn--outline {
  flex: 1;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn--primary {
  flex: 1;
  background: var(--primary);
  color: #fff;
}

.btn--primary:active {
  background: var(--primary-dark);
}

/* ---------- Order ---------- */
.order-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.card__title--mark::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  margin-top: 4px;
  border-radius: 1px;
}

.address-card {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.address-card__body {
  flex: 1;
}

.address-card__addr {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.address-card__user {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
}

.chevron {
  color: #ccc;
  font-size: 16px;
}

.order-product {
  display: flex;
  gap: 10px;
}

.order-product__img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f4f8;
  flex-shrink: 0;
}

.order-product__info {
  flex: 1;
  min-width: 0;
}

.order-product__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.order-product__spec {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.order-product__right {
  text-align: right;
  flex-shrink: 0;
}

.order-product__price {
  color: var(--price);
  font-weight: 700;
  font-size: 15px;
}

.order-product__qty {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.order-subtotal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 13px;
  color: #555;
}

.order-subtotal .price {
  font-size: 14px;
}

.order-remark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: #333;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.row-between + .row-between {
  margin-top: 10px;
}

.summary-line {
  margin-top: 10px;
  text-align: right;
  font-size: 13px;
  color: #555;
}

.summary-line .price {
  font-size: 15px;
}

.pay-methods {
  display: flex;
  flex-direction: column;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.pay-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pay-item:first-of-type {
  padding-top: 4px;
}

.pay-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.pay-item__icon--wallet { background: linear-gradient(135deg, #ff9800, #ff6d00); }
.pay-item__icon--card { background: linear-gradient(135deg, #ffa726, #fb8c00); }
.pay-item__icon--wechat { background: #07c160; }

.pay-item__name {
  flex: 1;
  font-size: 14px;
}

.radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  position: relative;
}

.radio.active {
  border-color: var(--primary);
}

.radio.active::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.order-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: stretch;
  z-index: 30;
}

.order-footer__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
}

.order-footer__pay {
  font-size: 15px;
  font-weight: 600;
  color: var(--price);
}

.order-footer__discount {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.order-footer__btn {
  width: 130px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.order-footer__btn:active {
  background: var(--primary-dark);
}

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-mask.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.22s ease;
}

.modal-mask.show .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: 18px 16px 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.modal__body {
  padding: 8px 20px 16px;
}

.modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f0faf4;
  margin-bottom: 12px;
}

.modal__status.is-low {
  background: #fff8f0;
}

.modal__status.is-out {
  background: #fff1f0;
}

.modal__status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.modal__status.is-low .modal__status-icon {
  background: #ff9800;
}

.modal__status.is-out .modal__status-icon {
  background: #e53935;
}

.modal__status-text {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.modal__status-sub {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.modal__info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f2f2f2;
}

.modal__info-row:last-child {
  border-bottom: none;
}

.modal__info-label {
  color: #888;
}

.modal__info-value {
  color: #222;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.modal__ship {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f5f8ff;
  border-radius: 8px;
  font-size: 13px;
  color: #004da0;
  line-height: 1.5;
}

.modal__footer {
  display: flex;
  border-top: 1px solid #eee;
}

.modal__footer button {
  flex: 1;
  height: 48px;
  font-size: 15px;
}

.modal__footer .btn-cancel {
  color: #666;
  border-right: 1px solid #eee;
}

.modal__footer .btn-confirm {
  color: var(--primary);
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product image placeholder */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8f1fb 0%, #d0e4f7 100%);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #e8f1fb 0%, #c5daf0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
}

.product-thumb__icon {
  font-size: 48px;
  line-height: 1;
}

.product-thumb__label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.product-thumb--fish {
  background: linear-gradient(160deg, #fff8f0 0%, #ffe0c2 100%);
  color: #c45a00;
}

.detail-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f7fafc 0%, #e8f0f8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.detail-thumb__icon {
  font-size: 96px;
  line-height: 1;
}

.detail-thumb__name {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
}

.order-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: linear-gradient(160deg, #e8f1fb 0%, #c5daf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

/* ---------- Loading / Success ---------- */
.loading-mask,
.success-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-mask.show,
.success-mask.show {
  opacity: 1;
  visibility: visible;
}

.loading-box,
.success-box {
  min-width: 140px;
  padding: 24px 28px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text,
.success-text {
  font-size: 14px;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-size: 26px;
  line-height: 48px;
  font-weight: 700;
}

/* ---------- Orders List ---------- */
.page--orders {
  padding-bottom: calc(60px + var(--safe-bottom));
}

.orders-list {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.order-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.order-item__no {
  color: var(--text-secondary);
}

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

.order-item__status.is-received {
  color: #07c160;
}

.order-item__body {
  display: flex;
  gap: 10px;
}

.order-item__info {
  flex: 1;
  min-width: 0;
}

.order-item__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.order-item__spec {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.order-item__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.order-item__right {
  text-align: right;
  flex-shrink: 0;
}

.order-item__amount {
  color: var(--price);
  font-weight: 700;
  font-size: 15px;
}

.order-item__qty {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.order-item__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-item__time {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
}

.btn-receive {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  flex-shrink: 0;
}

.btn-receive:active {
  background: #f0f6ff;
}

.btn-receive:disabled,
.btn-receive.is-done {
  border-color: #ddd;
  color: #aaa;
  cursor: default;
}

.orders-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.orders-empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.orders-empty__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
