/* =========================================================
   زیبایار — بازطراحی رابط کاربری (نسخه نمایشی PHP)
   Design tokens + layout + components + dark theme
   ========================================================= */

/* ---------- فونت وزیرمتن (self-hosted) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* رنگ‌های برند */
  --primary: #AE2448;
  --primary-dark: #6E1A37;
  --primary-soft: #F7E2E8;
  --primary-glow: #AE2448;

  --teal: #72BAA9;
  --teal-dark: #5A9E8C;

  --gold: #72BAA9;
  --gold-soft: #D5E7B5;

  --accent-orange: #AE2448;
  --accent-purple: #AE2448;
  --accent-green: #72BAA9;
  --accent-blue: #6E1A37;

  /* خنثی */
  --bg: #ffffff;
  --surface: #f7f7f7;
  --border: #e8e8e8;
  --text: #6E1A37;
  --text-muted: #8A5468;
  --text-soft: #A98B98;

  --danger: #AE2448;
  --star: #F2B01E;

  /* اندازه‌ها */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 20, 30, 0.06);
  --shadow: 0 6px 20px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 20, 30, 0.14);

  --container: 1240px;
  --header-h: 68px;
  --nav-h: 46px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 70px;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
[hidden] { display: none !important; }
a, button { touch-action: manipulation; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #6E1A37, #AE2448);
  color: #D5E7B5;
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 7px;
}
.topbar__support b { font-weight: 700; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.3s;
}
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #AE2448, #6E1A37);
  color: #fff; font-size: 22px; font-weight: 800;
  border-radius: 11px;
}
.logo__text { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding-inline: 16px;
  height: 44px;
  transition: border-color 0.2s, background 0.2s;
  max-width: 560px;
}
.search:focus-within { border-color: var(--primary); background: var(--surface); }
.search__input {
  flex: 1; border: none; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--text);
  outline: none;
}
.search__btn { color: var(--text-muted); display: grid; place-items: center; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg); }

.badge {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 18px; height: 18px;
  padding-inline: 4px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}

/* ---------- Nav ---------- */
.nav {
  background: #72BAA9;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-h);
}
.nav__megamenu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  margin-inline-end: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav__megamenu-btn:hover { background: #5A9E8C; }
.nav__megamenu-caret { transition: transform 0.2s; }
.nav__megamenu-btn.is-open .nav__megamenu-caret { transform: rotate(180deg); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__link {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: #6E1A37; }
.nav__link--active { color: #6E1A37; font-weight: 700; }

/* ---------- Mega menu ---------- */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border);
  z-index: 40;
}
.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  padding: 26px 0 30px;
}
.megamenu__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.megamenu__title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}
.megamenu__col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.megamenu__col a:hover { color: var(--primary); }
@media (max-width: 768px) {
  .megamenu__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.hero__slide {
  min-width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero__slide--1 { background-image: url('../images/hero/hero1.jpg'); }
.hero__slide--2 { background-image: url('../images/hero/hero2.jpg'); }
.hero__slide--3 { background-image: url('../images/hero/hero3.jpg'); }
a.hero__slide { cursor: pointer; transition: filter 0.2s var(--ease); }
a.hero__slide:hover { filter: brightness(1.04); }

/* ---------- Banner landing (banner.php) ---------- */
.campaign-hero {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  margin-top: 18px;
}
@media (max-width: 768px) { .campaign-hero { height: 180px; } }
.hero__content { position: relative; z-index: 2; max-width: 480px; }
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero__title { font-size: 38px; font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.hero__sub { font-size: 15px; opacity: 0.92; margin-bottom: 22px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s; }
.hero__dot--active { width: 26px; border-radius: var(--radius-pill); background: #fff; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}
.hero__arrow:hover { background: #fff; }
.hero__arrow--prev { inset-inline-start: 16px; }
.hero__arrow--next { inset-inline-end: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--light { background: #fff; color: #6E1A37; box-shadow: var(--shadow); }
.btn--light:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(174,36,72,0.3); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }
.btn--text { background: none; color: var(--primary); font-weight: 700; padding: 8px 4px; }

/* ---------- Categories ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}
.category__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category__label { font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- Flash sale ---------- */
.flash {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-soft), var(--surface));
  border: 1px solid #C5DBA5;
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin: 30px 0 20px;
}
.flash__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 16px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}
.flash__note { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.flash + .carousel { margin-top: 18px; }
.countdown { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; }
.countdown__num {
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 26px; font-weight: 900;
  min-width: 56px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.countdown__sep { font-size: 24px; font-weight: 800; color: var(--primary); }

/* ---------- Product grid & cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
.products-grid--5 { grid-template-columns: repeat(5, 1fr); }

.product {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  position: relative;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__media {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}
.product__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__brand { font-size: 11.5px; color: var(--text-soft); font-weight: 600; }
.product__name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.product__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.product__price--off {
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.7;
  white-space: nowrap;
  flex-shrink: 0;
}
.product__price--old { color: var(--text-soft); text-decoration: line-through; font-size: 12.5px; }
.product__price--new { color: var(--primary-dark); font-weight: 800; font-size: 15px; }
.product__price--unit { color: var(--text-soft); font-size: 11px; }
.product__add {
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700; font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.product__add:hover { background: var(--primary); color: #fff; }

/* ---------- Section head & tabs ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 18px;
}
.section-head--center { flex-direction: column; text-align: center; }
.section-head__title { font-size: 22px; font-weight: 800; }
.section-head__sub { color: var(--text-muted); font-size: 14px; }
.link { color: var(--primary); font-size: 13.5px; font-weight: 700; }

.tabs { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: var(--radius-pill); border: 1px solid var(--border); flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--primary); }
.tab--active { background: var(--primary); color: #fff; }
.tab--active:hover { color: #fff; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .product { min-width: 220px; flex: 0 0 220px; }
.carousel__arrow {
  position: absolute; top: 40%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  z-index: 3;
  transition: background 0.2s;
}
.carousel__arrow:hover { background: var(--primary); color: #fff; }
.carousel__arrow--prev { inset-inline-start: -8px; }
.carousel__arrow--next { inset-inline-end: -8px; }

/* ---------- Promo strip ---------- */
/* ---------- Magic box ---------- */
.magic { margin-top: 30px; }
.magic__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 44px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 80% 20%, #D5E7B5, #F5F9E6 45%, #E4F0C8);
  border: 1px solid #C5DBA5;
  position: relative;
  overflow: hidden;
}
.magic__stars { font-size: 20px; letter-spacing: 4px; }
.magic__title { font-size: 26px; font-weight: 900; margin: 6px 0; color: var(--primary-dark); }
.magic__sub { color: var(--text-muted); margin-bottom: 18px; }
.magic__art { font-size: 110px; animation: float 4s ease-in-out infinite; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.testimonial__head { display: flex; align-items: center; gap: 12px; }
.testimonial__thumb {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.testimonial__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial__brand { font-weight: 700; font-size: 13px; }
.testimonial__stars { color: var(--star); font-size: 13px; }
.testimonial__quote { font-size: 13px; color: var(--text-muted); flex: 1; }
.testimonial__link { color: var(--primary); font-weight: 700; font-size: 13px; }
.testimonial__thumb--initial { background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 20px; }

/* ---------- Rating summary (صفحه محصول) ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 18px;
}
.rating-summary__score { font-size: 38px; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.rating-summary__stars { color: var(--star); font-size: 18px; letter-spacing: 2px; }
.rating-summary__count { color: var(--text-soft); font-size: 12.5px; margin-top: 4px; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.service {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 26px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { font-size: 34px; }
.service__title { font-weight: 800; font-size: 15px; }
.service__desc { color: var(--text-muted); font-size: 12.5px; }

/* ---------- Magazine ---------- */
.magazine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  display: block;
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article__media {
  height: 170px;
  display: grid; place-items: center;
  background: #fff;
  overflow: hidden;
}
.article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__body { padding: 16px; }
.article__title { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.article__meta { color: var(--text-soft); font-size: 12px; }
.magazine__sub { color: var(--text-muted); font-size: 13.5px; margin: -6px 0 18px; }

/* ---------- Article detail (article.php) ---------- */
.post { max-width: 820px; margin-inline: auto; padding-bottom: 40px; }
.post__media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
}
.post__media img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.post__title { font-size: 26px; font-weight: 800; line-height: 1.6; margin-bottom: 10px; }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  color: var(--text-soft); font-size: 12.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.post__lead { font-size: 15.5px; line-height: 2.1; color: var(--text); margin-bottom: 16px; font-weight: 600; }
.post__body p { font-size: 15px; line-height: 2.1; color: var(--text-muted); margin-bottom: 16px; }
.post__back { display: inline-block; margin-top: 26px; color: var(--primary); font-weight: 700; font-size: 13.5px; }
@media (max-width: 768px) { .post__title { font-size: 21px; } }

/* ---------- Auth (account.php) ---------- */
.auth {
  max-width: 420px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.auth__lead { color: var(--text-muted); font-size: 13.5px; line-height: 1.9; margin-bottom: 18px; }
.auth__form { display: flex; flex-direction: column; gap: 10px; }
.auth__label { font-size: 12.5px; font-weight: 700; color: var(--text-soft); }
.auth__input {
  height: 46px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.auth__input:disabled { opacity: 0.65; cursor: not-allowed; }
.auth__form .btn { justify-content: center; margin-top: 6px; }
.auth__form .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth__note { margin-top: 14px; font-size: 12px; color: var(--text-soft); line-height: 1.8; }

/* ---------- Brands ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.brand {
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.brand:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.brand--active { color: var(--primary); border-color: var(--primary); }

/* ---------- About ---------- */
.about { margin-top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; }
.about__title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.about__vision { font-size: 15px; font-weight: 800; margin: 16px 0 10px; color: var(--text); }
.about__text { font-size: 13.5px; color: var(--text-muted); }
.about__text p { margin-bottom: 12px; }
.about__text.is-collapsed { max-height: 120px; overflow: hidden; position: relative; }
.about__text.is-collapsed::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 60px;
  background: linear-gradient(transparent, var(--surface));
}

/* ---------- Product link ---------- */
.product__link { display: block; color: inherit; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  padding: 20px 0 40px;
}
.product-detail__media {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 30px;
}
.product-detail__media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-detail__brand { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.product-detail__name { font-size: 24px; font-weight: 800; line-height: 1.5; }
.product-detail__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.product-detail__price-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-detail__price-bottom { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-detail__price--old { color: var(--text-soft); text-decoration: line-through; font-size: 14px; }
.product-detail__price--new { color: var(--primary-dark); font-weight: 900; font-size: 26px; }
.product-detail__price--unit { color: var(--text-soft); font-size: 13px; }
.product-detail__badge {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.product-detail__add { align-self: flex-start; padding: 10px 28px; font-size: 13.5px; }
.product-detail__features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-block: 1px solid var(--border);
}
.feature { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.feature__icon { font-size: 18px; }
.product-detail__desc h2 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.product-detail__desc p { font-size: 14px; color: var(--text-muted); line-height: 1.9; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 18px 0 4px;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__current { color: var(--text); font-weight: 700; }
.breadcrumb__sep { color: var(--text-soft); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty__title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.empty__desc { color: var(--text-muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { background: #6E1A37; color: #ffffff; margin-top: 50px; padding-top: 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 30px;
}
.logo--footer .logo__text { color: #ffffff; }
.footer__desc { font-size: 13px; margin: 14px 0; color: #ffffff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #AE2448; border-radius: 10px; font-size: 18px;
  transition: background 0.2s;
}
.footer__social a:hover { background: #6E1A37; }
.footer__heading { color: #ffffff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 13px; color: #ffffff; margin-bottom: 9px; transition: color 0.2s; }
.footer__col a:hover { color: #72BAA9; }
.footer__col p { font-size: 13px; color: #ffffff; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid #AE2448; padding-block: 16px; }
.footer__bottom-inner { display: flex; justify-content: space-between; font-size: 12.5px; color: #E4F0C8; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; inset-inline: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 60;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(20,20,30,0.06);
}
.mobile-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--text-soft);
  padding: 6px 0;
  border-radius: 10px;
}
.mobile-nav__item--active { color: var(--primary); font-weight: 700; }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  bottom: 84px; inset-inline-end: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 55;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 0; right: 0;
  margin-inline: auto;
  width: fit-content;
  background: #6E1A37;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.toast--show { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-grid, .products-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .products-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  body { padding-bottom: 72px; }
  .topbar__support { display: none; }
  .topbar__inner { justify-content: center; }
  .logo__text { font-size: 19px; }
  .search { display: none; }
  .nav { display: block; }
  .hero__slide { height: 260px; padding: 26px; }
  .hero__title { font-size: 24px; }
  .hero__art { font-size: 90px; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category { padding: 14px 6px; }
  .category__icon { width: 52px; height: 52px; font-size: 26px; }
  .products-grid, .products-grid--4, .products-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carousel__track .product { min-width: 160px; flex-basis: 160px; }
  .testimonials { grid-template-columns: 1fr; }
  .magazine { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services > :last-child { grid-column: 1 / -1; }
  .flash { flex-direction: column; align-items: stretch; text-align: center; }
  .countdown { margin-inline: auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__title { font-size: 19px; }
  .footer__grid { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }

  /* --- هدف لمس: حداقل ۴۴ پیکسل --- */
  .nav__link { padding: 10px 14px; font-size: 14px; }
  /* فلش‌های هیرو در موبایل هم می‌مانند — تنها راه ناوبری اسلایدر بودند که حذف شده بود */
  .hero__arrow { display: grid; width: 44px; height: 44px; }
  .hero__arrow--prev { inset-inline-start: 8px; }
  .hero__arrow--next { inset-inline-end: 8px; }
  .hero__dots { bottom: 12px; gap: 6px; }
  .hero__dot { width: 12px; height: 12px; }
  .hero__dot--active { width: 30px; }
  .carousel__arrow { width: 44px; height: 44px; top: 36%; }
  .product__add { padding: 11px 8px; }
  .footer__col a { padding-block: 7px; margin-bottom: 2px; }
  .breadcrumb a, .breadcrumb__current { display: inline-block; padding-block: 6px; }
}

@media (max-width: 420px) {
  .products-grid, .products-grid--4, .products-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .product__media { height: 130px; font-size: 52px; }
}
