/* 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 9s ease-out 1 both;
}

.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 1;
}

.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 / start categories */
.hp-start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .hp-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
.hp-start-card {
  border-radius: 1.25rem;
  border: 1px solid var(--hp-line, rgba(29, 36, 51, 0.08));
  background: var(--card, #fff);
  box-shadow: 0 12px 30px rgba(15, 20, 35, 0.06);
  overflow: hidden;
  padding: 0.85rem;
}
.hp-start-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
}
.hp-start-media {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f9fb, #e2e8ee);
  color: var(--brand);
  font-size: 1.25rem;
}
.hp-start-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-start-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.15rem;
}
.hp-start-copy strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.hp-start-copy em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted, #747794);
}
.hp-start-go {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.1);
  color: var(--brand);
  flex-shrink: 0;
}
.hp-start-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.hp-start-product {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f5f9;
  border: 1px solid rgba(29, 36, 51, 0.06);
}
.hp-start-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html[theme-color="dark"] .hp-start-card {
  background: var(--card);
  border-color: var(--border);
}
html[theme-color="dark"] .hp-start-media,
html[theme-color="dark"] .hp-start-product {
  background: #163a37;
}

.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-magazine .container {
  margin-bottom: 0.85rem;
}

.hp-magazine {
  overflow: visible;
}

.hp-article-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  /* اسکرول‌بار بومی زیر ریل ظاهر زشتی می‌دهد — پنهان؛ اسکرول با لمس/چرخ می‌ماند */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0.2rem 0.35rem;
  padding-inline: max(0.85rem, calc((100vw - min(100vw, 1140px)) / 2 + 0.85rem));
  margin-inline: 0;
}

.hp-article-rail::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

.hp-article {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  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;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .hp-article {
    flex-basis: 300px;
  }
}

.hp-article:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: 0 16px 34px rgba(15, 20, 35, 0.08);
  color: inherit;
}

.hp-article-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(var(--brand-rgb), 0.12), rgba(var(--brand-rgb), 0.04));
  overflow: hidden;
}

.hp-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-article-media.is-empty {
  display: grid;
  place-items: center;
  color: rgba(var(--brand-rgb), 0.55);
  font-size: 1.6rem;
}

.hp-article-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 1.1rem;
  flex: 1;
}

.hp-article-tag {
  align-self: flex-start;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
}

.hp-article strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hp-article p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--hp-muted);
  flex: 1;
}

.hp-article-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.25rem;
}

/* 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: #99f6e4;
}

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); }
}

.hp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.65rem;
}
.hp-cat-card,
.hp-cat-grid > .hp-cat {
  min-width: 0;
}
.hp-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.55rem 0.55rem 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 36, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(15, 20, 40, 0.05);
}
.hp-cat-card > .hp-cat {
  flex: 0 0 auto;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hp-cat-card > .hp-cat:hover {
  transform: none;
  box-shadow: none;
}
.hp-cat-card .hp-cat-subs {
  margin-top: auto;
}
.hp-cat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0.55rem;
  padding: 0.55rem 0.55rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 36, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 20, 40, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hp-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 20, 40, 0.1);
  color: inherit;
}
.hp-cat-media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 0.85rem;
  display: block;
  background: linear-gradient(145deg, #f4f6fb, #e8ecf6);
  overflow: hidden;
  color: var(--brand, #100dd1);
  font-size: 1.15rem;
}
.hp-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-cat strong,
.hp-cat em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-cat strong {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}
.hp-cat em {
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: -0.2rem;
  color: var(--muted, #747794);
}
.hp-cat-subs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: normal;
  gap: 0.28rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hp-cat-subs::-webkit-scrollbar {
  display: none;
}
/* auto margins center chips that fit, without clipping the start when they overflow */
.hp-cat-subs > :first-child {
  margin-inline-start: auto;
}
.hp-cat-subs > :last-child {
  margin-inline-end: auto;
}
.hp-cat-subs.is-scrollable {
  -webkit-mask-image: linear-gradient(to left, #000 82%, transparent);
  mask-image: linear-gradient(to left, #000 82%, transparent);
}
.hp-cat-subs.is-scrollable.is-end {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .hp-cat-subs {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--brand-rgb, 16, 13, 209), 0.3) transparent;
  }
  .hp-cat-subs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .hp-cat-subs::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-rgb, 16, 13, 209), 0.3);
    border-radius: 999px;
  }
}
.hp-cat-sub {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.08);
  color: var(--brand, #100dd1);
  text-decoration: none;
  white-space: nowrap;
}
.hp-cat-sub:hover {
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.16);
  color: var(--brand, #100dd1);
}
.hp-cat-sub--all {
  background: transparent;
  border: 1px dashed rgba(var(--brand-rgb, 16, 13, 209), 0.35);
}
html[theme-color="dark"] .hp-cat-card {
  background: var(--card, #0f2c2a);
  border-color: var(--border, #1a4541);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  color: var(--text, #e8f7f5);
}
html[theme-color="dark"] .hp-cat-card > .hp-cat,
html[theme-color="dark"] .hp-cat-card > .hp-cat:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[theme-color="dark"] .hp-cat {
  background: var(--card, #0f2c2a);
  border-color: var(--border, #1a4541);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  color: var(--text, #e8f7f5);
}
html[theme-color="dark"] .hp-cat:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  border-color: rgba(45, 212, 191, 0.35);
  color: var(--text, #e8f7f5);
}
html[theme-color="dark"] .hp-cat-media {
  background: #0c2422;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.12);
}
html[theme-color="dark"] .hp-cat strong {
  color: var(--text, #e8f7f5);
}
html[theme-color="dark"] .hp-cat em {
  color: var(--muted, #8fb5b0);
}
html[theme-color="dark"] .hp-cat-sub {
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.18);
}
html[theme-color="dark"] .hp-cat-sub:hover {
  background: rgba(45, 212, 191, 0.22);
  color: #99f6e4;
}
html[theme-color="dark"] .hp-cat-sub--all {
  background: transparent;
  border: 1px dashed rgba(45, 212, 191, 0.4);
}
@media (min-width: 768px) {
  .hp-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}
@media (min-width: 992px) {
  .hp-cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.hp-deals-head {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.hp-deals-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

/* تایمر تخفیفی‌ها */
.hp-deal-timer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.4rem 0.55rem 0.4rem 0.75rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(var(--brand-rgb), 0.08) 55%, rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(225, 29, 72, 0.16);
  box-shadow: 0 8px 22px rgba(15, 20, 40, 0.06);
}
.hp-deal-timer__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #be123c;
  white-space: nowrap;
}
.hp-deal-timer__label i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  background: rgba(225, 29, 72, 0.14);
  color: #e11d48;
  animation: hpDealPulse 1.8s ease-in-out infinite;
}
.hp-deal-timer__digits {
  display: flex;
  align-items: stretch;
  gap: 0.28rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-deal-timer__digits > li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  padding: 0.28rem 0.35rem 0.22rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.hp-deal-timer__digits > li.hp-deal-timer__sep {
  min-width: 0;
  padding: 0 0.05rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 800;
  color: #be123c;
  opacity: 0.55;
  align-self: center;
  padding-bottom: 0.85rem;
}
.hp-deal-timer__digits span {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #9f1239;
  min-width: 1.5rem;
  text-align: center;
}
.hp-deal-timer__digits em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--muted, #747794);
  letter-spacing: 0.01em;
}
.hp-deal-timer__digits .seconds {
  color: #e11d48;
  animation: hpDealTick 1s steps(1) infinite;
}

@keyframes hpDealPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}
@keyframes hpDealTick {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.55; }
}

html[theme-color="dark"] .hp-deal-timer {
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(45, 212, 191, 0.08) 55%, rgba(212, 175, 55, 0.1));
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 10px 28px rgba(0, 12, 10, 0.28);
}
html[theme-color="dark"] .hp-deal-timer__label {
  color: #fb7185;
}
html[theme-color="dark"] .hp-deal-timer__label i {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
}
html[theme-color="dark"] .hp-deal-timer__digits > li {
  background: rgba(15, 44, 42, 0.88);
  border-color: rgba(45, 212, 191, 0.14);
  box-shadow: 0 1px 0 rgba(45, 212, 191, 0.06) inset;
}
html[theme-color="dark"] .hp-deal-timer__digits span {
  color: #fecdd3;
}
html[theme-color="dark"] .hp-deal-timer__digits .seconds {
  color: #fb7185;
}
html[theme-color="dark"] .hp-deal-timer__digits em {
  color: var(--muted);
}
html[theme-color="dark"] .hp-deal-timer__sep {
  color: #fb7185;
}

@media (max-width: 575.98px) {
  .hp-deal-timer {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0.5rem;
  }
  .hp-deal-timer__digits > li {
    min-width: 2.35rem;
    padding: 0.22rem 0.28rem 0.18rem;
  }
  .hp-deal-timer__digits span {
    font-size: 0.9rem;
  }
  .hp-deal-timer__digits > li.hp-deal-timer__sep {
    padding-bottom: 0.75rem;
  }
}

.home-pro .product-card .real-price {
  margin-right: 0.35rem;
  color: var(--muted, #747794);
  font-size: 0.78rem;
  text-decoration: line-through;
  font-weight: 500;
}

@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, #163a37, #0f2c2a);
}

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-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;
  }
}
