:root {
  --bk-ink: #102033;
  --bk-muted: #5f6f82;
  --bk-blue: #0b4b7a;
  --bk-blue-dark: #07345a;
  --bk-gold: #f2b705;
  --bk-line: rgba(15, 58, 92, 0.14);
  --bk-soft: #f3f7fb;
  --bk-card: #ffffff;
  --bk-shadow: 0 18px 44px rgba(12, 43, 72, 0.12);
}

.page-wrapper.rtl {
  direction: rtl;
  text-align: right;
  background: var(--bk-soft);
}

.page-wrapper.rtl,
.products-hero,
.product-overview,
.product-detail-main,
.related-products,
.process-band {
  font-family: 'IranSans', Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.products-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #071a2d;
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 45, 0.45), rgba(7, 26, 45, 0.9) 62%),
    linear-gradient(180deg, rgba(7, 26, 45, 0.05), rgba(7, 26, 45, 0.88));
}

.products-hero .auto-container {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 780px;
  padding: 64px 0 86px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bk-gold);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--bk-gold);
}

.products-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 18px;
}

.products-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  line-height: 2;
  margin: 0;
  max-width: 680px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  background: var(--bk-gold);
  color: #102033;
  font-weight: 700;
  border: 1px solid transparent;
}

.product-btn:hover {
  color: #102033;
  background: #ffd04a;
}

.product-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.product-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.product-overview,
.product-detail-main,
.related-products {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2 {
  color: var(--bk-ink);
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--bk-muted);
  line-height: 2;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 430px;
  background: var(--bk-card);
  box-shadow: var(--bk-shadow);
  border: 1px solid var(--bk-line);
  display: flex;
  flex-direction: column;
}

.product-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--bk-line);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  color: var(--bk-ink);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.product-card p {
  color: var(--bk-muted);
  line-height: 1.9;
  margin: 0 0 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  color: #34485f;
  padding-right: 18px;
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bk-gold);
}

.product-card .product-btn {
  margin-top: auto;
  width: 100%;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.detail-panel,
.spec-panel {
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  box-shadow: var(--bk-shadow);
}

.detail-panel {
  padding: 30px;
}

.detail-panel h2,
.detail-panel h3,
.spec-panel h3 {
  color: var(--bk-ink);
  font-weight: 700;
}

.detail-panel p {
  color: var(--bk-muted);
  line-height: 2.05;
  margin-bottom: 18px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--bk-line);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.spec-panel {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.spec-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.spec-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #f7fafc;
  border: 1px solid rgba(15, 58, 92, 0.08);
}

.spec-row strong {
  color: var(--bk-blue);
}

.process-band {
  background: #fff;
  border-top: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  padding: 56px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-item {
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  padding: 22px;
  background: #f8fbfd;
}

.process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--bk-blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.process-item h3 {
  color: var(--bk-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.process-item p {
  color: var(--bk-muted);
  line-height: 1.9;
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bk-line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(12, 43, 72, 0.08);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  border-bottom: 1px solid var(--bk-line);
}

.related-card strong {
  display: block;
  color: var(--bk-ink);
  padding: 14px 16px 16px;
}

@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .products-hero {
    min-height: 430px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .spec-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .products-hero::after {
    background: linear-gradient(180deg, rgba(7, 26, 45, 0.68), rgba(7, 26, 45, 0.95));
  }

  .hero-copy {
    padding: 46px 0 64px;
  }

  .product-overview,
  .product-detail-main,
  .related-products {
    padding: 48px 0;
  }

  .product-grid,
  .process-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 22px;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }
}
