/* هدر */
.hd { background: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.hd-top { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.hd-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.hd-logo img { height: 42px; width: auto; }
.hd-search { flex: 1; position: relative; display: flex; align-items: center; background: var(--bg); border-radius: 12px; padding-inline: 14px; color: var(--muted); }
.hd-search input { flex: 1; border: 0; background: transparent; font: inherit; padding: 11px 10px; color: var(--ink); min-width: 0; }
.hd-search input:focus { outline: none; }
.hd-search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.hd-actions { display: flex; gap: 8px; }
.hd-nav { display: flex; align-items: center; gap: 22px; padding-bottom: 8px; font-size: .93rem; overflow-x: auto; white-space: nowrap; }
.hd-nav a { padding: 6px 0; color: var(--ink); }
.hd-nav a:hover { color: var(--brand); }
.hd-nav .sep { width: 1px; height: 18px; background: var(--line); }
.mega { position: relative; }
.mega-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; color: var(--ink); }
.mega-panel { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 10px; min-width: 240px; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; z-index: 40; }
.mega:hover .mega-panel, .mega:focus-within .mega-panel { display: grid; }
.mega-panel a { padding: 8px 10px; border-radius: 8px; }
.mega-panel a:hover { background: var(--brand-soft); }

/* صفحه اصلی */
.home { padding-top: 18px; }
.slider { position: relative; border-radius: 18px; overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; direction: rtl; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 280px; display: flex; align-items: center; padding: 0 clamp(24px, 6vw, 72px); color: #fff; }
.slide h1, .slide h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.4; }
.slide p { margin: 0; max-width: 46ch; font-size: 1.05rem; opacity: .95; }
.s1 { background: linear-gradient(120deg, #D6342E, #9E1F1B); }
.s2 { background: linear-gradient(120deg, #1E2A32, #3A4C58); }
.s3 { background: linear-gradient(120deg, #B32A25, #E8793F); }
.dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 7px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button.on { background: #fff; width: 24px; border-radius: 6px; }

.circles { display: flex; gap: 22px; overflow-x: auto; padding: 26px 4px 8px; scrollbar-width: thin; }
.circle { flex: 0 0 auto; width: 84px; text-align: center; }
.circle .ic { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; overflow: hidden; transition: transform .15s; }
.circle .ic img { width: 100%; height: 100%; object-fit: cover; }
.circle:hover .ic { transform: translateY(-3px); }
.circle .nm { font-size: .85rem; line-height: 1.5; display: block; }

.featured { margin-top: 26px; background: var(--brand); border-radius: 18px; padding: 18px; color: #fff; }
.featured h2 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; }
.featured-empty { margin: 0; padding: 10px 0 14px; opacity: .95; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.shop-tile { flex: 0 0 190px; scroll-snap-align: start; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.shop-tile img { height: 84px; width: 84px; margin: 0 auto 6px; object-fit: contain; }
.shop-tile span { font-size: .82rem; color: var(--muted); }

.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.promo { border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 4px; color: #fff; min-height: 120px; justify-content: center; }
.promo strong { font-size: 1.25rem; font-weight: 800; }
.promo span { opacity: .92; }
.p1 { background: #1E2A32; }
.p2 { background: #B32A25; }

.block { margin-top: 30px; }
.block h2 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .92rem; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust div { display: flex; flex-direction: column; text-align: center; }
.trust strong { font-size: .95rem; }
.trust span { font-size: .82rem; color: var(--muted); }

/* فوتر */
.ft { background: var(--ink); color: #C9D1D6; margin-top: 48px; padding-top: 32px; font-size: .92rem; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-bottom: 24px; }
.ft strong { color: #fff; font-size: 1.1rem; }
.ft h4 { margin: 0 0 10px; color: #fff; font-size: .98rem; }
.ft p { margin: 8px 0 0; max-width: 46ch; }
.ft-grid a { display: block; padding: 3px 0; }
.ft-grid a:hover { color: #fff; }
.ft-copy { border-top: 1px solid rgba(255,255,255,.12); padding-block: 14px; font-size: .85rem; }

@media (max-width: 760px) {
  .hd-top { flex-wrap: wrap; gap: 10px; }
  .hd-search { order: 3; flex-basis: 100%; }
  .hd-logo span { display: none; }
  .slide { min-height: 200px; }
  .promos, .ft-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .circle:hover .ic { transform: none; } }

/* ---- نسخه‌ی ویترین ---- */
.top-grid { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.top-grid .slider { grid-row: 1 / 3; }
.side-banner { position: relative; border-radius: 16px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-height: 134px; }
.side-banner strong { font-size: 1.1rem; font-weight: 800; }
.side-banner span { opacity: .9; font-size: .9rem; }
.side-banner i { position: absolute; left: 12px; bottom: 4px; font-size: 3.2rem; font-style: normal; opacity: .9; }
.sb1 { background: linear-gradient(135deg, #1E2A32, #3A4C58); }
.sb2 { background: linear-gradient(135deg, #E8793F, #D6342E); }
.slide { position: relative; justify-content: space-between; min-height: 290px; }
.slide .art { font-size: clamp(4rem, 12vw, 8rem); opacity: .95; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.circle .ic.emo { font-size: 2rem; }

.featured.amazing { background: linear-gradient(120deg, #D6342E, #B32A25); }
.featured-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.featured-head h2 { margin: 0; }
.timer { display: flex; align-items: center; gap: 4px; direction: ltr; font-weight: 800; }
.timer b { background: #fff; color: var(--brand); border-radius: 8px; padding: 2px 8px; font-size: .95rem; min-width: 32px; text-align: center; }
.more { margin-inline-start: auto; font-size: .9rem; font-weight: 700; opacity: .95; }
.more.dark { color: var(--brand); }
.block-head { display: flex; align-items: center; margin-bottom: 14px; }
.block-head h2 { margin: 0; }

.pcard { flex: 0 0 200px; scroll-snap-align: start; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.pimg { position: relative; height: 150px; border-radius: 10px; background: linear-gradient(160deg, #FDECEB, #F6F7F8); display: grid; place-items: center; font-size: 4.2rem; }
.pimg .demo { position: absolute; top: 8px; right: 8px; background: rgba(30,42,50,.78); color: #fff; font-style: normal; font-size: .7rem; padding: 1px 8px; border-radius: 999px; }
.pname { font-size: .88rem; line-height: 1.7; min-height: 3.4em; font-weight: 600; }
.pprice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; }
.pprice .off { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.pprice s { color: var(--muted); font-size: .82rem; text-align: left; }
.pprice strong { grid-column: 1 / 3; font-size: 1.02rem; text-align: left; }
.pprice small { font-weight: 400; font-size: .75rem; }
.rail.pr .pcard, .rail.pr .shop-tile { flex-basis: 190px; }
.rail.pr { padding: 4px 2px 10px; }

.shop-tile.light { background: #fff; border: 1px solid var(--line); }
.shop-emo { font-size: 3.2rem; line-height: 1.3; }

.promos.four { grid-template-columns: repeat(4, 1fr); }
.promo { position: relative; overflow: hidden; }
.promo i { position: absolute; left: 14px; bottom: 6px; font-size: 3.4rem; font-style: normal; opacity: .92; }
.q1 { background: linear-gradient(135deg, #2E9E5B, #1F6E41); } .q2 { background: linear-gradient(135deg, #8E4FD6, #5A2FA0); }
.q3 { background: linear-gradient(135deg, #2F7DE1, #1B4F9C); } .q4 { background: linear-gradient(135deg, #E8793F, #B8501C); }
.w1 { background: linear-gradient(120deg, #1E2A32, #3A4C58); } .w2 { background: linear-gradient(120deg, #D6342E, #9E1F1B); }
.promo.wide { min-height: 150px; }
.promo.wide strong { font-size: 1.3rem; max-width: 20ch; }

.trust i { font-style: normal; font-size: 1.8rem; }

@media (max-width: 900px) {
  .top-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .top-grid .slider { grid-row: auto; }
  .side-banner { min-height: 90px; }
  .promos.four { grid-template-columns: 1fr 1fr; }
  .slide .art { display: none; }
  .pcard, .rail.pr .pcard { flex-basis: 160px; }
  .pimg { height: 120px; font-size: 3.4rem; }
}
