/* Home Pro v3 — ظاهر لوکس‌تر صفحه اصلی */
.home-pro {
  --hp-ink: var(--text, #1a2229);
  --hp-muted: var(--muted, #6b7680);
  --hp-line: var(--border, rgba(26, 34, 41, 0.1));
  --hp-metal: #8b98a4;
  --hp-metal-bright: #c9d2d9;
  --hp-deep: #2a343d;
  overflow-x: clip;
  position: relative;
}

.home-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(var(--brand-rgb), 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(154, 167, 178, 0.18), transparent 50%);
}

.home-pro > * {
  position: relative;
  z-index: 1;
}

/* جستجو باید روی هیرو بیاید تا دراپ‌داون زنده دیده شود */
.home-pro > .container:has(.home-search),
.home-pro .home-search,
.home-pro .live-search-wrap {
  z-index: 40;
  overflow: visible;
}

.home-pro .home-search {
  margin-bottom: 0.35rem;
}

/* —— Hero —— */
.hp-hero {
  position: relative;
  margin: 0.35rem 0 0;
}

.hp-hero-slides.owl-carousel .owl-stage-outer {
  border-radius: 0;
  overflow: hidden;
}

.hp-slide {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 992px) {
  .hp-hero {
    margin-inline: 0;
  }
  .hp-slide {
    min-height: min(88vh, 760px);
    border-radius: 0 0 2rem 2rem;
  }
  .home-pro .container {
    max-width: 1240px;
  }
}

.hp-slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: hpKenBurns 16s ease-in-out infinite alternate;
}

.hp-slide-media--metal {
  background-image:
    linear-gradient(125deg, #2f3a44 0%, #7f8d98 38%, #d0d8df 52%, #5a6772 100%);
}

.hp-slide-media--bar {
  background-image:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.4), transparent 40%),
    linear-gradient(160deg, #5f6d78, #b3bec7 48%, #3f4b55);
}

.hp-slide-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 14, 20, 0.86) 0%, rgba(10, 14, 20, 0.42) 48%, rgba(10, 14, 20, 0.18) 100%),
    linear-gradient(to top, rgba(10, 14, 20, 0.62), transparent 45%);
}

.hp-slide-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 60%
  );
  animation: hpShine 8s ease-in-out infinite;
}

.hp-slide-copy {
  position: relative;
  z-index: 2;
  padding: 3.75rem 0 5.75rem;
  color: #f5f7f9;
  max-width: 660px;
  margin-right: auto;
  margin-left: 0;
}

.hp-brand {
  margin: 0 0 0.65rem;
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  background: linear-gradient(120deg, #fff 8%, #e8eef2 40%, var(--hp-metal-bright) 70%, #9aa7b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.3));
}

.hp-brand--sm {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin-bottom: 0.35rem;
}

.hp-slide-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.28rem, 3.3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}

.hp-lead {
  margin: 0 0 1.5rem;
  color: rgba(245, 247, 249, 0.9);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 34rem;
}

.hp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-btn:hover {
  transform: translateY(-2px);
}

.hp-btn-primary {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 1), rgba(var(--brand-rgb), 0.82));
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(var(--brand-rgb), 0.38);
  border: 0;
}

.hp-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hp-trust {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  justify-content: center;
  margin: 0;
  padding: 0.95rem 1rem;
  list-style: none;
  background: rgba(8, 12, 18, 0.58);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
}

.hp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hp-trust i {
  color: var(--hp-metal-bright);
  font-size: 0.78rem;
}

.hp-hero .owl-dots {
  position: absolute;
  bottom: 3.55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.hp-hero .owl-dot span {
  background: rgba(255, 255, 255, 0.4) !important;
}

.hp-hero .owl-dot.active span {
  background: #fff !important;
  width: 22px !important;
}

/* —— Sections —— */
.hp-section {
  padding: 2.75rem 0 0.5rem;
}

.hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hp-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand, #100dd1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hp-section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
  font-weight: 800;
  color: var(--hp-ink);
  line-height: 1.3;
}

.hp-link {
  color: var(--brand, #100dd1) !important;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  text-decoration: none !important;
}

.hp-link i {
  font-size: 0.75rem;
}

/* Price board */
.hp-price-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hp-price-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.2rem;
  background: var(--card, #fff);
  border: 1px solid var(--hp-line);
  box-shadow: 0 12px 30px rgba(15, 20, 35, 0.05);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: 0 16px 36px rgba(15, 20, 35, 0.09);
  color: inherit;
}

.hp-price-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.hp-price-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-muted);
}

.hp-price-chg {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef0f5;
  color: var(--hp-muted);
}

.hp-price-chg.is-up {
  background: #ecfdf5;
  color: #059669;
}

.hp-price-chg.is-down {
  background: #fef2f2;
  color: #dc2626;
}

.hp-price-val {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.hp-price-val small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hp-muted);
}

.hp-price-unit {
  font-size: 0.75rem;
  color: var(--hp-muted);
}

.hp-ticker {
  margin-top: 0.25rem;
}

/* Paths */
.hp-path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hp-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem 0.55rem;
  border-radius: 1.2rem;
  background: var(--card, #fff);
  border: 1px solid var(--hp-line);
  box-shadow: 0 10px 28px rgba(15, 20, 35, 0.05);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hp-path:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 18px 36px rgba(15, 20, 35, 0.1);
  color: inherit;
}

.hp-path.is-hot {
  background: linear-gradient(165deg, var(--brand-soft), var(--card, #fff));
  border-color: rgba(var(--brand-rgb), 0.22);
}

.hp-path-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #f7f9fb, #e2e8ee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--brand);
  font-size: 1.2rem;
  overflow: hidden;
}

.hp-path-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hp-path-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  color: var(--hp-ink);
}

.home-pro .home-hero-classic {
  position: relative;
  z-index: 1;
  margin-bottom: 0.25rem;
}

.home-pro .home-hero-classic .single-hero-slide {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.home-pro .home-hero-classic .single-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 16, 28, 0.78) 0%, rgba(12, 16, 28, 0.45) 48%, rgba(12, 16, 28, 0.2) 100%);
  z-index: 0;
  pointer-events: none;
}

.home-pro .home-hero-classic .single-hero-slide .slide-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.4rem;
}

.home-pro .home-hero-classic .single-hero-slide .slide-text h4 {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.home-pro .home-hero-classic .single-hero-slide .slide-text p {
  max-width: 22rem;
  opacity: 0.92;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .home-pro .home-hero-classic .single-hero-slide {
    min-height: 280px;
  }
}

.home-pro .hp-prices--ticker-only {
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.home-pro .hp-section-head--compact {
  margin-bottom: 0.65rem;
}

.home-pro .hp-section-head--compact h2 {
  font-size: 1.15rem;
}

.home-pro .hp-prices--ticker-only .hp-ticker {
  margin-top: 0;
}
.hp-section-lead {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: var(--hp-muted, #667085);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hp-collect-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-auto-rows: minmax(200px, 1fr);
  gap: 0.9rem;
}

.hp-collect-grid[data-count="1"],
.hp-collect-grid[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}

.hp-collect-grid[data-count="3"] {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.hp-collect-grid[data-count="5"],
.hp-collect-grid[data-count="6"] {
  grid-template-columns: repeat(3, 1fr);
}

.hp-collect {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  text-decoration: none !important;
  color: #fff;
  min-height: 200px;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(15, 20, 35, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hp-collect:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 20, 35, 0.16);
}

.hp-collect--wide {
  grid-row: span 2;
  min-height: 100%;
}

.hp-collect--compact {
  min-height: 170px;
}

.hp-collect-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-collect::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(8, 12, 18, 0.15), transparent 42%),
    linear-gradient(to top, rgba(8, 12, 18, 0.9), rgba(8, 12, 18, 0.18) 58%);
  transition: opacity 0.35s ease;
}

.hp-collect.has-accent::after {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--hp-collect-accent) 55%, transparent), transparent 48%),
    linear-gradient(to top, rgba(8, 12, 18, 0.88), color-mix(in srgb, var(--hp-collect-accent) 25%, transparent) 55%);
}

.hp-collect:hover .hp-collect-bg {
  transform: scale(1.1);
}

.hp-collect-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

.hp-collect-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.28rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hp-collect-copy strong {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.hp-collect--wide .hp-collect-copy strong {
  font-size: 1.55rem;
}

.hp-collect-copy em {
  font-style: normal;
  font-size: 0.86rem;
  opacity: 0.92;
  line-height: 1.5;
  max-width: 18rem;
}

.hp-collect-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.25s ease, gap 0.25s ease;
}

.hp-collect:hover .hp-collect-cta {
  background: rgba(255, 255, 255, 0.24);
  gap: 0.55rem;
}

/* Theme panel */
.hp-theme-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.4rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(15, 20, 35, 0.12);
}

.hp-theme-title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.hp-theme-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 28rem;
}

.hp-theme-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Why */
.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.hp-why-grid article {
  padding: 1.35rem 1.2rem;
  border-radius: 1.25rem;
  background: var(--card, #fff);
  border: 1px solid var(--hp-line);
  box-shadow: 0 10px 26px rgba(15, 20, 35, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hp-why-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.25);
}

.hp-why-grid i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-bottom: 0.85rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.hp-why-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.hp-why-grid p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--hp-muted);
}

/* Magazine */
.hp-article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.hp-article {
  display: block;
  padding: 1.25rem 1.3rem;
  border-radius: 1.25rem;
  background: var(--card, #fff);
  border: 1px solid var(--hp-line);
  box-shadow: 0 10px 26px rgba(15, 20, 35, 0.045);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hp-article:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.3);
  color: inherit;
}

.hp-article strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.hp-article p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--hp-muted);
}

.hp-article > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

/* CTA band */
.hp-cta-band {
  margin: 2.75rem 0.85rem 0.75rem;
  padding: 3.4rem 1.25rem;
  text-align: center;
  color: var(--text, #1a2229);
  background:
    linear-gradient(135deg, var(--brand-soft, #eef0ff) 0%, var(--card, #fff) 48%, rgba(var(--brand-rgb, 16, 13, 209), 0.08) 100%);
  border: 1px solid rgba(var(--brand-rgb, 16, 13, 209), 0.16);
  border-radius: 1.6rem;
  box-shadow: 0 16px 40px rgba(15, 20, 40, 0.07);
}

@media (min-width: 992px) {
  .hp-cta-band {
    margin-inline: auto;
    max-width: 1240px;
  }
}
@media (min-width: 1400px) {
  .home-pro .container {
    max-width: 1320px;
  }
  .hp-cta-band {
    max-width: 1320px;
  }
}

.hp-cta-band .hp-brand {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--brand, #100dd1);
  filter: none;
}

.hp-cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text, #1a2229);
}

.hp-cta-band > .container > p:not(.hp-brand) {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: var(--muted, #6b7680);
}

.hp-cta-band .hp-cta {
  justify-content: center;
}

.hp-cta-band .hp-btn-ghost {
  border-color: rgba(var(--brand-rgb, 16, 13, 209), 0.35);
  color: var(--brand, #100dd1) !important;
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.06);
}

.hp-cta-band .hp-btn-ghost:hover {
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.12);
  border-color: rgba(var(--brand-rgb, 16, 13, 209), 0.5);
}

html[theme-color="dark"] .hp-cta-band {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(var(--brand-rgb), 0.28) 0%, var(--card, #1a2035) 55%, rgba(var(--brand-rgb), 0.12) 100%);
  border-color: rgba(var(--brand-rgb), 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

html[theme-color="dark"] .hp-cta-band .hp-brand {
  color: #c7d2fe;
}

html[theme-color="dark"] .hp-cta-band h2 {
  color: var(--text);
}

html[theme-color="dark"] .hp-cta-band > .container > p:not(.hp-brand) {
  color: var(--muted);
}

html[theme-color="dark"] .hp-cta-band .hp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Reveal */
.hp-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hp-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes hpKenBurns {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@keyframes hpShine {
  0%, 100% { opacity: 0.35; transform: translateX(-8%); }
  50% { opacity: 0.7; transform: translateX(8%); }
}

/* Dark */
html[theme-color="dark"] .hp-path,
html[theme-color="dark"] .hp-why-grid article,
html[theme-color="dark"] .hp-article,
html[theme-color="dark"] .hp-price-card {
  background: var(--card);
  border-color: var(--border);
}

html[theme-color="dark"] .hp-path-icon {
  background: linear-gradient(145deg, #232942, #1a2035);
}

html[theme-color="dark"] .hp-price-chg {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hp-slide {
    min-height: min(68vh, 540px);
    border-radius: 0 0 1.35rem 1.35rem;
    margin-inline: 0.65rem;
  }

  .hp-slide-copy {
    padding: 2.6rem 0 5.1rem;
  }

  .hp-slide-copy h1 {
    max-width: none;
  }

  .hp-price-board {
    grid-template-columns: 1fr;
  }

  .hp-collect-grid,
  .hp-collect-grid[data-count="3"],
  .hp-collect-grid[data-count="5"],
  .hp-collect-grid[data-count="6"] {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(180px, auto);
  }

  .hp-collect--wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 230px;
  }

  .hp-collect--wide .hp-collect-copy strong {
    font-size: 1.3rem;
  }

  .hp-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hp-article-grid {
    grid-template-columns: 1fr;
  }

  .hp-path-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .hp-path {
    padding: 0.85rem 0.3rem;
  }

  .hp-path-icon {
    width: 42px;
    height: 42px;
  }

  .hp-path-title {
    font-size: 0.72rem;
  }

  .hp-theme-panel {
    padding: 1.25rem 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hp-trust {
    font-size: 0.7rem;
    gap: 0.4rem 0.7rem;
  }

  .hp-why-grid {
    grid-template-columns: 1fr;
  }
}

.hp-hero .owl-nav {
  display: none;
}

/* بر اساس جستجو */
.hp-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.5rem 0.45rem 0.85rem;
  border-radius: 1rem;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e8ebf3);
  box-shadow: 0 8px 22px rgba(15, 20, 40, 0.05);
}
.hp-search-bar > i {
  color: var(--muted, #667085);
  font-size: 0.95rem;
}
.hp-search-bar .form-control {
  border: 0;
  box-shadow: none !important;
  background: transparent;
  padding: 0.55rem 0.25rem;
  font-size: 0.95rem;
}
.hp-search-bar button[type="submit"] {
  border: 0;
  border-radius: 0.75rem;
  min-height: 42px;
  padding: 0 1rem;
  background: var(--brand, #100dd1);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.hp-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.hp-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border, #e8ebf3);
  background: var(--card, #fff);
  color: var(--text, #1d2433);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hp-search-chip em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.1);
  color: var(--brand, #100dd1);
}
.hp-search-chip:hover {
  border-color: rgba(var(--brand-rgb, 16, 13, 209), 0.35);
}
.hp-search-chip.is-active {
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.1);
  border-color: rgba(var(--brand-rgb, 16, 13, 209), 0.35);
  color: var(--brand, #100dd1);
}
.hp-search-panel[hidden] {
  display: none !important;
}
html[theme-color="dark"] .hp-search-bar,
html[theme-color="dark"] .hp-search-chip {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
html[theme-color="dark"] .hp-search-bar .form-control {
  color: var(--text);
}

/* پیشنهاد ویژه — اسکرول افقی با کارت استاندارد */
.hp-featured-slide {
  margin-inline: -0.15rem;
}
.hp-featured-slide .owl-stage {
  display: flex;
  align-items: stretch;
}
.hp-featured-slide .owl-item {
  display: flex;
  height: auto;
}
.hp-featured-item {
  width: 100%;
  display: flex;
}
.hp-featured-item .product-card {
  width: 100%;
}
.hp-featured-slide .owl-nav {
  position: absolute;
  inset-inline: 0;
  top: 42%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}
.hp-featured-slide .owl-nav button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2433;
  box-shadow: 0 8px 20px rgba(15, 20, 40, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hp-featured-slide .owl-nav button:hover {
  background: #fff;
  color: var(--brand, #100dd1);
}
.hp-featured-slide .owl-nav button.disabled {
  opacity: 0.35;
  pointer-events: none;
}
html[theme-color="dark"] .hp-featured-slide .owl-nav button {
  background: rgba(24, 28, 42, 0.92);
  color: #f3f4f8;
}
@media (max-width: 575.98px) {
  .hp-featured-slide .owl-nav {
    display: none;
  }
}
