/* ===== قالب بازار: داشبورد قیمت ===== */
.ticker { direction: ltr; background: #081a2d; color: #d7e2ee; font-size: .85rem; overflow: hidden; white-space: nowrap; border-bottom: 1px solid #1d3654; }
.ticker-track { display: inline-flex; gap: 2.5rem; padding: .45rem 0; animation: ticker 45s linear infinite; padding-left: 100%; }
.ticker-track span { direction: rtl; }
.ticker-track span b { color: #fff; margin-inline-start: .3rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-inline-start: 1rem; } }
.site-header { background: var(--header-bg); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.logo { color: #fff; font-weight: 800; display: flex; align-items: center; gap: .5rem; text-decoration: none !important; margin-inline-end: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #0b6e52); display: grid; place-items: center; font-size: .9rem; }
.tab-nav { display: flex; gap: .25rem; }
.tab-nav a { color: #c3d1e0; padding: .5rem .85rem; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.tab-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.tab-nav a.active { background: var(--accent); color: #fff; }
@media (max-width: 960px) {
  .tab-nav { order: 3; width: 100%; display: none; flex-wrap: wrap; padding-bottom: .75rem; }
  .tab-nav.open { display: flex; }
  .tab-nav a { flex: 1 1 45%; justify-content: center; background: rgba(255,255,255,.05); }
}

.dash { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; padding-block: 1.5rem; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (max-width: 1024px) { .dash { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--border); }
.kpi strong { display: block; font-size: 1.35rem; color: var(--brand); }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi.accent { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi.accent strong { color: #6ee7c1; } .kpi.accent span { color: #aebdce; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-body { padding: 1rem; }
.panel table.data th { background: #f4f7fa; }
.panel table.data { font-size: .95rem; }
.intro-banner { background: linear-gradient(120deg, var(--brand), #173c63); color: #fff; border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .5rem; }
.intro-banner h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.intro-banner p { color: #c3d1e0; margin: 0; }
.intro-banner .chips { margin-top: .6rem; }
.intro-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .6rem; }
.cat-tile { display: block; background: var(--surface-2); border-radius: var(--radius-sm); padding: .9rem; color: var(--text); text-decoration: none !important; border: 1px solid transparent; }
.cat-tile:hover { border-color: var(--accent); }
.cat-tile strong { display: block; }
.cat-tile span { font-size: .8rem; color: var(--muted); }
.mini-products { display: flex; flex-direction: column; }
.mini-products a { display: grid; grid-template-columns: 56px 1fr; gap: .75rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.mini-products img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.mini-products small { color: var(--muted); display: block; }
.news-mini article { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.news-mini a { color: var(--text); font-weight: 700; }
.steel-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; padding-block: 1.5rem; }
.steel-layout .filters { grid-template-columns: 1fr; }
.steel-layout .filter-box { position: sticky; top: 80px; align-self: start; }
@media (max-width: 900px) { .steel-layout { grid-template-columns: 1fr; } .steel-layout .filter-box { position: static; } .steel-layout .filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } }
.product-card { padding: 0; overflow: hidden; }
.product-card .product-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.product-card .product-body { padding: 1rem; }
.product-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
