/* BLUESKY STORE — Storefront Layout, Component & Glassmorphic Styles */

/* ── Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-bottom: 1px solid var(--card-border);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.announcement-bar .badge {
  background: var(--primary);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

#announcement-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── Header & Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  filter: drop-shadow(0 4px 10px rgba(56, 189, 248, 0.5));
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-item:hover,
.nav-item.active {
  color: #FFFFFF;
  background: rgba(56, 189, 248, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Buttons */
.btn-nav-cart {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav-cart:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.cart-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  border-radius: 12px;
  padding: 1px 6px;
}

.btn-nav-auth {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav-auth:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.user-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
}

/* ── Homepage Responsive Banner Slider (PC / iPad / Mobile) ── */
.homepage-banner-section {
  max-width: 1180px;
  margin: 22px auto 20px;
  padding: 0 24px;
  box-sizing: border-box;
}

.banner-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  background: #140C16;
}

.banner-track {
  display: flex;
  align-items: center;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
}

.banner-slide img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s;
}

.banner-nav-btn:hover {
  background: rgba(56, 189, 248, 0.28);
}

.banner-nav-btn.prev {
  left: 12px;
}

.banner-nav-btn.next {
  right: 12px;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(15, 11, 24, 0.6);
  padding: 4px 8px;
  border-radius: 12px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.banner-dot.active {
  width: 20px;
  border-radius: 6px;
  background: var(--primary);
}

@media (max-width: 1024px) {
  .homepage-banner-section {
    padding: 0 18px;
    margin: 16px auto 18px;
  }

  .banner-slider-wrap {
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .homepage-banner-section {
    padding: 0 14px;
    margin: 14px auto 18px;
  }

  .banner-slider-wrap {
    border-radius: 14px;
  }

  .banner-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .banner-nav-btn.prev {
    left: 8px;
  }

  .banner-nav-btn.next {
    right: 8px;
  }
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  padding: 60px 24px 50px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--glow);
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--card-bg-hover);
}

/* ── Store Features Banner ── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(22, 33, 62, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Main Catalog Container (Flex child: stretches to eliminate footer gap) ── */
.catalog-section {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 80px;
  flex: 1 0 auto;
}

/* Categories Bar & Search */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .category-pills {
    overflow: visible;
    flex-wrap: wrap;
  }
}

.cat-pill {
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.cat-pill:focus,
.cat-pill:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.cat-pill:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%) !important;
  border: 1.5px solid #38BDF8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.40) !important;
  transform: translateY(-1px);
}

.cat-pill:active {
  transform: scale(0.96) !important;
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 36px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   PRODUCT GRID — Responsive, Modern Redesign v2
   ══════════════════════════════════════════════ */

/* Grid: 4 cols desktop → 3 tablet → 2 mobile */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── Card Shell ── */
.product-card {
  background: rgba(15, 23, 42, 0.72);
  /* Frosted Glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  /* remove browser default focus box */
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.product-card:focus,
.product-card:focus-visible {
  outline: none;
}

/* Subtle light sweep shimmer across card on hover */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.15), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover::before {
  left: 140%;
}

.product-card:hover {
  background: rgba(22, 33, 62, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.22), 0 4px 16px rgba(0, 0, 0, 0.5);
}

@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  /* Mobile: active press state */
  .product-card:active {
    background: rgba(22, 33, 62, 0.90);
    border-color: rgba(56, 189, 248, 0.45);
    transform: scale(0.985);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

/* ── Card Image ── */
.card-img-wrap {
  width: 100%;
  height: 160px;
  /* fixed height: consistent across all cards */
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  position: relative;
  border-radius: 17px 17px 0 0;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .card-img-wrap {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .card-img-wrap {
    height: 118px;
  }
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* Bottom fade on image */
.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Badge on image (Maintenance / custom) */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.45);
  white-space: nowrap;
}

/* Card Delivery Tags (Instant, Timed, OOS) */
.card-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.tag-instant {
  display: none !important;
}

.tag-timed {
  display: none !important;
}

.tag-oos {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Legacy delivery-type badge (kept for compatibility) */
.card-delivery-type {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ── Card Body ── */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 14px 4px;
  position: relative;
  z-index: 1;
  min-height: 0;
}

/* Title */
.card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .card-title {
    font-size: 13px;
  }
}

/* Description — 2-line clamp, flex:1 to push footer down evenly */
.card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  padding-bottom: 8px;
}

/* ── Card Footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Price block */
.price-block {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
  flex-shrink: 1;
}

/* "From" / "Sale" label above price */
.price-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-bottom: 1px;
  line-height: 1;
}

.price-amount {
  font-size: 17px;
  font-weight: 900;
  color: #38BDF8;
  letter-spacing: -0.3px;
  line-height: 1.1;
  white-space: nowrap;
}

.price-original {
  font-size: 10.5px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-top: 1px;
  line-height: 1;
}

@media (max-width: 480px) {
  .price-amount {
    font-size: 15px;
  }
}

/* Order / Top-Up button */
.btn-card-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11.5px;
  padding: 6.5px 14px;
  border-radius: 20px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

.btn-card-order:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0EA5E9 100%);
  color: #FFFFFF;
  border-color: #38BDF8;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.55);
  transform: translateY(-2px) scale(1.04);
}

.btn-card-order:active {
  transform: scale(0.96) translateY(0);
}

@media (max-width: 480px) {
  .btn-card-order {
    font-size: 10.5px;
    padding: 5px 11px;
  }
}

/* Maintenance card border tint */
.maint-card {
  border-color: rgba(245, 158, 11, 0.28) !important;
}

.maint-card:hover {
  border-color: rgba(245, 158, 11, 0.55) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 158, 11, 0.12) !important;
}

/* Legacy compat — card-category used elsewhere */
.card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Legacy card-meta-row kept for compat */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-meta-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ── Professional Empty State ── */
.empty-state-box {
  background: var(--card-bg);
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  max-width: 540px;
  margin: 30px auto;
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Modals & Drawers ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--glow);
  position: relative;
  padding: 28px;
}

.modal-box-large {
  max-width: 780px !important;
}

/* Policy Tabs & Layout */
.policy-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-tab-bar::-webkit-scrollbar {
  display: none;
}

.policy-tab {
  background: var(--card-bg-hover);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.policy-tab:hover {
  color: #fff;
  border-color: var(--primary);
}

.policy-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: var(--primary-soft);
  box-shadow: var(--glow);
}

/* Policy Panels & Content */
.policy-body-scroll {
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -4px;
}

.policy-panel {
  display: none;
}

.policy-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.policy-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-header-row h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.policy-updated {
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.policy-section {
  background: rgba(20, 16, 28, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.policy-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.policy-section p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.policy-section li {
  margin-bottom: 6px;
}

.policy-section li:last-child {
  margin-bottom: 0;
}

.footer-policy-link {
  cursor: pointer;
  display: inline-block;
  padding: 2px 0;
  transition: all 0.2s;
}

.footer-policy-link:hover {
  color: var(--primary) !important;
  transform: translateX(3px);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #15111d;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

/* Variant Pills */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
}

.variant-pill {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.variant-pill:hover {
  border-color: rgba(56, 189, 248, 0.8);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.25);
}

.variant-pill:hover .v-name {
  color: #FFFFFF;
}

.variant-pill:hover .v-price {
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.variant-pill.active {
  border: 2px solid #38BDF8 !important;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.4), 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.12) !important;
  transform: translateY(-2px);
}

.variant-pill.active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38BDF8;
  color: #070A12;
  font-size: 9.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  line-height: 1;
  animation: checkPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.variant-pill:active {
  transform: scale(0.96) translateY(0);
}

.variant-pill .v-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.variant-pill.active .v-name {
  color: #FFFFFF;
  font-weight: 800;
}

.variant-pill .v-price {
  font-size: 14.5px;
  font-weight: 900;
  color: #38BDF8;
  margin-top: 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.variant-pill.active .v-price {
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #0B0F19;
  border-left: 1px solid var(--card-border);
  z-index: 300;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.cart-item-sub {
  font-size: 11.5px;
  color: var(--primary);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1E293B;
  border: 1px solid var(--card-border);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--card-border);
  background: #070A12;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-row.total {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  border-top: 1px solid var(--card-border);
  padding-top: 10px;
  margin-top: 10px;
}

/* Coupon Box */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-input {
  flex: 1;
  background: #0F172A;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.btn-apply-coupon {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(11, 15, 25, 0.95);
  /* Frosted Glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 24px 30px;
  position: relative;
  z-index: 10;
  margin-top: auto !important;
  /* Always sits at the bottom of the viewport */
  width: 100%;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand>div {
    justify-content: center;
  }

  .footer-brand p {
    margin: 10px auto 0;
    text-align: center;
  }

  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-col h4 {
    text-align: center;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .footer-col li {
    text-align: center;
  }

  .footer-col a {
    text-align: center;
  }

  .footer-col-accept {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-accept-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-accept-badges {
    justify-content: center !important;
  }

  .footer-accept-desc {
    text-align: center !important;
  }
}

/* ── Compact Footer on /home/topup Page ── */
/* When customer opens topup page, hide Brand/About and Navigation, but keep Legal & Policies and WE ACCEPT */
body.is-topup-page .footer .footer-brand,
body.is-topup-page .footer .footer-col-nav,
.footer.topup-compact-footer .footer-brand,
.footer.topup-compact-footer .footer-col-nav {
  display: none !important;
}

body.is-topup-page .footer,
.footer.topup-compact-footer {
  padding-top: 28px;
  padding-bottom: max(28px, calc(18px + env(safe-area-inset-bottom)));
}

body.is-topup-page .footer .footer-inner,
.footer.topup-compact-footer .footer-inner {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}

/* Fix Photo #1: Centered footer for mobile on /home/topup */
@media (max-width: 768px) {

  body.is-topup-page .footer,
  .footer.topup-compact-footer {
    text-align: center;
  }

  body.is-topup-page .footer .footer-inner,
  .footer.topup-compact-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
    justify-items: center;
  }

  body.is-topup-page .footer .footer-col,
  .footer.topup-compact-footer .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  body.is-topup-page .footer .footer-col h4,
  .footer.topup-compact-footer .footer-col h4 {
    text-align: center;
  }

  body.is-topup-page .footer .footer-col ul,
  .footer.topup-compact-footer .footer-col ul {
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  body.is-topup-page .footer .footer-col li,
  .footer.topup-compact-footer .footer-col li {
    text-align: center;
  }

  body.is-topup-page .footer .footer-accept-wrap,
  .footer.topup-compact-footer .footer-accept-wrap {
    align-items: center !important;
    text-align: center !important;
  }

  body.is-topup-page .footer .footer-accept-badges,
  .footer.topup-compact-footer .footer-accept-badges {
    justify-content: center !important;
  }

  body.is-topup-page .footer .footer-accept-desc,
  .footer.topup-compact-footer .footer-accept-desc {
    text-align: center !important;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 10px;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Optimized for: Mobile (iOS / iPhone / iPod, Android), iPad / Tablets, PC & Mac
   ========================================================================== */

/* ── Prevent iOS Safari automatic zooming on inputs ── */
@media screen and (max-width: 768px) {

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
    /* Critical: 16px stops iOS Safari auto-zoom */
  }
}

/* ── Global Viewport & Safe Area Defaults ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.navbar {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.footer {
  padding-bottom: max(30px, calc(20px + env(safe-area-inset-bottom)));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ── Tablet / iPad Breakpoint (769px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {

  .catalog-section,
  .features-strip,
  .footer-inner,
  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .features-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ── Mobile Navigation Helper (Hidden on Desktop) ── */
.mobile-subnav {
  display: none;
}

/* ── Mobile Devices (iOS, Android, iPod - <= 768px) ── */
@media (max-width: 768px) {

  /* Announcement Bar on Mobile */
  .announcement-bar {
    justify-content: flex-start;
    padding: 6px 10px;
    font-size: 11px;
    gap: 6px;
    overflow: hidden;
  }

  .announcement-bar .badge {
    font-size: 9px;
    padding: 1.5px 5px;
    flex-shrink: 0;
  }

  #announcement-text {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
  }

  /* Navbar adjustments */
  .navbar {
    height: 60px;
    padding: 0 12px;
    gap: 6px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-badge {
    font-size: 9px;
    padding: 1px 4px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-nav-cart {
    padding: 6px 10px;
    font-size: 12px;
  }

  .btn-nav-auth {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Mobile Quick Sub-Navbar */
  .mobile-subnav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 7px 12px;
    overflow-x: auto;
    white-space: nowrap;
    position: sticky;
    top: 60px;
    z-index: 90;
  }

  .mobile-subnav-item {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
  }

  .mobile-subnav-item.active,
  .mobile-subnav-item:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
  }

  /* Hero Section for Phones */
  .hero-section {
    padding: 34px 16px 28px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 13.5px;
    margin-bottom: 22px;
    padding: 0 4px;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  /* 2x2 Mobile Feature Strip */
  .features-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 30px;
  }

  .feature-card {
    padding: 12px 10px;
    gap: 10px;
    border-radius: 12px;
  }

  .feature-icon-box {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 9px;
  }

  .feature-title {
    font-size: 12px;
    line-height: 1.2;
  }

  .feature-desc {
    font-size: 10.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Catalog & Filter Header */
  .catalog-section {
    padding: 18px 14px 60px;
  }

  .catalog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .category-pills {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 6px;
    gap: 6px;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 7px 13px;
    font-size: 12px;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .search-input {
    padding: 10px 14px 10px 38px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* ── 2-Column Responsive Product Grid & Cards on Mobile (All sizes: 320px - 768px) ── */
  .catalog-section {
    padding: 14px 10px 50px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    padding: 0 !important;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin-bottom: 0 !important;
    border-radius: 13px 13px 0 0 !important;
    overflow: hidden;
  }

  .card-body {
    padding: 9px 10px 6px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .card-title {
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px !important;
    height: auto !important;
    max-height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .card-desc {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    color: var(--text-muted);
    margin: 0 !important;
    padding-bottom: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  /* Card Footer on Mobile: Price on top, full-width button below (ZERO OVERLAP!) */
  .card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 7px 10px 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: auto !important;
  }

  .price-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-width: 0;
    line-height: 1 !important;
  }

  .price-label {
    font-size: 10px !important;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }

  .price-amount {
    font-size: 15px !important;
    font-weight: 900;
    color: var(--primary) !important;
    line-height: 1 !important;
  }

  .price-original {
    font-size: 10px !important;
    color: var(--text-dim);
    text-decoration: line-through;
    line-height: 1 !important;
  }

  .btn-card-order {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 0 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35) !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px;
  }

  .btn-card-order:active {
    transform: scale(0.97);
    background: var(--primary) !important;
    color: #FFFFFF !important;
  }

  /* Full Screen Mobile Cart Drawer (Only on small screens) */
  @media (max-width: 600px) {
    .cart-drawer {
      width: 100vw;
      max-width: 100vw;
      right: -100vw;
      border-left: none;
    }

    .cart-drawer.open {
      right: 0;
    }

    .cart-header {
      padding: 16px 20px;
    }

    .cart-body {
      padding: 16px;
    }

    .cart-footer {
      padding: 16px 20px max(24px, env(safe-area-inset-bottom));
    }

    /* Modals on Mobile: Bottom Sheet Feeling */
    .modal-overlay {
      padding: 0;
      align-items: flex-end;
    }

    .modal-box {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 90dvh !important;
      border-radius: 20px 20px 0 0 !important;
      padding: 22px 18px max(24px, env(safe-area-inset-bottom)) !important;
    }
  }

  /* Footer on Mobile */
  .footer {
    padding: 36px 16px max(24px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-bottom: 24px;
    text-align: center;
    justify-items: center;
  }

  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-col h4 {
    text-align: center;
  }

  .footer-col ul {
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .footer-col li {
    text-align: center;
  }

  .footer-accept-wrap {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-accept-badges {
    justify-content: center !important;
  }

  .footer-accept-desc {
    text-align: center !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
}

/* ── Extra Small Mobile Phones (e.g. iPhone SE, 320px - 375px) ── */
@media (max-width: 375px) {
  .navbar {
    padding: 0 10px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .btn-nav-auth span {
    display: none;
    /* Just show Discord icon to prevent navbar overflow */
  }

  .btn-nav-cart span:not(.cart-badge) {
    display: none;
    /* Just icon + badge on super small screens */
  }

  .features-strip {
    grid-template-columns: 1fr;
  }

  .catalog-section {
    padding: 10px 8px 50px;
  }

  .products-grid {
    gap: 8px !important;
  }

  .card-body {
    padding: 7px 8px 4px !important;
  }

  .card-title {
    font-size: 12px !important;
    max-height: 32px;
  }

  .card-desc {
    font-size: 10px !important;
  }

  .card-footer {
    padding: 6px 8px 8px !important;
    gap: 5px !important;
  }

  .price-amount {
    font-size: 14px !important;
  }

  .price-label {
    font-size: 9px !important;
  }

  .btn-card-order {
    font-size: 10.5px !important;
    padding: 6px 0 !important;
    border-radius: 8px !important;
  }
}

/* ── Ultra Small Screens (e.g. 320px Mobile S) ── */
@media (max-width: 340px) {
  .navbar {
    padding: 0 6px;
    gap: 4px;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 13px;
  }

  .mobile-subnav {
    gap: 4px;
    padding: 5px 6px;
  }

  .mobile-subnav-item {
    font-size: 11px;
    padding: 4px 6px;
  }

  .catalog-section {
    padding: 8px 6px 50px;
  }

  .products-grid {
    gap: 6px !important;
  }

  .card-body {
    padding: 6px 6px 4px !important;
  }

  .card-title {
    font-size: 11.5px !important;
  }

  .card-desc {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }

  .card-footer {
    padding: 5px 6px 7px !important;
    gap: 4px !important;
  }

  .price-amount {
    font-size: 13.5px !important;
  }

  .btn-card-order {
    font-size: 10px !important;
    padding: 5px 0 !important;
  }
}

/* ── PC & Mac Big Size Views (>= 1200px) ── */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .catalog-section,
  .features-strip,
  .footer-inner,
  .footer-bottom {
    max-width: 1220px;
  }
}

/* ── Desktop & Tablet Modal & Drawer Positioning ── */
@media (min-width: 601px) {
  .modal-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 30px 16px !important;
  }

  .modal-box {
    margin: auto !important;
    max-width: 540px !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  }

  .modal-box-large {
    max-width: 720px !important;
  }

  #modal-customer-dashboard .modal-box {
    max-width: 620px !important;
  }

  #modal-track-order .modal-box {
    max-width: 520px !important;
  }

  .cart-drawer {
    width: 420px !important;
    max-width: 90vw !important;
    right: -440px !important;
    border-left: 1px solid var(--card-border) !important;
  }

  .cart-drawer.open {
    right: 0 !important;
  }
}

/* ── Game Top-Up Package Cards ── */
.game-pkg-card {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 14px 14px 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  user-select: none;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-pkg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.game-pkg-card:hover {
  border-color: rgba(56, 189, 248, 0.8);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
}

.game-pkg-card:hover::before {
  opacity: 1;
}

.game-pkg-card:hover .game-pkg-name {
  color: #FFFFFF;
}

.game-pkg-card:hover .game-pkg-price {
  color: #38BDF8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.game-pkg-card.selected {
  border: 2px solid #38BDF8 !important;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px);
}

.game-pkg-card.selected::before {
  opacity: 1;
}

/* Floating Checkmark Pill when Selected */
.game-pkg-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38BDF8;
  color: #070A12;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  line-height: 1;
  animation: checkPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 2;
}

@keyframes checkPopIn {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.game-pkg-card:active {
  transform: scale(0.97) translateY(0);
}

.game-pkg-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 6px;
  line-height: 1.35;
  padding-right: 20px;
  transition: color 0.2s ease;
}

.game-pkg-card.selected .game-pkg-name {
  color: #FFFFFF;
  font-weight: 800;
}

.game-pkg-price {
  font-size: 16px;
  font-weight: 900;
  color: #38BDF8;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.game-pkg-card.selected .game-pkg-price {
  color: #38BDF8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* Custom modern scrollbar for packages grid */
.game-packages-grid::-webkit-scrollbar {
  width: 6px;
}
.game-packages-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
}
.game-packages-grid::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 10px;
}
.game-packages-grid::-webkit-scrollbar-thumb:hover {
  background: #38BDF8;
}

/* Game Top-Up Tutorial Button */
.btn-game-tutorial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-game-tutorial:hover {
  border-color: #38BDF8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.12) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-game-tutorial:active {
  transform: translateY(0) scale(0.99);
}

/* ── Inline Top-Up & Product Page (NO POPUP) ── */
.topup-page-section {
  animation: pageSwitchIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.topup-card-view {
  animation: pageSwitchIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#modal-product-detail,
#modal-game-topup {
  animation: pageSwitchIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Product Detail — G2G-Style Two-Column Layout ── */
#modal-product-detail {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.prod-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* Left Column */
.prod-detail-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prod-detail-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  min-height: 200px;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 340px;
}

/* Product Info Card */
.prod-info-card,
.prod-details-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
}

.prod-info-heading {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  font-family: var(--font-display);
}

.prod-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.prod-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prod-info-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prod-info-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2d9f3;
}

.prod-info-value.highlight {
  color: #34d399;
}

.prod-info-value.timed-color {
  color: #38bdf8;
}

/* Description section */
.prod-desc-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  white-space: pre-line;
  overflow: hidden;
}

.prod-desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-desc-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0 0;
  display: inline-block;
  transition: opacity 0.2s;
}

.prod-desc-toggle:hover {
  opacity: 0.75;
}

/* Right Column (Order Panel) */
.prod-detail-right {
  position: sticky;
  top: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 16px;
  padding: 22px 20px;
}

/* Trust badges */
.prod-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.07);
  border-radius: 10px;
}

.trust-badge-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}

.trust-badge-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* Mobile: single column fluid auto-resize layout */
@media (max-width: 768px) {
  .topup-page-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px 40px !important;
    box-sizing: border-box !important;
  }

  .topup-card-view,
  #modal-product-detail,
  #modal-game-topup {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .prod-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  .prod-detail-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  /* Compact Product Info on Mobile */
  .prod-info-card {
    order: 1 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .prod-info-card .prod-info-heading {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .prod-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .prod-info-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    gap: 2px;
    box-sizing: border-box !important;
  }

  .prod-info-label {
    font-size: 9.5px;
    letter-spacing: 0.3px;
  }

  .prod-info-value {
    font-size: 12px;
    line-height: 1.25;
  }

  .prod-gallery-wrap {
    order: 2 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .prod-gallery-main-container {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Compact Details / Description on Mobile */
  .prod-details-card {
    order: 3 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .prod-details-card .prod-info-heading {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  /* Order Panel on Mobile - Full Width Auto-Resize */
  .prod-detail-right {
    position: static !important;
    order: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
  }

  .prod-detail-img-wrap {
    max-height: 220px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Auto-Resize Package / Variation Pills on Mobile */
  #modal-variants-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .variant-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .variant-pill {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Automated Game Top-Up on Mobile */
  #game-modal-fields-container {
    padding: 14px 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .game-packages-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .game-pkg-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 10px !important;
    min-height: 72px !important;
  }

  .game-pkg-card.selected::after {
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    font-size: 9.5px;
  }
}

/* Desktop: gallery at top of left column */
@media (min-width: 769px) {
  .prod-detail-left {
    display: flex;
    flex-direction: column;
  }

  .prod-gallery-wrap {
    order: 1;
    /* gallery first on desktop */
    margin-bottom: 16px;
  }

  .prod-info-card {
    order: 2;
  }

  .prod-details-card {
    order: 3;
  }
}

/* Screen size under 480px (Mobile M, Mobile S) */
@media (max-width: 480px) {
  .topup-page-section {
    padding: 12px 10px 36px !important;
  }

  .topup-card-view,
  #modal-product-detail,
  #modal-game-topup {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }

  .prod-detail-right {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }

  .prod-info-card,
  .prod-details-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }

  .prod-detail-img-wrap {
    max-height: 180px;
  }

  #game-modal-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Extremely narrow mobile (<= 320px) */
@media (max-width: 330px) {

  .variant-grid,
  .game-packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .variant-pill {
    padding: 8px 4px !important;
  }

  .variant-pill .v-name {
    font-size: 11px !important;
  }

  .variant-pill .v-price {
    font-size: 12px !important;
  }
}






/* ── ABA PayWay Desktop Success Buttons Fix ──
   On desktop the .pw3-d-paid section uses negative margins to bleed to the
   card edges. This causes the button hit-areas to fall behind the overlay.
   We lift the entire desktop popup above the overlay and ensure the frame
   does not clip overflow so the bleed section stays interactive. */
@media (min-width: 769px) {
  #pw3-desktop {
    z-index: 2147483647 !important;
    /* max int — always above overlay */
  }

  #pw3-desktop .pw3-d-frame {
    overflow: visible !important;
    /* allow .pw3-d-paid bleed to remain clickable */
    position: relative;
    z-index: 1;
  }

  #pw3-desktop .pw3-d-paid {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
  }

  #pw3-desktop .pw3-d-btn,
  #pw3-d-receipt,
  #pw3-d-continue {
    position: relative;
    z-index: 3 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
}

/* -- Product Gallery (Detail Page) -- */
.prod-gallery-wrap {
  margin-bottom: 16px;
}

.prod-gallery-main {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: rgba(255, 255, 255, 0.03);
}

.prod-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.prod-gallery-thumb {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.75;
}

.prod-gallery-thumb:hover,
.prod-gallery-thumb.active {
  border-color: var(--primary, #a855f7);
  opacity: 1;
}

/* ── Product Gallery Main Container & Zoom ── */
.prod-gallery-main-container {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
}

.prod-gallery-main-container:hover .prod-gallery-main {
  transform: scale(1.02);
}

.prod-gallery-main {
  transition: transform 0.3s ease;
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(13, 10, 23, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.prod-gallery-main-container:hover .gallery-zoom-badge {
  background: rgba(168, 85, 247, 0.85);
  border-color: #a855f7;
  transform: translateY(-2px);
}

/* ── Product Gallery Lightbox Popup (Full Screen Image View) ── */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(7, 10, 18, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lightboxFadeIn 0.2s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000001;
  transition: all 0.2s;
}

.gallery-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.08);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000001;
  transition: all 0.2s;
  user-select: none;
}

.gallery-lightbox-nav:hover {
  background: var(--primary, #a855f7);
  border-color: var(--primary, #a855f7);
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-nav.prev {
  left: 20px;
}

.gallery-lightbox-nav.next {
  right: 20px;
}

.gallery-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 92vh;
}

.gallery-lightbox-img {
  max-width: 86vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.15);
  transition: transform 0.2s ease-out;
}

.gallery-lightbox-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gallery-lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim, #a78bfa);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 85vw;
  padding: 4px 2px;
}

.gallery-lightbox-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.gallery-lightbox-thumb:hover,
.gallery-lightbox-thumb.active {
  border-color: var(--primary, #a855f7);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .gallery-lightbox-nav.prev {
    left: 8px;
  }

  .gallery-lightbox-nav.next {
    right: 8px;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .gallery-lightbox-img {
    max-width: 94vw;
    max-height: 66vh;
  }
}