/* ============================================================
   Gulf Lab Packages — Premium Card Slider  v2.0
   Primary brand color: #088144
   ============================================================ */

:root {
  --glpkg-primary:       #088144;
  --glpkg-primary-dark:  #065f31;
  --glpkg-primary-light: #e8f5ee;
  --glpkg-savings:       #c0392b;
  --glpkg-card-w:        540px;
  --glpkg-gap:           24px;
  --glpkg-radius:        16px;
  --glpkg-img-h:         245px;
  --glpkg-shadow:        0 2px 16px rgba(0,0,0,.09);
  --glpkg-shadow-hover:  0 12px 40px rgba(0,0,0,.18);
  --glpkg-ease:          cubic-bezier(.4,0,.2,1);
  --glpkg-card-h:        calc(var(--glpkg-card-w) * 1.25);
}

/* ── Section ─────────────────────────────────────────────── */

.glpkg-section {
  padding: 60px 0 80px;
  overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────── */

.glpkg-header {
  text-align: center;
  margin-bottom: 18px;
}

.glpkg-badge {
  display: inline-block;
  padding: 5px 18px;
  background: transparent;
  color: var(--glpkg-primary);
  border: 1.5px solid var(--glpkg-primary);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.glpkg-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

/* ── Filter tabs ─────────────────────────────────────────── */

.glpkg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 36px;
  padding: 0 24px;
}

.glpkg-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #555;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.glpkg-tab:hover {
  border-color: var(--glpkg-primary);
  color: var(--glpkg-primary);
  box-shadow: 0 2px 10px rgba(8,129,68,.15);
}

.glpkg-tab.is-active {
  background: var(--glpkg-primary);
  border-color: var(--glpkg-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8,129,68,.35);
}

/* ── Slider shell ─────────────────────────────────────────── */

.glpkg-slider-wrapper {
  position: relative;
  padding: 0 56px;
}

/* ── Nav buttons ─────────────────────────────────────────── */

.glpkg-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.glpkg-nav svg {
  width: 20px;
  height: 20px;
}

.glpkg-nav:hover:not(:disabled) {
  background: var(--glpkg-primary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(8,129,68,.4);
  transform: translateY(-50%) scale(1.07);
}

.glpkg-nav:disabled {
  opacity: .3;
  cursor: default;
}

.glpkg-nav--prev { left: 10px; }
.glpkg-nav--next { right: 10px; }

/* ── Track ────────────────────────────────────────────────── */

.glpkg-track-outer {
  overflow: hidden;
  padding: 8px 4px 16px;
  margin: -8px -4px -16px;
}

.glpkg-track {
  display: flex;
  gap: var(--glpkg-gap);
  transition: transform .45s var(--glpkg-ease);
  will-change: transform;
  align-items: flex-start;
}

.glpkg-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* ── Card ─────────────────────────────────────────────────── */

.glpkg-card {
  flex: 0 0 var(--glpkg-card-w);
  width: var(--glpkg-card-w);
  height: var(--glpkg-card-h);
  position: relative;
  background: #fff;
  border-radius: var(--glpkg-radius);
  box-shadow: var(--glpkg-shadow);
  overflow: hidden;
  user-select: none;
  transition: none;
}

.glpkg-card:hover {
  box-shadow: var(--glpkg-shadow);
}

/* ── Scroll-in animation (CSS `translate` keeps it separate
      from the hover `transform`, so both compose cleanly) ── */

.glpkg-animate {
  opacity: 0;
  translate: 0 32px;
  transition: opacity .65s ease, translate .65s ease;
}

.glpkg-animate.is-visible {
  opacity: 1;
  translate: 0 0;
}

.glpkg-card:nth-child(1) { transition-delay: .04s; }
.glpkg-card:nth-child(2) { transition-delay: .12s; }
.glpkg-card:nth-child(3) { transition-delay: .20s; }
.glpkg-card:nth-child(4) { transition-delay: .04s; }
.glpkg-card:nth-child(5) { transition-delay: .12s; }
.glpkg-card:nth-child(6) { transition-delay: .20s; }

/* ── Image area (fixed height, relative — children absolute within it) */

.glpkg-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f0f2f5;
}

/* ── Crossfade variant images ───────────────────────────────── */

.glpkg-var-images {
  position: absolute;
  inset: 0;
}

.glpkg-var-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease, transform .6s ease;
  transform: scale(1);
}

.glpkg-var-img.is-active { opacity: 1; }

/* ── Variant dots (top-center, pill indicator) ──────────────── */

.glpkg-var-dots {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 5px;
  align-items: center;
}

.glpkg-var-dot {
  height: 7px;
  width: 7px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s, width .3s cubic-bezier(.4,0,.2,1);
  padding: 0;
}

.glpkg-var-dot.is-active {
  background: #fff;
  width: 22px;
  border-color: #fff;
}

/* ── Lightbox expand button (top-right) ─────────────────────── */

.glpkg-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.82);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease, background .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.glpkg-card-image:hover .glpkg-expand-btn { opacity: 1; transform: scale(1); }
.glpkg-expand-btn:hover { background: #fff; }

.glpkg-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--glpkg-primary);
  background: var(--glpkg-primary-light);
  border: 1px solid rgba(8,129,68,.2);
  padding: 3px 9px;
  border-radius: 50px;
}

/* ── Variant tabs (sliding pill indicator) ──────────────────── */

.glpkg-var-tabs {
  position: relative;
  display: flex;
  background: #f3f4f6;
  border-radius: 50px;
  padding: 4px;
  margin: 0 0 10px;
  gap: 0;
  overflow: hidden;
}

.glpkg-var-tab {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: color .25s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.glpkg-var-tab.is-active { color: #fff; }

.glpkg-var-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--glpkg-primary) 0%, var(--glpkg-primary-dark) 100%);
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 10px rgba(8,129,68,.4);
  z-index: 1;
  pointer-events: none;
}

/* ── Variant panels ─────────────────────────────────────────── */

.glpkg-var-panel {
  display: none;
  flex-direction: column;
  gap: 11px;
  padding: 0;
}

.glpkg-var-panel.is-active {
  display: flex;
  animation: glpkg-fade-in .28s ease forwards;
}

@keyframes glpkg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Savings badge — percentage + amount ────────────────────── */

.glpkg-savings-badge small {
  font-size: .8em;
  font-weight: 500;
  opacity: .8;
  margin-left: 2px;
}

/* ── Variant image navigation arrows ─────────────────────────── */

.glpkg-var-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.82);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: background .2s, opacity .25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.glpkg-var-nav svg { width: 16px; height: 16px; }

.glpkg-var-nav:disabled { opacity: 0 !important; cursor: default; pointer-events: none; }
.glpkg-var-nav:hover:not(:disabled) { background: #fff; }

.glpkg-var-nav--prev { left: 10px; }
.glpkg-var-nav--next { right: 10px; }

.glpkg-card:hover .glpkg-var-nav:not(:disabled) { opacity: 1; }
.glpkg-card.is-open .glpkg-var-nav { display: none; }

/* (stagger animations removed — card body is always visible) */

/* ── Single image ─────────────────────────────────────────── */

.glpkg-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

/* ── In-card image slider ─────────────────────────────────── */

.glpkg-img-slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.glpkg-img-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}

.glpkg-img-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.glpkg-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.glpkg-img-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.88);
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s;
}

.glpkg-img-btn:hover { background: #fff; }
.glpkg-img-prev { left: 8px; }
.glpkg-img-next { right: 8px; }

.glpkg-img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 20;
}

.glpkg-img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.glpkg-img-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

/* ── Icon SVG reset (prevent theme CSS from collapsing our SVGs) ── */

.glpkg-expand-btn svg,
.glpkg-overlay-close svg,
.glpkg-var-nav svg,
.glpkg-details-btn svg,
.glpkg-nav svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  height: auto;
  max-width: none;
}

.glpkg-expand-btn svg   { width: 16px; height: 16px; }
.glpkg-overlay-close svg{ width: 15px; height: 15px; }
.glpkg-var-nav svg      { width: 16px; height: 16px; }
.glpkg-details-btn svg  { width: 14px; height: 14px; }
.glpkg-nav svg          { width: 20px; height: 20px; }

/* ── Ribbon badge ─────────────────────────────────────────── */

.glpkg-ribbon {
  position: absolute;
  top: 16px;
  left: 0;
  z-index: 15;
  background: #e53935;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 5px 14px 5px 16px;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,.22);
}

.glpkg-ribbon::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  display: none;
}

/* ── Lightbox expand hint (bottom-right corner on image hover) */

.glpkg-expand-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.glpkg-card-image:hover .glpkg-expand-hint {
  opacity: 1;
  transform: scale(1);
}

/* WhatsApp icon (used in location bar) */
.glpkg-wa-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── No-image gradient face ───────────────────────────────── */

.glpkg-card-face {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--glpkg-primary) 0%, var(--glpkg-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.glpkg-face-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 12px;
}

.glpkg-face-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

/* ── Card body ────────────────────────────────────────────── */

.glpkg-card-body {
  flex: 1;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.glpkg-cat-pill {
  display: inline-block;
  background: var(--glpkg-primary-light);
  color: var(--glpkg-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 50px;
  align-self: flex-start;
}

.glpkg-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.35;
}

/* ── Price ────────────────────────────────────────────────── */

.glpkg-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.glpkg-price-orig {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.glpkg-price-offer {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--glpkg-primary);
  line-height: 1;
}

.glpkg-price-cur {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--glpkg-primary);
  opacity: .85;
}

.glpkg-savings-badge {
  display: inline-flex;
  align-items: center;
  background: #fef2f2;
  color: var(--glpkg-savings);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid #fecaca;
  white-space: nowrap;
  margin-top: 4px;
}

/* ── Variant description ──────────────────────────────────── */

.glpkg-var-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 4px;
}

/* ── Info badges ──────────────────────────────────────────── */

.glpkg-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.glpkg-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.glpkg-info-badge--date {
  color: #6b21a8;
  background: #faf5ff;
  border-color: #e9d5ff;
}

/* ── Tests / services — horizontal capsule tags ───────────── */

.glpkg-tests {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.glpkg-tests-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--glpkg-primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

/* Capsule pill list — each line = one pill, wraps into rows */
.glpkg-tests-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: hidden;
  max-height: 108px; /* ~3 rows of 30px pills */
  transition: max-height .45s ease;
}

.glpkg-tests-tags.is-open {
  max-height: 1200px;
}

.glpkg-tests-tags li {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--glpkg-primary);
  background: var(--glpkg-primary-light);
  border: 1.5px solid rgba(8,129,68,.18);
  white-space: nowrap;
  line-height: 1.3;
}

.glpkg-tests-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  background: none;
  border: none;
  color: var(--glpkg-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}

.glpkg-tests-toggle:hover { color: var(--glpkg-primary-dark); }

/* ── Location bar ─────────────────────────────────────────── */

.glpkg-loc-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 10px 6px;
  background: var(--glpkg-primary);
  border-radius: 0;
  padding: 12px 14px;
  flex-shrink: 0;
}

.glpkg-loc-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

/* Location name as WhatsApp link — icon never clipped */
.glpkg-loc-name-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: opacity .2s;
}

.glpkg-loc-name-wa:hover { opacity: .8; }

/* Icon is never overflow-hidden — only the text span gets ellipsis */
.glpkg-loc-name-wa .glpkg-wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.glpkg-loc-name-wa span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Fallback when no WA number is set */
.glpkg-loc-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.glpkg-loc-phone {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.glpkg-loc-phone:hover { color: #fff; }

/* ── View Details button — absolute bottom of card image ───── */

.glpkg-details-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(8,129,68,.96) 0%, rgba(8,129,68,.55) 100%);
  color: #fff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s;
}

.glpkg-details-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.glpkg-details-btn:hover { background: linear-gradient(to top, rgba(6,95,49,.98) 0%, rgba(6,95,49,.7) 100%); }

/* ── Slide-up overlay — ALL details ──────────────────────────── */

.glpkg-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 88%;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}

.glpkg-card.is-open .glpkg-card-overlay { transform: translateY(0); }
.glpkg-card.is-open { transform: none !important; }

/* Drag handle bar at top of overlay */
.glpkg-overlay-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px 4px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.glpkg-overlay-top::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.glpkg-overlay-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  line-height: 1;
}

.glpkg-overlay-close:hover { background: #fee2e2; color: #dc2626; }

.glpkg-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 20px 20px;
}

/* Prevent items from stretching full width in flex column */
.glpkg-overlay-body .glpkg-cat-pill,
.glpkg-overlay-body .glpkg-duration { align-self: flex-start; }

.glpkg-overlay-body .glpkg-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.glpkg-card-overlay .glpkg-var-panel { padding: 0; gap: 12px; }

/* ── Head row: info left, price right — always side by side ── */
.glpkg-overlay-head-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 38px; /* clear the absolute-positioned close button */
}

.glpkg-overlay-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.glpkg-overlay-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* Tight price group: orig → offer → savings badge */
.glpkg-overlay-right .glpkg-price-panel {
  align-items: flex-end;
  gap: 2px;
}

/* ── Darken card image when overlay is open ───────────────── */

.glpkg-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .38s ease;
  z-index: 25;
  pointer-events: none;
}

.glpkg-card.is-open .glpkg-card-image::after {
  background: rgba(0,0,0,.52);
}

/* ── Lightbox ─────────────────────────────────────────────── */

.glpkg-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.glpkg-lb.is-open {
  opacity: 1;
  pointer-events: all;
}

.glpkg-lb-img-wrap {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glpkg-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 56px rgba(0,0,0,.65);
  transition: opacity .2s;
}

.glpkg-lb-img.is-loading { opacity: .25; }

.glpkg-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.glpkg-lb-close:hover { background: rgba(255,255,255,.25); }

.glpkg-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.glpkg-lb-nav:hover { background: rgba(255,255,255,.25); }
.glpkg-lb-nav--prev { left: 14px; }
.glpkg-lb-nav--next { right: 14px; }

.glpkg-lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
}

/* ── Admin notice ─────────────────────────────────────────── */

.glpkg-admin-notice {
  padding: 14px 18px;
  background: #fff8dc;
  border-left: 4px solid #ffb900;
  border-radius: 4px;
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
  :root {
    --glpkg-card-w: 440px;
    --glpkg-gap:    20px;
  }

  .glpkg-slider-wrapper { padding: 0 56px; }
}

/* Mobile: vertical stack, no slider, full-width cards */
@media (max-width: 640px) {

  .glpkg-section        { padding: 36px 0 48px; }
  .glpkg-slider-wrapper { padding: 0; }

  .glpkg-nav { display: none !important; }

  .glpkg-track-outer {
    overflow: visible;
    padding: 4px 0 8px;
    margin: -4px 0 -8px;
  }

  .glpkg-track {
    flex-direction: column;
    gap: 20px;
    transform: none !important;
    transition: none !important;
  }

  .glpkg-card         { width: 100%; flex: 0 0 auto; height: calc(100vw * 1.25); }
  .glpkg-var-dots     { display: none; }
  .glpkg-var-nav      { display: none !important; }
}

/* ── Touch devices: disable hover-only visual effects ─────── */

@media (hover: none) {
  .glpkg-card:hover {
    transform: none;
    box-shadow: var(--glpkg-shadow);
  }

  .glpkg-card:hover .glpkg-single-img,
  .glpkg-card:hover .glpkg-img-slide img {
    transform: none;
  }

  .glpkg-card-image:hover .glpkg-expand-hint { opacity: 0; }
}
