:root {
  --primary: #FF6600;
  --primary-variant: #E65C00;
  --primary-light: #FFF2E8;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --on-surface: #1A1A1A;
  --on-surface-variant: #666666;
  --on-primary: #FFFFFF;
  --border: #EBEBEB;
  --border-strong: #D1D1D1;
  --success: #00B553;
  --error: #E02020;
  --warning: #FF9900;
  --info: #0055FF;
  --shadow-subtle: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-elevated: 0 12px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --secondary: #E80E6B;
  --secondary-light: #FFE9F2;
  --accent-gold: #FFB800;
  --on-surface-faint: #999999;
  --overlay-scrim: rgba(20,16,13,0.55);
  --gradient-primary: linear-gradient(90deg, #FF6600 0%, #FF8A00 100%);
  --gradient-deal: linear-gradient(90deg, #E80E6B 0%, #FF3D3D 100%);
  --font-display: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --hd-header-height: 88px;
  --hd-topbar-height: 38px;
  --hd-catbar-height: 46px;
  --hd-container-width: 1360px;
  --hd-z-header: 1000;
  --hd-z-overlay: 1090;
  --hd-z-drawer: 1100;
  --hd-z-megamenu: 1050;
  --hd-z-cart: 1120;
  --hd-skeleton-base: #EFEFEF;
  --hd-skeleton-shine: #F7F7F7;

  --secondary-variant: #C40A5A;
  --gold-light: #FFF6E0;
  --gold-variant: #E6A400;
  --on-secondary: #FFFFFF;
  --success-light: #E5F9EE;
  --error-light: #FDEAEA;
  --gradient-hero-dark: linear-gradient(135deg, #1A1A1A 0%, #3A2A1A 55%, var(--primary-variant) 100%);
  --gradient-gold: linear-gradient(90deg, #FFB800 0%, #FFD166 100%);
  --gradient-mesh: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16) 0%, transparent 45%), radial-gradient(circle at 85% 75%, rgba(255,255,255,0.12) 0%, transparent 40%);
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --hp-container-width: 1360px;
  --hp-container-pad: 24px;
  --hp-transition-fast: 0.15s ease;
  --hp-transition-base: 0.25s ease;
  --hp-card-media-bg: #F9F9F9;

  /* ---- New tokens for the rebuilt hero (signature: the "khukuri cut") ---- */
  --blade-edge: linear-gradient(100deg, transparent 46%, rgba(255,255,255,0.9) 49%, var(--accent-gold) 50%, rgba(255,255,255,0.9) 51%, transparent 54%);
  --charcoal: #14110D;
  --charcoal-soft: #241C14;
  --hp-hero-radius: 20px;
  --hp-focus-ring: 0 0 0 3px rgba(255,184,0,0.55);
}

/* =========================================================
   HERO — layout
   ========================================================= */

.hp-hero {
  padding: var(--space-lg) 0 0;
  position: relative;
}

.hp-hero-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-md);
  align-items: stretch;
}

/* =========================================================
   STAGE — slide viewport
   ========================================================= */

.hp-hero-stage {
  position: relative;
  border-radius: var(--hp-hero-radius);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-elevated);
  isolation: isolate;
}

.hp-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
}

.hp-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hp-hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
}

/* Product photography layer — sits above the gradient, behind the scrim.
   Each slide's <img> is supplied per-slide in the template (see PHP file). */
.hp-hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hp-hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim ensures headline stays readable over any photo without flattening it */
.hp-hero-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(20,16,13,0.82) 0%, rgba(20,16,13,0.55) 42%, rgba(20,16,13,0.08) 68%, transparent 85%);
}

.hp-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hp-hero-shape-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 60px;
}

.hp-hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: 280px;
  background: rgba(255,255,255,0.06);
}

.hp-hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 0 var(--space-xl);
  max-width: 560px;
  color: var(--on-primary);
}

.hp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  color: var(--on-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.22);
}

.hp-hero-eyebrow .hp-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 0 rgba(255,184,0,0.7);
  animation: hp-pulse 1.8s infinite;
}

@keyframes hp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,184,0,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(255,184,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); }
}

.hp-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--space-sm);
  color: var(--on-primary);
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.hp-hero-title em {
  font-style: normal;
  color: var(--accent-gold);
}

.hp-hero-subtitle {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  max-width: 460px;
}

/* Price/urgency strip — the thing Temu-style marketplaces lean on: a concrete number, not vibes */
.hp-hero-deal-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.hp-hero-deal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hp-hero-deal-price .now {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hp-hero-deal-price .was {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: line-through;
}

.hp-hero-deal-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.hp-hero-deal-timer strong {
  color: var(--on-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.hp-hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: 15px 30px;
  border-radius: var(--radius-full);
  transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast), background var(--hp-transition-fast);
  box-shadow: 0 8px 20px rgba(255,184,0,0.35);
}

.hp-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255,184,0,0.45);
  background: #FFC530;
}

.hp-hero-cta:focus-visible,
.hp-nav-btn:focus-visible,
.hp-hero-dot:focus-visible,
.hp-hero-side-card:focus-visible {
  outline: none;
  box-shadow: var(--hp-focus-ring);
}

.hp-hero-cta i {
  font-size: 0.8em;
}

.hp-hero-cta-secondary {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--hp-transition-fast);
}

.hp-hero-cta-secondary:hover {
  color: var(--on-primary);
}

/* =========================================================
   NAV ARROWS + DOTS
   ========================================================= */

.hp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s, visibility 0.2s, background 0.2s;
}

.hp-nav-left { left: 16px; }
.hp-nav-right { right: 16px; }

.hp-nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hp-nav-btn:hover {
    background: rgba(255,255,255,0.26);
}

.hp-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

/* Back-compat: original markup used .hp-hero-arrow-prev/next as class names.
   Both selectors are kept so either template variant renders correctly. */
.hp-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--hp-transition-fast);
}

.hp-hero-arrow:hover {
  background: rgba(255,255,255,0.26);
}

.hp-hero-arrow-prev { left: 16px; }
.hp-hero-arrow-next { right: 16px; }

.hp-hero-dots {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hp-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  transition: width var(--hp-transition-fast), background var(--hp-transition-fast);
}

.hp-hero-dot.is-active {
  width: 24px;
  background: var(--accent-gold);
}

/* =========================================================
   SIDE RAIL — trust strip + flash deal (replaces decorative icon cards)
   ========================================================= */

.hp-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hp-hero-side-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border);
  transition: box-shadow var(--hp-transition-fast), transform var(--hp-transition-fast);
  min-height: 130px;
  color: var(--on-primary);
}

.hp-hero-side-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

/* Card background photo */
.hp-hero-side-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-side-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,0.05) 0%, rgba(20,16,13,0.78) 100%);
}

.hp-hero-side-card-top .hp-hero-side-media::after {
  background: linear-gradient(180deg, rgba(255,102,0,0.12) 0%, rgba(20,16,13,0.82) 100%);
}

.hp-hero-side-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--charcoal);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: auto;
}

.hp-hero-side-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-hero-side-title {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--on-primary);
}

.hp-hero-side-sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.82);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .hp-hero-container {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 960px) {
  :root {
    --fs-3xl: 2.1rem;
    --fs-2xl: 1.6rem;
    --space-2xl: 56px;
  }

  .hp-hero-container {
    grid-template-columns: 1fr;
  }

  .hp-hero-stage {
    height: 360px;
  }

  .hp-hero-side {
    flex-direction: row;
  }

  .hp-hero-side-card {
    min-height: 110px;
  }

  .hp-hero-slide-content {
    padding: 0 var(--space-lg);
    max-width: 100%;
  }

  .hp-hero-deal-row {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 680px) {
  :root {
    --hp-container-pad: 16px;
    --space-xl: 36px;
    --space-2xl: 44px;
  }

  .hp-hero {
    padding: var(--space-md) 0;
  }

  .hp-hero-stage {
    height: 460px;
  }

  .hp-hero-slide {
    align-items: flex-end;
  }

  .hp-hero-slide-content {
    padding: 0 var(--space-md) var(--space-lg);
  }

  .hp-hero-slide-scrim {
    background: linear-gradient(180deg, rgba(20,16,13,0.15) 0%, rgba(20,16,13,0.88) 68%);
  }

  .hp-hero-title {
    font-size: 1.55rem;
  }

  .hp-hero-subtitle {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-sm);
  }

  .hp-hero-deal-row {
    gap: var(--space-sm);
  }

  .hp-hero-deal-price .now {
    font-size: 1.5rem;
  }

  .hp-hero-cta {
    padding: 13px 24px;
    font-size: var(--fs-sm);
  }

  .hp-hero-cta-secondary {
    display: none;
  }

  .hp-nav-btn,
  .hp-hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hp-hero-side {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero-slide,
  .hp-hero-cta,
  .hp-hero-side-card,
  .hp-nav-btn,
  .hp-hero-arrow {
    transition: none;
  }

  .hp-dot-live {
    animation: none;
  }
}