/* ========== NanKang Tire Store ========== */
@import url('https://v1.fontapi.ir/css/Vazirmatn');
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.fontcdn.ir/Font/Persian/YekanBakh/YekanBakh.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.fontcdn.ir/Font/Persian/YekanBakh/YekanBakh-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('https://cdn.fontcdn.ir/Font/Persian/YekanBakh/YekanBakh-SemiBold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('https://cdn.fontcdn.ir/Font/Persian/Peyda/Peyda-Medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('https://cdn.fontcdn.ir/Font/Persian/Peyda/Peyda-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('https://cdn.fontcdn.ir/Font/Persian/Peyda/Peyda-Black.woff') format('woff');
  font-weight: 900;
  font-display: swap;
}

:root {
  --black: #1A1A1A;
  --bg: #1A1A1A;
  --dark-2: #1E1E1E;
  --dark-3: #282828;
  --dark-4: #303030;
  --dark-5: #3B3B3B;
  --gray-700: #474747;
  --gray-500: #626262;
  --gray-400: #7A8083;
  --gray-300: #A7ACAE;
  --gray-200: #C9C9C9;
  --gray-100: #E9E9E9;
  --white: #FFFFFF;
  --gold: #F2B124;
  --gold-dark: #C98D00;
  --gold-soft: #9D6B00;
  --red: #E60012;
  --red-dark: #C90010;
  --green: #34C759;

  --radius: 8px;
  --header-h: 80px;

  --f-yekan: 'YekanBakh', 'Vazirmatn', system-ui, sans-serif;
  --f-peyda: 'Peyda', 'Vazirmatn', system-ui, sans-serif;
  --f-num: 'Poppins', 'YekanBakh', system-ui, sans-serif;
}

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

html, body {
  background: var(--gray-700);
  color: var(--white);
  font-family: var(--f-yekan);
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; outline: none; }

/* Background texture for the whole site */
.app {
  min-height: 100vh;
  background:
    linear-gradient(rgba(71,71,71,0.92), rgba(71,71,71,0.92)),
    url('assets/bg-texture.png') center / 800px;
  background-attachment: fixed;
}

/* ============ HEADER ============ */
.header {
  background: #000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  flex-shrink: 0;
}
.logo-mark {
  width: 38px;
  height: 28px;
  display: block;
}
.logo-mark path { fill: var(--white); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
  padding-left: 12px;
}
.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  position: relative;
  padding: 8px 4px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 22px 0 16px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  transition: filter 0.15s;
}
.tab-btn:hover { filter: brightness(1.1); }
.tab-btn--search {
  background: var(--gray-700);
  color: var(--white);
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  padding: 0 28px 0 22px;
}
.tab-btn--cart {
  background: var(--gold);
  color: var(--black);
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  margin-right: -10px;
}
.tab-btn .ico { width: 20px; height: 20px; flex-shrink: 0; }
.tab-btn--cart .ico { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: 6px;
  left: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: var(--white);
  border-radius: 9px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* ============ PAGES ============ */
.page.active { display: block; }

/* ============ HERO (HOME) ============ */
.hero {
  position: relative;
  min-height: 720px;
  background:
    url('assets/hero.jpg') center / cover no-repeat #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 120px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(0deg, var(--gray-700), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-logo {
  display: block;
  margin: 0 auto 22px;
  width: auto;
  max-width: min(420px, 88vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.hero-title {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  text-wrap: balance;
}

/* Size search box */
.size-search {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 32px 32px;
  max-width: 760px;
  margin: -120px auto 0;
  position: relative;
  z-index: 5;
}
.size-search-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
}
.size-search-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.select {
  position: relative;
  background: var(--dark-3);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  height: 48px;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 14px;
  padding: 0 16px;
  text-align: right;
  direction: rtl;
  cursor: pointer;
}
.select select:focus { outline: none; }
.select::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}
.select option { background: var(--dark-3); color: var(--white); }

.skew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 28px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  border: 0;
  transition: filter 0.15s, transform 0.1s;
}
.skew-btn:hover { filter: brightness(1.08); }
.skew-btn:active { transform: scale(0.98); }
.skew-btn--ghost {
  background: var(--dark-5);
  color: var(--white);
}

.size-search-actions {
  display: flex;
  justify-content: center;
}

/* ============ SECTION ============ */
.section {
  padding: 64px 24px;
}
.section-inner {
  max-width: 1360px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
}
.section-title .ico { width: 28px; height: 28px; }
.section-title--center {
  justify-content: center;
  text-align: center;
  width: 100%;
  font-size: 24px;
  margin-bottom: 32px;
}

/* ============ PRODUCT CARD (large hero) ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
  padding-block: 32px;
}
.product-card-lg {
  position: relative;
  background: var(--black);
  border-radius: var(--radius);
  overflow: visible;
  height: 280px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 24px 0 24px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product-card-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  z-index: 2;
}
.product-card-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(48,48,48,0.8) 100%);
  pointer-events: none;
}
.product-card-lg__angle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, #000 0%, #303030 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.product-card-lg__image {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-block: -40px;
  pointer-events: none;
}
.product-card-lg__image img {
  height: 340px;
  max-height: none;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.product-card-lg__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 8px;
  text-align: right;
}
.product-card-lg__title {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 24px;
  align-items: center;
  font-size: 14px;
}
.product-meta-grid .meta-label {
  color: var(--gray-300);
  font-family: var(--f-peyda);
  font-weight: 700;
}
.product-meta-grid .meta-val {
  color: var(--white);
  font-family: var(--f-num);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-chip {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 11px;
  font-weight: 700;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-peyda);
}
.price-row .price-label {
  color: var(--gray-300);
  font-weight: 700;
  font-size: 14px;
}
.price-row .price-val {
  color: var(--gold);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 18px;
}
.price-row .price-currency {
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 500;
}
.price-row .price-old {
  text-decoration: line-through;
  color: var(--gray-300);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  margin-left: 8px;
}

/* ============ DEAL BANNER ============ */
.deal-banner {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 32px 40px 0;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.deal-banner__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.deal-banner__title {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 32px;
  color: var(--black);
}
.deal-banner__fire {
  width: 32px; height: 32px;
}

/* ============ SMALL PRODUCT CARD ============ */
.small-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card-sm {
  position: relative;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product-card-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.product-card-sm::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(180deg, #3B3B3B 0%, #1A1A1A 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
  pointer-events: none;
  z-index: 0;
}
.product-card-sm__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-sm__img img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.product-card-sm__title {
  position: relative;
  z-index: 1;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: var(--white);
  min-height: 40px;
}
.product-card-sm__price {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--f-peyda);
}
.product-card-sm__price .old {
  font-family: var(--f-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-300);
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}
.product-card-sm__price .now {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}
.product-card-sm__price .now span:first-child {
  color: var(--gray-300);
  font-weight: 700;
}
.product-card-sm__price .now b {
  color: var(--gold);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 16px;
}
.product-card-sm__price .now em {
  color: var(--gray-300);
  font-size: 11px;
  font-style: normal;
}
.product-card-sm__discount {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ============ SLIDER ============ */
.slider {
  position: relative;
}
.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 5;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.slider-arrow:hover { filter: brightness(1.08); }
.slider-arrow:active { transform: translateY(-50%) scale(0.94); }
.slider-arrow--prev { left: -8px; }
.slider-arrow--next { right: -8px; }

/* ============ VEHICLE CATEGORIES ============ */
/* Row 1: 2 banners | Row 2: 3 banners (6-column grid) */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.vehicle-grid > :nth-child(1),
.vehicle-grid > :nth-child(2) {
  grid-column: span 3;
}
.vehicle-grid > :nth-child(3),
.vehicle-grid > :nth-child(4),
.vehicle-grid > :nth-child(5) {
  grid-column: span 2;
}

.vehicle-card {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-700) 100%);
  cursor: pointer;
  transition: transform 0.2s;
}
.vehicle-card:hover { transform: translateY(-3px); }
.vehicle-card__bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.vehicle-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
}

/* Full uploaded banner — no bar, title, or gradient */
.vehicle-card--banner {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  align-items: stretch;
  justify-content: stretch;
}
.vehicle-card--banner:hover {
  transform: translateY(-3px);
}
.vehicle-card--banner .vehicle-card__bar,
.vehicle-card--banner .vehicle-card__title {
  display: none !important;
}
.vehicle-card__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  vertical-align: middle;
}

/* ============ HOME PROMO BANNERS ============ */
.section--promo {
  padding-top: 0;
  padding-bottom: 64px;
}
.home-promo-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease;
}
a.home-promo-banner:hover {
  transform: translateY(-3px);
}
.home-promo-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  padding: 64px 24px 24px;
  border-top: 1px solid var(--gray-700);
}
.footer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 56px;
  text-align: center;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.feature .ico {
  width: 41px;
  height: 41px;
  color: var(--white);
}
.feature-label {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-700);
}
.footer-col h4 {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col li {
  font-family: var(--f-yekan);
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  cursor: pointer;
}
.footer-col li:hover { color: var(--gold); }
.footer-col p {
  font-family: var(--f-peyda);
  font-size: 15px;
  line-height: 1.7;
  color: var(--white);
}
.footer-socials {
  display: grid;
  grid-template-columns: repeat(2, 32px);
  gap: 8px;
  margin-top: 18px;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 6px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.footer-socials a:hover { transform: scale(1.1); }
.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.footer-payments img { height: 50px; width: auto; }
.footer-bottom {
  text-align: center;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
}

/* ============ LIST PAGE ============ */
.list-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}
.list-main {
  min-width: 0;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.list-count {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-300);
}
.sort-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sort-tabs__label {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-300);
}
.sort-btn {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-300);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.sort-btn:hover { color: var(--white); }
.sort-btn.active {
  color: var(--gold);
  background: rgba(242,177,36,0.1);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ============ FILTER SIDEBAR ============ */
.filter-sidebar {
  background: var(--black);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 2px; }
.filter-sidebar h3 {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-sidebar h3 .ico { width: 18px; height: 18px; color: var(--gold); }

.filter-section {
  border-bottom: 1px solid var(--gray-700);
  padding: 16px 0;
}
.filter-section:last-of-type { border-bottom: 0; }
.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.filter-section-head h4 {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 15px;
}
.filter-section-head .caret {
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.2s;
}
.filter-section.collapsed .caret { transform: rotate(-90deg); }
.filter-section.collapsed .filter-section-body { display: none; }
.filter-section-body {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-yekan);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.filter-check input { display: none; }
.filter-check .box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-500);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.filter-check input:checked + .box {
  background: var(--gold);
  border-color: var(--gold);
}
.filter-check input:checked + .box::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(45deg) translate(-1px, -1px);
}

.size-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-3);
  border-radius: 4px;
  padding: 8px 10px;
}
.size-row select {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  direction: rtl;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.price-range {
  padding: 10px 0;
}
.price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}
.price-display .label {
  font-family: var(--f-peyda);
  font-weight: 500;
  color: var(--gray-300);
  font-size: 12px;
}
.range-track {
  position: relative;
  height: 4px;
  background: var(--gray-700);
  border-radius: 2px;
  direction: ltr;
}
.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.range-input {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 20px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--black);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--black);
  cursor: pointer;
  pointer-events: auto;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}
.filter-actions .skew-btn { width: 100%; }

/* product card medium - used on list page */
.product-card-md {
  position: relative;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 190px;
  height: 240px;
  padding: 22px 24px 22px 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.6);
}
.product-card-md__angle {
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(180deg, #000 0%, #303030 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  pointer-events: none;
}
.product-card-md__img {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-md__img img {
  max-height: 200px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}
.product-card-md__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-right: 4px;
  text-align: right;
  min-width: 0;
}
.product-card-md__title {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn.active {
  background: var(--gold);
  color: var(--black);
}
.page-btn:hover:not(.active) { background: var(--dark-4); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-300);
  font-family: var(--f-yekan);
  font-size: 16px;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-yekan);
  font-size: 13px;
  color: var(--gray-300);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gray-500); }

.detail-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  background: linear-gradient(180deg, #000 0%, #303030 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.detail-img {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img img {
  max-width: 100%;
  max-height: 300px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
}
.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}
.detail-thumb {
  width: 56px;
  height: 56px;
  background: var(--dark-4);
  border-radius: 6px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.15s;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumb.active { border-color: var(--gold); }

.detail-info {
  position: relative;
  z-index: 2;
  text-align: right;
  padding-top: 12px;
}
.detail-info h1 {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}
.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-300);
}
.detail-rating .star { color: var(--gold); width: 16px; height: 16px; }

.detail-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
.detail-specs .spec {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-yekan);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(167,172,174,0.2);
}
.detail-specs .spec .k { color: var(--gray-300); }
.detail-specs .spec .v { font-family: var(--f-num); font-weight: 700; color: var(--white); }

.detail-energy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-family: var(--f-yekan);
  font-size: 14px;
}
.detail-energy .badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-buy {
  position: relative;
  z-index: 2;
  background: var(--dark-3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--gray-700);
}
.detail-buy__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-yekan);
  font-size: 14px;
}
.detail-buy__row .k { color: var(--gray-300); }
.detail-buy__row .v { color: var(--white); font-weight: 700; }
.detail-buy__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--f-yekan);
  padding-top: 12px;
  border-top: 1px solid var(--gray-700);
}
.detail-buy__price .label { color: var(--gray-300); font-size: 14px; }
.detail-buy__price .val {
  color: var(--gold);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 22px;
}
.detail-buy__price .currency { color: var(--gray-300); font-size: 12px; margin-right: 4px; }
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  border-radius: 6px;
  padding: 4px 8px;
  height: 40px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--dark-4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--gold); color: var(--black); }
.qty-val {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 16px;
}
.add-cart-btn {
  width: 100%;
  height: 48px;
  background: var(--gold);
  color: var(--black);
  border-radius: 6px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s, transform 0.1s;
}
.add-cart-btn:hover { filter: brightness(1.08); }
.add-cart-btn:active { transform: scale(0.98); }
.add-cart-btn.added {
  background: var(--green);
  color: var(--white);
}

.detail-section {
  background: var(--black);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}
.detail-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-peyda);
  font-weight: 700;
  font-size: 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 20px;
  justify-content: flex-end;
}
.detail-section__head .ico { color: var(--gold); width: 22px; height: 22px; }

.detail-text {
  font-family: var(--f-peyda);
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  text-align: right;
  color: var(--white);
  white-space: pre-line;
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center;
  height: 40px;
  border: 1px solid var(--gray-700);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--f-peyda);
  font-weight: 500;
  font-size: 14px;
}
.spec-row .label {
  text-align: right;
  padding: 0 16px;
}
.spec-row .value {
  background: var(--gray-700);
  padding: 0 16px;
  text-align: right;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ============ CART DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--black);
  z-index: 201;
  transform: translateX(-105%);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-700);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h3 {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; gap: 8px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark-4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.drawer-close:hover { background: var(--gold); color: var(--black); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 2px; }
.cart-item {
  background: var(--dark-3);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}
.cart-item img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  background: linear-gradient(135deg, #3B3B3B, #1A1A1A);
  border-radius: 6px;
  padding: 6px;
}
.cart-item__name {
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-item__price {
  font-family: var(--f-num);
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  border-radius: 4px;
  padding: 2px 6px;
  height: 28px;
}
.cart-qty button {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--dark-5);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.cart-qty button:hover { background: var(--gold); color: var(--black); }
.cart-qty span {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}
.cart-item__remove {
  color: var(--gray-300);
  font-size: 11px;
  font-family: var(--f-yekan);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-item__remove:hover { color: var(--red); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  color: var(--gray-300);
  font-family: var(--f-yekan);
  text-align: center;
}
.cart-empty svg { width: 64px; height: 64px; opacity: 0.3; }

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-700);
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-yekan);
  font-size: 14px;
}
.drawer-footer__row .label { color: var(--gray-300); }
.drawer-footer__row .val {
  color: var(--white);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 16px;
}
.drawer-footer__row.total .val {
  color: var(--gold);
  font-size: 20px;
}
.checkout-btn {
  width: 100%;
  height: 48px;
  background: var(--gold);
  color: var(--black);
  border-radius: 6px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 16px;
}
.checkout-btn:hover { filter: brightness(1.08); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(120%);
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--f-yekan);
  font-weight: 700;
  font-size: 14px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(50%) translateY(0); }
.toast .ico { color: var(--gold); width: 20px; height: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .list-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    max-height: none;
    order: -1;
  }
  .filter-sidebar.collapsed-mobile .filter-section,
  .filter-sidebar.collapsed-mobile .filter-actions { display: none; }
  .small-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-card { grid-template-columns: 1fr 1fr; }
  .detail-buy { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .tab-btn--search { display: none; }
  .tab-btn--cart { padding: 0 18px 0 16px; font-size: 13px; clip-path: none; border-radius: 6px; margin-right: 0; }
  .tab-btn--cart .ico { width: 18px; height: 18px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 30px; height: 22px; }

  .hero {
    min-height: 480px;
    padding: 60px 20px 90px;
  }
  .hero-title { font-size: 36px; }
  .hero-logo { max-height: 48px; max-width: 280px; margin-bottom: 16px; }

  .size-search { padding: 20px; margin-top: -80px; }
  .size-search-row { grid-template-columns: 1fr; gap: 10px; }
  .size-search-title { font-size: 16px; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 20px; }
  .section-title--center { font-size: 18px; }
  .section-head { flex-wrap: wrap; }

  .products-grid { grid-template-columns: 1fr; padding-block: 20px; }
  .product-card-lg {
    grid-template-columns: 140px 1fr;
    height: auto;
    min-height: 220px;
    padding: 20px 0 20px 20px;
  }
  .product-card-lg__image { margin-block: -24px; }
  .product-card-lg__image img { height: 260px; }
  .product-card-lg__title { font-size: 15px; }
  .product-meta-grid { grid-template-columns: repeat(2, auto); gap: 8px 16px; font-size: 12px; }

  .small-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-sm__img { height: 140px; }
  .product-card-sm__title { font-size: 13px; }

  .slider-track > * { flex: 0 0 calc(50% - 10px); }
  .slider-arrow { width: 36px; height: 36px; }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-grid > * {
    grid-column: span 1 !important;
  }
  .vehicle-card:not(.vehicle-card--banner) { height: 140px; padding: 0 20px; }
  .vehicle-card:not(.vehicle-card--banner) .vehicle-card__title { font-size: 16px; }

  .deal-banner { padding: 24px 20px 16px; margin: 24px 0; }
  .deal-banner__title { font-size: 22px; }

  .section--promo { padding-bottom: 40px; }

  .footer { padding: 40px 16px 16px; }
  .footer-features { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px 0; }

  .list-layout { padding: 16px; gap: 16px; }
  .list-grid { grid-template-columns: 1fr; }
  .list-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sort-tabs { flex-wrap: wrap; gap: 8px; }
  .sort-btn { font-size: 13px; padding: 4px 8px; }
  .filter-sidebar.collapsed-mobile { padding: 12px 16px; }
  .filter-sidebar.collapsed-mobile h3 { margin-bottom: 0; }

  .product-card-md { grid-template-columns: 1fr 130px; height: auto; padding: 16px 16px 16px 0; }
  .product-card-md__img img { max-height: 130px; }
  .product-card-md__title { font-size: 14px; }

  .product-detail { padding: 16px; }
  .detail-card { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .detail-card::before { display: none; }
  .detail-buy { grid-column: 1 / -1; }
  .detail-section { padding: 20px; }

  .spec-row { grid-template-columns: 1fr 120px; font-size: 13px; }
  .spec-row .label, .spec-row .value { padding: 0 12px; }
}
