.order-page {
  padding: 2.5rem 0 6rem;
  min-height: calc(100vh - 72px);
}

.back-link {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .95rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.back-link:hover { color: var(--text); }

.order-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 2.5rem;
  align-items: start;
}

.order-form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  padding: 2.5rem;
}
.order-form-card h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 .75rem;
}
.order-form-card .lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 0 1.75rem;
}

/* Security notice */
.security-notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(77, 171, 61, .08);
  border: 1px solid rgba(77, 171, 61, .25);
  border-radius: 14px;
  margin-bottom: 2rem;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.5;
}
.security-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--green-dark);
  flex-shrink: 0;
  margin-top: 1px;
}
.security-icon svg { width: 100%; height: 100%; display: block; }
.security-notice strong { display: block; margin-bottom: .15rem; color: var(--green-dark); }

/* Form */
.field { margin-bottom: 1.25rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(241,125,44,.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

/* Quantity stepper */
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.qty-control input {
  width: 80px;
  text-align: center;
  border: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 1.1rem;
  padding: .85rem .5rem;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-control input:focus { box-shadow: none; }
.qty-btn {
  width: 44px;
  background: var(--bg-soft);
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.qty-btn:hover { background: var(--bg); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-summary {
  margin-top: .55rem;
  color: var(--text-dim);
  font-size: .9rem;
}
.qty-summary strong { color: var(--text); }
.qty-hint {
  margin-top: .35rem;
  color: var(--text-faint);
  font-size: .85rem;
}
.qty-hint a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.qty-hint a:hover { text-decoration: underline; }

/* Errors */
.form-errors {
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  background: rgba(220, 38, 38, .08);
  border: 1px solid rgba(220, 38, 38, .25);
  border-radius: 12px;
  color: #991b1b;
  font-size: .9rem;
}

/* Submit */
.btn-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  position: relative;
}
.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: white;
  margin-left: .6rem;
  animation: spin .8s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn[data-loading="true"] .btn-spinner { display: inline-block; }
.btn[data-loading="true"] { opacity: .85; pointer-events: none; }
.fine {
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-faint);
}

/* Summary */
.order-summary {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.order-summary h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.summary-product {
  display: flex;
  gap: .9rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.summary-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 4px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
  font-size: .95rem;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--border);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.summary-total span:last-child { color: var(--orange); }
.text-dim { color: var(--text-dim); font-size: .85rem; }
.summary-perks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-dim);
}
.summary-perks li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* Success */
.success-card {
  max-width: 540px;
  margin: 4rem auto 0;
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--orange);
}
.success-icon svg { width: 100%; height: 100%; display: block; }
.success-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
.success-card strong {
  display: inline-block;
  background: var(--bg-soft);
  padding: .25rem .75rem;
  border-radius: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--orange);
}
.success-card .btn { margin-top: 1.5rem; }

@media (max-width: 880px) {
  .order-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .order-form-card { padding: 1.75rem; }
  .order-summary { position: static; order: -1; }
  .field-row { grid-template-columns: 1fr; gap: 1.25rem; }
}
