/* ==========================================================================
   site-app.css — افزوده‌های لاراول روی قالب سایت
   style.css قالب دست‌نخورده می‌ماند؛ هر چیزی که فقط در نسخه پویا لازم است
   (حساب کاربری، صفحات ورود، پیام‌های سرور) اینجاست.
   ========================================================================== */

/* ---------- نوار بالا: لینک حساب کاربری ---------- */
.topbar__end { display: inline-flex; align-items: center; gap: 16px; }
.topbar__account { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--gold-400); }
.topbar__account svg { width: 15px; height: 15px; flex: none; }
.topbar__account:hover { color: #fff; }
@media (max-width: 560px) {
  .topbar__account span { display: none; }
}

/* ---------- پیام‌های سرور روی قالب ---------- */
.notice--ok { background: #E7F5ED; border-color: #BFE3CF; }
.notice--ok svg { color: #137A4B; }
.notice--ok b { color: #0E5E3A; }
.notice--ok p { color: #1F5E43; }
.notice ul { margin: 4px 0 0; padding-inline-start: 18px; font-size: .87rem; }

/* ---------- صفحات ورود و ثبت‌نام ---------- */
.auth-wrap { max-width: 520px; margin-inline: auto; }
.auth-wrap--wide { max-width: 760px; }
.form-stack { display: grid; gap: 18px; }
.auth-alt {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--sand-500); font-size: .82rem;
}
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--sand-200); }
.auth-social { display: grid; gap: 10px; }
.auth-social a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border: 1px solid var(--sand-300); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy-800); font-size: .9rem; font-weight: 700;
  transition: border-color .2s, background .2s;
}
.auth-social a:hover { border-color: var(--navy-800); background: var(--sand-050); }
.auth-social svg { width: 18px; height: 18px; flex: none; }
.auth-links { text-align: center; font-size: .88rem; color: var(--muted); margin: 20px 0 0; }
.auth-links a { color: var(--gold-700); font-weight: 700; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-row a { color: var(--gold-700); font-size: .85rem; font-weight: 700; }
.otp-input { text-align: center; font-size: 1.5rem !important; letter-spacing: .4em; font-weight: 800; }
.field .error { color: #C0392B; font-size: .8rem; font-weight: 600; }
.checkline a { color: var(--gold-700); font-weight: 700; }

/* ---------- صفحه قیمت‌ها (فقط انگلیسی) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.btn--sm { padding: 8px 14px; font-size: .82rem; }

.price-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.price-tools .search-box { flex: 1 1 320px; margin-bottom: 0; }
.price-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.price-toggle input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.price-toggle i, .price-chips i {
  font-style: normal; font-size: .74rem; font-weight: 700;
  background: var(--sand-200); color: var(--muted); padding: 1px 8px; border-radius: 100px;
}

.price-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.price-chips button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--sand-300); border-radius: 100px;
  background: #fff; color: var(--navy-800); font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: var(--t-fast);
}
.price-chips button:hover { border-color: var(--navy-800); }
.price-chips button.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.price-chips button.is-active i { background: rgba(221, 187, 78, .22); color: var(--gold-300); }

.price-table { background: #fff; }
.price-table > table { min-width: 860px; }
.price-table td { vertical-align: middle; }
.price-table [hidden] { display: none; }
.price-table__group th {
  background: var(--navy-800); color: #fff;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px;
}
.price-table__spec { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); max-width: 420px; }
.price-table__muted { color: var(--muted); font-size: .85rem; }
.price-table__num { text-align: end; white-space: nowrap; }
.price-table__price { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.price-table__unit { font-size: .78rem; color: var(--muted); }
.price-table__na { font-size: .82rem; font-weight: 700; color: var(--gold-700); }
.price-table__action { text-align: end; white-space: nowrap; width: 1%; }

/* موبایل: هر ردیف یک کارت */
@media (max-width: 760px) {
  .price-table { border: 0; background: none; overflow: visible; }
  .price-table > table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tbody[hidden] { display: none; }
  .price-table tr { display: block; }
  .price-table tr[hidden] { display: none; }
  .price-table__group { margin: 18px 0 10px; }
  .price-table__group th { display: block; border-radius: var(--radius-sm); }
  .price-table tr[data-price-row] {
    background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 10px;
  }
  .price-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: end; }
  .price-table td::before { content: attr(data-caption); font-size: .78rem; font-weight: 700; color: var(--sand-500); text-align: start; }
  .price-table td[data-label="Product"] { display: block; text-align: start; padding-bottom: 8px; border-bottom: 1px solid var(--sand-100); margin-bottom: 4px; }
  .price-table td[data-label="Product"]::before, .price-table td[data-label="Group"] { display: none; }
  .price-table__action { width: auto; padding-top: 10px !important; }
  .price-table__action .btn { width: 100%; justify-content: center; }
  .price-table tbody tr:hover { background: #fff; }
}
.price-table td time { white-space: nowrap; }
@media (max-width: 760px) {
  .price-table tr[data-priced="0"] td[data-label="Terms"],
  .price-table tr[data-priced="0"] td[data-label="Updated"] { display: none; }
}
@media (max-width: 760px) {
  .price-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
  .price-chips button { flex: none; }
}

/* ---------- قیمت روز: لینک نام کالا در جدول ---------- */
.price-table__name { font-weight: 700; color: var(--navy-900); }
.price-table__name:hover { color: var(--gold-700); text-decoration: underline; }
.crumbs { flex-wrap: wrap; }

/* ---------- صفحه قیمت روز هر کالا ---------- */
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.pp-main { display: grid; gap: 28px; min-width: 0; }
.pp-block h2 { font-size: 1.25rem; margin: 0 0 14px; color: var(--navy-900); }
.pp-block p { color: var(--muted); line-height: 1.95; margin: 0; }

.pp-price {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px;
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.pp-price__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); background: var(--sand-100); }
.pp-price__label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--gold-700); text-transform: uppercase; }
.pp-price__value { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy-900); line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .pp-price__value:not(.pp-price__value--na) { text-align: end; direction: ltr; }
.pp-price__value small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.pp-price__value--na { font-size: 1.7rem; color: var(--gold-700); }
.pp-price__unit { color: var(--muted); font-size: .9rem; margin: 0 0 14px; line-height: 1.8; }
.pp-price__note { font-size: .8rem; color: var(--sand-500); margin: 10px 0 16px; }

.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.pp-facts div { background: var(--sand-050); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 10px 12px; }
.pp-facts dt { font-size: .75rem; font-weight: 700; color: var(--sand-500); margin-bottom: 2px; }
.pp-facts dd { margin: 0; font-weight: 700; color: var(--navy-800); font-size: .92rem; }

.pp-spec table { min-width: 0; }
.pp-spec th { width: 40%; }
.pp-block .grades { display: block; margin-top: 0; }

.pp-faq { display: grid; gap: 10px; }
.pp-faq details { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 14px 18px; }
.pp-faq summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.pp-faq details[open] summary { margin-bottom: 8px; }

.pp-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.pp-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: 20px; }
.pp-card h3 { font-size: 1.02rem; margin: 0 0 10px; color: var(--navy-900); }
.pp-card p { color: var(--muted); font-size: .88rem; line-height: 1.8; margin: 0 0 14px; }
.pp-card--quote { background: var(--navy-900); border-color: var(--navy-900); }
.pp-card--quote h3 { color: #fff; }
.pp-card--quote p { color: var(--sand-300); }
.pp-related { list-style: none; margin: 0; padding: 0; }
.pp-related li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sand-100); font-size: .88rem; }
.pp-related a { color: var(--navy-800); font-weight: 600; }
.pp-related a:hover { color: var(--gold-700); }
.pp-related b { white-space: nowrap; color: var(--navy-900); }
.pp-related span { white-space: nowrap; color: var(--gold-700); font-size: .78rem; font-weight: 700; }
.pp-card__more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .85rem; color: var(--gold-700); }
html[dir="rtl"] .pp-card__more { direction: rtl; }

@media (max-width: 1000px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-side { position: static; }
}
@media (max-width: 640px) {
  .pp-price { grid-template-columns: 1fr; padding: 16px; }
}
.cat-block__prices { display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 18px; font-size: .85rem; font-weight: 700; color: var(--gold-700); }
.cat-block__prices::before { content: "$"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-100); font-size: .72rem; }
.cat-block__prices:hover { text-decoration: underline; }
