/* =====================================================
   Link-Man | صفحه عمومی سفارش (تم دارک)
   -----------------------------------------------------
   نکته مهم:
   تمام قواعد این فایل با .order-page یا .order-* شروع
   می‌شوند تا به بقیه صفحات پروژه (داشبورد، لندینگ،
   ثبت‌نام) نشت نکنند.
   ===================================================== */

.order-page {
  --order-bg: #0f172a;
  --order-surface: #1e293b;
  --order-surface-2: #273449;
  --order-border: #334155;
  --order-primary: #3b82f6;
  --order-success: #22c55e;
  --order-warning: #f59e0b;
  --order-danger: #ef4444;
  --order-text: #f8fafc;
  --order-text-light: #94a3b8;
  --order-radius: 18px;
  --order-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

  min-height: 100vh;
  background: var(--order-bg);
  color: var(--order-text);
  font-family: Vazirmatn, sans-serif;

  /* فضای لازم برای نوار سبد خرید و منوی موبایل */
  padding-bottom: 190px;
}

.order-page .container {
  max-width: 700px;
}

/* بوت‌استرپ روی بعضی بخش‌ها bg-white می‌گذارد */
.order-page section.bg-white,
.order-page .bg-light {
  background: var(--order-bg) !important;
}

.order-page .text-muted {
  color: var(--order-text-light) !important;
}

.order-page .border-top {
  border-color: var(--order-border) !important;
}

/* ===================== Header ===================== */
.order-header {
  background: var(--order-surface) !important;
  border-bottom: 1px solid var(--order-border);
}

.order-header h5 {
  color: #fff;
}

.order-shop-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--order-surface-2);
  border: 2px solid var(--order-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--order-text-light);
  font-size: 24px;
}

.order-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== Search ===================== */
.order-search-box {
  position: relative;
}

.order-search {
  height: 50px;
  border-radius: 25px;
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  color: #fff;
  padding-right: 48px;
}

.order-search::placeholder {
  color: var(--order-text-light);
}

.order-search:focus {
  background: var(--order-surface);
  border-color: var(--order-primary);
  color: #fff;
  box-shadow: none;
}

.order-search-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--order-text-light);
  pointer-events: none;
}

/* ===================== Featured ===================== */
.order-featured-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 0 15px 15px;
  scrollbar-width: none;
}

.order-featured-slider::-webkit-scrollbar {
  display: none;
}

.order-featured-item {
  position: relative;
  width: 250px;
  flex-shrink: 0;
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--order-shadow);
}

.order-featured-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.order-featured-item .fw-bold {
  color: #fff;
}

.order-featured-item .text-success {
  color: var(--order-success) !important;
}

.order-featured-empty {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--order-surface-2);
  color: #64748b;
  font-size: 40px;
}

/* ===================== Categories ===================== */
.order-category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.order-category-scroll::-webkit-scrollbar {
  display: none;
}

.order-category {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--order-surface);
  color: #fff;
  border: 1px solid var(--order-border);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.order-category.active {
  background: var(--order-primary);
  border-color: var(--order-primary);
}

.order-category-icon {
  font-size: 18px;
  line-height: 1;
}

/* ===================== Product list ===================== */
/* نام کلاس عمداً order-item است نه order-product،
   چون landing.css یک .order-product دیگر دارد. */
.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  padding: 12px;
  margin-bottom: 14px;
}

.order-item-image {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--order-surface-2);
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 26px;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-info .fw-bold {
  color: #fff;
}

.order-item-info .text-success {
  color: var(--order-success) !important;
}

.order-item-action {
  flex-shrink: 0;
}

.order-out-of-stock {
  color: var(--order-danger) !important;
}

/* ===================== Buttons ===================== */
.order-add-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--order-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.order-add-btn:disabled {
  background: var(--order-surface-2);
  color: #64748b;
}

.order-qty-control,
.order-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--order-surface-2);
  border-radius: 100px;
  padding: 4px;
}

.order-qty {
  justify-content: space-between;
  width: 100%;
}

.order-qty-control button,
.order-qty button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--order-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-qty-control span,
.order-qty span {
  color: #fff;
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

/* ===================== Cart bar ===================== */
.order-cart {
  position: relative;
  /* بالای منوی موبایل می‌نشیند */
  bottom: 78px;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0 12px;
  background: transparent;
}

.order-cart-body {
 
  background: #020617;
  border: 1px solid var(--order-border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.order-cart-body .fw-bold {
  color: #fff;
}

.order-cart-body .btn {
  background: var(--order-warning);
  border: none;
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 992px) {
  /* منوی موبایل در دسکتاپ نمایش داده نمی‌شود */
  .order-cart {
    bottom: 20px;
  }
}

/* ===================== Skeleton ===================== */
.order-skeleton {
  display: flex;
  gap: 14px;
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  padding: 12px;
  margin-bottom: 14px;
}

.order-skeleton-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--order-surface-2);
}

.order-skeleton-content {
  flex: 1;
  padding-top: 6px;
}

.order-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--order-surface-2);
}

.order-skeleton-image,
.order-skeleton-line {
  animation: order-pulse 1.4s ease-in-out infinite;
}

@keyframes order-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ===================== Empty state ===================== */
.order-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--order-text-light);
}

.order-empty i {
  font-size: 46px;
  color: #475569;
}

/* ===================== Mobile ===================== */
@media (max-width: 767px) {
  .order-item-image,
  .order-skeleton-image {
    width: 75px;
    height: 75px;
  }

  .order-item {
    gap: 12px;
  }

  .order-featured-item {
    width: 210px;
  }
}

/* =====================================================
   صفحات تکمیل سفارش (اطلاعات مشتری / تایید / موفقیت)
   -----------------------------------------------------
   همان پالت تیره صفحه سفارش، ولی چون این صفحات فرم‌محور
   هستند کلاس ریشه جداست.
   ===================================================== */

.order-form-page {
  --order-bg: #0f172a;
  --order-surface: #1e293b;
  --order-surface-2: #273449;
  --order-border: #334155;
  --order-primary: #3b82f6;
  --order-success: #22c55e;
  --order-warning: #f59e0b;
  --order-text: #f8fafc;
  --order-text-light: #94a3b8;
  --order-radius: 18px;

  min-height: 100vh;
  background: var(--order-bg);
  color: var(--order-text);
  font-family: Vazirmatn, sans-serif;
  padding-bottom: 40px;
}

.order-form-page .container {
  max-width: 700px;
}

.order-form-page .text-muted {
  color: var(--order-text-light) !important;
}

/* ---------- هدر ---------- */
.order-form-header {
  background: var(--order-surface);
  border-bottom: 1px solid var(--order-border);
}

.order-form-header h5 {
  color: #fff;
}

.order-back-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--order-border);
  background: var(--order-surface-2);
  color: var(--order-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ---------- کارت ---------- */
.order-card {
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  padding: 22px;
}

.order-card h6 {
  color: #fff;
}

.order-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.order-icon-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--order-success);
}

.order-icon-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--order-warning);
}

.order-icon-primary {
  background: rgba(59, 130, 246, 0.15);
  color: var(--order-primary);
}

/* ---------- فرم ---------- */
.order-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--order-text);
}

.order-control {
  min-height: 50px;
  border-radius: 12px;
  background: var(--order-surface-2);
  border: 1px solid var(--order-border);
  color: #fff;
}

.order-control::placeholder {
  color: #64748b;
}

.order-control:focus {
  background: var(--order-surface-2);
  border-color: var(--order-primary);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.order-control:disabled {
  background: #16202f;
  color: #64748b;
}

/* لیست بازشوی select در تم تیره */
.order-control option {
  background: var(--order-surface-2);
  color: #fff;
}

.order-form-page textarea.order-control {
  resize: vertical;
}

.order-note {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--order-text-light);
}

.order-price {
  color: var(--order-success) !important;
}

/* ---------- دکمه ثبت ---------- */
.order-submit {
  min-height: 56px;
  border-radius: 100px;
  border: none;
  background: var(--order-success);
  color: #06210f;
  font-weight: 700;
  font-size: 1.05rem;
}

.order-submit:hover:not(:disabled) {
  background: #1ead55;
  color: #06210f;
}

.order-submit:disabled {
  background: var(--order-surface-2);
  color: var(--order-text-light);
}

/* ---------- صفحه تایید ---------- */
.order-edit-btn {
  background: transparent;
  border: 1px solid var(--order-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--order-text-light);
}

.order-confirm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--order-border);
}

.order-confirm-item:last-of-type {
  border-bottom: none;
}

.order-confirm-item .fw-bold {
  color: #fff;
}

.order-confirm-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--order-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
}

.order-confirm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-confirm-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--order-border);
  font-size: 1.05rem;
}

.order-confirm-total strong {
  color: var(--order-success);
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--order-border);
  font-size: 0.92rem;
}

.order-info-row:last-child {
  border-bottom: none;
}

.order-info-row > span:last-child {
  text-align: left;
  color: #fff;
}

.order-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fca5a5;
  font-size: 0.92rem;
}

/* ---------- صفحه موفقیت ---------- */
.order-success-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 60px 0 40px;
  text-align: center;
}

.order-success-wrap h4 {
  color: #fff;
}

.order-success-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--order-success);
  color: var(--order-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.order-code-box {
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  padding: 22px;
}

.order-code {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--order-warning);
}

.order-copy-btn {
  background: var(--order-surface-2);
  border: 1px solid var(--order-border);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--order-text);
  font-size: 0.88rem;
}

.order-success-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--order-text-light);
  font-size: 0.88rem;
}

@media (max-width: 576px) {
  .order-card {
    padding: 18px;
  }

  .order-success-wrap {
    padding-top: 40px;
  }

  .order-info-row {
    flex-direction: column;
    gap: 4px;
  }

  .order-info-row > span:last-child {
    text-align: right;
  }
}

/* =====================================================
   فرم سفارش سفارشی (مشتری)
   از همان متغیرهای --order-* بالای فایل استفاده می‌کند.
   ===================================================== */

.custom-form-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--order-text-light);
  font-size: 0.88rem;
  line-height: 1.7;
}

.custom-form-intro i {
  color: var(--order-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-form-section {
  background: var(--order-surface);
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  padding: 18px 16px;
  margin-bottom: 16px;
}

.custom-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--order-border);
}

.custom-form-title i {
  color: var(--order-warning);
}

.custom-field {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.custom-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.custom-form-section .form-label {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.custom-form-section .form-control {
  background: var(--order-surface-2);
  border: 1px solid var(--order-border);
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
}

.custom-form-section .form-control:focus {
  background: var(--order-surface-2);
  border-color: var(--order-primary);
  color: #fff;
  box-shadow: none;
}

.custom-form-section .form-control::placeholder {
  color: #64748b;
}

/* ورودی تاریخ و ساعت در تم تیره */
.custom-form-section input[type="date"],
.custom-form-section input[type="time"] {
  color-scheme: dark;
}

/* ---------- گزینه‌ها ---------- */
.custom-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--order-surface-2);
  border: 1px solid var(--order-border);
  color: #e2e8f0;
  text-align: right;
  transition: 0.15s;
}

.custom-option:hover {
  border-color: var(--order-primary);
}

.custom-option.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--order-primary);
  color: #fff;
}

.order-item button[disabled],
.order-featured-item button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}

.custom-option i {
  color: var(--order-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.custom-option-title {
  flex: 1;
}

.custom-option-price {
  color: var(--order-warning);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- فایل ---------- */
.custom-file-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--order-surface-2);
  border: 1px dashed var(--order-border);
  border-radius: 12px;
  padding: 14px;
  color: var(--order-text-light);
  font-size: 0.85rem;
}

.custom-file-note i {
  color: var(--order-warning);
}

/* ---------- خطا ---------- */
.custom-error {
  display: block;
  margin-top: 6px;
  color: var(--order-danger);
  font-size: 0.8rem;
}

.has-error .form-control {
  border-color: var(--order-danger);
}
.order-payment-box{background:#fff;border:1px solid #e1e6ec;border-radius:8px;padding:18px;text-align:right}.card-transfer-details{display:grid;gap:5px;background:#f6f8fa;border:1px dashed #aeb8c4;border-radius:8px;padding:16px;text-align:center}.card-transfer-details strong{font-size:20px;letter-spacing:1px;color:#18212b}.card-transfer-details span,.card-transfer-details small{color:#5f6b78}
.receipt-preview{display:block;width:100%;max-height:260px;object-fit:contain;border:1px solid #d9e0e7;border-radius:8px;background:#f6f8fa}
.order-tracking-box{background:#fff;border:1px solid #e1e6ec;border-radius:8px;padding:18px;text-align:right}.order-tracking-timeline{display:grid;gap:0}.order-tracking-step{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding-bottom:18px}.order-tracking-step:not(:last-child)::before{content:"";position:absolute;right:7px;top:14px;bottom:0;width:2px;background:#dfe5ea}.order-tracking-step:last-child{padding-bottom:0}.order-tracking-dot{position:relative;z-index:1;width:16px;height:16px;border:4px solid #fff;border-radius:50%;background:#e76f20;box-shadow:0 0 0 1px #e76f20}
.custom-public-page{min-height:100vh;background:radial-gradient(circle at 85% 0,#3b2b16 0,#101820 38%,#0b1117 100%);color:#f8fafc;padding:1rem 0 4rem}.custom-public-shell{width:min(100% - 2rem,980px);margin:auto}.custom-public-hero{text-align:center;padding:2.5rem 1rem 3rem}.custom-public-brand{width:82px;height:82px;margin:auto;border-radius:24px;overflow:hidden;background:#f59e0b;display:grid;place-items:center;box-shadow:0 16px 40px #0005}.custom-public-brand img{width:100%;height:100%;object-fit:cover}.custom-public-logo-fallback{font-size:2rem;color:#17202a}.custom-public-kicker,.custom-public-section-heading>span{color:#fbbf24;font-size:.82rem;font-weight:700;letter-spacing:.04em}.custom-public-hero h1{font-size:clamp(2rem,8vw,4rem);margin:1rem 0 .75rem}.custom-public-description{max-width:580px;margin:0 auto 1.5rem;color:#cbd5e1;line-height:1.9}.custom-public-primary{display:inline-flex;gap:.5rem;align-items:center;background:#f59e0b;color:#161616;border-radius:999px;padding:.8rem 1.4rem;font-weight:800;text-decoration:none}.custom-public-section{background:#ffffff0a;border:1px solid #ffffff15;border-radius:28px;padding:1.25rem}.custom-public-section-heading{text-align:center;margin-bottom:1.25rem}.custom-public-section-heading h2{font-size:clamp(1.35rem,5vw,2rem);margin:.45rem 0}.custom-public-section-heading p{color:#aab7c5;margin:0}.custom-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.custom-form-card{background:#16212b;border:1px solid #ffffff12;border-radius:20px;overflow:hidden;cursor:pointer;transition:.2s;box-shadow:0 10px 30px #0002}.custom-form-card:hover{transform:translateY(-4px);border-color:#f59e0b88}.custom-form-card-image{height:170px;position:relative;background:#263542}.custom-form-card-image img{width:100%;height:100%;object-fit:cover}.custom-form-card-arrow{position:absolute;top:.75rem;left:.75rem;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f59e0b;color:#111}.custom-form-card-body{padding:1rem}.custom-form-card h3{font-size:1.1rem;margin:0 0 .5rem}.custom-form-card p{font-size:.9rem;color:#aab7c5;line-height:1.8;min-height:3.2em;margin:0 0 .75rem}.custom-form-card-cta{border:0;background:none;color:#fbbf24;font-weight:700;padding:0}.custom-public-trust{display:flex;gap:.75rem;align-items:center;margin:1rem 0;padding:1rem 1.1rem;border-radius:18px;background:#f59e0b12;color:#fde68a}.custom-public-trust i{font-size:1.6rem}.custom-public-trust span{display:block;color:#cbd5e1;font-size:.85rem;margin-top:.25rem}.custom-public-empty{text-align:center;padding:3rem 1rem;color:#aab7c5}.custom-public-empty i{font-size:2.5rem;color:#f59e0b}.custom-public-empty h1,.custom-public-empty h3{color:#f8fafc}.custom-public-loading{display:flex;justify-content:center;align-items:center;gap:.75rem;padding:8rem 1rem;color:#cbd5e1}@media(min-width:768px){.custom-public-hero{padding:5rem 1rem 4rem}.custom-public-section{padding:2rem}.custom-form-card-image{height:200px}}
