/* ============================================================
   ایران خسرو — Homepage Styles (Responsive Fixed)
   ============================================================ */

/* ============ RESET & VARS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #024ea2;
  --primary-dark: #013a7a;
  --primary-light: #e6f0fb;
  --accent: #ff6b35;
  --accent-light: #fff0e9;
  --success: #10b981;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --border: #e5e9f2;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(2, 78, 162, .06);
  --shadow-md: 0 10px 30px rgba(2, 78, 162, .10);
  --shadow-lg: 0 20px 50px rgba(2, 78, 162, .16);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --header-h: 130px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
input, select, button { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap; min-height: 44px;
}
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(2,78,162,.25); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,78,162,.35); }
.btn--outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #f1f5fb; }

/* ============ TOPBAR ============ */
.topbar { background: #0b1a2e; color: #b8c4d6; font-size: 13px; padding: 8px 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a:hover { color: #fff; }

/* ============ HEADER ============ */
.header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(2,78,162,.06);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #0d6fd1);
  color: #fff; display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(2,78,162,.35);
  flex-shrink: 0;
}
.logo--light .logo__mark { background: linear-gradient(135deg, #fff, #dbe9fb); color: var(--primary); }

/* Search */
.search {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,78,162,.12); }

.search__cat { position: relative; flex-shrink: 0; }
.search__cat::after {
  content: '▾'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; font-size: 11px;
}
.search__cat select {
  appearance: none; border: 0; background: transparent;
  padding: 12px 16px; padding-left: 30px;
  color: var(--text); font-size: 14px; cursor: pointer;
  border-left: 1.5px solid var(--border); outline: 0;
  max-width: 160px;
}
.search__input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  padding: 12px 16px; font-size: 14px; outline: 0;
}
.search__input::placeholder { color: var(--text-muted); }
.search__btn {
  padding: 0 22px; align-self: stretch;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search__btn:hover { background: var(--primary-dark); }

/* Header actions */
.header__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 10px;
  color: var(--text); position: relative;
  transition: background var(--transition), color var(--transition);
  min-width: 52px;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-btn__label { font-size: 11px; font-weight: 500; }
.badge-count {
  position: absolute; top: 0; left: 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; display: grid; place-items: center;
}

/* Menu toggle — پیش‌فرض مخفی، در موبایل نمایش داده می‌شود */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px; margin-inline-start: auto;
  border-radius: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 24px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Catnav */
.catnav {
  border-top: 1px solid var(--border);
  background: #fff;
}
.catnav__inner {
  display: flex; gap: 6px; padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catnav__inner::-webkit-scrollbar { display: none; }
.catnav__link {
  padding: 8px 14px; border-radius: 100px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.catnav__link:hover { background: var(--primary-light); color: var(--primary); }
.catnav__link--active { background: var(--primary); color: #fff; }
.catnav__link--active:hover { background: var(--primary-dark); color: #fff; }
.catnav__link--hot { color: var(--accent); }
.catnav__link--hot:hover { background: var(--accent-light); color: var(--accent); }

/* ============ HERO ============ */
.hero { padding: 24px 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}

.sidebar {
  background: #fff; border-radius: var(--radius);
  padding: 18px 0; box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky; top: 140px;
}
.sidebar__title {
  font-size: 15px; font-weight: 700;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sidebar__list { display: flex; flex-direction: column; }
.sidebar__list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 14px;
  transition: background var(--transition), color var(--transition), padding var(--transition);
}
.sidebar__list a:hover { background: var(--primary-light); color: var(--primary); padding-inline-start: 22px; }
.sidebar__list a span { font-size: 18px; }
.sidebar__list a b {
  margin-inline-start: auto; font-weight: 500;
  color: var(--text-muted); font-size: 12px;
  background: var(--bg-soft); padding: 2px 8px; border-radius: 8px;
}
.sidebar__list a:hover b { background: #fff; color: var(--primary); }

/* Slider */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  min-width: 0;
}
.slider__track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide {
  flex: 0 0 100%; min-width: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 50px; position: relative; overflow: hidden;
  min-height: 380px;
}
.slide--1 { background: linear-gradient(120deg, #e6f0fb 0%, #c6dcf5 100%); }
.slide--2 { background: linear-gradient(120deg, #d6f5e1 0%, #a8e5c0 100%); }
.slide--3 { background: linear-gradient(120deg, #fff0e9 0%, #ffd8c4 100%); }

.slide__content { max-width: 60%; z-index: 2; min-width: 0; }
.slide__tag {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,.7); color: var(--primary);
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.slide__title {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 12px; color: var(--text);
  overflow-wrap: break-word;
}
.slide__text { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

.slide__art {
  font-size: 160px; opacity: .9;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.slide--1 .slide__art { animation: float 4s ease-in-out infinite; }
.slide--2 .slide__art { animation: float 4s ease-in-out infinite .4s; }
.slide--3 .slide__art { animation: float 4s ease-in-out infinite .8s; }
@keyframes float {
  0%,100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-14px); }
}

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--text);
  display: grid; place-items: center;
  font-size: 26px; line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
  z-index: 3;
}
.slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider__arrow--prev { right: 16px; }
.slider__arrow--next { left: 16px; }

.slider__dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.slider__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.6); transition: all var(--transition);
}
.slider__dot.is-active { background: var(--primary); width: 26px; border-radius: 5px; }

/* Side cards */
.side-cards { display: flex; flex-direction: column; gap: 12px; }
.side-card {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  min-width: 0;
}
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.side-card__ico {
  font-size: 32px; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 14px;
  flex-shrink: 0;
}
.side-card--blue .side-card__ico { background: var(--primary-light); }
.side-card--orange .side-card__ico { background: var(--accent-light); }
.side-card--green .side-card__ico { background: #d6f5e1; }
.side-card strong { display: block; font-size: 14px; }
.side-card small { color: var(--text-muted); font-size: 12px; }

/* ============ TRUST ROW ============ */
.trust-row { padding: 8px 0 24px; }
.trust-row__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-item__ico {
  font-size: 22px; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 14px; }
.trust-item small { font-size: 12px; color: var(--text-muted); }

/* ============ SECTION ============ */
.section { padding: 40px 0; }
.section--soft { background: #fff; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.section__head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section__title { font-size: 22px; font-weight: 800; }
.section__subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.section__footer { text-align: center; margin-top: 30px; }

.link-more { color: var(--primary); font-size: 14px; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* Tabs */
.tabs {
  display: flex; gap: 6px;
  background: var(--bg-soft); padding: 4px;
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.tab:hover { color: var(--primary); }
.tab.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ============ PRODUCTS ============ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; position: relative;
  min-width: 0;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product__img {
  aspect-ratio: 1.15;
  display: grid; place-items: center;
  font-size: 64px;
  position: relative; overflow: hidden;
}
.product__badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; flex-direction: column; }
.product__badge {
  padding: 3px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: #fff; color: var(--text);
}
.product__badge--discount { background: var(--accent); color: #fff; }
.product__badge--new { background: var(--success); color: #fff; }

.product__wish {
  position: absolute; top: 10px; left: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center;
  color: var(--text-muted); font-size: 15px;
  transition: all var(--transition);
  z-index: 2;
}
.product__wish:hover, .product__wish.is-active { background: var(--accent); color: #fff; }

.product__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.product__brand { font-size: 11.5px; color: var(--text-muted); }
.product__title {
  font-size: 14px; font-weight: 600; line-height: 1.55; min-height: 44px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product__title:hover { color: var(--primary); }
.product__meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); }
.product__rating { color: #f5a623; }
.product__prices { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.product__price { color: var(--primary); font-weight: 800; font-size: 16px; }
.product__price small { font-size: 11px; font-weight: 500; }
.product__old { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }
.product__add {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
  margin-inline-start: auto;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product__add:hover { background: var(--primary); color: #fff; transform: scale(1.05); }

/* ============ BRANDS ============ */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.brand {
  background: #fff; border-radius: var(--radius);
  padding: 22px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all var(--transition); border: 1.5px solid transparent;
  min-width: 0;
}
.brand:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.brand__ico {
  font-size: 36px; width: 60px; height: 60px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--primary-light);
}
.brand__name { font-weight: 700; font-size: 14px; }
.brand small { color: var(--text-muted); font-size: 11.5px; }
.brand--more { border: 1.5px dashed var(--border); }
.brand--more .brand__ico { background: var(--bg-soft); }

/* ============ PROMO ============ */
.promo { padding: 20px 0 40px; }
.promo__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo__card {
  border-radius: var(--radius-lg); padding: 34px 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; overflow: hidden; position: relative;
  min-width: 0;
}
.promo__card--blue { background: linear-gradient(120deg, #024ea2, #1976d2); color: #fff; }
.promo__card--dark { background: linear-gradient(120deg, #0b1a2e, #1e3050); color: #fff; }
.promo__tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(255,255,255,.2); font-size: 11.5px; font-weight: 600;
  margin-bottom: 12px;
}
.promo__content { min-width: 0; }
.promo__content h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.promo__content p { font-size: 14px; opacity: .9; margin-bottom: 18px; }
.promo__content p b { background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 6px; }
.promo__art { font-size: 100px; opacity: .35; flex-shrink: 0; }

/* ============ LISTINGS ============ */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.listing {
  background: #fff; border-radius: var(--radius);
  display: flex; gap: 14px; padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  min-width: 0;
}
.listing:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.listing__img {
  width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 34px;
}
.listing__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.listing__badge {
  display: inline-block; font-size: 11px; padding: 2px 9px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 100px; width: fit-content;
}
.listing__title {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.listing__meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.listing__price { color: var(--primary); font-weight: 800; font-size: 14px; margin-top: auto; }
.listing__price small { font-weight: 500; font-size: 11px; }

/* ============ ARTICLES ============ */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  min-width: 0;
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article__img {
  aspect-ratio: 2.2; display: grid; place-items: center;
  color: #fff; font-size: 56px;
}
.article__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article__cat {
  font-size: 11.5px; padding: 3px 10px; border-radius: 100px;
  background: var(--primary-light); color: var(--primary);
  width: fit-content; font-weight: 600;
}
.article__title { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.article__title:hover { color: var(--primary); }
.article__excerpt {
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.article__meta {
  display: flex; justify-content: space-between; font-size: 11.5px;
  color: var(--text-muted); margin-top: auto; padding-top: 8px;
  gap: 10px; flex-wrap: wrap;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: 50px 0;
  background: linear-gradient(120deg, #024ea2 0%, #01357a 100%);
  color: #fff; position: relative; overflow: hidden;
}
.newsletter::before, .newsletter::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none;
}
.newsletter::before {
  width: 380px; height: 380px;
  background: rgba(255,255,255,.08);
  top: -120px; right: -120px;
}
.newsletter::after {
  width: 300px; height: 300px;
  background: rgba(255,107,53,.18);
  bottom: -100px; left: -100px;
}
.newsletter__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 30px; align-items: center;
  position: relative; z-index: 1;
}
.newsletter__title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.newsletter__text { font-size: 14.5px; opacity: .85; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__input {
  flex: 1; min-width: 0;
  padding: 14px 18px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.95); color: var(--text);
  font-size: 15px; outline: 0;
}
.newsletter__input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.newsletter__msg {
  text-align: center; margin-top: 14px; font-size: 13.5px;
  min-height: 20px; position: relative; z-index: 1;
}
.newsletter__msg.is-error { color: #ffd6cc; }
.newsletter__msg.is-success { color: #b8f5c4; }

/* ============ FOOTER ============ */
.footer { background: #0b1a2e; color: #b8c4d6; padding-top: 60px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__col { min-width: 0; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer__col a:hover { color: #fff; }
.footer__text { font-size: 13.5px; margin: 16px 0 18px; line-height: 1.9; max-width: 320px; }
.logo--light .logo__text { color: #fff; }
.footer__contact li { line-height: 1.9; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
  font-size: 16px;
}
.footer__social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; font-size: 13px;
}
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer__pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-badge {
  background: rgba(255,255,255,.08); padding: 5px 12px;
  border-radius: 8px; font-size: 12px;
}

/* ============ SCROLL TOP ============ */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #0b1a2e; color: #fff;
  padding: 14px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  max-width: calc(100vw - 48px);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — بازنویسی‌شده
   ============================================================ */

/* --- ≤ 1200px: کمی جمع‌وجورتر --- */
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 16px; }
  .slide { padding: 34px 40px; }
  .slide__art { font-size: 130px; }
}

/* --- ≤ 1024px: تبلت افقی --- */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }

  /* هدر: ۲ ستونه با سرچ در ردیف بعد */
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .search { max-width: none; }

  /* هیرو: سایدبار حذف، اسلایدر + کارت‌ها */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .sidebar { display: none; }
  .side-cards {
    flex-direction: column;
  }

  /* برندها: ۴ ستون */
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* فوتر ۲ ستونه */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* پرومو تک ستونه */
  .promo__inner { grid-template-columns: 1fr; }

  /* خبرنامه تک ستونه */
  .newsletter__inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter__form { justify-content: center; }
}

/* --- ≤ 900px: تبلت عمودی --- */
@media (max-width: 900px) {
  html { scroll-padding-top: 150px; }

  /* دکمه منو نمایش داده شود */
  .menu-toggle { display: flex; }

  /* هدر: ۳ ستون با سرچ تمام‌عرض */
  .header__inner {
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "logo actions menu"
      "search search search";
    gap: 12px;
    padding: 12px 16px;
  }
  .logo { grid-area: logo; }
  .header__actions { grid-area: actions; margin-inline-start: auto; }
  .menu-toggle { grid-area: menu; margin-inline-start: 0; }
  .search {
    grid-area: search;
    max-width: none;
    margin: 0;
  }

  /* نوار دسته‌بندی */
  .catnav__inner { padding: 8px 12px; }

  /* هیرو: تک ستونه */
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .side-cards {
    flex-direction: row;
    gap: 10px;
  }
  .side-card {
    flex: 1 1 0;
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    gap: 8px;
  }
  .side-card__ico { width: 44px; height: 44px; font-size: 24px; }
  .side-card strong { font-size: 12.5px; }
  .side-card small { font-size: 11px; }

  /* اسلایدر */
  .slider, .slide { min-height: 300px; }
  .slide { padding: 28px 24px; }
  .slide__content { max-width: 70%; }
  .slide__art { font-size: 100px; }
  .slider__arrow { width: 36px; height: 36px; font-size: 20px; }
  .slider__arrow--prev { right: 10px; }
  .slider__arrow--next { left: 10px; }

  /* Trust */
  .trust-row__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* محصولات: ۳ ستون */
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* مقالات و آگهی‌ها */
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* برندها ۳ ستون */
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- ≤ 640px: موبایل --- */
@media (max-width: 640px) {
  html { scroll-padding-top: 140px; }
  .container { padding: 0 12px; }

  /* تاپ‌بار */
  .topbar { font-size: 12px; padding: 6px 0; }
  .topbar__inner { justify-content: center; }
  .topbar__links { display: none; }

  /* هدر */
  .header__inner { padding: 10px 12px; gap: 10px; }
  .logo__text { display: none; }
  .logo__mark { width: 38px; height: 38px; font-size: 20px; }
  .icon-btn { padding: 6px 8px; min-width: 44px; }
  .icon-btn__label { display: none; }
  .icon-btn svg { width: 20px; height: 20px; }

  /* سرچ */
  .search__cat { display: none; }
  .search__input { padding: 11px 12px; font-size: 13.5px; }
  .search__btn { padding: 0 16px; }

  /* نوار دسته‌بندی */
  .catnav__inner { padding: 8px 12px; gap: 4px; }
  .catnav__link { padding: 7px 12px; font-size: 12.5px; }

  /* هیرو */
  .hero { padding: 16px 0; }
  .hero__grid { gap: 12px; }
  .slider, .slide { min-height: 260px; }
  .slide { padding: 22px 18px; flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .slide__content { max-width: 100%; }
  .slide__tag { font-size: 11px; padding: 4px 10px; margin-bottom: 10px; }
  .slide__title { font-size: 19px; margin-bottom: 8px; }
  .slide__text { font-size: 13px; margin-bottom: 16px; }
  .slide__art { font-size: 70px; }
  .slider__arrow { width: 32px; height: 32px; font-size: 18px; }
  .slider__dots { bottom: 10px; }

  /* کارت‌های کنار اسلایدر: ۳ تا در یک ردیف */
  .side-cards { flex-direction: row; gap: 8px; }
  .side-card { padding: 12px 8px; gap: 6px; }
  .side-card__ico { width: 38px; height: 38px; font-size: 20px; }
  .side-card strong { font-size: 11.5px; line-height: 1.35; }
  .side-card small { display: none; }

  /* Trust */
  .trust-row { padding: 6px 0 16px; }
  .trust-row__inner { padding: 14px; gap: 10px; }
  .trust-item { gap: 10px; }
  .trust-item__ico { width: 40px; height: 40px; font-size: 18px; }
  .trust-item strong { font-size: 12.5px; }
  .trust-item small { font-size: 11px; }

  /* سکشن‌ها */
  .section { padding: 28px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .section__title { font-size: 19px; }
  .section__subtitle { font-size: 13px; }
  .link-more { font-size: 13px; }

  /* تب‌ها */
  .tabs { width: 100%; }
  .tab { padding: 7px 12px; font-size: 12.5px; }

  /* محصولات: ۲ ستون */
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product__img { font-size: 42px; }
  .product__body { padding: 10px 12px 14px; gap: 6px; }
  .product__title { font-size: 12.5px; min-height: 38px; }
  .product__brand { font-size: 11px; }
  .product__meta { font-size: 10.5px; }
  .product__price { font-size: 14px; }
  .product__old { font-size: 11px; }
  .product__add { width: 34px; height: 34px; }
  .product__wish { width: 30px; height: 30px; font-size: 13px; }
  .product__badge { font-size: 10px; padding: 2px 7px; }

  /* برندها: ۲ ستون */
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand { padding: 16px 10px; }
  .brand__ico { width: 52px; height: 52px; font-size: 30px; }
  .brand__name { font-size: 13px; }
  .brand small { font-size: 11px; }

  /* پرومو */
  .promo { padding: 12px 0 28px; }
  .promo__card { padding: 22px 20px; }
  .promo__content h3 { font-size: 18px; }
  .promo__content p { font-size: 13px; }
  .promo__art { font-size: 70px; }

  /* آگهی‌ها: تک ستون */
  .listings { grid-template-columns: 1fr; gap: 10px; }
  .listing__img { width: 72px; height: 72px; font-size: 28px; }
  .listing__title { font-size: 13px; }

  /* مقالات: تک ستون */
  .articles { grid-template-columns: 1fr; gap: 14px; }
  .article__img { font-size: 44px; aspect-ratio: 2.5; }
  .article__body { padding: 14px; }
  .article__title { font-size: 14.5px; }

  /* خبرنامه */
  .newsletter { padding: 36px 0; }
  .newsletter__title { font-size: 20px; }
  .newsletter__text { font-size: 13.5px; }
  .newsletter__form { flex-direction: column; gap: 8px; }
  .newsletter__form .btn { width: 100%; }

  /* فوتر */
  .footer { padding-top: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
  .footer__col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer__text { font-size: 13px; max-width: none; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 12px; }

  /* دکمه اسکرول بالا */
  .scroll-top { bottom: 16px; left: 16px; width: 42px; height: 42px; }

  /* Toast */
  .toast { right: 12px; left: 12px; bottom: 76px; text-align: center; padding: 12px 16px; }
}

/* --- ≤ 400px: گوشی‌های خیلی باریک --- */
@media (max-width: 400px) {
  .slide__title { font-size: 17px; }
  .slide__art { font-size: 60px; }
  .products { gap: 8px; }
  .product__body { padding: 8px 10px 12px; }
  .product__price { font-size: 13px; }
  .product__add { width: 30px; height: 30px; }
  .side-card strong { font-size: 11px; }
}

/* --- حالت منوی موبایل باز --- */
@media (max-width: 900px) {
  .catnav.is-mobile-open {
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .catnav.is-mobile-open .catnav__inner {
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .catnav.is-mobile-open .catnav__link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: right;
  }
}

/* --- حالت افقی روی موبایل --- */
@media (max-width: 900px) and (orientation: landscape) {
  .slider, .slide { min-height: 240px; }
  .slide__art { font-size: 60px; }
}