/**
 * DZD Sooq — Homepage presentation (APPROVED Visual Lock)
 * Ported from docs/previews/homepage/style.css
 * Breakpoints: Mobile ≤767 · Tablet 768–1199 · Desktop ≥1200
 */


.dzd-homepage-engine *,
.dzd-homepage-engine *::before,
.dzd-homepage-engine *::after {
  box-sizing: border-box;
}

body.home .dzd-homepage-engine,
body.front-page .dzd-homepage-engine {
  font-family: var(--dzd-home-font, var(--dzd-font-sans, Inter, system-ui, sans-serif));
  color: var(--dzd-home-text, #1f1a3d);
}

.dzd-home-continue-head {
  margin: 0 0 8px;
  padding: 0 2px;
}

.dzd-home-continue-title {
  margin: 0;
  color: var(--dzd-home-muted, #7a7498);
  font-size: var(--dzd-fs-sm, 15px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dzd-home-loading,
.dzd-home-error {
  margin: 24px 0;
  color: var(--dzd-home-muted, #7a7498);
  font-size: 14px;
}

/* Instant-feel skeleton (no "Loading…" text) */
.dzd-home-skel-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.dzd-home-skel-cat,
.dzd-home-skel-card__media,
.dzd-home-skel-card__line,
.dzd-home-skel-line {
  background: linear-gradient(90deg, #f0ecff 0%, #f8f6ff 45%, #f0ecff 90%);
  background-size: 200% 100%;
  animation: dzd-home-skel 1.15s ease-in-out infinite;
  border-radius: 14px;
}
.dzd-home-skel-cat {
  aspect-ratio: 1 / 1.06;
  border-radius: 20px;
}
.dzd-home-skel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.dzd-home-skel-line.is-title {
  width: min(220px, 45%);
  height: 22px;
}
.dzd-home-skel-line.is-sub {
  width: min(160px, 32%);
  height: 14px;
}
.dzd-home-skel-listings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dzd-home-skel-card__media {
  aspect-ratio: 5 / 4;
  border-radius: 14px 14px 0 0;
}
.dzd-home-skel-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hp-border, #d8dae3);
}
.dzd-home-skel-card__line {
  height: 12px;
  margin: 10px 10px 0;
  width: 78%;
}
.dzd-home-skel-card__line.is-short {
  width: 42%;
  margin-bottom: 12px;
}
@keyframes dzd-home-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 1199px) {
  .dzd-home-skel-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dzd-home-skel-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dzd-home-skel-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dzd-home-skel-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.dzd-homepage-engine {
  --hp-font: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --hp-accent: var(--dzd-color-accent, #5e43d6);
  --hp-text: var(--dzd-color-text, #111322);
  --hp-muted: var(--dzd-color-text-muted, #5b5f73);
  --hp-muted-strong: var(--dzd-color-text-muted-strong, #5b5f73);
  --hp-border: var(--dzd-color-border, #d8dae3);
  --hp-surface: var(--dzd-color-surface, #ffffff);
  --hp-tint: var(--dzd-color-surface-tint, #f6f7fa);
  --hp-wash: var(--dzd-color-page, #eef0f5);
  --hp-radius: var(--dzd-radius-lg, 20px);
  --hp-radius-sm: var(--dzd-radius-md, 16px);
  --hp-shadow-soft: var(--dzd-shadow-soft);
  --hp-shadow-card: var(--dzd-shadow-card);
  --hp-shadow-elevated: var(--dzd-shadow-elevated);
  --hp-shadow-lift: var(--dzd-shadow-hover);
  --hp-ease: var(--dzd-ease, cubic-bezier(0.22, 1, 0.36, 1));
  --hp-duration: 200ms;
  --hp-max: var(--dzd-layout-max, 1310px);
}

.dzd-homepage-engine {
  width: min(var(--hp-max), 100%);
  margin: 0 auto;
  padding: 32px 28px 64px;
  min-width: 0;
}

@media (min-width: 768px) {
  .dzd-homepage-engine {
    padding-left: var(--dzd-layout-gutter, 24px);
    padding-right: var(--dzd-layout-gutter, 24px);
  }
}

.dzd-home-stack {
  display: grid;
  gap: 48px;
  min-width: 0;
  width: 100%;
}

.dzd-home-stack > * {
  min-width: 0;
  max-width: 100%;
}

.dzd-home-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dzd-home-section__title {
  margin: 0;
  font-size: var(--dzd-fs-2xl);
  letter-spacing: var(--dzd-tracking-display, -0.03em);
  font-weight: 800;
}

.dzd-home-section__sub {
  margin: 6px 0 0;
  color: var(--hp-muted);
  font-size: var(--dzd-fs-sm);
  line-height: var(--dzd-lh-body, 1.5);
}

.dzd-home-section__link {
  color: var(--hp-accent);
  font-size: var(--dzd-fs-md);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity var(--hp-duration) var(--hp-ease);
}

.dzd-home-section__link::after {
  content: "→";
  font-weight: 700;
  line-height: 1;
}

[dir="rtl"] .dzd-home-section__link::after,
.rtl .dzd-home-section__link::after {
  content: "←";
}

.dzd-home-section__link:hover {
  opacity: 0.75;
}

.dzd-home-section__link:focus-visible {
  outline: 2px solid var(--hp-accent, #5e43d6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Featured: one-row rail, no carousel arrows, no ugly scrollbar. */
[data-dzd-home-section="featured"] .dzd-home-carousel__nav {
  display: none !important;
}

[data-dzd-home-section="featured"] .dzd-home-rail--featured,
[data-dzd-home-section="featured"] .dzd-home-rail--listings {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, calc((100% - 48px) / 5));
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

[data-dzd-home-section="featured"] .dzd-home-rail--featured::-webkit-scrollbar,
[data-dzd-home-section="featured"] .dzd-home-rail--listings::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

[data-dzd-home-section="featured"] .dzd-home-rail--featured > .dzd-home-card,
[data-dzd-home-section="featured"] .dzd-home-rail--listings > .dzd-home-card {
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 1200px) {
  [data-dzd-home-section="featured"] .dzd-home-rail--featured,
  [data-dzd-home-section="featured"] .dzd-home-rail--listings {
    overflow-x: hidden;
    grid-auto-columns: minmax(0, calc((100% - 48px) / 5));
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  [data-dzd-home-section="featured"] .dzd-home-rail--featured,
  [data-dzd-home-section="featured"] .dzd-home-rail--listings {
    grid-auto-columns: minmax(180px, calc((100% - 36px) / 4));
  }
}

@media (max-width: 767px) {
  [data-dzd-home-section="featured"] .dzd-home-rail--featured,
  [data-dzd-home-section="featured"] .dzd-home-rail--listings {
    grid-auto-columns: minmax(148px, 72vw);
    gap: 10px;
  }
}

[data-empty-hide].is-empty {
  display: none !important;
}

.dzd-home-empty-note {
  display: none;
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed #d9d0ff;
  border-radius: var(--hp-radius-sm);
  background: rgba(246, 244, 255, 0.6);
  color: var(--hp-muted);
  font-size: var(--dzd-fs-sm, 15px);
}

body[data-demo="empty"] .dzd-home-empty-note[data-for] {
  display: block;
}

.dzd-home-cat-grid {
  display: grid;
  gap: 14px;
}

.dzd-home-cat {
  --cat-accent: #5e43d6;
  --cat-bg: #f3efff;
  --cat-glow: 0.34;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--cat-bg);
  border: 1px solid var(--hp-border);
  border-radius: 20px;
  box-shadow: var(--hp-shadow-card);
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  filter var(--hp-duration) var(--hp-ease),
  border-color var(--hp-duration) var(--hp-ease);
}

.dzd-home-cat.is-active {
  border-color: var(--cat-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-accent) 35%, transparent), var(--hp-shadow-card);
}

.dzd-home-cat::before {
  display: none;
}

.dzd-home-cat__glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 36%;
  width: 78%;
  height: 62%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
  ellipse 75% 60% at 50% 48%,
  rgba(94, 67, 214, calc(var(--cat-glow) + 0.06)) 0%,
  rgba(94, 67, 214, calc(var(--cat-glow) * 0.45)) 38%,
  rgba(94, 67, 214, 0) 74%
  );
  filter: blur(22px);
  opacity: 1;
  transition:
  filter 320ms cubic-bezier(0.22, 1, 0.36, 1),
  opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
  transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dzd-home-cat__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  color: var(--cat-accent);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dzd-home-cat__art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 108px;
  max-height: 108px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 14px rgba(45, 30, 113, 0.12));
  pointer-events: none;
  user-select: none;
}

/*
 * Compact homepage categories experiment:
 * denser Avito/OLX-style tiles + reserved empty band for a future promo/ad.
 */
.dzd-homepage-engine .dzd-home-promo-reserve {
  display: none;
}

.dzd-homepage-engine .dzd-home-promo-reserve.dzd-home-self-promo.is-filled {
  display: block;
  margin-top: 12px;
}

.dzd-home-self-promo__banner {
  --dzd-self-promo-accent: #5e43d6;
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 88px;
  padding: 16px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #1f1a3d;
  background:
    linear-gradient(115deg, rgba(94, 67, 214, 0.12) 0%, rgba(94, 67, 214, 0.04) 42%, #f8f7fc 100%),
    #f4f2fb;
  border: 1px solid rgba(94, 67, 214, 0.14);
  box-shadow: 0 8px 24px rgba(31, 26, 61, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dzd-home-self-promo__banner:hover,
.dzd-home-self-promo__banner:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 26, 61, 0.1);
  outline: none;
}

.dzd-home-self-promo__banner.has-bg {
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(94, 67, 214, 0.18) 100%),
    var(--dzd-self-promo-bg);
  background-size: cover;
  background-position: center;
}

.dzd-home-self-promo__glow {
  position: absolute;
  inset-inline-end: -40px;
  top: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 67, 214, 0.22) 0%, rgba(94, 67, 214, 0) 70%);
  pointer-events: none;
}

.dzd-home-self-promo__decor {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 10px;
  width: 72px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(94, 67, 214, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(94, 67, 214, 0.08));
  opacity: 0.7;
  pointer-events: none;
}

.dzd-home-self-promo__decor::before,
.dzd-home-self-promo__decor::after {
  content: '';
  position: absolute;
  border-radius: 8px;
  background: rgba(94, 67, 214, 0.16);
}

.dzd-home-self-promo__decor::before {
  inset-inline-start: 10px;
  top: 10px;
  width: 22px;
  height: 14px;
}

.dzd-home-self-promo__decor::after {
  inset-inline-end: 10px;
  bottom: 8px;
  width: 28px;
  height: 10px;
}

.dzd-home-self-promo__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dzd-home-self-promo__logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(94, 67, 214, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dzd-home-self-promo__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.dzd-home-self-promo__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dzd-home-self-promo__title {
  margin: 0;
  font-size: var(--dzd-fs-lg, 18px);
  font-weight: 750;
  letter-spacing: var(--dzd-tracking-tight, -0.02em);
  line-height: 1.25;
  color: #1f1a3d;
}

.dzd-home-self-promo__desc {
  margin: 4px 0 0;
  font-size: var(--dzd-fs-sm, 15px);
  line-height: 1.4;
  color: #6b6585;
}

.dzd-home-self-promo__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dzd-self-promo-accent);
  color: #fff;
  font-size: var(--dzd-fs-md, 16px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(94, 67, 214, 0.28);
}

@media (max-width: 1199px) {
  .dzd-home-self-promo__banner {
    min-height: 84px;
    padding: 14px 16px;
  }

  .dzd-home-self-promo__decor {
    opacity: 0.45;
  }
}

@media (max-width: 767px) {
  .dzd-home-self-promo__banner {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dzd-home-self-promo__body {
    /* Logo + copy stay on one row; CTA wraps below via flex-basis 100%. */
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  .dzd-home-self-promo__logo {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-self: center;
  }

  .dzd-home-self-promo__logo img {
    width: 28px;
    height: 28px;
  }

  .dzd-home-self-promo__copy {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  .dzd-home-self-promo__title {
    font-size: var(--dzd-fs-lg, 18px);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .dzd-home-self-promo__desc {
    margin-top: 2px;
    font-size: var(--dzd-fs-sm, 15px);
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .dzd-home-self-promo__cta {
    flex: 1 0 100%;
    width: 100%;
    min-height: 42px;
  }

  .dzd-home-self-promo__decor {
    display: none;
  }
}

/* Narrow phones: tighten gap + type so logo + text stay one row without page overflow. */
@media (max-width: 380px) {
  .dzd-home-self-promo__banner {
    padding: 10px 12px;
  }

  .dzd-home-self-promo__body {
    gap: 8px;
  }

  .dzd-home-self-promo__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .dzd-home-self-promo__logo img {
    width: 24px;
    height: 24px;
  }

  .dzd-home-self-promo__title {
    font-size: var(--dzd-fs-md, 16px);
    line-height: 1.28;
  }

  .dzd-home-self-promo__desc {
    font-size: var(--dzd-fs-xs, 14px);
    line-height: 1.32;
  }
}

.dzd-home-cat__art svg {
  display: none;
}

.dzd-home-cat__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  flex: 0 0 auto;
  padding-top: 2px;
  text-align: center;
}

.dzd-home-cat__name {
  margin: 0;
  font-size: var(--dzd-fs-md, 16px);
  font-weight: 700;
  letter-spacing: var(--dzd-tracking-tight, -0.02em);
  line-height: 1.2;
  color: #1f1a3d;
}

.dzd-home-cat__count {
  display: block;
  margin: 0;
  color: #8a84a8;
  font-weight: 500;
  line-height: 1.2;
  flex-shrink: 0;
}

.dzd-home-cat--vehicles {
  --cat-accent: #3d6fd8; --cat-bg: #eaf2ff;
}

.dzd-home-cat--estate {
  --cat-accent: #2f9e6b; --cat-bg: #e8f8ef;
}

.dzd-home-cat--electronics {
  --cat-accent: #5e43d6; --cat-bg: #efeaff;
}

.dzd-home-cat--phones {
  --cat-accent: #6b4ee0; --cat-bg: #f1ebff;
}

.dzd-home-cat--fashion {
  --cat-accent: #d45a88; --cat-bg: #ffeaf2;
}

.dzd-home-cat--health {
  --cat-accent: #c45f9a; --cat-bg: #fff0f7;
}

.dzd-home-cat--jobs {
  --cat-accent: #d4842a; --cat-bg: #fff2e3;
}

.dzd-home-cat--home {
  --cat-accent: #4a8fd8; --cat-bg: #e8f4ff;
}

.dzd-home-cat--sports {
  --cat-accent: #2a9e9a; --cat-bg: #e6f8f6;
}

.dzd-home-cat--motos {
  --cat-accent: #c45f3a; --cat-bg: #ffeee6;
}

.dzd-home-cat--services {
  --cat-accent: #7a5cff; --cat-bg: #f0ebff;
}

.dzd-home-cat--appliances {
  --cat-accent: #4b7bec; --cat-bg: #e8f0ff;
}

.dzd-home-cat--agri {
  --cat-accent: #5a9e3a; --cat-bg: #ebf7e4;
}

.dzd-home-cat--business {
  --cat-accent: #5a6b8c; --cat-bg: #eef1f6;
}

.dzd-home-cat--more {
  --cat-accent: #5e43d6; --cat-bg: #f3efff;
}

.dzd-home-rail {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.dzd-home-grid {
  display: grid;
  gap: 12px;
}

.dzd-home-feed-more {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 8px 0 16px;
}

.dzd-home-feed-more__skel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.dzd-home-feed-more.is-loading .dzd-home-feed-more__skel {
  display: grid;
}

.dzd-home-feed-more__spinner,
.dzd-home-feed-more__label {
  display: none;
}

[data-mobile-only] {
  display: none;
}

.dzd-home-carousel {
  position: relative; min-width: 0; max-width: 100%;
}

.dzd-home-carousel__nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hp-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--hp-shadow-soft);
  color: var(--hp-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--hp-duration) var(--hp-ease), box-shadow var(--hp-duration) var(--hp-ease);
}

.dzd-home-carousel__nav:hover {
  transform: scale(1.08);
  box-shadow: var(--hp-shadow-elevated);
}

.dzd-home-carousel__nav--prev {
  inset-inline-start: -8px;
}

.dzd-home-carousel__nav--next {
  inset-inline-end: -8px;
}

.dzd-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  border-color var(--hp-duration) var(--hp-ease);
}

.dzd-home-card:hover {
  transform: translateY(-2px);
  border-color: var(--dzd-color-border-strong, #c5c8d4);
  box-shadow: var(--hp-shadow-lift);
}

.dzd-home-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hp-surface, #fff);
  transition: transform var(--hp-duration) var(--hp-ease);
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.dzd-home-card:hover .dzd-home-card__media {
  /* Avoid scale transform — it creates a 1px tone fringe under cover images */
  transform: none;
}

/* Tone placeholders only while waiting for a photo — never show under a loaded image */
.dzd-home-card__media[data-tone="warm"]:not(:has(img)) {
  background: linear-gradient(145deg, #ffe8d6, #ffd0b0 50%, #f5b892);
}

.dzd-home-card__media[data-tone="cool"]:not(:has(img)) {
  background: linear-gradient(145deg, #d9ecff, #b9d9f7 50%, #9cc4ea);
}

.dzd-home-card__media[data-tone="green"]:not(:has(img)) {
  background: linear-gradient(145deg, #d9f5e8, #b6e6d0 50%, #8fd4b4);
}

.dzd-home-card__media[data-tone="rose"]:not(:has(img)) {
  background: linear-gradient(145deg, #ffe0ea, #f7c0d2 50%, #e9a0b8);
}

.dzd-home-card__media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  outline: 0;
  vertical-align: bottom;
}

.dzd-home-card__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dzd-home-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 280ms var(--hp-ease), transform 280ms var(--hp-ease);
  background: var(--hp-surface, #fff);
  will-change: opacity, transform;
  pointer-events: none;
  border: 0;
  outline: 0;
}

.dzd-home-card__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.dzd-home-card__slide.is-exit-left {
  opacity: 0;
  transform: translateX(-10px);
}

.dzd-home-card__slide.is-exit-right {
  opacity: 0;
  transform: translateX(10px);
}

.dzd-home-card__slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  opacity: 1;
  /* Kill the classic inline-image baseline gap that can reveal tone colors */
  vertical-align: top;
}

.dzd-home-card__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 26, 61, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--hp-ease);
}

.dzd-home-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(31, 26, 61, 0.08);
  transition:
  background 180ms var(--hp-ease),
  transform 180ms var(--hp-ease),
  width 180ms var(--hp-ease);
}

.dzd-home-card__dot.is-active {
  background: #fff;
  transform: scale(1.15);
  width: 7px;
  height: 7px;
}

.dzd-home-card__badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 26, 61, 0.72);
  color: #fff;
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.dzd-home-card__badge--premium {
  background: var(--hp-accent);
  box-shadow: 0 4px 10px rgba(94, 67, 214, 0.3);
}

.dzd-home-card__delivery {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #ffd400;
  color: #1f1a3d;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.18);
  pointer-events: none;
}

.dzd-home-card__delivery svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Shared Search Results favorite control (same markup/behavior on homepage cards). */
.dzd-homepage-engine .dzd-sr-fav {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #8b83a8;
  box-shadow: var(--dzd-shadow-sm, 0 1px 3px rgba(20, 16, 40, 0.14));
  cursor: pointer;
  transition: transform 160ms var(--hp-ease, ease), color 160ms var(--hp-ease, ease), background 160ms var(--hp-ease, ease);
}

.dzd-homepage-engine .dzd-sr-fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.dzd-homepage-engine .dzd-sr-fav:hover {
  transform: scale(1.06);
  color: var(--hp-accent, #5e43d6);
}

.dzd-homepage-engine .dzd-sr-fav.is-active,
.dzd-homepage-engine .dzd-sr-fav[aria-pressed="true"] {
  color: #fff;
  background: var(--hp-accent, #5e43d6);
}

.dzd-homepage-engine .dzd-sr-fav.is-active svg,
.dzd-homepage-engine .dzd-sr-fav[aria-pressed="true"] svg {
  fill: currentColor;
  stroke: currentColor;
}

.dzd-home-card__body {
  display: grid;
  gap: 3px;
  padding: 9px 9px 10px;
}

.dzd-home-card__title {
  margin: 0;
  font-size: var(--dzd-fs-card-title, var(--dzd-fs-lg));
  font-weight: 700;
  letter-spacing: var(--dzd-tracking-tight, -0.02em);
  line-height: var(--dzd-lh-snug, 1.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dzd-home-card__price {
  margin: 0;
  color: var(--hp-accent);
  font-size: var(--dzd-fs-card-price, var(--dzd-fs-xl));
  font-weight: 800;
  letter-spacing: var(--dzd-tracking-tight, -0.02em);
}

.dzd-home-card__meta {
  margin: 0;
  color: var(--hp-muted);
  font-size: var(--dzd-fs-xs);
}

.dzd-home-loc-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dzd-home-people {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dzd-home-discover {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dzd-home-trust {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dzd-home-loc {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 20px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-border);
  background:
  linear-gradient(160deg, rgba(31, 26, 61, 0.55), rgba(94, 67, 214, 0.55)),
  linear-gradient(135deg, #c8bdf8, #8f7ae0);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--hp-shadow-card);
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease);
}

.dzd-home-loc:nth-child(2) {
  background:
  linear-gradient(160deg, rgba(31, 26, 61, 0.5), rgba(61, 42, 168, 0.55)),
  linear-gradient(135deg, #9cc4ea, #5e8fc4);
}

.dzd-home-loc:nth-child(3) {
  background:
  linear-gradient(160deg, rgba(31, 26, 61, 0.5), rgba(94, 67, 214, 0.45)),
  linear-gradient(135deg, #b6e6d0, #5aa88a);
}

.dzd-home-loc:nth-child(4) {
  background:
  linear-gradient(160deg, rgba(31, 26, 61, 0.55), rgba(94, 67, 214, 0.5)),
  linear-gradient(135deg, #f7c0d2, #c47a96);
}

.dzd-home-loc:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--hp-shadow-lift);
}

.dzd-home-loc__name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dzd-home-loc__count {
  margin: 0;
  font-size: var(--dzd-fs-sm, 15px);
  opacity: 0.9;
}

.dzd-home-people {
  min-width: 0;
}

.dzd-home-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-card);
  text-decoration: none;
  color: inherit;
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  border-color var(--hp-duration) var(--hp-ease);
}

.dzd-home-person:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #d9d0ff;
  box-shadow: var(--hp-shadow-lift);
}

.dzd-home-person__avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--hp-tint);
  border: 1px solid var(--hp-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--hp-accent);
  overflow: hidden;
  flex-shrink: 0;
}

.dzd-home-person__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dzd-home-person__avatar--round {
  border-radius: 999px;
}

.dzd-home-person__name {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dzd-home-person__meta {
  margin: 4px 0 0;
  color: var(--hp-muted);
  font-size: var(--dzd-fs-xs, 14px);
}

.dzd-home-person__trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--hp-tint);
  color: var(--hp-accent);
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
}

.dzd-home-discover {
  min-width: 0;
}

.dzd-home-insight {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-card);
  min-height: 120px;
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  border-color var(--hp-duration) var(--hp-ease);
}

.dzd-home-insight:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #d9d0ff;
  box-shadow: var(--hp-shadow-lift);
}

.dzd-home-insight__label {
  margin: 0;
  color: var(--hp-muted);
  font-size: var(--dzd-fs-xs, 14px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dzd-home-insight__value {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dzd-home-insight__hint {
  margin: auto 0 0;
  color: var(--hp-muted-strong);
  font-size: var(--dzd-fs-sm, 15px);
  line-height: 1.4;
}

.dzd-home-insight__spark {
  height: 36px;
  border-radius: 10px;
  background:
  linear-gradient(90deg, rgba(94, 67, 214, 0.12), rgba(94, 67, 214, 0.28)),
  repeating-linear-gradient(
  -60deg,
  transparent,
  transparent 6px,
  rgba(94, 67, 214, 0.08) 6px,
  rgba(94, 67, 214, 0.08) 12px
  );
}

.dzd-home-trust {
  min-width: 0;
}

.dzd-home-trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 32px;
  border-radius: 28px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-card);
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  border-color var(--hp-duration) var(--hp-ease),
  background var(--hp-duration) var(--hp-ease);
}

.dzd-home-trust-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #d9d0ff;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow: var(--hp-shadow-lift);
}

.dzd-home-trust-card__icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f3efff, #e6deff);
  color: var(--hp-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(94, 67, 214, 0.12);
  transition:
  transform var(--hp-duration) var(--hp-ease),
  box-shadow var(--hp-duration) var(--hp-ease),
  background var(--hp-duration) var(--hp-ease);
}

.dzd-home-trust-card:hover .dzd-home-trust-card__icon {
  transform: scale(1.1) translateY(-2px);
  background: linear-gradient(145deg, #ebe4ff, #d9ceff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 32px rgba(94, 67, 214, 0.22);
}

.dzd-home-trust-card__icon svg {
  width: 40px;
  height: 40px;
}

.dzd-home-trust-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dzd-home-trust-card__desc {
  margin: 0;
  max-width: 240px;
  color: var(--hp-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dzd-home-insight:nth-child(n + 5) {
  display: none !important;
}

@media (min-width: 1200px) {
  .dzd-homepage-engine .dzd-home-cat:hover {
    --cat-glow: 0.48;
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.03);
    box-shadow: var(--hp-shadow-lift);
  }

  .dzd-homepage-engine .dzd-home-cat:hover .dzd-home-cat__art {
    transform: scale(1.05) translateY(-1px);
  }

  .dzd-homepage-engine .dzd-home-cat:hover .dzd-home-cat__glow {
    filter: blur(20px);
    transform: translate(-50%, -52%) scale(1.06);
  }

  .dzd-homepage-engine .dzd-home-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .dzd-homepage-engine .dzd-home-cat {
    aspect-ratio: 1 / 0.78;
    min-height: 0;
    padding: 8px 6px 8px;
    border-radius: 14px;
  }

  .dzd-homepage-engine .dzd-home-cat__art img {
    /* Largest art that still clears name/count inside compact card shell. */
    max-width: 108px;
    max-height: 108px;
  }

  .dzd-homepage-engine .dzd-home-cat__glow {
    top: 34%;
    width: 70%;
    height: 52%;
    filter: blur(14px);
  }

  .dzd-homepage-engine .dzd-home-cat__name {
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 700;
  }

  .dzd-homepage-engine .dzd-home-cat__count {
    font-size: var(--dzd-fs-xs, 14px);
  }

  /*
   * Ad slot mount under categories (RO-AD-1).
   * Hidden until advertising.js fills an active creative — no empty band.
   */
  .dzd-homepage-engine .dzd-home-promo-reserve:not(.is-filled) {
    display: none;
    min-height: 0;
    margin: 0;
  }

  .dzd-homepage-engine .dzd-home-promo-reserve.is-filled {
    display: block;
    margin-top: 12px;
    border-radius: 14px;
  }

  .dzd-homepage-engine [data-dzd-home-section="categories"] {
    margin-bottom: 0;
  }

  .dzd-homepage-engine .dzd-home-grid--listings {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
  }

  .dzd-homepage-engine .dzd-home-grid--listings > .dzd-home-card:nth-child(n + 16) {
    display: none !important;
  }

  .dzd-homepage-engine .dzd-home-rail--listings {
    grid-auto-columns: minmax(0, calc((100% - 48px) / 5));
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-grid--listings .dzd-home-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dzd-homepage-engine .dzd-home-card {
    border-radius: 14px;
  }

  .dzd-homepage-engine .dzd-home-card__media {
    aspect-ratio: 5 / 4;
  }

  .dzd-homepage-engine .dzd-home-card__title {
    font-size: var(--dzd-fs-card-title, var(--dzd-fs-lg));
  }

  .dzd-homepage-engine .dzd-home-card__price {
    font-size: var(--dzd-fs-card-price, var(--dzd-fs-xl));
  }

  .dzd-homepage-engine .dzd-home-card__meta {
    font-size: var(--dzd-fs-xs);
  }

  .dzd-homepage-engine .dzd-home-card__body {
    padding: 9px 9px 10px; gap: 3px;
  }

  .dzd-homepage-engine .dzd-home-card__badge {
    min-height: 22px;
    padding: 0 8px;
    font-size: var(--dzd-fs-xs, 14px);
    top: 8px;
    inset-inline-start: 8px;
  }

  .dzd-homepage-engine .dzd-home-grid:not(.dzd-home-grid--listings) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-card:hover .dzd-home-card__media.dzd-home-card__media--gallery {
    transform: none;
  }

  .dzd-homepage-engine .dzd-home-card__media--gallery {
    cursor: default;
    background: var(--hp-surface, #fff);
  }

  .dzd-homepage-engine .dzd-home-card__media--gallery:hover .dzd-home-card__dots {
    display: flex;
    opacity: 1;
  }

  .dzd-homepage-engine .dzd-home-card__media--gallery.is-scrubbing .dzd-home-card__dots {
    display: flex;
    opacity: 1;
  }

  .dzd-homepage-engine .dzd-home-card__media--gallery .dzd-home-card__badge {
    z-index: 4;
  }

  .dzd-homepage-engine .dzd-home-loc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .dzd-homepage-engine .dzd-home-people {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .dzd-homepage-engine .dzd-home-discover {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .dzd-homepage-engine .dzd-home-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .dzd-homepage-engine .dzd-home-loc-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-people > * {
    min-width: 0;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-discover > * {
    min-width: 0;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-trust > * {
    min-width: 0;
    max-width: 100%;
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  .dzd-homepage-engine {
    padding-top: 24px;
    padding-bottom: 56px;
    padding-left: var(--dzd-layout-gutter, 20px);
    padding-right: var(--dzd-layout-gutter, 20px);
  }

  .dzd-homepage-engine .dzd-home-stack {
    gap: 36px;
  }

  .dzd-homepage-engine .dzd-home-cat:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .dzd-homepage-engine .dzd-home-cat-grid {
    display: grid;
    /* Keep the same left→right, top→bottom order as Desktop (row flow). */
    grid-template-columns: repeat(6, calc((100% - 30px) / 4.35));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Keep swipe/scroll; hide the visible scrollbar on tablet. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    cursor: grab;
  }

  .dzd-homepage-engine .dzd-home-cat-grid.is-dragging {
    cursor: grabbing;
  }

  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar-track,
  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar-thumb {
    display: none;
  }

  .dzd-homepage-engine .dzd-home-cat {
    width: 100%;
    aspect-ratio: 1 / 0.95;
    min-height: 0;
    padding: 10px 8px 10px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .dzd-homepage-engine .dzd-home-cat__art img {
    max-width: 108px;
    max-height: 108px;
  }

  .dzd-homepage-engine .dzd-home-cat__name {
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 700;
  }

  .dzd-homepage-engine .dzd-home-cat__count {
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-homepage-engine .dzd-home-grid--listings > .dzd-home-card:nth-child(n + 16) {
    display: none !important;
  }

  .dzd-homepage-engine .dzd-home-grid--listings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .dzd-homepage-engine .dzd-home-rail--listings {
    grid-auto-columns: minmax(168px, 180px);
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-card {
    border-radius: 14px;
  }

  .dzd-homepage-engine .dzd-home-card__media {
    aspect-ratio: 5 / 4;
  }

  .dzd-homepage-engine .dzd-home-card__title {
    font-size: var(--dzd-fs-card-title, var(--dzd-fs-lg));
  }

  .dzd-homepage-engine .dzd-home-card__price {
    font-size: var(--dzd-fs-card-price, var(--dzd-fs-xl));
  }

  .dzd-homepage-engine .dzd-home-card__meta {
    font-size: var(--dzd-fs-xs);
  }

  .dzd-homepage-engine .dzd-home-card__body {
    padding: 10px 10px 11px; gap: 3px;
  }

  .dzd-homepage-engine .dzd-home-grid:not(.dzd-home-grid--listings) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  .dzd-homepage-engine .dzd-home-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-discover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dzd-homepage-engine .dzd-home-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

}

@media (max-width: 767px), (max-height: 767px) and (max-width: 1199px) {
  .dzd-homepage-engine .dzd-home-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .dzd-homepage-engine {
    padding: 18px 14px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-stack {
    gap: 32px;
  }

  .dzd-homepage-engine .dzd-home-section__title {
    font-size: var(--dzd-fs-xl, 20px);
  }

  .dzd-homepage-engine .dzd-home-section__head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .dzd-homepage-engine .dzd-home-cat:hover {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .dzd-homepage-engine .dzd-home-cat-grid {
    display: grid;
    /* Keep the same left→right, top→bottom order as Desktop (row flow). */
    grid-template-columns: repeat(6, calc((100% - 20px) / 3.22));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Keep swipe/scroll; hide the visible scrollbar on mobile. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    cursor: grab;
  }

  .dzd-homepage-engine .dzd-home-cat-grid.is-dragging {
    cursor: grabbing;
  }

  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar-track,
  .dzd-homepage-engine .dzd-home-cat-grid::-webkit-scrollbar-thumb {
    display: none;
  }

  .dzd-homepage-engine .dzd-home-cat {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    min-height: 0;
    min-width: 0;
    padding: 8px 6px 8px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .dzd-homepage-engine .dzd-home-cat__art {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 58%;
  }

  .dzd-homepage-engine .dzd-home-cat__art img {
    max-width: 52px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .dzd-homepage-engine .dzd-home-cat__label {
    flex: 0 0 auto;
    gap: 1px;
    padding-top: 0;
  }

  .dzd-homepage-engine .dzd-home-cat__name {
    font-size: var(--dzd-fs-sm, 15px);
    font-weight: 700;
    line-height: 1.2;
  }

  .dzd-homepage-engine .dzd-home-cat__count {
    font-size: var(--dzd-fs-xs, 14px);
    line-height: 1.2;
  }

  .dzd-homepage-engine .dzd-home-grid--listings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-rail--listings {
    grid-auto-columns: minmax(148px, 148px);
    gap: 9px;
    padding-bottom: 12px;
  }

  .dzd-homepage-engine .dzd-home-grid--listings > .dzd-home-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dzd-homepage-engine .dzd-home-card {
    border-radius: 12px;
    min-height: 0;
  }

  .dzd-homepage-engine .dzd-home-card__media {
    aspect-ratio: 4 / 3;
  }

  .dzd-homepage-engine .dzd-home-card__title {
    font-size: var(--dzd-fs-card-title, var(--dzd-fs-lg));
    line-height: var(--dzd-lh-snug, 1.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dzd-homepage-engine .dzd-home-card__price {
    font-size: var(--dzd-fs-card-price, var(--dzd-fs-xl));
  }

  .dzd-homepage-engine .dzd-home-card__meta {
    font-size: var(--dzd-fs-xs);
  }

  .dzd-homepage-engine .dzd-home-card__body {
    padding: 8px 8px 9px; gap: 2px;
  }

  .dzd-homepage-engine .dzd-home-card__badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9.5px;
    top: 6px;
    inset-inline-start: 6px;
  }

  .dzd-homepage-engine .dzd-home-card:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .dzd-homepage-engine [data-desktop-tablet-only] {
    display: none !important;
  }

  .dzd-homepage-engine .dzd-home-empty-note {
    display: none !important;
  }

  .dzd-homepage-engine .dzd-home-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .dzd-homepage-engine [data-section="categories"] {
    order: 1; margin-bottom: 0;
  }

  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] {
    order: 2;
  }

  .dzd-homepage-engine .dzd-home-mobile-feed {
    order: 3;
  }

  .dzd-homepage-engine .dzd-home-feed-more {
    order: 4;
  }

  .dzd-homepage-engine [data-feed-block] .dzd-home-section__head {
    display: none !important;
  }

  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-section__head {
    display: none !important;
  }

  .dzd-homepage-engine .dzd-home-continue-head {
    margin: 0 0 8px;
    padding: 0 2px;
  }

  .dzd-homepage-engine .dzd-home-continue-title {
    margin: 0;
    color: var(--hp-muted);
    font-size: var(--dzd-fs-xs, 14px);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  /* Continue Browsing — exactly 3 cards, no horizontal swipe (mobile/phone shell). */
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-grid--listings,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-rail--listings,
  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    gap: 8px;
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
    padding: 2px 0 4px;
    scroll-snap-type: none;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
    touch-action: pan-y;
    cursor: default;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings.is-dragging,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-rail--listings.is-dragging {
    cursor: default;
  }

  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings::-webkit-scrollbar,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-rail--listings::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings::-webkit-scrollbar-track,
  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings::-webkit-scrollbar-thumb,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-rail--listings::-webkit-scrollbar-track,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-rail--listings::-webkit-scrollbar-thumb {
    display: none;
  }

  .dzd-homepage-engine [data-continue-rail].dzd-home-rail--listings .dzd-home-card,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card {
    scroll-snap-align: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Hide any 4th+ card if a stale rail class remains. */
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card:nth-child(n + 4) {
    display: none !important;
  }

  /*
   * Continue browsing prices: narrow rail cards + .dzd-home-card overflow:hidden
   * were clipping the trailing "D" of DZD. Keep amount+currency on one line,
   * never shrink/clip the currency; soft-fit the amount via container units.
   */
  .dzd-homepage-engine [data-continue-rail] .dzd-home-card__body,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card__body {
    container-type: inline-size;
    container-name: dzd-continue-card;
    min-width: 0;
  }

  .dzd-homepage-engine [data-continue-rail] .dzd-home-card__price,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card__price {
    min-width: 0;
    max-width: 100%;
    /* Mild fit only — preserves card price hierarchy (not a tiny price). */
    font-size: clamp(12.5px, 12.75cqi, var(--dzd-fs-card-price, var(--dzd-fs-xl)));
  }

  .dzd-homepage-engine [data-continue-rail] .dzd-home-card__price .dzd-price,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card__price .dzd-price {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dzd-homepage-engine [data-continue-rail] .dzd-home-card__price .dzd-price-currency,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card__price .dzd-price-currency {
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .dzd-homepage-engine [data-continue-rail] .dzd-home-card__price .dzd-price-value,
  .dzd-homepage-engine [data-dzd-home-section="continue_browsing"] .dzd-home-card__price .dzd-price-value {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .dzd-homepage-engine .dzd-home-mobile-feed {
    display: block;
    margin: 0;
    padding: 0;
  }

  .dzd-homepage-engine .dzd-home-grid--feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-grid--feed > .dzd-home-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dzd-homepage-engine [data-feed-block] + [data-feed-block] {
    margin-top: 0;
  }

  .dzd-homepage-engine .dzd-home-feed-more {
    display: flex;
  }

  .dzd-homepage-engine .dzd-home-feed-more.is-loading .dzd-home-feed-more__skel {
    display: grid;
  }

  .dzd-homepage-engine [data-mobile-only] {
    display: flex;
  }

  .dzd-homepage-engine .dzd-home-grid:not(.dzd-home-grid--listings) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dzd-homepage-engine .dzd-home-carousel__nav {
    display: none;
  }

  .dzd-homepage-engine .dzd-home-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-discover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .dzd-homepage-engine .dzd-home-loc {
    min-height: 108px;
    padding: 16px;
    border-radius: 18px;
  }

  .dzd-homepage-engine .dzd-home-loc__name {
    font-size: 15px;
  }

  .dzd-homepage-engine .dzd-home-loc__count {
    font-size: 11.5px;
  }

  .dzd-homepage-engine .dzd-home-person {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    min-width: 0;
  }

  .dzd-homepage-engine .dzd-home-person__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: var(--dzd-fs-sm, 15px);
  }

  .dzd-homepage-engine .dzd-home-person__avatar--round {
    border-radius: 999px;
  }

  .dzd-homepage-engine .dzd-home-person__name {
    font-size: var(--dzd-fs-sm, 15px);
  }

  .dzd-homepage-engine .dzd-home-person__meta {
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-homepage-engine .dzd-home-person__trust {
    margin-top: 6px;
    min-height: 22px;
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-homepage-engine .dzd-home-insight {
    min-height: 0;
    padding: 14px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .dzd-homepage-engine .dzd-home-insight__value {
    font-size: 16px;
  }

  .dzd-homepage-engine .dzd-home-insight__hint {
    font-size: var(--dzd-fs-xs, 14px);
  }

  .dzd-homepage-engine .dzd-home-insight__spark {
    height: 28px;
  }

  .dzd-homepage-engine .dzd-home-trust-card {
    padding: 20px 12px 18px;
    border-radius: 18px;
  }

  .dzd-homepage-engine .dzd-home-trust-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
  }

  .dzd-homepage-engine .dzd-home-trust-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .dzd-homepage-engine .dzd-home-trust-card__title {
    font-size: 14px; margin-bottom: 6px;
  }

  .dzd-homepage-engine .dzd-home-trust-card__desc {
    font-size: var(--dzd-fs-xs, 14px);
    line-height: 1.45;
    max-width: none;
  }

  .dzd-homepage-engine .dzd-home-people > .dzd-home-person:nth-child(n + 3) {
    display: none !important;
  }

}

@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dzd-home-card__slide {
    transition: opacity 120ms linear;
    transform: none !important;
  }
}
