@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1c3d98;
  --red-1: #ee1637;
  --red-2: #c9001f;
  --white: #fff;
  --page: #f4f4f4;
  --max: 1920px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  font-family: "Yekan Bakh", Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* دکمه قرمز مشترک */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: var(--white);
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(201, 0, 31, .28);
}

/* ---------- بنر اصلی ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  container-type: inline-size;
  --btn-top: 80.43%;
  --btn-h: 8.15%;
  --btn-w: 15.36%;
  --fs: 1.46cqw;
}
.hero__img { width: 100%; }
.hero__actions { display: contents; }

.hero__btn {
  position: absolute;
  top: var(--btn-top);
  height: var(--btn-h);
  width: var(--btn-w);
  font-size: var(--fs);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hero__btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 8px 16px rgba(201, 0, 31, .35); }
.hero__btn:active { transform: translateY(0); }

/* راست به چپ: نمایندگی ها - لیست قیمت - کاتالوگ */
.hero__btn--stores  { right: 4.17%; }
.hero__btn--price   { right: 20.2%; }
.hero__btn--catalog { right: 36.3%; }

/* ---------- اینستاگرام (فقط موبایل) ---------- */
.instagram { display: none; }

/* ---------- نوار دسته بندی ---------- */
.cat-bar {
  background: var(--blue);
  padding: 18px 16px;
  text-align: center;
}
.cat-bar__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 700;
  color: var(--white);
}

/* ---------- کارت دسته ها ---------- */
.cats {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* RTL: اولین کارت سمت راست */
  gap: clamp(12px, 1.6vw, 28px);
}

.cat {
  position: relative;
  display: block;
  container-type: inline-size;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat img { width: 100%; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .14); }

.cat__label {
  position: absolute;
  left: 13.4%;
  bottom: 6%;
  width: 36.3%;
  height: 7.8%;
  min-width: max-content;
  padding-inline: 1.5cqw;
  font-size: 4.2cqw;
}
.cat:hover .cat__label { filter: brightness(1.08); }

/* ---------- تبلت ---------- */
@media (max-width: 1023px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
  .hero {
    --btn-top: 87.92%;
    --btn-h: 3.9%;
    --btn-w: 27.4%;
    --fs: 3.1cqw;
  }
  .hero__btn--stores  { right: 7.6%; }
  .hero__btn--price   { right: 36.1%; }
  .hero__btn--catalog { right: 64.7%; }

  .instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 17px;
    color: var(--blue);
    background: #fff;
  }

  .cats { grid-template-columns: 1fr; max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
