/* DM Shop Profile Pack — Styles (محسن باقری) */
:root{
  --p:#D47713;        /* نارنجی/قهوه‌ای تیره اصلی */
  --p-dark:#B8620F;   /* حالت hover */
  --b:#e5e7eb;        /* خط حاشیه */
  --t:#1f2937;        /* متن اصلی */
  --mut:#6b7280;      /* متن کم‌رنگ */
  --ring:rgba(212,119,19,.25);
}

/* کارت‌ها و تایپوگرافی پایه */
.dmsp-card{background:#fff;border:1px solid var(--b);border-radius:14px;box-shadow:0 6px 18px rgba(17,24,39,.08);padding:16px;margin:12px 0}
.dmsp-title{margin:0 0 10px 0;font-weight:800;color:var(--t)}
.dmsp-input{width:100%;padding:10px 12px;border:1px solid var(--b);border-radius:10px}
.dmsp-flex{display:flex;gap:10px;align-items:center}
.dmsp-alert.success{background:#e6fffa;border:1px solid #99f6e4;color:#065f46;border-radius:10px;padding:10px;margin:8px 0}
.dmsp-alert.warn{background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;border-radius:10px;padding:10px;margin:8px 0}

/* دکمه‌ها — یک‌دست با نارنجی تیره و متن سفید */
.dmsp-btn,
.dmsp-btn-outline,
.dmsp-btn-small{
  background:linear-gradient(180deg,var(--p),var(--p-dark));
  color:#fff !important;
  border:none;
  border-radius:12px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 8px 18px var(--ring);
  transition:transform .12s ease, filter .2s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1.1;
}
.dmsp-btn:hover,
.dmsp-btn-outline:hover,
.dmsp-btn-small:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
}
.dmsp-btn:disabled{opacity:.65;cursor:not-allowed}
.dmsp-btn-small{ padding:6px 10px; border-radius:10px; }

/* یکسان‌سازی دکمه‌ها داخل بلاک‌ها */
.dmspOrders button,
.dmspOrders [type=submit],
.dmspOrders a.button,
.dmspSavedCarts button,
.dmspSavedCarts [type=submit],
.dmspSavedCarts a.button,
.dmspWholesaleForm button,
.dmspWholesaleForm [type=submit],
.dmspWholesaleForm a.button{
  background:linear-gradient(180deg,var(--p),var(--p-dark)) !important;
  color:#fff !important;
  border:none !important;
  border-radius:12px !important;
  padding:10px 16px !important;
  font-weight:700 !important;
  box-shadow:0 8px 18px var(--ring) !important;
  text-decoration:none !important;
}

/* Orders */
.dmspOrders.dmsp-loading{opacity:.6;pointer-events:none}
.dmsp-order{overflow:hidden}
.dmsp-order__head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:8px}
.dmsp-order__id{font-weight:800;color:var(--t);display:flex;align-items:center;gap:8px}
.dmsp-order__label{display:inline-block;font-weight:800;margin-inline-end:6px;padding:3px 8px;border-radius:8px;background:rgba(212,119,19,.12);color:#D47713;line-height:1;font-size:.9em;vertical-align:middle;}
.dmsp-order__grid{display:grid;grid-template-columns:repeat(3,minmax(120px,auto));gap:8px;align-items:stretch;}
.dmsp-chip{border:1px solid var(--b);border-radius:12px;padding:8px 10px;background:#fff;display:flex;justify-content:space-between;gap:10px}
.dmsp-chip span{color:var(--mut)}
.dmsp-chip b{color:var(--t)}

.dmsp-order__body{margin-top:10px}
.dmsp-order__items{border:1px solid var(--b);border-radius:12px;padding:8px;margin:10px 0}
.dmsp-order__items-head{font-weight:800;color:var(--t);margin-bottom:6px}
.dmsp-order__item{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:8px 0;border-bottom:1px dashed var(--b)}
.dmsp-order__item:last-child{border-bottom:0}
.dmsp-order__item-name{min-width:0}
.dmsp-order__product-link{color:#1f2937;text-decoration:none;font-weight:700}
.dmsp-order__product-link:hover{text-decoration:underline}
.dmsp-order__item-qty{color:var(--mut);text-align:center}
.dmsp-order__item-total{font-weight:700;color:var(--t);text-align:end}

.dmsp-order__trackbox{border:1px solid var(--b);border-radius:12px;padding:10px;margin:10px 0;background:#fafafa}
.dmsp-track-label{color:#6b7280;margin-bottom:6px;font-weight:600}
.dmsp-trackline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dmsp-track-value{font-weight:700;color:var(--t)}

.dmsp-order__actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}

/* Pagination */
.dmsp-pagination{display:flex;gap:6px;justify-content:center;margin-top:12px}
.dmsp-pagination a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;border-radius:10px;
  border:1px solid transparent;
  background:linear-gradient(180deg,var(--p),var(--p-dark));
  color:#fff;text-decoration:none;font-weight:800;
  box-shadow:0 6px 14px var(--ring);
}
.dmsp-pagination a.current{filter:brightness(1.04)}
.dmsp-pagination a:hover{transform:translateY(-1px)}

/* Saved Carts */
.dmsp-saved-item{border:1px solid var(--b);border-radius:12px;padding:10px;margin:8px 0}
.dmsp-saved-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dmsp-saved-title{font-weight:700}
.dmsp-saved-items{margin-top:8px;color:var(--mut)}
.dmsp-saved-line{display:flex;justify-content:space-between;padding:3px 0}

/* Latest */
.dmspLatest{display:grid;grid-template-columns:1fr;gap:10px}
.dmsp-latest-item{display:block;border:1px solid var(--b);border-radius:12px;padding:10px;text-decoration:none;color:var(--t);background:#fff}
.dmsp-latest-title{font-weight:800;margin-bottom:4px}
.dmsp-latest-excerpt{color:var(--mut)}

/* Wholesale form */
.dmspWholesaleForm label{display:block;font-weight:600;color:var(--t);margin:6px 0}
.dmspWholesaleForm input, .dmspWholesaleForm textarea{width:100%;padding:10px 12px;border:1px solid var(--b);border-radius:10px}
.dmsp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dmsp-wh-msg{min-height:20px}
.dmsp-wh-msg.ok{color:#065f46}
.dmsp-wh-msg.err{color:#7c2d12}

/* Responsive */
@media(max-width:992px){
  .dmsp-order__grid{grid-template-columns:repeat(3,minmax(100px,1fr))}
}
@media(max-width:768px){
  .dmsp-flex{flex-direction:column;align-items:stretch}
  .dmsp-grid2{grid-template-columns:1fr}
  .dmsp-order__head{flex-direction:column;align-items:flex-start}
  .dmsp-order__grid{grid-template-columns:1fr;gap:6px;width:100%}
  .dmsp-order__item{grid-template-columns:1fr auto;grid-auto-flow:row}
  .dmsp-order__item-total{justify-self:end}
  .dmsp-order__actions{justify-content:stretch}
}
