/* ==========================================================================
   Orgimal Kala — app.css
   بخش‌های پویا که در قالب HTML نبودند (پنل کاربری، تسویه حساب، ورود پیامکی، مودال، ...)
   + رفع مشکلات واکنش‌گرایی قالب اصلی
   طراحی و توسعه: گروه فنی مهندسی زرین هور — https://zarrinhoor.biz
   ========================================================================== */

/* ---------- عمومی ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; right: 16px; z-index: 10000; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ltr-input { direction: ltr; text-align: right; }
.ltr-input::placeholder { text-align: right; }
.muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-teal { color: var(--teal); }
.strong { font-weight: 700; }
.center { text-align: center; justify-content: center; }
.mt-md { margin-top: 18px; }
.mb-md { margin-bottom: 18px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.mt-md { gap: 10px; }
.narrow { max-width: 860px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.link { color: var(--primary); font-weight: 700; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.link:hover { text-decoration: underline; }
.link-accent { color: var(--accent); font-weight: 700; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.small-note { font-size: .82rem; margin-top: 10px; text-align: center; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; min-height: 36px; font-size: .84rem; border-radius: 10px; }
.btn-ghost-dark { background: var(--bg-muted); color: var(--text-main); border-color: var(--border); }
.btn-ghost-dark:hover { background: #e2e8f0; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-on, .btn-outline.is-on { background: var(--primary); color: #fff; }
.wish-btn.is-on, .wish-btn.active { color: var(--accent) !important; border-color: #fecaca !important; background: var(--accent-soft) !important; }
.is-loading { opacity: .6; pointer-events: none; }
.is-added { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }
.coupon-hl { color: #fde047; }
.section-tight { padding-top: 10px; }
.section-band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.box-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.box-head .box-title { margin-bottom: 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; }
.form-control:disabled { background: var(--bg-muted); color: var(--text-muted); }
.form-group.full { grid-column: 1 / -1; }
.form-group small { font-size: .8rem; }
.checkbox-label { margin-bottom: 8px; }
.check-inline { margin-top: 30px; }
.chip-mini { display: inline-block; font-size: .72rem; background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips.center { justify-content: center; margin-top: 20px; }
.chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-size: .85rem; font-weight: 600; }
.chip.active, .chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- هدر ---------- */
.nav-inner { gap: 16px; }
.nav-links { min-width: 0; }
.nav-links a { white-space: nowrap; padding: 12px; }
.nav-hotline { white-space: nowrap; flex: none; }
@media (max-width: 1280px) { .nav-hotline > span { display: none; } }
@media (min-width: 721px) and (max-width: 1180px) {
  .nav-links { overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
}
.action-label { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.nav-hotline a { color: inherit; }
.live-empty { padding: 16px; text-align: center; color: var(--text-muted); }
.live-title { font-weight: 700; font-size: .9rem; }
.live-price { font-size: .82rem; color: var(--primary); font-weight: 700; }
.live-more { display: block; padding: 12px; text-align: center; font-weight: 700; color: var(--primary); border-top: 1px solid var(--border); }
.live-search-item img { object-fit: cover; }

/* ---------- پیام‌ها ---------- */
.flash-wrap { padding-top: 16px; }
.alert { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-weight: 600; font-size: .92rem; border: 1px solid; }
.alert-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-err { background: var(--accent-soft); border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--primary-soft); border-color: #bfdbfe; color: var(--primary); }
.alert .btn { margin-inline-start: auto; }
.toast-err { background: #991b1b; }

/* ---------- صفحه اصلی ---------- */
.hero-content h1, .hero-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.hero-card img { object-fit: cover; }
.flash-emoji { font-size: 2rem; }
.flash-title { font-size: 1.45rem; font-weight: 900; }
.flash-sub { font-size: .9rem; opacity: .9; }
.brand-item img { max-height: 40px; margin: auto; }

/* ---------- کارت محصول ---------- */
.card-tools { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.card-tools .compare-quick-btn { position: static; }
.badge-out { background: #475569; color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; display: inline-block; }
.badge-label { background: var(--teal); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.product-card.is-out .product-img-wrap img { filter: grayscale(.7); opacity: .7; }
.add-cart-icon-btn.is-disabled { background: var(--bg-muted); color: var(--text-muted); border-color: var(--border); }
.swatch-dots { display: flex; gap: 5px; margin: -4px 0 12px; }
.swatch-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #cbd5e1; display: inline-block; }
.product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- فروشگاه ---------- */
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .filter-toggle { display: flex; width: 100%; }
  .filter-sidebar { display: none; }
  .filter-sidebar.open { display: block; }
}
.shop-layout > div { min-width: 0; }
.shop-grid { grid-template-columns: repeat(3, 1fr); }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-head h2 { font-size: 1.1rem; font-weight: 800; }
.cat-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cat-links a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.cat-links a.active, .cat-links a:hover { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.chips-list { flex-direction: row; flex-wrap: wrap; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; font-size: .85rem; background: #fff; }
.chip-check input:checked + span { background: #ecfdf5; color: var(--teal); border-color: #99f6e4; }
.chip-check input:focus-visible + span { outline: 3px solid #93c5fd; }
.range { width: 100%; accent-color: var(--primary); }
.range-labels { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-muted); margin-top: 6px; }
.range-labels strong { color: var(--primary); }
.results-count { font-weight: 700; font-size: .95rem; }
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-size: .88rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state.small { padding: 26px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state .btn { margin-top: 16px; }
.empty-icon { font-size: 3rem; margin-bottom: 10px; }
.cat-desc { margin-top: 28px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 700; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: 0; background: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- صفحه محصول ---------- */
.section > .container > .breadcrumb { color: var(--text-muted); margin-bottom: 18px; flex-wrap: wrap; }
.section > .container > .breadcrumb a:hover { color: var(--primary); }
.pdp-main-img { position: relative; }
.pdp-main-img img { object-fit: cover; }
.pdp-disc { position: absolute; top: 16px; right: 16px; }
.pdp-thumb { padding: 0; background: none; cursor: pointer; }
.pdp-thumb img { object-fit: cover; }
.pdp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.pdp-title { font-size: 1.55rem; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.pdp-sku { font-size: .85rem; margin-bottom: 8px; }
.pdp-warranty { color: var(--teal); font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.pdp-colors { margin-bottom: 4px; font-size: .92rem; }
.swatch-btn.is-out { opacity: .5; text-decoration: line-through; }
.pdp-highlights { background: var(--bg-muted); padding: 16px; border-radius: 12px; margin-bottom: 20px; }
.pdp-highlights strong { display: block; margin-bottom: 8px; font-size: .94rem; }
.pdp-highlights ul { padding-right: 20px; color: var(--text-muted); font-size: .9rem; }
.pdp-highlights li { margin-bottom: 4px; }
.pdp-buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.pdp-old { text-decoration: line-through; color: var(--text-light); font-size: .9rem; display: block; }
.pdp-price { font-size: 1.55rem; font-weight: 900; color: var(--primary); display: block; }
.pdp-price small { font-size: .9rem; font-weight: 600; }
.pdp-stock { font-size: .85rem; display: block; margin-top: 4px; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty-control input { width: 46px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 800; background: #fff; }
.pdp-services { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; font-size: .88rem; color: var(--text-muted); }
.tab-title { font-size: 1.15rem; margin-bottom: 12px; }
.reviews-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.reviews-summary { margin-bottom: 14px; font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviews-summary > strong { font-size: 1.6rem; color: var(--primary); }
.review-card { margin-bottom: 14px; }
.review-card p { font-size: .9rem; color: var(--text-muted); margin: 6px 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.buyer-tag { background: #ecfdf5; color: var(--teal); padding: 2px 8px; border-radius: 6px; font-size: .72rem; }
.review-reply { background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .88rem; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars .off { color: #e2e8f0; }
.related-block { margin-top: 48px; }
.rich-text { color: var(--text-muted); line-height: 2; }
.rich-text h2, .rich-text h3 { color: var(--text-main); margin: 18px 0 8px; font-size: 1.1rem; }
.rich-text ul, .rich-text ol { padding-right: 22px; margin-bottom: 12px; }
.rich-text p { margin-bottom: 12px; }
.rich-text img { border-radius: 12px; margin: 12px 0; height: auto; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: 8px 12px; }

/* ---------- مقایسه ---------- */
.compare-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.compare-table td { position: relative; vertical-align: top; }
.compare-img { width: 150px; height: 130px; object-fit: cover; border-radius: 12px; margin: 0 auto 10px; }
.compare-name { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.compare-price { color: var(--primary); font-weight: 800; margin-bottom: 10px; }
.compare-remove { position: absolute; top: 8px; left: 8px; }
.compare-remove button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--accent); }

/* ---------- مراحل خرید و سبد ---------- */
.checkout-steps { list-style: none; display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; counter-reset: s; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--text-muted); font-weight: 700; font-size: .88rem; }
.checkout-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-muted); font-size: .8rem; }
.checkout-steps li.current { border-color: var(--primary); color: var(--primary); }
.checkout-steps li.current span { background: var(--primary); color: #fff; }
.checkout-steps li.done { color: var(--teal); border-color: #99f6e4; }
.checkout-steps li.done span { background: var(--teal); color: #fff; }
.cart-item-row img { object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; font-size: .98rem; }
.cart-item-meta { font-size: .84rem; margin-top: 4px; }
.cart-item-price { font-weight: 800; color: var(--primary); margin-top: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cart-item-price .old-price { color: var(--text-light); text-decoration: line-through; font-weight: 500; font-size: .85rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.remove-link { font-size: .84rem; }
.cart-form-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sticky-box { position: sticky; top: 20px; }
.coupon-row { display: flex; gap: 8px; margin-bottom: 18px; align-items: center; }
.coupon-row .form-control { flex: 1; min-width: 0; }
.coupon-row .btn { min-height: 44px; padding: 0 16px; }
.coupon-row.applied { justify-content: space-between; background: #ecfdf5; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.summary-rows { display: flex; flex-direction: column; gap: 12px; font-size: .94rem; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-rows > div { display: flex; justify-content: space-between; gap: 10px; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 1.05rem; gap: 10px; }
.total-amount { color: var(--primary); font-size: 1.2rem; }
.amount small { font-size: .78em; font-weight: 600; }
.option-cards { display: flex; flex-direction: column; gap: 10px; }
.option-card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: var(--transition); background: #fff; }
.option-card:hover { border-color: #93c5fd; }
.option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option-card input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.oc-body { display: flex; gap: 12px; flex: 1; align-items: flex-start; }
.oc-body > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.oc-body small { color: var(--text-muted); font-size: .84rem; }
.oc-ico { font-size: 1.4rem; }
.oc-price { font-weight: 800; color: var(--primary); white-space: nowrap; }
.review-items { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.review-items li { display: flex; gap: 10px; align-items: center; font-size: .86rem; }
.review-items li > div { flex: 1; min-width: 0; }
.review-items small { display: block; color: var(--text-muted); }
.ri-img { position: relative; flex: none; }
.ri-img img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ri-qty { position: absolute; top: -6px; left: -6px; background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }
.ri-price { font-weight: 700; white-space: nowrap; }

/* ---------- نتیجه سفارش ---------- */
.result-hero { text-align: center; padding: 36px 24px; margin-bottom: 24px; }
.result-hero h1 { font-size: 1.5rem; margin: 8px 0; }
.result-hero.success h1 { color: var(--teal); }
.result-hero.failed h1 { color: var(--accent); }
.result-icon { font-size: 3rem; }
.order-overview { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.order-overview li { background: var(--bg-muted); border-radius: 12px; padding: 10px 18px; font-size: .84rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; }
.order-overview strong { color: var(--text-main); font-size: .98rem; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.failed-reasons { max-width: 460px; margin: 0 auto 20px; text-align: right; background: var(--accent-soft); padding: 14px 18px; border-radius: 12px; font-size: .9rem; }
.failed-reasons ul { padding-right: 18px; }
.next-steps { padding-right: 20px; color: var(--text-muted); }
.next-steps li { margin-bottom: 6px; }
.next-steps li.done { color: var(--teal); font-weight: 700; }
address { font-style: normal; line-height: 2; }
.table-wrap { overflow-x: auto; }
.order-table td, .order-table th { vertical-align: middle; }
.order-table tfoot th { text-align: right; font-weight: 600; }
.order-table .order-total td, .order-table .order-total th { font-size: 1.05rem; color: var(--primary); }
.od-prod { display: flex; gap: 10px; align-items: center; }
.od-prod img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.od-prod small { display: block; color: var(--text-muted); }
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.status-pending { background: var(--bg-muted); color: var(--text-muted); }
.status-processing { background: #fef3c7; color: #92400e; }
.status-shipped { background: var(--primary-soft); color: var(--primary); }
.status-completed { background: #ccfbf1; color: #0f766e; }
.status-cancelled, .status-failed { background: var(--accent-soft); color: var(--accent); }
.track-line { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.track-line li { position: relative; text-align: center; padding-top: 36px; font-size: .84rem; display: flex; flex-direction: column; gap: 2px; }
.track-line li::before { content: ''; position: absolute; top: 6px; right: 50%; transform: translateX(50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--border); z-index: 1; }
.track-line li::after { content: ''; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--border); }
.track-line li:last-child::after { display: none; }
.track-line li.done::before { background: var(--teal); border-color: var(--teal); }
.track-line li.done::after { background: var(--teal); }
.track-line li.current::before { border-color: var(--primary); }
.track-line small { color: var(--text-muted); font-size: .76rem; }

/* ---------- پنل کاربری ---------- */
.account-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.account-layout > *, .two-col > *, .auth-grid > *, .reviews-split > *, .address-grid > * { min-width: 0; }
.account-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 18px; }
.account-user b { display: block; }
.account-user .muted { font-size: .85rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #1d4ed8); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.account-nav { padding: 10px; }
.account-nav ul { list-style: none; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.account-nav a:hover { background: var(--bg-muted); }
.account-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.account-nav a.logout { color: var(--accent); }
.account-nav .badge-count { position: static; margin-inline-start: auto; }
.nav-ico { width: 22px; text-align: center; }
.account-content { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.account-tools { display: flex; justify-content: flex-end; }
.welcome-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--primary-soft), #fff); }
.welcome-box h2 { font-size: 1.25rem; }
.stat-cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cards li { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.stat-cards b { font-size: 1.5rem; color: var(--primary); }
.stat-ico { font-size: 1.4rem; }
.coupon-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-style: dashed; border-color: #93c5fd; }
.coupon-code { display: flex; align-items: center; gap: 10px; }
.coupon-code b { font-size: 1.2rem; color: var(--accent); letter-spacing: 1px; }
.section-header.compact { margin-bottom: 12px; align-items: center; }
.section-header.compact .section-title { font-size: 1.15rem; }
.data-table td { vertical-align: middle; }
.notif-list { list-style: none; padding: 6px 18px; }
.notif-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list li.unread b { color: var(--primary); }
.notif-list small { display: block; }
.notif-ico { font-size: 1.2rem; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.address-card.is-default { border-color: var(--primary); }
.address-actions { display: flex; gap: 16px; margin-top: 12px; align-items: center; }
.add-address { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; cursor: pointer; border-style: dashed; color: var(--primary); font: inherit; font-weight: 700; }
.add-plus { font-size: 2rem; }
.order-head { margin-bottom: 0; }
.ticket-chat { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticket-chat .msg { border: 1px solid var(--border); border-radius: 14px; padding: 14px; max-width: 85%; }
.ticket-chat .msg.me { background: var(--primary-soft); align-self: flex-start; }
.ticket-chat .msg.staff { background: #f0fdfa; align-self: flex-end; }
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.msg-head .avatar { width: 34px; height: 34px; font-size: .8rem; }
.msg-head small { display: block; }
.msg-att { max-width: 220px; border-radius: 12px; margin-top: 8px; }

/* ---------- ورود پیامکی ---------- */
.auth-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; max-width: 920px; }
.auth-step { display: none; }
.auth-step.is-active { display: block; }
.back-link { margin-bottom: 10px; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 18px 0 10px; }
.otp-inputs input { width: 52px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; }
.otp-inputs input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.otp-timer { text-align: center; font-size: .88rem; }
#otpResend { display: block; margin: 6px auto 16px; }
#otpResend:disabled { color: var(--text-light); cursor: default; text-decoration: none; }
.auth-perks ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: .95rem; }

/* ---------- مودال ---------- */
.modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal-box { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-close { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
body.modal-open { overflow: hidden; }

/* ---------- صفحات محتوایی ---------- */
.page-sub { opacity: .9; margin-top: 6px; }
.page-header .breadcrumb a:hover { color: #fff; }
.about-intro { align-items: center; margin-bottom: 40px; }
.about-pill { margin-bottom: 12px; display: inline-block; }
.about-title { font-size: 1.65rem; font-weight: 800; margin-bottom: 14px; }
.about-intro p { color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.about-img { border-radius: 16px; width: 100%; height: 340px; object-fit: cover; }
.stat-box { text-align: center; }
.stat-box strong { font-size: 2rem; color: var(--primary); display: block; }
.contact-box { margin-top: 20px; background: var(--primary-soft); border-color: #bfdbfe; }
.contact-box h4 { color: var(--primary); margin-bottom: 8px; }
.contact-box p { font-size: .9rem; margin-top: 4px; }
.map-embed iframe { width: 100%; min-height: 260px; border: 0; border-radius: 14px; margin-top: 16px; }
.faq-group-title { font-size: 1.15rem; margin: 24px 0 12px; color: var(--primary); }
.faq-group-title:first-child { margin-top: 0; }
.faq-question { text-align: right; }
.notfound { text-align: center; padding: 30px 0; }
.nf-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.notfound h1 { margin: 10px 0; }
.nf-search { max-width: 520px; margin: 22px auto 0; }

/* ---------- فوتر ---------- */
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-title { color: #fff; }
.footer-logo span { color: #94a3b8; }
.footer-about { font-size: .9rem; line-height: 1.8; margin-bottom: 16px; }
.footer-line { font-size: .88rem; margin-top: 6px; }
.footer-line a { color: inherit; }
.footer-social { list-style: none; display: flex; gap: 12px; margin-top: 12px; font-size: .88rem; }
.footer-social a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 6px; margin: 10px 0 18px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #334155; background: #1e293b; color: #fff; font: inherit; direction: ltr; text-align: right; }
.newsletter-form button { padding: 0 16px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.main-footer h4.mt-md { margin-top: 10px; }
.seal-code img { max-width: 100%; }
.zh-copyright a { color: #93c5fd; }

/* ---------- واکنش‌گرایی (رفع مشکلات قالب) ---------- */
@media (max-width: 1120px) {
  .shop-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .two-col, .reviews-split, .account-layout, .auth-grid { grid-template-columns: 1fr; }
  .account-side, .sticky-box { position: static; }
  .account-nav ul { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { white-space: nowrap; }
  .address-grid { grid-template-columns: 1fr; }
  .track-line { grid-template-columns: 1fr; gap: 0; }
  .track-line li { text-align: right; padding: 0 36px 18px 0; }
  .track-line li::before { right: 0; transform: none; top: 0; }
  .track-line li::after { right: 10px; top: 20px; width: 3px; height: 100%; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .action-label { display: none; }
  .header-actions { gap: 5px; }
  .shop-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cart-item-row { flex-wrap: wrap; }
  .cart-item-row img { width: 72px; height: 72px; }
  .cart-item-actions { flex-direction: row; width: 100%; justify-content: space-between; }
  .pdp-buy { flex-direction: column; align-items: stretch; }
  .pdp-actions .btn-primary { flex: 1; }
  .ticket-chat .msg { max-width: 100%; }
  .otp-inputs input { width: 46px; height: 50px; }
  .check-inline { margin-top: 0; }
}
@media (max-width: 560px) {
  .shop-grid, .grid-3 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .countdown-timer { flex-wrap: wrap; }
  .page-header h1 { font-size: 1.4rem; }
}
@media (max-width: 360px) { .header-actions { gap: 4px; } }
