/* Order page — dark theme aligned with index.html (uses styles.css :root variables) */

html.order-page .order-main {
  padding: 1.25rem clamp(1rem, 4vw, 2rem)
    calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

html.order-page .order-container {
  max-width: 680px;
  margin: 0 auto;
}

/* Carousel uses shared .carousel-* styles from styles.css (same as index hero) */
html.order-page .order-carousel-wrap {
  margin: 0 0 1.5rem;
  min-width: 0;
}

html.order-page .order-intro {
  text-align: center;
  margin-bottom: 2rem;
}

html.order-page .order-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

html.order-page .order-tagline {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

html.order-page .order-est {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

html.order-page .order-est strong {
  color: var(--text);
  font-weight: 600;
}

html.order-page .order-promo-notice {
  margin: 1rem auto 0;
  max-width: 36rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(212, 168, 83, 0.08);
}

html.order-page .order-promo-notice strong {
  color: var(--text);
  font-weight: 600;
}

html.order-page .order-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html.order-page .order-panel--flat {
  box-shadow: none;
  background: transparent;
  border: none;
  padding-left: 0;
  padding-right: 0;
}

html.order-page .order-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-display);
}

html.order-page .order-kicker--insummary {
  margin-bottom: 0.75rem;
}

html.order-page .order-price-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1rem;
  align-items: stretch;
}

@media (max-width: 560px) {
  html.order-page .order-price-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  html.order-page .order-price-divider {
    display: none;
  }
}

html.order-page .order-price-cell {
  text-align: center;
}

html.order-page .order-price-label {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

html.order-page .order-price-shipfee {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

html.order-page .order-price-big {
  margin: 0;
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

html.order-page .order-price-foot {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

html.order-page .order-price-accent {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

html.order-page .order-price-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

html.order-page .order-price-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  min-height: 5rem;
}

html.order-page .order-hubs {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

html.order-page .order-form {
  margin: 0;
}

html.order-page .order-error-msg.order-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #fecaca;
  background: rgba(180, 60, 60, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

html.order-page .order-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

html.order-page .order-seg-item {
  position: relative;
  margin: 0;
  cursor: pointer;
  text-align: center;
}

html.order-page .order-seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html.order-page .order-seg-stack {
  display: block;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}

html.order-page .order-seg-face {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

html.order-page .order-seg-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

html.order-page .order-seg-item input:checked + .order-seg-stack {
  background: rgba(212, 168, 83, 0.12);
  box-shadow: 0 0 0 1px var(--border-strong);
}

html.order-page .order-seg-item input:checked + .order-seg-stack .order-seg-face {
  color: var(--text);
}

html.order-page .order-seg-item input:focus-visible + .order-seg-stack {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html.order-page .order-subfield {
  margin-top: 0.25rem;
}

html.order-page .order-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

html.order-page .order-label-spaced {
  margin-top: 0.85rem;
}

html.order-page .order-field-error {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #f87171;
  line-height: 1.4;
}

html.order-page .order-field-error[hidden] {
  display: none !important;
}

html.order-page .order-input.order-input--invalid,
html.order-page .order-select.order-input--invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

html.order-page .order-input,
html.order-page .order-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.92);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

html.order-page .order-input:focus,
html.order-page .order-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

html.order-page .order-ship-note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

html.order-page .order-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (min-width: 480px) {
  html.order-page .order-row-3 {
    grid-template-columns: 1.4fr 0.55fr 0.85fr;
  }
}

html.order-page .order-hidden {
  display: none !important;
}

html.order-page .order-summary-box.order-summary {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

html.order-page .order-summary-inner {
  font-size: 0.9rem;
}

html.order-page .order-sum-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

html.order-page .order-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

html.order-page .order-sum-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

html.order-page .order-sum-row dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

html.order-page .order-sum-row dd {
  margin: 0;
  text-align: right;
}

html.order-page .order-sum-total {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: var(--accent);
  background: none;
}

html.order-page .order-sum-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

html.order-page .order-sum-deposit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: var(--text);
}

html.order-page .order-sum-credit {
  font-weight: 600;
  color: #86efac;
  font-variant-numeric: tabular-nums;
}

html.order-page .order-sum-promo-end {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

@media (min-width: 480px) {
  html.order-page .order-sum-promo-end {
    display: inline;
    margin-top: 0;
    margin-left: 0.25rem;
    font-size: 0.72rem;
  }
}

html.order-page .order-sum-row--final {
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-bottom: none;
}

html.order-page .order-sum-row--final dt {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}

html.order-page .order-sum-balance-lg {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: var(--text);
  background: none;
  filter: none;
}

html.order-page .order-footnote.order-config-note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

html.order-page .order-footnote code {
  background: var(--accent-dim);
  color: #e8c97a;
  border-radius: 6px;
  padding: 0.12em 0.4em;
  font-size: 0.9em;
}

html.order-page .order-sr-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.order-page .order-paybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.65rem clamp(1rem, 4vw, 2rem) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 6, 6, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

html.order-page .order-paybar-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

html.order-page .order-paybar-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

html.order-page .order-paybar-caption {
  font-size: 0.72rem;
  color: var(--muted);
}

html.order-page .order-paybar-price {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

html.order-page .order-paybar-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1408;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(145deg, #e0b86a, #b8893a);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

html.order-page .order-paybar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(212, 168, 83, 0.35);
}

html.order-page .order-paybar-btn:active {
  transform: scale(0.98);
}

html.order-page .site-footer {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}
