/* ============================================================
   SHOP PAGES (checkout + order status) — RTL / Persian
   Uses the site tokens from style.css
   ============================================================ */
.shop-page {
  padding-top: 8rem;
  background: var(--bg-deeper);
  min-height: 100vh;
  font-family: "Vazirmatn", var(--sans);
  line-height: 1.8;
}
.shop-page .section-title { color: var(--tree); font-family: "Vazirmatn", var(--serif); }
.shop-page .section-head p { color: var(--muted); margin: 0.8rem auto 0; max-width: 32rem; }
.shop-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shop-layout {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2.5rem;
  align-items: start;
}
.shop-layout.single { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.shop-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel h3 { font-size: 1.15rem; font-weight: 500; color: var(--tree); margin: 0 0 1.2rem; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .field-full { grid-column: 1 / -1; }
.shop-page .field input,
.shop-page .field textarea { font-family: inherit; }
.shop-page .field label { left: auto; right: 1.1rem; font-family: inherit; }
.shop-page .field input[dir="ltr"] { text-align: right; }
.field-error { color: #e8836f; font-size: 0.8rem; margin: 0.35rem 0.2rem 0; }

/* notice */
.notice {
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

/* the card itself — the one memorable element */
.card-pay {
  position: relative;
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.3rem;
  background: linear-gradient(135deg, #3b5c65 0%, #24383e 75%);
  border: 1px solid rgba(230, 199, 154, 0.38);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.6rem;
}
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.card-top strong { color: var(--accent); font-weight: 500; font-size: 1rem; }
.card-number {
  direction: ltr;
  text-align: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.35rem, 5.2vw, 2.1rem);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--tree);
  margin: 1.4rem 0;
  user-select: all;
}
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--text); font-size: 0.9rem; }
.copy-btn {
  background: transparent;
  border: 1px solid rgba(230, 199, 154, 0.5);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.copy-btn:hover { background: var(--accent); color: var(--bg-deeper); }

/* receipt upload */
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  border: 1.5px dashed var(--glass-brd);
  border-radius: 12px;
  padding: 1.6rem 1rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { color: var(--text); font-weight: 500; }
.dropzone small { color: var(--faint); }
.dropzone img { max-width: 100%; max-height: 260px; border-radius: 8px; margin-top: 0.8rem; }
.dropzone img[hidden] { display: none; }

/* buttons */
.btn-pill {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--bg-deeper);
  border: none;
  border-radius: 100px;
  padding: 1rem 1.5rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(230, 199, 154, 0.25); }
.btn-pill:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.link-quiet { display: block; text-align: center; margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }
.link-quiet:hover { color: var(--accent); }

/* summary */
.summary { position: sticky; top: 8rem; }
.sum-item { display: flex; gap: 0.9rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--glass-brd); }
.sum-item:last-of-type { border-bottom: none; }
.sum-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-deep); }
.sum-item .name { color: var(--tree); font-size: 0.95rem; }
.sum-item .qty { color: var(--faint); font-size: 0.8rem; }
.sum-item .price { margin-inline-start: auto; color: var(--text); font-size: 0.9rem; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--accent); margin-top: 0.8rem; padding-top: 1.1rem; color: var(--text); }
.sum-total .amount { color: var(--accent); font-size: 1.5rem; font-weight: 500; }
.sum-total .currency { font-size: 0.8rem; opacity: 0.65; margin-inline-start: 0.25rem; }

/* order status */
.badge { display: inline-block; border-radius: 100px; padding: 0.25rem 0.9rem; font-size: 0.82rem; border: 1px solid; }
.badge-awaiting_review { color: var(--accent); border-color: rgba(230, 199, 154, 0.5); background: var(--accent-soft); }
.badge-confirmed { color: #8fcab5; border-color: rgba(90, 138, 122, 0.7); background: rgba(90, 138, 122, 0.18); }
.badge-rejected { color: #e8836f; border-color: rgba(232, 131, 111, 0.6); background: rgba(232, 131, 111, 0.12); }
.status-line { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.status-text { color: var(--muted); margin: 0; }
.kv { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.kv dt { color: var(--faint); font-size: 0.85rem; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.receipt-thumb { max-width: 220px; border-radius: 10px; border: 1px solid var(--glass-brd); display: block; margin-top: 0.8rem; }

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 768px) {
  .shop-page { padding-top: 6rem; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0.1rem; }
  .kv dd { margin-bottom: 0.7rem; }
}
