/* 在线商城 */

[hidden] {
  display: none !important;
}

.btn-block {
  width: 100%;
}

/* 商城首页 */

.shop-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.shop-feature-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e8efea 72%);
  color: var(--brand-deep);
}

.shop-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-feature-media .product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 92, 74, 0.86);
  color: #fff;
}

.shop-feature-media svg {
  width: 170px;
  height: 170px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shop-grid > .shop-loading {
  grid-column: 1 / -1;
}

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

.shop-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.shop-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.03);
}

.shop-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 92, 74, 0.88);
  color: #fff;
  font-size: 11px;
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.shop-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-card-title a:hover {
  color: var(--brand);
}

.shop-card-subtitle {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.shop-card-price {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.shop-card-price small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
}

.shop-card-link {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.shop-catalog-section {
  background: var(--surface-soft);
}

.shop-flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.shop-feature-body h2 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}

.shop-subtitle {
  color: var(--brand);
  font-size: 14px;
}

.shop-feature-body > p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.shop-checks {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.shop-checks li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.shop-checks li::before {
  position: absolute;
  top: 0.7em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.shop-price-lg {
  margin-top: 20px;
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.shop-price-lg small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}

.shop-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.shop-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.shop-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-flow-section {
  background: var(--surface-soft);
}

.shop-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.shop-flow li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.shop-flow li span {
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.shop-flow li strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.shop-flow li p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.shop-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shop-service-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.shop-service-grid a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.shop-service-grid strong {
  font-size: 15px;
}

.shop-service-grid span {
  color: var(--muted);
  font-size: 12.5px;
}

.shop-trust-section {
  padding-top: 0;
}

.shop-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: var(--brand-deep);
  color: #fff;
}

.shop-trust div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.shop-trust div:first-child {
  border-left: 0;
}

.shop-trust strong {
  font-family: var(--font-serif);
  font-size: 18px;
}

.shop-trust span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* 购物车悬浮入口 */

.shop-cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(12, 49, 39, 0.28);
}

.shop-cart-fab svg {
  width: 24px;
  height: 24px;
}

.shop-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.shop-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  z-index: 120;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(15, 92, 74, 0.95);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shop-toast.is-error {
  background: rgba(179, 38, 30, 0.95);
}

/* 通用页面结构 */

.shop-page {
  padding: 24px 0 80px;
}

.shop-page--narrow {
  max-width: 880px;
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.shop-breadcrumb a {
  color: var(--ink-soft);
}

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

.shop-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 24px;
}

.shop-page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
}

.shop-page-head a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.shop-loading {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.shop-empty {
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.shop-empty p {
  margin-bottom: 16px;
}

/* 商品详情 */

.shop-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.shop-product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e8efea 72%);
  color: var(--brand-deep);
}

.shop-product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-media .product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 92, 74, 0.86);
  color: #fff;
}

.shop-product-media svg {
  width: 200px;
  height: 200px;
}

.shop-product-info h1 {
  margin: 12px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
}

.shop-product-summary {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.shop-field {
  margin-top: 20px;
}

.shop-field-label,
.shop-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.shop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-spec {
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.shop-spec[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.qty-stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--surface-soft);
  color: var(--brand-deep);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: var(--brand-soft);
}

.qty-stepper > span {
  min-width: 48px;
  text-align: center;
  font-weight: 600;
}

.qty-hint {
  margin-left: 12px;
  color: var(--muted);
  font-size: 12px;
}

.qty-stepper--sm {
  border-radius: 10px;
}

.qty-stepper--sm button {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.qty-stepper--sm > span {
  min-width: 32px;
  font-size: 14px;
}

.shop-buy-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.shop-buy-actions .btn {
  flex: 1;
}

.shop-highlights {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  list-style: none;
}

.shop-highlights li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.shop-highlights li::before {
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.shop-detail-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.shop-detail-panels article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.shop-detail-panels h2 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.shop-detail-panels p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.shop-detail-panels p + p {
  margin-top: 8px;
}

/* 购物车 */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

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

.cart-thumb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e8efea 72%);
  color: var(--brand-deep);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.cart-thumb svg {
  width: 44px;
  height: 44px;
}

.cart-main h2 {
  font-size: 17px;
  line-height: 1.4;
}

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

.cart-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cart-remove:hover {
  color: var(--danger, #b3261e);
}

.cart-line-total {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-summary,
.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.cart-summary h2,
.checkout-summary h2 {
  font-family: var(--font-serif);
  font-size: 20px;
}

.cart-summary dl,
.checkout-summary dl {
  margin: 16px 0;
}

.cart-summary dl div,
.checkout-summary dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.cart-total-row {
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 1px dashed var(--line);
}

.cart-total-row dt {
  font-weight: 600;
}

.cart-total-row dd {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
}

/* 结算 */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 24px;
}

.checkout-main {
  display: grid;
  gap: 16px;
}

.checkout-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.checkout-card h2 {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-field--full {
  grid-column: 1 / -1;
}

.shop-field input,
.shop-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-field textarea {
  resize: vertical;
}

.shop-field input:focus,
.shop-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 92, 74, 0.1);
}

.pay-options {
  display: grid;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.pay-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.pay-option input {
  margin-top: 4px;
  accent-color: var(--brand);
}

.pay-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-option-body strong {
  font-size: 15px;
}

.pay-option-body small {
  color: var(--muted);
  font-size: 12.5px;
}

.shop-login-tip {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.shop-login-tip a {
  color: var(--brand);
  font-weight: 600;
}

.shop-form-msg {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.shop-form-msg.is-error,
.shop-form-msg.is-success {
  display: block;
}

.shop-form-msg.is-error {
  background: #fdecea;
  color: #b3261e;
}

.shop-form-msg.is-success {
  background: #e8f3ec;
  color: #1e6b45;
}

.checkout-items {
  display: grid;
}

.checkout-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.checkout-line:first-child {
  padding-top: 0;
}

.checkout-line-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
}

.checkout-line-main span {
  color: var(--muted);
  font-size: 12.5px;
}

.checkout-line-total {
  font-weight: 600;
  white-space: nowrap;
}

/* 收银台 */

.pay-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-state {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a5516;
  font-size: 12.5px;
  white-space: nowrap;
}

.pay-state.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.pay-state.is-cancelled {
  background: #eef0ee;
  color: var(--muted);
}

.pay-order-no {
  color: var(--muted);
  font-size: 12.5px;
}

.pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.pay-amount span {
  color: var(--ink-soft);
  font-size: 14px;
}

.pay-amount strong {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.2;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--brand-soft);
}

.pay-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
}

.pay-method-icon svg {
  width: 22px;
  height: 22px;
}

.pay-method > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.pay-method strong {
  font-size: 15px;
}

.pay-method small {
  color: var(--muted);
  font-size: 12.5px;
}

.pay-method-radio {
  width: 18px;
  height: 18px;
  border: 5px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}

.pay-submit {
  margin-top: 18px;
}

.pay-card > .shop-form-msg {
  margin-top: 12px;
}

/* 订单详情 */

.shop-order-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.order-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
}

.order-success-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
}

.order-success h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
}

.order-success p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.shop-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shop-order-head h2 {
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.order-items {
  margin-top: 16px;
}

.order-info {
  margin: 18px 0 0;
}

.order-info > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.order-info dt {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

.order-info dd {
  margin: 0;
  font-size: 13.5px;
  text-align: right;
  word-break: break-word;
}

.order-total-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.order-total-bar span {
  color: var(--ink-soft);
  font-size: 14px;
}

.order-total-bar strong {
  color: var(--brand-deep);
  font-family: var(--font-serif);
  font-size: 30px;
}

.shop-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.shop-order-detail > .shop-form-msg {
  margin-top: 12px;
}

/* 我的商城订单 */

.shop-order-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.shop-order-card:hover,
.shop-order-card:active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.shop-order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-order-card .order-status.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 响应式 */

@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-detail-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-feature,
  .shop-product {
    grid-template-columns: 1fr;
  }

  .shop-feature-media {
    min-height: 280px;
  }

  .shop-product-media {
    min-height: 300px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .shop-trust {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shop-trust div {
    padding: 0 0 0 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .shop-trust div:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .shop-page {
    padding: 18px 0 64px;
  }

  .shop-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shop-feature,
  .shop-product {
    border-radius: 20px;
  }

  .shop-flow,
  .shop-service-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    gap: 10px;
  }

  .shop-card {
    border-radius: 14px;
  }

  .shop-card-body {
    padding: 12px;
  }

  .shop-card-title {
    font-size: 14px;
  }

  .shop-card-price {
    font-size: 18px;
  }

  .shop-card-link {
    font-size: 12px;
  }

  .shop-buy-actions {
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-thumb {
    width: 72px;
    height: 72px;
  }

  .cart-line-total {
    grid-column: 2;
    justify-self: start;
    font-size: 18px;
  }

  .shop-form-grid {
    grid-template-columns: 1fr;
  }

  .qty-hint {
    display: none;
  }

  .shop-order-actions .btn {
    flex: 1 1 100%;
  }

  .shop-cart-fab {
    right: 16px;
    bottom: 18px;
  }
}
