/* ================================================================
   GPK HERO SLIDER — Responsive, 70vh, fluid typography
   ================================================================ */

/* ---------- Keyframes ---------- */
@keyframes gpkFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gpkFadeLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gpkFadeRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gpkProgressFill {
  from { width: 0%; }
  to   { width: 100%; }
}
@keyframes gpkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.4); }
  50%       { box-shadow: 0 0 0 7px rgba(245,166,35,0); }
}

/* ================================================================
   WRAPPER
   ================================================================ */
.gpk-hero {
  position: relative;
  overflow: hidden;
  background: #050d1a;
  user-select: none;
}

/* Decorative gradient mesh */
.gpk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 68% 50%, rgba(12,35,75,0.85) 0%, transparent 65%),
    radial-gradient(ellipse 55% 80% at 12% 50%, rgba(18,45,95,0.45) 0%, transparent 58%),
    radial-gradient(ellipse 35% 45% at 50% 100%, rgba(8,22,50,0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   TRACK  — 70 vh tall, flex row
   ================================================================ */
.gpk-slider-track-wrap {
  height: 70vh;
  min-height: 460px;       /* never collapse below this on desktop */
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
}

.gpk-slider-track {
  display: flex;
  height: 100%;            /* fill the 70 vh track-wrap */
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   INDIVIDUAL SLIDE
   ================================================================ */
.gpk-slide {
  min-width: 100%;
  height: 100%;            /* fill the track height → 70 vh */
  display: flex;
  align-items: center;     /* vertically centre all content */
  position: relative;
  overflow: hidden;
}

.gpk-slide[data-slide-url] { cursor: pointer; }

/* Two-column grid, vertically centred */
.gpk-slide-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

/* ================================================================
   LEFT — TEXT CONTENT
   ================================================================ */
.gpk-slide-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* -- Badge -- */
.gpk-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(245,166,35,0.5);
  border-radius: 100px;
  padding: clamp(5px, 0.7vh, 8px) clamp(12px, 1.5vw, 20px);
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  font-weight: 700;
  color: #f5a623;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: clamp(14px, 2vh, 22px);
  opacity: 0;
}

/* -- Main title (white) -- */
.gpk-slide-title {
  font-size: clamp(1.65rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 clamp(2px, 0.3vh, 6px);
  opacity: 0;
  letter-spacing: -0.01em;
}

/* -- Accent title (orange) -- */
.gpk-slide-title-accent {
  font-size: clamp(1.65rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #f5a623;
  margin: 0 0 clamp(14px, 2vh, 24px);
  opacity: 0;
  letter-spacing: -0.01em;
}

/* -- Description -- */
.gpk-slide-desc {
  font-size: clamp(0.82rem, 1.1vw, 0.97rem);
  color: #8fa0b8;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: clamp(16px, 2.2vh, 26px);
  opacity: 0;
}

/* -- Feature list -- */
.gpk-slide-features {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(20px, 2.8vh, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.1vh, 13px);
  opacity: 0;
}

.gpk-slide-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.8rem, 1vw, 0.91rem);
  color: #c5d3e0;
  line-height: 1.4;
}

.gpk-slide-feature i {
  color: #22c55e;
  font-size: clamp(0.85rem, 1vw, 1rem);
  flex-shrink: 0;
}

/* -- CTA buttons -- */
.gpk-slide-cta {
  display: flex;
  gap: clamp(10px, 1.2vw, 16px);
  flex-wrap: wrap;
  opacity: 0;
}

.gpk-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5a623;
  color: #111111;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 700;
  padding: clamp(10px, 1.3vh, 14px) clamp(18px, 2vw, 28px);
  border-radius: 100px;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.gpk-btn-primary:hover {
  background: #ffc14a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.38);
  color: #111;
}

.gpk-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 600;
  padding: clamp(10px, 1.3vh, 14px) clamp(18px, 2vw, 28px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.28);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.gpk-btn-outline:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* ================================================================
   RIGHT — PRICE PANEL
   ================================================================ */
.gpk-slide-right {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.gpk-price-panel {
  background: rgba(10, 22, 50, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: clamp(14px, 1.5vw, 22px);
  padding: clamp(24px, 3.5vh, 40px) clamp(24px, 3vw, 42px);
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.gpk-panel-price {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 900;
  color: #f5a623;
  line-height: 1;
  margin-bottom: clamp(6px, 0.8vh, 12px);
  letter-spacing: -0.025em;
}

.gpk-panel-old-price {
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  color: #526070;
  text-decoration: line-through;
  margin-bottom: clamp(10px, 1.3vh, 16px);
}

.gpk-panel-note {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 700;
  padding: clamp(4px, 0.6vh, 7px) clamp(12px, 1.4vw, 18px);
  border-radius: 100px;
  margin-bottom: clamp(18px, 2.5vh, 30px);
  letter-spacing: 0.04em;
}

/* Product selector buttons */
.gpk-panel-items {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(7px, 0.9vw, 11px);
  justify-content: center;
}

.gpk-panel-item {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 100px;
  color: #bccad8;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 500;
  padding: clamp(5px, 0.7vh, 8px) clamp(11px, 1.3vw, 16px);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.18s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.gpk-panel-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-1px);
}
.gpk-panel-item.active {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.55);
  color: #93c5fd;
}

/* ================================================================
   BOTTOM CONTROLS (dots only)
   ================================================================ */
.gpk-hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.5vh, 18px) 0 clamp(16px, 2vh, 24px);
  background: #050d1a;
}

/* Dots */
.gpk-hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpk-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
  flex-shrink: 0;
}
.gpk-dot.active {
  width: 26px;
  background: #f5a623;
  animation: gpkPulse 2s infinite;
}

/* ================================================================
   SIDE ARROWS — absolutely positioned left / right of the track
   ================================================================ */
.gpk-hero-prev,
.gpk-hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: clamp(38px, 3.5vw, 52px);
  height: clamp(38px, 3.5vw, 52px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5,13,26,0.55);
  color: #c5d3e0;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gpk-hero-prev { left: clamp(12px, 2vw, 28px); }
.gpk-hero-next { right: clamp(12px, 2vw, 28px); }

.gpk-hero-prev:hover,
.gpk-hero-next:hover {
  background: #f5a623;
  border-color: #f5a623;
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

/* Progress bar */
.gpk-hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f5a623, #ffd370);
  z-index: 3;
  border-radius: 0 2px 2px 0;
}
.gpk-hero-progress-bar.running {
  animation: gpkProgressFill var(--gpk-interval, 6s) linear forwards;
}

/* ================================================================
   ENTER ANIMATIONS  (applied when .gpk-slide--active is added by JS)
   ================================================================ */
.gpk-slide--active .gpk-slide-badge {
  animation: gpkFadeLeft 0.5s ease 0.05s both;
}
.gpk-slide--active .gpk-slide-title {
  animation: gpkFadeUp 0.5s ease 0.14s both;
}
.gpk-slide--active .gpk-slide-title-accent {
  animation: gpkFadeUp 0.5s ease 0.22s both;
}
.gpk-slide--active .gpk-slide-desc {
  animation: gpkFadeUp 0.5s ease 0.3s both;
}
.gpk-slide--active .gpk-slide-features {
  animation: gpkFadeUp 0.5s ease 0.38s both;
}
.gpk-slide--active .gpk-slide-cta {
  animation: gpkFadeUp 0.5s ease 0.46s both;
}
.gpk-slide--active .gpk-slide-right {
  animation: gpkFadeRight 0.6s ease 0.18s both;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ---- Large desktop (≥1400px) — give a touch more breathing room ---- */
@media (min-width: 1400px) {
  .gpk-slide-inner {
    grid-template-columns: 52% 1fr;
  }
}

/* ---- Tablet landscape / small desktop (960–1199px) ---- */
@media (max-width: 1199px) {
  .gpk-slide-inner {
    grid-template-columns: 54% 1fr;
    gap: clamp(24px, 3vw, 48px);
  }
}

/* ---- Tablet portrait (768–959px) — switch to 1 column ---- */
@media (max-width: 959px) {
  /* Let height grow beyond 70vh so stacked content isn't clipped */
  .gpk-slider-track-wrap {
    height: auto;
    min-height: 70vh;
  }

  .gpk-slide {
    align-items: flex-start;
    padding: clamp(40px, 6vh, 64px) 0 clamp(36px, 5vh, 56px);
  }

  .gpk-slide-inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vh, 44px);
  }

  .gpk-slide-right {
    justify-content: flex-start;
  }

  .gpk-price-panel {
    max-width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 20px;
    row-gap: 10px;
  }

  .gpk-panel-price     { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .gpk-panel-old-price { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .gpk-panel-note      { grid-column: 2; grid-row: 1 / 3; margin-bottom: 0; align-self: center; }
  .gpk-panel-items     { grid-column: 1 / 3; grid-row: 3; justify-content: flex-start; }
}

/* ---- Mobile landscape / large phone (600–767px) ---- */
@media (max-width: 767px) {
  .gpk-slider-track-wrap {
    min-height: 65vh;
  }

  /* Reset price panel back to column layout */
  .gpk-price-panel {
    display: block;
    text-align: center;
  }
  .gpk-panel-note { margin-bottom: clamp(14px, 2vh, 22px); }

  .gpk-slide-desc {
    max-width: 100%;
  }
}

/* ---- Small mobile (≤599px) ---- */
@media (max-width: 599px) {
  .gpk-slider-track-wrap {
    min-height: 60vh;
  }

  .gpk-slide {
    padding: clamp(28px, 5vh, 48px) 0 clamp(24px, 4vh, 40px);
  }

  /* Hide price panel on very small screens to keep it clean */
  .gpk-slide-right {
    display: none;
  }

  .gpk-slide-badge {
    margin-bottom: clamp(10px, 1.5vh, 16px);
  }

  .gpk-slide-features {
    gap: clamp(6px, 1vh, 10px);
    margin-bottom: clamp(16px, 2.5vh, 26px);
  }

  /* Stack buttons vertically on very small screens */
  .gpk-slide-cta {
    flex-direction: column;
    gap: 10px;
  }

  .gpk-btn-primary,
  .gpk-btn-outline {
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }

  .gpk-hero-controls {
    padding: 10px 16px 14px;
    gap: 12px;
  }
}

/* ---- Extra small / old phones (≤380px) ---- */
@media (max-width: 380px) {
  .gpk-slider-track-wrap {
    min-height: 55vh;
  }

  .gpk-slide-features {
    /* Show only first 3 features to save space */
    max-height: calc(3 * (1em * 1.4 + 8px));
    overflow: hidden;
  }
}

/* ---- Short screens / landscape phone (height < 500px) ---- */
@media (max-height: 500px) {
  .gpk-slider-track-wrap {
    height: auto;
    min-height: 360px;
  }

  .gpk-slide {
    padding: 20px 0 20px;
  }

  .gpk-slide-features {
    display: none; /* too little space, hide features */
  }

  .gpk-slide-desc {
    display: none;
  }

  .gpk-slide-badge {
    margin-bottom: 10px;
  }

  .gpk-slide-title,
  .gpk-slide-title-accent {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 8px;
  }
}
