/* ==========================================================================
   Smart Modules Demo Theme — Landing Page Styles
   Child of Hummingbird. Only landing-specific styles here.
   All variables prefixed --sdp- to avoid collision with parent theme.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --sdp-surface:      #F8FAFC;  /* cool off-white (slate-50) to pair with the azure accent */
  --sdp-surface-2:    #EEF2F6;
  --sdp-ink:          #0F172A;  /* slate-900 */
  --sdp-ink-soft:     #334155;  /* slate-700 */
  --sdp-ink-mute:     #64748B;  /* slate-500 */
  --sdp-rule:         rgba(15, 23, 42, 0.10);
  --sdp-accent:       #0EA5E9;  /* azure / sky — brand accent (sky-500) */
  --sdp-accent-dark:  #0284C7;  /* sky-600 */
  --sdp-accent-text:  #FFFFFF;
  --sdp-good:         #2FB34E;
  --sdp-radius-pill:  999px;
  --sdp-radius-card:  16px;
  --sdp-radius-btn:   10px;
  --sdp-shadow-card:  0 1px 4px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.06);
  --sdp-shadow-hover: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  --sdp-font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; } /* clip (not hidden) = no stray horizontal scroll, keeps sticky nav working */

/* Scope everything so we don't bleed into PS shop pages */
.sdp-hero,
.sdp-jumpnav,
.sdp-features,
.sdp-placements,
.sdp-close,
.sdp-support {
  font-family: var(--sdp-font);
}

/* ---------- Buttons ---------- */
.sdp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--sdp-radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sdp-font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out, opacity 120ms;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.sdp-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sdp-shadow-hover);
  text-decoration: none;
}
.sdp-btn--accent {
  background: var(--sdp-accent);
  color: var(--sdp-accent-text);
  border-color: var(--sdp-accent);
}
.sdp-btn--accent:hover { background: var(--sdp-accent-dark); border-color: var(--sdp-accent-dark); color: #fff; }
.sdp-btn--outline {
  background: transparent;
  color: var(--sdp-ink);
  border-color: rgba(26,20,16,0.28);
}
.sdp-btn--outline:hover { background: var(--sdp-ink); color: #fff; border-color: var(--sdp-ink); }
.sdp-btn--ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.sdp-btn--ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ---------- Kicker ---------- */
.sdp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sdp-ink-mute);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  margin: 0;
}

/* ---------- Hero — video-first variant ---------- */
.sdp-hero {
  position: relative;
  min-height: 620px;
  background-color: var(--sdp-ink);
  overflow: hidden;
}

/* ── Media layer (video or fallback image) ─── */
.sdp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Full-bleed video fill */
.sdp-hero__video,
.sdp-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay — same dot-grid as before, layered above the video */
.sdp-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px) center / 28px 28px,
    linear-gradient(
      160deg,
      rgba(10, 7, 4, 0.82) 0%,
      rgba(10, 7, 4, 0.48) 50%,
      rgba(10, 7, 4, 0.82) 100%
    );
  pointer-events: none;
}

/* Meta caption — sits above overlay, bottom-left of media layer */
.sdp-hero__media-caption {
  position: absolute;
  bottom: 10px;
  left: 16px;
  z-index: 1;
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.3px;
  margin: 0;
  pointer-events: none;
  line-height: 1.3;
}

/* prefers-reduced-motion: pause the hero video and hide it; poster shows via CSS */
@media (prefers-reduced-motion: reduce) {
  .sdp-hero__video {
    display: none;
  }
}

.sdp-hero__inner {
  position: relative;
  z-index: 1;
  padding: 36px 64px 56px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  gap: 40px;
}

/* Top row: logo + badges */
.sdp-hero__toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Logo */
.sdp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: var(--sdp-font);
  text-decoration: none;
}
.sdp-logo:hover { color: #fff; text-decoration: none; }
.sdp-logo__mark {
  width: 34px;
  height: 34px;
  background: var(--sdp-accent);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Compat badges */
.sdp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.sdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--sdp-radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  font-family: var(--sdp-font);
}
.sdp-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sdp-good);
  flex-shrink: 0;
}

/* Headline */
.sdp-hero__headline {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sdp-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, monospace;
}
.sdp-hero__h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  font-family: var(--sdp-font);
}
/* Highlight swipe — marker behind one word */
.sdp-hl {
  position: relative;
  display: inline;
  background-image: linear-gradient(
    transparent 52%,
    var(--sdp-accent) 52%,
    var(--sdp-accent) 94%,
    transparent 94%
  );
  background-size: 100% 100%;
  padding: 0 3px;
}
.sdp-hero__sub {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin: 0;
  font-family: var(--sdp-font);
}
.sdp-hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Jump-nav ---------- */
.sdp-jumpnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sdp-rule);
  padding: 0 64px;
}
.sdp-jumpnav__pills {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 52px;
}
.sdp-jumpnav__pills::-webkit-scrollbar { display: none; }

.sdp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--sdp-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--sdp-ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 130ms, color 130ms;
  flex-shrink: 0;
  font-family: var(--sdp-font);
}
.sdp-pill:hover,
.sdp-pill.is-active {
  background: var(--sdp-surface-2);
  color: var(--sdp-ink);
  text-decoration: none;
}
.sdp-pill.is-active {
  color: var(--sdp-accent);
  background: rgba(232,76,30,0.08);
}
.sdp-pill__index {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  opacity: 0.5;
}
.sdp-pill__sep { opacity: 0.3; }

.sdp-pill--support {
  background: var(--sdp-accent);
  color: var(--sdp-accent-text) !important;
  margin-left: auto;
  font-weight: 600;
}
.sdp-pill--support:hover {
  background: var(--sdp-accent-dark);
  color: #fff !important;
}

/* ---------- Feature cards ---------- */
.sdp-features {
  padding: 24px 64px 8px;
  background: var(--sdp-surface);
}

.sdp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 48px;
  margin: 0 0 20px;
  border: 1px solid var(--sdp-rule);
  border-radius: var(--sdp-radius-card);
  text-decoration: none;
  color: var(--sdp-ink);
  background: #fff;
  box-shadow: var(--sdp-shadow-card);
  scroll-margin-top: 64px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms;
}
a.sdp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sdp-shadow-hover);
  border-color: rgba(232,76,30,0.25);
  text-decoration: none;
  color: var(--sdp-ink);
}
.sdp-card--reverse .sdp-card__text { order: 2; }
.sdp-card--reverse .sdp-card__screenshot { order: 1; }

/* Text column */
.sdp-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sdp-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sdp-card__index {
  font-size: 13px;
  font-weight: 700;
  color: var(--sdp-ink-mute);
  font-family: ui-monospace, monospace;
  background: var(--sdp-surface-2);
  padding: 3px 8px;
  border-radius: 6px;
}
.sdp-card__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--sdp-ink);
  font-family: var(--sdp-font);
}
.sdp-card__blurb {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sdp-ink-soft);
  max-width: 50ch;
  margin: 0;
  font-family: var(--sdp-font);
}
.sdp-card__cta-hint {
  font-size: 14px;
  color: var(--sdp-ink-mute);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}
.sdp-card__url {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--sdp-ink-mute);
  opacity: 0.65;
}
.sdp-card__multi-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sdp-card__bo-btn {
  align-self: flex-start;
  font-size: 13px;
  padding: 8px 16px;
}

/* Credentials */
.sdp-credentials {
  margin-top: 8px;
  padding: 14px 18px;
  background: var(--sdp-surface);
  border-radius: 10px;
  border: 1px solid var(--sdp-rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sdp-credentials__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sdp-credentials__label {
  font-size: 12px;
  color: var(--sdp-ink-mute);
  width: 62px;
  flex-shrink: 0;
  font-family: var(--sdp-font);
}
.sdp-credentials__value {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--sdp-rule);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--sdp-ink);
  font-family: ui-monospace, monospace;
}

/* Back-office — other PrestaShop versions (on-demand) */
.sdp-bo-versions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sdp-bo-versions__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sdp-bo-version {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--sdp-rule);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--sdp-ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sdp-bo-version:hover {
  border-color: var(--sdp-accent);
  transform: translateY(-1px);
  box-shadow: var(--sdp-shadow-hover);
  text-decoration: none;
}
.sdp-bo-version__note {
  font-size: 11px;
  font-weight: 500;
  color: var(--sdp-ink-mute);
  letter-spacing: 0.2px;
}
.sdp-bo-version[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}
.sdp-bo-version[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--sdp-rule);
}

/* Screenshot column */
.sdp-card__screenshot {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sdp-surface-2);
  border: 1px solid var(--sdp-rule);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
}
.sdp-card__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Accent panel — shown when no real screenshot yet */
.sdp-card__screenshot--accent {
  background: linear-gradient(145deg, rgba(232,76,30,0.05) 0%, rgba(232,76,30,0.11) 100%);
  border-color: rgba(232,76,30,0.10);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sdp-card__screenshot--accent::after {
  content: 'PREVIEW';
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--sdp-accent);
  opacity: 0.28;
  font-family: ui-monospace, monospace;
}
.sdp-card__num {
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: var(--sdp-accent);
  opacity: 0.20;
  line-height: 1;
  letter-spacing: -0.06em;
  font-family: var(--sdp-font);
  user-select: none;
}

/* ---------- Placements palette ---------- */
.sdp-placements {
  background: var(--sdp-surface);
  padding: 72px 64px 64px;
  border-bottom: 1px solid var(--sdp-rule);
}
.sdp-placements__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sdp-placements__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.sdp-placements__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--sdp-ink);
  font-family: var(--sdp-font);
}
.sdp-placements__sub {
  font-size: 16px;
  color: var(--sdp-ink-soft);
  margin: 0;
  line-height: 1.5;
  font-family: var(--sdp-font);
}

/* Grid of 5 palette items */
.sdp-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sdp-palette__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--sdp-ink);
  border-radius: var(--sdp-radius-card);
  overflow: hidden;
  border: 2px solid var(--sdp-rule);
  background: #fff;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.sdp-palette__item:hover {
  border-color: rgba(232,76,30,0.30);
  box-shadow: var(--sdp-shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--sdp-ink);
}

/* Player thumbnail area */
.sdp-palette__player {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--sdp-ink);
  overflow: hidden;
}
.sdp-palette__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* iframe placeholder — poster as background, shows until JS swaps in iframe */
.sdp-palette__iframe-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--sdp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sdp-palette__iframe-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Play button overlay */
.sdp-palette__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 150ms;
  z-index: 2;
}
.sdp-palette__item:hover .sdp-palette__play-btn {
  opacity: 0;
}

/* Label below the player */
.sdp-palette__label {
  padding: 8px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sdp-ink);
  font-family: var(--sdp-font);
  letter-spacing: -0.01em;
}

/* All-placements footer link */
.sdp-placements__footer {
  display: flex;
  justify-content: center;
}
.sdp-palette__all {
  font-size: 15px;
  font-weight: 600;
}

/* When video is playing (JS adds class), hide the play button */
.sdp-palette__item.is-playing .sdp-palette__play-btn {
  display: none;
}

/* ---------- Close section ---------- */
.sdp-close {
  background: var(--sdp-surface-2);
  padding: 80px 64px;
  text-align: center;
  border-top: 1px solid var(--sdp-rule);
}
.sdp-close__inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.sdp-close__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--sdp-ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-family: var(--sdp-font);
}
.sdp-close__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* ---------- Support block ---------- */
.sdp-support {
  background: var(--sdp-ink);
  padding: 80px 64px;
  text-align: center;
}
.sdp-support__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.sdp-support .sdp-kicker { color: rgba(255,255,255,0.40); }
.sdp-support__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-family: var(--sdp-font);
}
.sdp-support__body {
  font-size: 17px;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
  margin: 0;
  max-width: 44ch;
  font-family: var(--sdp-font);
}

/* ---------- Demo divider ---------- */
.sdp-demo-divider {
  background: var(--sdp-surface-2);
  border-bottom: 1px solid var(--sdp-rule);
  text-align: center;
  padding: 14px 24px;
}
.sdp-demo-divider__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sdp-ink-mute);
  font-family: ui-monospace, monospace;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .sdp-hero__inner { padding: 28px 40px 48px; }
  .sdp-jumpnav { padding: 0 40px; }
  .sdp-placements { padding: 56px 40px 48px; }
  .sdp-features { padding: 20px 40px 8px; }
  .sdp-card { gap: 40px; padding: 40px 36px; }
  .sdp-close { padding: 64px 40px; }
  .sdp-support { padding: 64px 40px; }
}

@media (max-width: 1023px) {
  /* Palette: 3 columns on medium screens */
  .sdp-palette {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .sdp-hero__inner { padding: 20px 20px 40px; min-height: 520px; gap: 32px; }
  .sdp-hero__toprow { gap: 12px; }
  .sdp-badges { gap: 4px; }
  .sdp-jumpnav { padding: 0 16px; }
  .sdp-placements { padding: 40px 16px 32px; }
  .sdp-features { padding: 16px 12px 4px; }
  .sdp-close { padding: 56px 20px; }

  /* Palette: 2 columns on mobile */
  .sdp-palette {
    grid-template-columns: repeat(2, 1fr);
  }

  .sdp-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .sdp-card--reverse .sdp-card__text { order: 1; }
  .sdp-card--reverse .sdp-card__screenshot { order: 2; }

  .sdp-support { padding: 56px 20px; }
  .sdp-hero__ctas { flex-direction: column; align-items: flex-start; }
  .sdp-hero__h1 { letter-spacing: -0.02em; }
  .sdp-close__ctas { flex-direction: column; }
}

/* Hero brand logo image (module icon) */
.sdp-logo__img { height: 30px; width: auto; display: inline-block; vertical-align: middle; margin-right: 10px; border-radius: 4px; }

/* ============================================================ */
/* Slim sticky top-nav (shared header on every page)            */
/* ============================================================ */

/* The outer hummingbird <header id="header"> just wraps our nav now */
#header.header { background: #fff; box-shadow: 0 1px 0 var(--sdp-rule); padding: 0; border: 0; }
#header.header.fixed,
#header.header.js-sticky-header.fixed { box-shadow: 0 2px 14px rgba(15,23,42,0.10); }

.sdp-nav { background: #fff; font-family: var(--sdp-font); }
.sdp-nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  min-height: 60px; display: flex; align-items: center; gap: 24px;
}

/* Brand */
.sdp-nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.sdp-nav__logo { height: 30px; width: auto; display: block; }

/* Menu */
.sdp-nav__menu { display: flex; align-items: center; gap: 4px; }
.sdp-nav__group { position: relative; }
.sdp-nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: 600 15px/1 var(--sdp-font); color: var(--sdp-ink-soft);
  padding: 10px 12px; border-radius: 8px;
}
.sdp-nav__group:hover .sdp-nav__trigger,
.sdp-nav__group:focus-within .sdp-nav__trigger { color: var(--sdp-ink); background: var(--sdp-surface-2); }
.sdp-nav__caret { font-size: 10px; color: var(--sdp-ink-mute); transition: transform .15s ease; }
.sdp-nav__group:hover .sdp-nav__caret,
.sdp-nav__group:focus-within .sdp-nav__caret { transform: rotate(180deg); color: var(--sdp-accent); }

/* Plain-link trigger (a placement with a single demo, e.g. "Home page"). Matches
   the button triggers but needs its own hover since it's not in a .sdp-nav__group. */
a.sdp-nav__trigger--link { text-decoration: none; }
a.sdp-nav__trigger--link:hover,
a.sdp-nav__trigger--link:focus-visible {
  color: var(--sdp-ink); background: var(--sdp-surface-2); text-decoration: none;
}

/* Dropdown */
.sdp-nav__dropdown {
  position: absolute; top: calc(100% - 4px); left: 0; z-index: 1000;
  min-width: 256px; padding: 8px;
  background: #fff; border: 1px solid var(--sdp-rule); border-radius: 14px;
  box-shadow: var(--sdp-shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sdp-nav__group:hover .sdp-nav__dropdown,
.sdp-nav__group:focus-within .sdp-nav__dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.sdp-nav__dropdown-label {
  display: block; padding: 6px 12px 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--sdp-ink-mute);
}
.sdp-nav__dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--sdp-ink-soft); text-decoration: none;
}
.sdp-nav__dropdown a:hover { background: var(--sdp-surface-2); color: var(--sdp-ink); }
.sdp-nav__dropdown-all {
  margin-top: 6px; border-top: 1px solid var(--sdp-rule);
  font-weight: 600 !important; color: var(--sdp-accent-dark) !important;
}
.sdp-nav__dropdown-all:hover { color: var(--sdp-accent-dark) !important; }

/* Actions (search / account / cart) — pushed right */
.sdp-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sdp-nav__actions > div { display: flex; align-items: center; }
/* Tame the hummingbird widget chrome inside the slim bar */
.sdp-nav__actions .header-block { margin: 0; }
.sdp-nav__actions .header-block__icon,
.sdp-nav__actions .material-icons { color: var(--sdp-ink-soft); }
.sdp-nav__actions a:hover .header-block__icon { color: var(--sdp-accent); }
.sdp-nav__search form { margin: 0; }
.sdp-nav__search input[type="text"] {
  height: 38px; border-radius: var(--sdp-radius-pill); border: 1px solid var(--sdp-rule);
  /* Left padding clears the absolutely-positioned magnifier (.ps-searchbar__magnifier,
     left:.75rem; its box ends ~36px in) with comfortable breathing room; right
     padding clears the clear-button that appears while typing. */
  background: var(--sdp-surface); padding: 0 38px 0 44px; font-size: 14px; min-width: 224px;
}

/* Language switcher — native ps_languageselector <select>, restyled as a slim pill
   to sit alongside the search/account/cart widgets. */
.sdp-nav__lang { display: flex; align-items: center; }
.sdp-nav__lang #_desktop_ps_languageselector,
.sdp-nav__lang .ps-languageselector { margin: 0; }
.sdp-nav__lang select {
  height: 38px; width: auto; min-width: 0;
  border-radius: var(--sdp-radius-pill); border: 1px solid var(--sdp-rule);
  background-color: var(--sdp-surface); color: var(--sdp-ink-soft);
  padding: 0 30px 0 12px; font-size: 14px; line-height: 1; cursor: pointer;
}
.sdp-nav__lang select:hover { border-color: var(--sdp-accent); color: var(--sdp-ink); }

/* Hero top-row now carries badges only → align them right */
.sdp-hero__toprow--badges-only { justify-content: flex-end; }

/* Responsive: collapse menu labels on small screens */
@media (max-width: 767px) {
  .sdp-nav__inner { gap: 12px; padding: 0 14px; position: relative; }
  .sdp-nav__menu { gap: 0; }
  .sdp-nav__trigger { padding: 8px 8px; font-size: 14px; }
  .sdp-nav__search input[type="text"] { min-width: 0; width: 120px; }
  /* Dropdowns: anchor to the nav bar (not the trigger) so a 256px menu can't
     overhang the viewport and drag the page sideways; keep them usable. */
  .sdp-nav__group { position: static; }
  .sdp-nav__dropdown { left: 14px; right: 14px; min-width: 0; width: auto; }
  /* Reclaim width so the cart isn't clipped: drop the search icon (the two demo
     dropdowns are the real nav) and tighten the gaps. */
  .sdp-nav__inner { gap: 8px; }
  .sdp-nav__actions { gap: 4px; }
  .sdp-nav__actions > .sdp-nav__search { display: none; } /* beat .sdp-nav__actions > div{display:flex} */
  .sdp-nav__logo { height: 24px; }          /* trim wordmark so the cart fits with padding */
  .sdp-nav__trigger { padding: 8px 6px; }
}

/* ── Landing product-card rows (smarthomelistings displaySmartHomeListingRow) ── */
/* width:100% needed because .sdp-placements__inner is a flex column. */
.sdp-row { width: 100%; max-width: 1200px; margin: 0 auto 3.5rem; padding: 0 1rem; }
.sdp-deck { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: .5rem; }
.sdp-democard {
  display: flex; flex-direction: column; width: 200px;
  border: 1px solid var(--sdp-rule, #e5e7eb); border-radius: 12px; overflow: hidden;
  background: #fff; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.sdp-democard:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); }
.sdp-democard__media { display: block; aspect-ratio: 4 / 3; background: #f3f4f6; overflow: hidden; }
.sdp-democard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdp-democard__label { display: block; padding: 12px 14px 2px; font-weight: 600; font-size: 15px; line-height: 1.25; }
.sdp-democard__cta { display: block; padding: 0 14px 14px; font-size: 13px; color: var(--sdp-accent, #2563eb); margin-top: auto; }
.sdp-row__footer { text-align: center; margin-top: 1rem; }

/* Mobile: 2 columns of larger cards instead of one narrow centered column. */
@media (max-width: 767px) {
  .sdp-deck { gap: 12px; }
  .sdp-democard { width: calc(50% - 6px); }
  .sdp-democard__label { font-size: 14px; padding: 10px 10px 2px; }
  .sdp-democard__cta { padding: 0 10px 10px; }
}

/* ── Feature group: explanation card + its demo deck fused into ONE unit ──────
 * The deck used to float on the page surface below the card (different width,
 * big gap) so the products "didn't seem to belong to that section". The group
 * now carries the single border/shadow/radius; the card sits flush on top and
 * the deck becomes an attached, tinted "See it live" drawer beneath it. */
.sdp-feature-group {
  margin: 0 0 20px;
  border: 1px solid var(--sdp-rule);
  border-radius: var(--sdp-radius-card);
  background: #fff;
  box-shadow: var(--sdp-shadow-card);
  scroll-margin-top: 64px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms;
}
/* Lift the whole unit while the cursor is anywhere inside it — the white card OR
   the grey "see it live" drawer — so the float persists across the whole card-like
   element instead of dropping when you move from the card onto the deck. */
.sdp-feature-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--sdp-shadow-hover);
  border-color: rgba(232, 76, 30, 0.25);
}
/* The card no longer carries its own frame — the group provides it. */
.sdp-feature-group > .sdp-card {
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  background: transparent;
}
.sdp-feature-group > a.sdp-card:hover { transform: none; } /* group handles the lift */

/* The attached demo drawer. */
.sdp-feature-group > .sdp-row {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 22px 48px 28px;
  background: var(--sdp-surface-2);
  border-top: 1px solid var(--sdp-rule);
  border-bottom-left-radius: var(--sdp-radius-card);
  border-bottom-right-radius: var(--sdp-radius-card);
}
.sdp-feature-group > .sdp-row::before {
  content: "SEE IT LIVE";
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sdp-ink-mute);
}
/* Align the mini-cards under the label (the standalone deck centred them). */
.sdp-feature-group > .sdp-row .sdp-deck { justify-content: flex-start; margin-top: 0; }
.sdp-feature-group > .sdp-row .sdp-row__footer { text-align: left; }

@media (max-width: 1199px) {
  .sdp-feature-group > .sdp-row { padding: 20px 36px 24px; }
}
@media (max-width: 767px) {
  .sdp-feature-group > .sdp-row { padding: 16px 20px 20px; }
  .sdp-feature-group > .sdp-row .sdp-deck { justify-content: center; }
}

/* ── Product flags above the productvideo hover video ───────────────────────
 * The productvideo listing hover effect reveals a video over the product image
 * at z-index:1. The Hummingbird "New"/"Sale" flags are also z-index:1 but sit
 * earlier in the DOM, so the video painted over them. Lift the flags so they
 * stay visible on top of the revealed video (the Quick View bar already sits
 * above it by DOM order). */
.product-flags { z-index: 3; }
/* The hover video holder uses will-change:transform (its own stacking context),
   so a bare z-index on .product-flags isn't compared against it. Make the card
   top a stacking context so the flag's z-index actually outranks the video. */
.product-miniature__top { isolation: isolate; }

/* Center the listing play button over the card image (play-button demo). The
   button is already absolutely positioned within .product-miniature__top. */
.product-miniature__top .pv_popupvideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 4;
}
/* The module's generic hover lift (.pv_popupvideo:hover { transform: translateY(-1px) })
   REPLACES the whole transform, dropping the centering above so the button jumped
   ~62px right / ~14px down on hover. Re-apply the centering so hover only nudges it
   up by 1px (and active returns it to centre). */
.product-miniature__top .pv_popupvideo:hover,
.product-miniature__top .pv_popupvideo:focus-visible {
    transform: translate(-50%, -50%) translateY(-1px);
}
.product-miniature__top .pv_popupvideo:active {
    transform: translate(-50%, -50%);
}

/* ---------- Intro banner (below top nav, all pages) ---------- */
.sdp-intro-banner {
  background: rgba(14, 165, 233, 0.08);   /* sky-500 @ 8% */
  border-bottom: 1px solid rgba(14, 165, 233, 0.18);
  padding: 12px 24px;
  font-family: var(--sdp-font);
  text-align: center;
}
.sdp-intro-banner__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sdp-intro-banner__headline {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--sdp-ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
  /* Keep the pill + tagline on a single line on desktop. */
  white-space: nowrap;
}
/* Blue brand pill that opens the headline, inline with the tagline. */
.sdp-intro-banner__pill {
  display: inline-block;
  vertical-align: baseline;
  background: var(--sdp-accent);
  color: var(--sdp-accent-text);
  border-radius: var(--sdp-radius-pill);
  padding: 2px 12px;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sdp-intro-banner__body {
  margin: 0;
  font-size: 13px;
  color: var(--sdp-ink-soft);
  line-height: 1.5;
}
@media (max-width: 767px) {
  .sdp-intro-banner { padding: 10px 16px; text-align: left; }
  .sdp-intro-banner__headline { font-size: 14px; white-space: normal; }
  .sdp-intro-banner__body { font-size: 12px; }
}

/* Active demo highlight in the nav dropdowns (set by header.tpl script). */
.sdp-nav__dropdown a.is-active {
    background: rgba(37, 99, 235, .10);
    color: var(--sdp-accent, #2563eb);
    font-weight: 600;
    border-radius: 8px;
}
.sdp-nav__group--active > .sdp-nav__trigger {
    color: var(--sdp-accent, #2563eb);
    font-weight: 600;
}
