body {
  background: #f5f5f5;
}

.order-page {
  padding: 34px 20px 60px;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.order-page-head {
  margin-bottom: 22px;
}

.order-page-head h1 {
  font-size: 34px;
  color: #111;
  margin-bottom: 8px;
}

.order-page-head p {
  color: #666;
  font-size: 15px;
}

.state-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 26px;
  text-align: center;
  color: #666;
  border-radius: 14px;
}

.order-list {
  display: grid;
  gap: 18px;
}

.order-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.order-meta h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
}

.order-meta p {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-pending {
  background: #fff3cd;
  color: #8a6d00;
}

.status-confirmed {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-shipping {
  background: #ede9fe;
  color: #6d28d9;
}

.status-completed {
  background: #dcfce7;
  color: #15803d;
}

.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.order-items {
  padding: 0 20px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f1f1;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-left img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: #f3f3f3;
}

.order-item-info h4 {
  font-size: 15px;
  color: #111;
  margin-bottom: 6px;
}

.order-item-info p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.order-item-right {
  text-align: right;
  min-width: 120px;
}

.order-item-right .qty {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.order-item-right .line-total {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.order-bottom {
  padding: 16px 20px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.order-total {
  font-size: 16px;
  color: #111;
  font-weight: 700;
}

.order-total span {
  font-size: 24px;
  margin-left: 10px;
}

.order-bottom-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  transition: 0.2s ease;
}

.order-detail-link:hover {
  background: #111;
  color: #fff;
}


.order-preview-list {
  padding: 0 20px;
}

.order-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f1f1;
}

.order-preview-item:last-child {
  border-bottom: none;
}

.order-preview-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.order-preview-left img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: #f3f3f3;
}

.order-preview-info h4 {
  font-size: 15px;
  color: #111;
  margin-bottom: 6px;
}

.order-preview-info p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.order-preview-right {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.order-bottom-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  transition: 0.2s ease;
}

.order-detail-link:hover {
  background: #111;
  color: #fff;
}

.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-order-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.view-order-btn:hover {
  background: #111;
  color: #fff;
}

.cancel-order-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ef4444;
  background: #fff;
  color: #dc2626;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.cancel-order-btn:hover {
  background: #dc2626;
  color: #fff;
}

.cancel-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .order-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item {
    grid-template-columns: 1fr;
  }

  .order-item-right {
    text-align: left;
  }

  .order-total span {
    font-size: 20px;
  }
}