/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Body — default light theme (Amazon-style) */
body {
  margin: 0;
  padding: 0;
  padding-bottom: 70px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f3f3f3;
  color: #111;
  min-height: 100vh;
  overflow-x: hidden;
}

html, body {
  height: auto !important;
}

/* ===== GLOBAL LOADING SYSTEM ===== */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #22c55e);
  z-index: 9999;
  transition: width 0.3s ease;
}

.product-card.skeleton {
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  pointer-events: none;
}

.product-card.skeleton .skeleton-img {
  height: 180px;
  background: #e5e7eb;
  border-radius: 8px;
}

.product-card.skeleton .skeleton-text {
  height: 14px;
  background: #e5e7eb;
  margin-top: 10px;
  border-radius: 4px;
}

.product-card.skeleton .skeleton-text.small {
  width: 60%;
}

@keyframes skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.button-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.button-loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

/* ===== FULL SCREEN CENTER LOADER (app style) ===== */
button:disabled {
  cursor: not-allowed;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.9;
}

#appLoader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#appLoader.active {
  visibility: visible;
  opacity: 1;
}
#appLoader .app-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.2);
  border-top: 8px solid #ffffff;
  animation: spinApp 0.8s linear infinite;
}
@keyframes spinApp {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notifications — viewport center; above FAB (#requestBtn z-index 100000) + bottom nav */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: #111827;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 1;
  z-index: 1000000;
  animation: toastIn 0.28s ease;
  max-width: min(92vw, 380px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  pointer-events: none; /* never block clicks */
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ----- Small website notification (payout / in-app — above bottom nav, not full-screen) ----- */
.website-mini-notify-wrap {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(120%);
  z-index: 1000002; /* above FAB (100000) + bottom nav */
  max-width: min(94vw, 400px);
  width: max-content;
  min-width: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.website-mini-notify-wrap.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.website-mini-notify-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(6, 95, 70, 0.15);
  font-size: 12.5px;
  line-height: 1.4;
  color: #064e3b;
  font-weight: 600;
}
.website-mini-notify__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
}
.website-mini-notify__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.website-mini-notify__close {
  flex-shrink: 0;
  margin: -4px -4px -4px 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: #047857;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  opacity: 0.85;
}
.website-mini-notify__close:hover {
  opacity: 1;
  background: rgba(6, 78, 59, 0.08);
}

.network-error {
  text-align: center;
  padding: 20px;
  color: #ef4444;
  font-weight: 500;
}

/* ===== AMAZON-STYLE TOP HEADER (Fixed - never moves) ===== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  height: 70px;
  z-index: 12000;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Header layout: logo | search | links */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 10px 15px;
  min-height: 70px;
  flex-wrap: nowrap;
  overflow: visible;
}

.top-header .logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.top-header .logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.top-header .logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #ff9900 !important;
  letter-spacing: 0.5px;
}

.top-header .logo:hover .logo-text {
  color: #ffb84d !important;
}

@media (max-width: 600px) {
  .top-header .logo-img {
    width: 26px;
    height: 26px;
  }

  .top-header .logo-text {
    font-size: 18px;
  }
}

/* Header search bar */
.top-header .search-container {
  flex: 0 0 350px;
  min-width: 250px;
  display: flex;
  align-items: center;
  height: 38px;
  background: white;
  border-radius: 4px;
  position: relative;
  overflow: visible;
  margin: 0;
  max-width: 400px;
  position: relative;
  z-index: 1002;
}

.top-header .search-container .search-wrapper {
  flex: 1;
  display: flex;
  position: relative;
  min-width: 0;
}

.top-header .search-container .suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 250px;
  z-index: 9999 !important;
  margin-top: 2px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  background: #ffffff !important;
  color: #000 !important;
  box-sizing: border-box;
  z-index: 99999 !important;
}

/* FINAL FIX — search dropdown overlay */
.search-container {
  position: relative;
}

.search-suggestions,
.search-dropdown,
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 99999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.top-header .search-container input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  color: #111;
}

.top-header .search-voice-btn,
.top-header .mic-btn {
  background: #fff !important;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  color: #131921 !important;
  font-size: 18px;
  z-index: 10000;
  position: relative;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 36px;
  height: 100%;
}

.top-header .search-voice-btn:hover,
.top-header .mic-btn:hover {
  color: #000 !important;
  background: #f5f5f5 !important;
}

.top-header .search-container .search-voice-btn,
.top-header .search-container .mic-btn {
  color: #131921 !important;
  font-size: 20px;
  line-height: 1;
}

.top-header .search-btn {
  width: 50px;
  background: #febd69;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 0 4px 4px 0;
}

.top-header .search-btn:hover {
  background: #f3a847;
}

/* Voice status popup */
.voice-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #131921;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  display: none;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: voiceFadeIn 0.3s ease;
}

/* Mic pulse animation when listening */
.mic-btn.listening {
  animation: micPulse 1s infinite;
  color: #fff !important;
  background: #e53935 !important;
}

@keyframes micPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes voiceFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Right menu (original menu style) */
.top-header .custom-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.top-header .custom-menu::-webkit-scrollbar { display: none; }

/* Keep autocomplete panel above all content (no clipping by header containers) */
.top-header,
.header-container,
.top-header .search-container,
.top-header .search-container .search-wrapper {
  overflow: visible !important;
}

.top-header .custom-menu .nav-link {
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}

.top-header .custom-menu .nav-link:hover {
  color: #ff9900 !important;
}

/* Hamburger dropdown menu */
.top-header .menu-btn {
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  color: white;
}

.top-header .menu-btn:hover {
  color: #ff9900;
}

/* Small laptop fix */
@media (max-width: 1280px) {
  .top-header .custom-menu {
    gap: 10px;
  }
  .top-header .custom-menu .nav-link {
    font-size: 13px;
  }
  .top-header .search-container {
    flex: 0 0 280px;
  }
}

/* Very small laptop tuning */
@media (max-width: 1100px) {
  .top-header .custom-menu .nav-link {
    font-size: 12px;
  }
  .top-header .search-container {
    flex: 0 0 240px;
  }
}

/* Force same-line layout at all breakpoints */
@media (max-width: 1024px), (max-width: 900px) {
  .top-header {
    flex-direction: row !important;
  }
  .header-container {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }
  .top-header .custom-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
  }
}

.menu-dropdown {
  position: fixed;
  top: 70px;
  right: 16px;
  background: white;
  color: #111;
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 999;
}

.menu-dropdown.active {
  display: flex;
}

.menu-dropdown-item {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 14px;
}

.menu-dropdown-item:last-child {
  border-bottom: none;
}

.menu-dropdown-item:hover {
  background: #f5f5f5;
}

/* Force white text in header */
.top-header,
.top-header * {
  color: white !important;
}

.top-header .search-container input {
  color: #111 !important;
}

.top-header .search-container input::placeholder {
  color: #555 !important;
}

.top-header i,
.top-header svg {
  color: white !important;
  fill: white !important;
}

/* ===== MERGED CATEGORY STRIP (same line as top header) ===== */
.sub-header {
  display: none !important;
}

/* Category bar kept in same unified top row */
.category-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
  padding: 0 20px;
  margin-left: 20px;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}
.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar-wrapper {
  width: auto !important;
  display: flex;
  align-items: center;
}

.category-bar-container {
  display: flex;
  flex-wrap: nowrap;
}

/* FINAL CLEANUP — remove duplicate top category strip */
.category-bar,
.category-bar-wrapper,
.category-bar-container {
  display: none !important;
}

/* Tight spacing after removing top category strip */
.main-content,
.home-container,
.products-section {
  margin-top: 80px !important;
}

.sub-header-item {
  white-space: nowrap;
  cursor: pointer;
}

.sub-header-item:hover {
  color: #ff9900;
}

.sub-header-item.active {
  color: #ff9900;
  font-weight: 600;
}

/* Force white text in sub-header */
.sub-header,
.sub-header * {
  color: white !important;
}

.sub-header-item.active {
  color: #ff9900 !important;
}

/* Main content — offset for fixed headers (70px + ~50px sub-header) */
.main-content {
  margin-top: 70px;
  padding: 20px;
}

/* Hide legacy UI elements */
.hero-section,
.blue-bg,
.glass-card,
.welcome-box,
.onboarding-banner {
  display: none !important;
}

/* Legacy navbar (no longer used - replaced by top-header) */
.navbar {
  display: none !important;
}

/* Amazon header responsive — mobile fix: stack vertically, no overlap */
@media (max-width: 768px) {
  /* Keep header in one line: scroll instead of wrapping */
  .header-container {
    flex-wrap: nowrap;
    padding: 10px 12px;
    height: 70px;
    min-height: 70px;
    gap: 8px;
    overflow: visible;
  }
  /* Keep stable search width */
  .top-header .search-container {
    order: initial;
    flex: 0 0 240px;
    width: auto;
    margin: 0;
    max-width: 320px;
  }
  .top-header .search-container .search-wrapper,
  .top-header .search-container input {
    width: auto;
  }
  /* Keep fixed header height */
  .top-header {
    height: 70px;
    padding-bottom: 0;
  }
  /* Keep category strip merged into same line */
  .sub-header {
    top: 0;
    height: 70px;
  }
  .main-content {
    margin-top: 70px;
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 24px;
    box-sizing: border-box;
  }
  /* Full-width content on all pages */
  .main-content .page,
  #home.page.active,
  #deals.page.active,
  #search.page.active,
  #spin.page.active,
  #account.page.active,
  #productDetail.page.active,
  #cart.page.active {
    width: 100% !important;
    max-width: 100% !important;
  }
  .amazon-category-bar,
  .subcategory-container,
  .big-product-row,
  .multi-section,
  #multiSection,
  .products-grid,
  .reward-slider,
  #search .search-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .products-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .reward-slider {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Spin page full width on mobile */
  .spin-page-wrapper,
  .spin-container {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* about-container, cart-container full width on mobile */
  .about-container,
  .cart-container {
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Menu dropdown below expanded header */
  .menu-dropdown {
    top: 70px;
  }
  .top-header .logo-text {
    font-size: 18px;
  }
  .top-header .custom-menu.header-links {
    gap: 12px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .top-header .logo-text {
    font-size: 18px;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-5px) rotate(-2deg); }
  20% { transform: translateX(5px) rotate(2deg); }
  30% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  50% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(3px) rotate(1deg); }
  70% { transform: translateX(-3px) rotate(-1deg); }
  80% { transform: translateX(3px) rotate(1deg); }
  90% { transform: translateX(-2px) rotate(0deg); }
}

.logo.shake {
  animation: shake 0.6s ease-in-out;
}

.logo-glow {
  animation: glowPulse 0.8s ease;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 165, 0, 0);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 165, 0, 0);
  }
}

.coin-pop {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  z-index: 9998;
  animation: coinFly 1s ease forwards;
}

@keyframes coinFly {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}


.logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}


.logo-main {
  font-weight: 700;
  font-size: 1.15rem;
}


.logo-sub {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0ea5e9;
}


.logo-deal {
  color: #000000;
}


.logo-z {
  color: #2563eb;
}


/* Nav menu (top links) */
.nav-menu {
  display: flex;
  gap: 10px;
}


.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
}


.nav-link i {
  font-size: 0.9rem;
}


.nav-link:not(.active):hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
}

.nav-link.active {
  background: #22c55e !important;
  color: #ffffff !important;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}


.hamburger span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 4px;
}


/* Banner (unused on home now but kept) */
.banner {
  position: relative;
  max-width: 1100px;
  margin: 14px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}


.banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.05)
  );
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}


.banner-overlay h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #e5f3ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


.banner-overlay p {
  font-size: 0.95rem;
  color: #e5e7eb;
}


/* Top shell: dark band under navbar */
.top-shell {
  background: transparent; /* unify with site background */
  padding: 10px 0 18px;       /* change these to make band taller/shorter */
}


.top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}


/* Top search (now inside top-shell) */
.top-search {
  max-width: none;
  margin: 0;
  padding: 0 0 10px;
}


.top-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
}


.top-search-inner i {
  color: #9ca3af;
}


.top-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 0.95rem;
}


.top-search-inner button {
  border: none;
  background: #0f766e;
  color: #f9fafb;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Main layout */



/* Pages */
.page {
  display: none;
}


.page.active {
  display: block;
}




.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.category-row::-webkit-scrollbar {
  display: none;
}


.cat-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  color: #374151;
  font-size: 0.85rem;
  cursor: pointer;
}


.cat-btn.active {
  background: #22c55e;
  color: #ffffff;
}



/* Product card full width inside grid */
.product-card {
  width: 100%;
}

/* Mobile-first (already 2 columns) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #111827;
  transform: translateZ(0);
  will-change: transform;
}


/* SMALL image box for cards */
.product-image.big-card {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
}


/* Product image itself */
.product-img-real {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}


.product-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #111827;
}


.product-desc {
  font-size: 0.8rem;
  color: #4b5563;
}


.price {
  font-weight: 600;
  margin-top: 2px;
  color: #111827;
}


.old-price {
  font-weight: 400;
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 4px;
}


.rating {
  font-size: 0.8rem;
  color: #f59e0b;
}


.product-card p {
  color: #111827;
}


.buy-buttons {
  margin-top: 4px;
}


.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #020617;
}


.buy-btn.amazon {
  background: #fbbf24;
}


.buy-btn.flipkart {
  background: #38bdf8;
}


/* Search page */
.search-container {
  margin-top: 12px;
}


.search-container h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}


.search-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}


.search-bar input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  background: #ffffff;
  color: #111827;
}


.search-bar button {
  border: none;
  background: #0f766e;
  color: #f9fafb;
  width: 34px;
  border-radius: 999px;
  cursor: pointer;
}


/* ===== BOTTOM NAVIGATION (VISIBLE ON ALL DEVICES) ===== */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 60px !important;
  background: #ffffff !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  z-index: 999999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Universal rule - applies to ALL screen sizes */
.bottom-nav {
  display: flex !important;
}

/* Force visibility on all screen sizes - tablets, laptops, desktops */
@media (min-width: 768px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Specific laptop breakpoints */
@media (min-width: 768px) and (max-width: 1366px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (min-width: 1280px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Ensure visibility on all desktop/laptop sizes */
@media (min-width: 768px) and (max-width: 1920px) {
  .bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}



.bottom-item {
  position: relative;
  background: transparent;
  border: none;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  gap: 2px;
  cursor: pointer;
}


.bottom-item i {
  font-size: 1rem;
}


.bottom-item.active,
.bottom-item:focus {
  color: #22c55e;
}


/* Typography */
h1,
h2 {
  color: #111827;
}


p {
  color: #374151;
  line-height: 1.5;
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }


  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}




/* Mobile menu — single dropdown only; hide top nav in header */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .nav-dropdown-desktop {
    display: none !important;
  }

  /* Hide top nav menu in header; only hamburger dropdown shows when opened */
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    width: 88%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    padding: 18px;
    border-radius: 18px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.9);

    animation: mobileMenuSlide 0.35s ease;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-primary-links,
  .nav-dropdown-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .hamburger {
    display: flex !important;
  }
}

@keyframes mobileMenuSlide {
  0% {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 768px) {
  .nav-menu .nav-link {
    padding: 14px 10px;
    font-size: 17px;
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.12s ease;
  }

  .nav-menu .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-menu .nav-link i {
    margin-right: 12px;
    font-size: 18px;
  }

  .nav-menu .nav-link:active {
    transform: scale(0.97);
    background: rgba(0, 0, 0, 0.08);
  }
}


/* Auth pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(120deg, #f5f7ff, #fafbff, #f2f4ff);
  background-size: 200% 200%;
  animation: bgMove 8s ease infinite;
  min-height: 100%;
  padding: 20px;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .auth-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .auth-wrapper {
    padding-top: 18px;
  }
  .auth-card {
    border-radius: 18px;
  }
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  width: 100%;
}

.auth-title {
  width: 100%;
  max-width: 420px;
  text-align: left;
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  animation: cardFadeSlide 0.6s ease;
}

.auth-card input {
  width: 100%;
  box-sizing: border-box;
}

@keyframes cardFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-form {
  max-width: 420px;
  margin: 12px auto 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #374151;
}

.auth-form .input-group {
  position: relative;
  margin-bottom: 2px;
}

.auth-form .input-group:last-of-type {
  margin-bottom: 0;
}

.auth-form .input-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0 4px;
}

.auth-form .input-group input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  padding: 12px 36px 12px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: all 0.25s ease;
}

.auth-form .input-group.input-group--password input {
  padding-right: 40px;
}

.auth-form .input-group input:focus,
.auth-form .input-group input:not(:placeholder-shown) {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.15);
  background: #ffffff;
}

.auth-form .input-group input:focus {
  transform: scale(1.01);
}

.auth-form .input-group input:focus + label,
.auth-form .input-group input:not(:placeholder-shown) + label {
  top: -7px;
  font-size: 12px;
  color: #7b61ff;
}

.auth-form .input-group--password {
  position: relative;
}

.auth-form .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  user-select: none;
  padding: 4px;
}

.auth-form .toggle-pass:hover {
  opacity: 1;
}

.primary-btn {
  border: none;
  background: #22c55e;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.primary-btn:hover {
  background: #16a34a;
}

.primary-btn.auth-btn {
  background: linear-gradient(135deg, #6b5cff, #a855f7);
  transition: all 0.25s ease;
}

.primary-btn.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(120, 90, 255, 0.25);
}

.primary-btn.auth-btn:active {
  transform: scale(0.97);
}

.auth-form.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.successPop {
  animation: successScale 0.3s ease;
}

@keyframes successScale {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* History cards (Spin History + Wallet History) */
.history-card {
  animation: cardSlideUp 0.45s ease;
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-item {
  animation: itemFade 0.35s ease;
}

@keyframes itemFade {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.status-paid {
  color: #16a34a;
  font-weight: 600;
}

.status-pending {
  color: #f59e0b;
  font-weight: 600;
}

.wallet-balance {
  font-size: 18px;
  font-weight: 700;
  color: #6b5cff;
}

.auth-switch {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}


.inline-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}


.inline-link:hover {
  text-decoration: underline;
}


/* Info cards */
#login h2,
#signup h2,
#account h2,
#support h2,
#about h2 {
  margin-bottom: 8px;
}


.info-card {
  max-width: 600px;
  margin: 10px auto 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 18px 16px;
}


.info-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 6px;
}


.info-highlight {
  font-weight: 600;
  color: #111827;
}


.info-email {
  font-weight: 600;
  color: #0ea5e9;
  word-break: break-all;
}


/* Favourite button */
.product-card .buy-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 4px;
}


.fav-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #f97373;
  background: rgba(248, 113, 113, 0.08);
  color: #f97373;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}


.fav-btn:hover {
  background: #f97373;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.4);
}


.fav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}


.fav-btn.saved {
  background: rgba(34, 197, 94, 0.08);
  border-color: #22c55e;
  color: #16a34a;
}


/* Favourites card */
.favourites-card {
  max-width: 600px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}


.favourites-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #111827;
}


.favourites-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}


.fav-item-main {
  display: flex;
  flex-direction: column;
}


.fav-item-name {
  font-weight: 500;
  color: #111827;
}


.fav-item-meta {
  color: #6b7280;
  font-size: 0.75rem;
}


.fav-item-platform {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}


.fav-item-platform.amazon {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}


.fav-item-platform.flipkart {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}


.empty-msg {
  color: #6b7280;
  font-size: 0.8rem;
}


/* Price styling extras */
.discount {
  color: #16a34a;
  font-size: 0.8rem;
  margin-left: 4px;
  font-weight: 600;
}


/* Result count text */
.result-count {
  margin: 0 0 2px;
  font-size: 0.8rem;
  color: #4b5563;
}


.result-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #15803d;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 500;
}


.result-count-badge span {
  font-weight: 600;
}


/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Cart page */
#cart {
  margin-top: 10px;
}


.cart-container {
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

/* Two-column layout: items left, sticky price right */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-col {
  min-width: 0;
}

.cart-summary-col {
  position: relative;
}

.cart-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  animation: cartFade 0.4s ease;
}

.cart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cart-price-box:hover {
  transform: none;
}

@keyframes cartFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-container .price-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 15px;
}

.cart-container .price-row.price-total {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
}

/* Sticky price box (Amazon-style) */
.cart-price-box {
  position: sticky;
  top: 80px;
}

.cart-buy-all-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #ff9900;
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.cart-buy-all-btn:hover {
  background: #e68a00;
}

.cart-empty {
  text-align: center;
  color: #666;
  font-size: 15px;
  padding: 40px 20px;
}

.cart-shop-now {
  margin-top: 16px;
  padding: 10px 24px;
  background: #ff9900;
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cart-shop-now:hover {
  background: #e68a00;
}

/* ===== AI SMART CART ===== */
.cart-smart-section,
.cart-better-deals {
  margin-top: 20px;
}

.smart-cart-title,
.better-deals-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

.smart-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.smart-row::-webkit-scrollbar {
  height: 6px;
}

.smart-row::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.smart-card {
  min-width: 140px;
  flex-shrink: 0;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.smart-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.smart-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

.smart-card-name {
  font-size: 13px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.smart-card-price {
  font-size: 14px;
  font-weight: 600;
  color: #b12704;
  margin-top: 4px;
}

.better-item {
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.2s;
}

.better-item:hover {
  background: #fef3c7;
}

.better-item:first-child {
  margin-top: 0;
}

.cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #16a34a;
  margin-bottom: 14px;
  font-weight: 500;
}


.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}


.cart-summary-title {
  font-size: 0.9rem;
  color: #4b5563;
}


.cart-summary-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}


.cart-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}


.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  margin-bottom: 12px;
  gap: 12px;
}

.cart-item:last-child {
  margin-bottom: 0;
}


.cart-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
}


.cart-item-thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}


.cart-item-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}


.cart-item-name {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
}

.cart-item-name:hover {
  color: #007185;
  text-decoration: underline;
}


.cart-item-price {
  font-weight: 600;
  color: #b12704;
  font-size: 15px;
}

.cart-item-mrp {
  text-decoration: line-through;
  font-size: 12px;
  color: #6b7280;
  margin-left: 6px;
}

/* Quantity controls */
.cart-qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-item-meta {
  color: #6b7280;
  font-size: 0.75rem;
}


.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-total {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}


.cart-remove {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
}

.cart-remove:hover {
  background: rgba(248, 113, 113, 0.2);
  text-decoration: underline;
}


.cart-buy-link {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  background: #22c55e;
  color: #ffffff;
  text-decoration: none;
}


.cart-buy-link:hover {
  background: #16a34a;
}


.cart-note {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6b7280;
}


/* Add-to-cart on cards */
.cart-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}


.cart-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
}


.cart-btn:active {
  transform: translateY(0);
  box-shadow: none;
}


/* Guides tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.8rem;
}


.guide-table th,
.guide-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}


.guide-table th {
  background: #f9fafb;
  font-weight: 600;
}


.guide-table a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}


.guide-table a:hover {
  text-decoration: underline;
}


/* Guides page layout */
#guides.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}


#guides {
  background: #f3f4f6;
}


#guides .info-card {
  max-width: 1100px;
  width: 100%;
  margin: 10px auto 0;
  padding-left: 16px;
  padding-right: 16px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  padding-top: 12px;
  padding-bottom: 14px;
}


#guides h2 {
  font-size: 1.3rem;
  margin-top: 10px;
  text-align: left;
}


.guides-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 16px 10px;
}


#guides .info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}


#guides .info-card p {
  font-size: 0.8rem;
  color: #6b7280;
}


/* ---------- PRODUCT DETAIL: DESKTOP + MOBILE ---------- */


#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #f3f4f6;
}


#productDetail .info-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
}


/* Grid layout */
.product-detail-layout {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}


.product-detail-left {
  width: 100%;
}


.product-detail-right {
  max-width: 900px;
}


/* Big image */
#detailImageBox {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}


#detailImageBox img.product-img-real {
  width: 100%;
  height: auto;          /* ✅ FIX */
  max-height: 100%;
  object-fit: contain;
  display: block;
}



/* Gallery arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 36px;
  height: 52px;
  cursor: pointer;
  border-radius: 6px;
}


/* Text on detail */
.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 820px;
}


.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}


.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}


/* Mobile product detail */
@media (max-width: 768px) {
  #productDetail .info-card {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }


  .product-detail-layout {
    display: block;
    padding: 0 16px;
  }


  #detailImageBox {
    width: 260px;
    height: 260px;
    margin: 12px auto;
  }


  .product-detail-right {
    max-width: 100%;
  }
}
/* Big dark-blue band for search + filters */
.top-shell {
  background: #020617;      /* dark navy */
  padding: 16px 0 20px;     /* increase/decrease to change height */
}


/* Center content inside the band */
.top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}


/* Let the shell control spacing instead of top-search */
.top-search {
  max-width: none;
  margin: 0;
  padding: 0 0 10px;
}


/* Slightly tighter spacing under chips and result text */
.category-row {
  margin: 10px 0 8px;
}


.result-count {
  margin: 0 0 2px;
}
/* =========================
   SPIN PAGE – PREMIUM SAFE
   ========================= */

#spin {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* container – premium card feel with glow ring */
.spin-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 20px;
  background: radial-gradient(circle, #ffffff, #f1f5ff);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.12),
    inset 0 0 25px rgba(120, 120, 255, 0.15);
}

/* header */
.spin-header {
  text-align: center;
}
.spin-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}
.spin-header p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* card base */
.spin-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  text-align: center;
}

/* progress */
.spin-progress {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

#spinProgressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#22c55e,#16a34a);
  transition: width 0.35s ease;
}

/* wheel container – centered */
.spin-wheel {
  display: block;
  margin: 0 auto;
}

/* wheel card */
.spin-wheel-card {
  background: linear-gradient(180deg,#ecfeff,#ffffff);
  border-radius: 24px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(14,165,233,0.25);
}

.spin-wheel-centering {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

/* wheel wrapper – depth only; bulbs glow via canvas */
.spin-wheel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0%, #f7f7f7 60%, #e5e5e5 100%);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 10px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spin-wheel-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* spinning state – scale + motion blur */
.spin-wheel-wrapper.spinning {
  transform: scale(1.03);
  transform-origin: center center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* winner flash when spin stops */
.spin-wheel-wrapper.winner-highlight {
  animation: rewardFlash 0.5s ease;
}

@keyframes rewardFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#spinCanvas {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* center hub – glass effect */
/* center hub – glowing */
.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #dcdcdc);
  box-shadow:
    inset 0 6px 10px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* segment text / big reward styling – for CSS-based wheels or future use */
.wheel-segment {
  border-right: 4px solid rgba(255, 255, 255, 0.9);
}
.wheel-segment span {
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}
.reward-big {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

/* CTA button – centered under wheel */
.spin-cta,
.spin-btn,
.spin-wheel button,
.spin-action-btn {
  display: block;
  margin: 16px auto;
  text-align: center;
}

.spin-cta {
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34,197,94,0.45);
}

.spin-cta:disabled {
  background: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

/* helper text */
.spin-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 6px;
}

/* win celebration confetti */
.confetti {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 14px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall 2s linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* win burst celebration */
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.4); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* wallet rows */
.wallet-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* upi note */
.upi-note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ===== PRODUCT DETAIL: FULL BLUE BACKGROUND + WHITE CARD ===== */

#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #020617;            /* same dark blue as .top-shell */
}

/* keep dark band continuous */
#productDetail .top-shell {
  background: #020617;
  padding: 16px 0 80px;
}

/* center content like home */
#productDetail .top-shell-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* main white card for product details */
.product-detail-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

/* left: image area */
.product-detail-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

#detailImageBox {
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
}

/* right: text area */
.product-detail-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
  color: #020617;
}

.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}

.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* “More products” under detail uses similar card style */
.product-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

.product-description {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* product page: description line inside the price paragraph */
.detail-desc {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  white-space: pre-wrap;
}

.product-meta {
  font-size: 16px;
}

#moreProductsCard {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* mobile layout */
@media (max-width: 768px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    padding: 18px 16px 20px;
    gap: 20px;
  }

  #detailImageBox {
    max-width: 260px;
    margin: 12px auto;
  }

  #productDetail #detailTitle.product-title {
    font-size: 22px;
    line-height: 1.35;
  }

  .product-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .product-meta {
    font-size: 14px;
  }

  .buy-btn,
  .cart-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}
/* ===== PRODUCT DETAIL WITHOUT BLUE BACKGROUND ===== */

/* Page background for product details */
#productDetail.page.active {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: #f3f4f6;   /* light gray, not dark blue */
}

/* Top band on product detail */
#productDetail .top-shell {
  background: #f3f4f6;   /* same as page background */
  padding: 16px 0 20px;  /* adjust if you want more/less space */
}

/* Inner container */
#productDetail .top-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* White card around content */
#productDetail .info-card,
#productDetail .product-detail-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  background: #ffffff;
}

/* Layout of product detail */
.product-detail-layout {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* Left & right columns */
.product-detail-left {
  width: 100%;
}

.product-detail-right {
  max-width: 900px;
}

/* Big image box */
#detailImageBox {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

#detailImageBox img.product-img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title, price, meta */
.product-detail-title {
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 820px;
}

.product-detail-price {
  color: #b12704;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0;
}

.product-detail-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Product detail buttons (Buy Now + Add to Cart) - Amazon style */
#productDetail .product-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

#productDetail .buy-btn-main {
  flex: 1;
  background: #ff9900;
  color: #111;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

#productDetail .buy-btn-main:hover {
  background: #e68a00;
}

#productDetail .cart-btn-detail {
  flex: 1;
  background: #fff;
  color: #007185;
  border: 1px solid #007185;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

#productDetail .cart-btn-detail:hover {
  background: #f0f8ff;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .product-detail-layout {
    display: block;
    padding: 0 16px;
  }

  #detailImageBox {
    width: 260px;
    height: 260px;
    margin: 12px auto;
  }

  .product-detail-right {
    max-width: 100%;
  }
}
.logo-img {
  width: 40px;      /* increase/decrease */
  height: 40px;
  border-radius: 50%;  /* keep circle, or remove if logo is square */
  object-fit: cover;
}
.logo-deal {
  font-weight: 700;
  color: #000000;
}

.logo-z {
  font-weight: 700;
  color: #ff7900;   /* orange */
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}
.product-card img {
  transition: transform .25s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}
.price {
  font-size: 20px;
  font-weight: 700;
  color: #dc2626;
}
.mrp {
  text-decoration: line-through;
  color: #9ca3af;
  margin-left: 6px;
}
.discount {
  color: #16a34a;
  font-weight: 600;
  margin-left: 6px;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-actions button {
  flex: 1;
}
.category-chip {
  transition: all .2s ease;
}
.category-chip.active {
  background: #22c55e;
  color: #fff;
}
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;   /* ✅ ADD THIS LINE */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-detail-image {
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.product-actions button {
  border-radius: 20px;
  font-weight: 600;
}
.discount {
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.product-image {
  background: #f3f4f6;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}

.mrp {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 13px;
}

.discount {
  color: #16a34a;
  font-weight: 600;
}
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.product-actions button {
  border-radius: 999px;
  font-weight: 600;
}

.buy-btn {
  background: #facc15;
}

.cart-btn {
  border: 1px solid #3b82f6;
  color: #3b82f6;
}
.buy-btn {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #16a34a;
  color: white;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.trust-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 8px;
  text-align: center;
}
/* ============================= */
/* PRODUCTS GRID — CLEAN VERSION */
/* ============================= */

/* =========================
   FINAL RESPONSIVE FIX (NO BREAK)
========================= */
.products-grid,
.product-grid,
.multi-section,
#multiSection {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* fallback */
  gap: 16px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* PC ONLY (DESKTOP) */
@media (min-width: 1025px) {
  .product-grid,
  .products-grid,
  .multi-section,
  #multiSection {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 on PC */
    gap: 16px;
  }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 601px) {
  .product-grid,
  .products-grid,
  .multi-section,
  #multiSection {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .product-grid,
  .products-grid,
  .multi-section,
  #multiSection {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: horizontal scroll for card-container only (e.g. trending sections) */
@media (max-width: 600px) {
  .card-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .card-container::-webkit-scrollbar {
    display: none;
  }

  .card-container .product-card,
  .card-container .card-mini,
  .card-container .card {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* Product card */
.product-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}

/* Product image */
.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}


/* Best Deal badge */
.deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
/* ===== PRODUCT DETAIL FULL WIDTH (MOBILE) ===== */
@media (max-width: 768px) {

  

  /* Product detail layout full width */
  .product-detail {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important; /* keep small inner padding */
    margin: 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* Image & content full width */
  .product-detail-left,
  .product-detail-right {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* ============================= */
/* 🔥 FULL-WIDTH PRODUCT DETAIL (MOBILE) 🔥 */
/* ============================= */



  /* Product detail container */
  .product-detail {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  /* Left & Right blocks */
  .product-detail-left,
  .product-detail-right {
    margin: 0 !important;
    padding: 12px !important; /* internal spacing only */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important; /* edge-to-edge look */
  }

  /* Image must touch screen edges */
  .product-detail-left img {
    width: 100%;
    max-height: none;
    border-radius: 0 !important;
  }


.product-card {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.product-card * {
  pointer-events: auto;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #111;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
}

.gallery-prev {
  left: 10px;   /* 👈 LEFT SIDE */
}

.gallery-next {
  right: 10px;  /* 👉 RIGHT SIDE */
}
/* ✅ SINGLE SOURCE OF TRUTH — MOBILE SAFE AREA */
@media (max-width: 768px) {
  .page {
    padding-bottom: 90px; /* bottom-nav height + safe gap */
  }
}
/* ===== MOBILE: PRODUCT DETAIL FULL WIDTH FIX ===== */
@media (max-width: 768px) {

  /* remove side padding from blue shell */
  #productDetail .top-shell-inner {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  /* make product card full width */
  .product-detail-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* image container full width */
  #detailImageBox {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

}

/* ===== MOBILE FIX: MORE PRODUCTS FULL WIDTH ===== */
@media (max-width: 768px) {

  /* remove side padding from container */
  #productDetail .top-shell-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* remove card look for "More products" */
  #moreProductsCard {
    margin: 0 !important;
    border-radius: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* force grid to full width */
  #moreProductsList {
    width: 100% !important;
    margin: 0 !important;
  }

  /* ensure product cards don’t shrink container */
  #moreProductsList .product-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ===== TRENDING FILTER BUTTONS (Deals page) ===== */
.trending-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
}

.trending-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.trending-filter-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.trending-filter-btn.active {
  background: #2874f0;
  color: #fff;
  border-color: #2874f0;
}

/* ===== CATEGORY HORIZONTAL SCROLL (desktop + mobile) ===== */
.category-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 12px 12px 8px;
  background: transparent;
  position: relative;
}

.category-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.category-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* Category strip arrows removed (native scroll + optional drag instead) */

.category-scroll {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.category-scroll-wrapper .category-strip,
.category-scroll-wrapper .categories {
  overflow: visible;
  scrollbar-width: unset;
}

.category-scroll-wrapper .category-strip::-webkit-scrollbar,
.category-scroll-wrapper .categories::-webkit-scrollbar {
  display: none;
}

/* ===== FLIPKART STYLE CATEGORY STRIP ===== */
.category-strip {
  display: flex;
  gap: 14px;
  padding: 0;
  background: transparent;
}

.cat-item {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 6px 4px;
}

.cat-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.cat-item span {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  text-align: center;
}

.cat-item.active span {
  color: #2874f0; /* Flipkart blue */
  font-weight: 600;
}

.cat-item img {
  width: 46px;
  height: 46px;
  transition: transform .25s ease, filter .25s ease;
}

.cat-item.active img {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 10px rgba(34,197,94,.6));
}

/* ===== SUBCATEGORY (Amazon style • Home + Dealz) ===== */
.subcategory-container {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.subcategory-container::-webkit-scrollbar {
  display: none;
}

.subcategory-item {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 18px;
  background: #f3f4f6;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.subcategory-item.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.subcategory-item:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .subcategory-container {
    flex-wrap: wrap;
    overflow-x: hidden;
  }
}

.product-card {
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.buy-btn {
  background: linear-gradient(135deg,#facc15,#f59e0b);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(250,204,21,.45);
}
.best-deal-badge {
  box-shadow: 0 4px 12px rgba(34,197,94,.5);
  font-weight: 600;
}

/* ===== PAGE FADE IN ===== */
.page {
  animation: fadeUp .35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card {
  animation: popIn .3s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ===== PRODUCT IMAGE ZOOM ===== */
.product-card img {
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}
/* ===== HISTORY LIST ===== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
}

.history-item .left {
  display: flex;
  flex-direction: column;
}

.history-item .amount.plus {
  color: #22c55e;
  font-weight: 600;
}

.history-item .amount.minus {
  color: #ef4444;
  font-weight: 600;
}

.history-item .status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

/* Wallet transaction history (readable rows: title, IST date/time, status badge) */
.wallet-history-list {
  gap: 12px;
}

.wallet-history-list .wallet-tx-item {
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.wallet-tx-item__main {
  flex: 1;
  min-width: 0;
}

.wallet-tx-item__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
}

.wallet-tx-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
  font-size: 12px;
}

.wallet-tx-item__date {
  color: #6b7280;
}

.wallet-tx-item__date--na {
  color: #9ca3af;
  font-style: italic;
}

.wallet-tx-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wallet-tx-badge--paid,
.wallet-tx-badge--completed {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.wallet-tx-badge--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.wallet-tx-badge--neutral {
  background: #e5e7eb;
  color: #374151;
}

.wallet-tx-item__amount {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.35;
  margin-top: 2px;
}

.wallet-tx-item__amount--plus {
  color: #16a34a;
}

.wallet-tx-item__amount--minus {
  color: #dc2626;
}

.wallet-tx-item--clickable {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.wallet-tx-item--clickable:hover {
  background: #f3f4f6 !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.wallet-tx-item--clickable:focus-visible {
  outline: 2px solid #6d5dfc;
  outline-offset: 2px;
}

.wallet-tx-detail-card {
  position: relative;
  text-align: left;
  max-width: 380px;
}

.wallet-tx-detail-card h3 {
  text-align: center;
  margin: 0 28px 12px;
  font-size: 1.1rem;
}

.wallet-tx-detail-body {
  text-align: left;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

.wallet-tx-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  line-height: 1.4;
}

.wallet-tx-detail-row:last-child {
  border-bottom: none;
}

.wallet-tx-detail-label {
  color: #6b7280;
  flex-shrink: 0;
}

.wallet-tx-detail-value {
  color: #111827;
  text-align: right;
  word-break: break-word;
}

.wallet-tx-detail-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
}

.wallet-tx-detail-close:hover {
  color: #111827;
}

#walletTxDetailModal.modal-overlay {
  z-index: 10050;
}

.account-profile .profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
}

.amount {
  font-size: 20px;
  font-weight: 600;
}

.amount.green {
  color: #16a34a;
}

.account-actions li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.full {
  width: 100%;
  margin-top: 8px;
}
.cart-sub {
  color: #6b7280;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions button {
  flex: 1;
}
/* Secondary (Cancel) button – Professional style */
.secondary-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.secondary-btn:active {
  transform: scale(0.97);
}
/* ========================================= */
/* ✅ ACCOUNT PAGE – FINAL CLEAN FIX */
/* (with animations + pulse) */
/* ========================================= */

/* Hide header when account overlay is open */
body.account-open .top-header,
body.account-open .sub-header {
  display: none !important;
}


/* Remove ALL layout spacing */
body.account-open,
body.account-open main,
body.account-open .main-content,
body.account-open .page {
  padding: 0 !important;
  margin: 0 !important;
}

/* Fullscreen account page */
body.account-open #account.page.active {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  overflow: hidden;
}

/* Center guest view */
body.account-open #guestView {
  position: absolute !important;
  inset: 0;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  animation: fadeIn 0.4s ease;
}

/* Guest card */
body.account-open .guest-card {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);

  animation: slideUp 0.5s ease;
}

/* Text */
.guest-card h2 {
  margin-bottom: 8px;
  font-weight: 700;
}

.guest-card p {
  color: #6b7280;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ================= */
/* 🔔 BUTTON PULSE */
/* ================= */
.pulse {
  animation: pulse 1.8s infinite;
}

/* ================= */
/* 🎞 ANIMATIONS */
/* ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34,197,94,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0);
  }
}

.cart-header {
  margin-bottom: 20px;
}

.cart-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.cart-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 6px;
}

#cart .cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #16a34a;
  margin-bottom: 14px;
  font-weight: 500;
}
.savings-row {
  color: #16a34a;
  font-weight: 600;
}

.savings-amount {
  font-size: 0.95rem;
}

/* ===== CART CLICK FIX ===== */

.cart-item-main {
  cursor: pointer;
}

.cart-item-actions {
  position: relative;
  z-index: 2;
}

.cart-item-main {
  position: relative;
  z-index: 1;
}
/* ===== SUPPORT PAGE PRO ===== */

.support-page {
  padding-bottom: 40px;
}

/* HERO */
.support-hero {
  text-align: center;
  margin-bottom: 32px;
}

.support-hero h1 {
  font-size: 1.9rem;
}

.support-hero p {
  color: #6b7280;
  margin-top: 6px;
}

/* ACTION CARDS */
.support-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.support-box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.support-box:hover {
  transform: translateY(-6px);
}

.support-emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.support-email {
  margin-top: 8px;
  font-weight: 600;
  color: #16a34a;
}

.support-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* TIMELINE */
.support-timeline {
  margin-top: 36px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 22px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.timeline-item span {
  width: 28px;
  height: 28px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* FAQ */
.support-faq {
  margin-top: 36px;
}

.faq-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.faq-item h4 {
  margin-bottom: 6px;
}

/* FOOTER */
.support-bottom {
  margin-top: 32px;
  text-align: center;
  color: #374151;
}

/* ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s }
.fade-up.delay-2 { animation-delay: 0.2s }
.fade-up.delay-3 { animation-delay: 0.3s }
.fade-up.delay-4 { animation-delay: 0.4s }
.fade-up.delay-5 { animation-delay: 0.5s }
.fade-up.delay-6 { animation-delay: 0.6s }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== LOGIN REQUIRED MODAL ANIMATION ===== */

.login-modal {
  text-align: center;
  animation: slideUpFade .45s ease;
}

.login-modal-icon {
  font-size: 2.6rem;
  margin-bottom: 6px;
}

/* fade background */
.modal-overlay {
  animation: fadeOverlay .3s ease;
}

/* Animations */
@keyframes slideUpFade {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOverlay {
  from {opacity: 0;}
  to {opacity: 1;}
}
/* ===== MODAL BASE ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

/* Modal card */
.modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: popIn 0.35s ease;
}

/* Icon */
.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

/* Text */
.modal-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Buttons row */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */
.modal-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Secondary */
.modal-btn.secondary {
  background: #f3f4f6;
  color: #111827;
}

/* Primary */
.modal-btn.primary {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: white;
}

/* Animation */
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ===============================
   DAILY REWARDS SECTION
================================ */

.reward-section {
  background: linear-gradient(135deg, #ffe3cc, #ffd1b3);
  margin: 12px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.reward-section h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #111;
}

.reward-section p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.spin-btn {
  background: #111;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.spin-btn:hover {
  background: #000;
  transform: scale(1.05);
}

/* ===== REWARD SLIDER (3-slide auto-scroll) ===== */
.reward-slider {
  margin: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.reward-slider-inner {
  overflow: hidden;
  border-radius: 14px;
}

.reward-slider .slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.reward-slider .slide {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.reward-slider .reward-slide {
  background: linear-gradient(135deg, #ffe3cc, #ffd1b3);
  padding: 16px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.reward-slider .reward-slide h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #111;
}

.reward-slider .reward-slide p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.reward-slider .reward-slider-btn {
  margin-top: 4px;
}

.reward-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 6px;
}

.reward-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reward-slider-dots .dot:hover {
  background: rgba(0,0,0,0.4);
}

.reward-slider-dots .dot.active {
  background: #111;
  transform: scale(1.2);
}

/* === FORCE HAMBURGER ALWAYS VISIBLE === */
.hamburger {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

/* Remove any desktop hide rules */
@media (min-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  /* Keep nav-menu hidden until clicked */
  .nav-menu {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 9999;
  }
}
/* ===== FIX NAV RESPONSIVE BEHAVIOR ===== */

/* Base state */
.nav-menu {
  display: none;
}

/* Hamburger always visible by default (mobile-first) */
.hamburger {
  display: flex;
}

/* Dropdown open state (mobile) */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 10px;
  z-index: 1000;
}

/* ===== Desktop Mode ===== */
@media (min-width: 768px) {

  /* Keep hamburger visible on desktop for extra menu dropdown */
  .nav-container .hamburger {
    display: flex !important;
  }

  /* Nav bar: primary links inline, dropdown links in hamburger panel */
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-primary-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .nav-dropdown-mobile {
    display: none !important;
  }

  .nav-menu.open {
    display: flex !important;
    position: static;
  }
}
/* ===== Categories Row (horizontal scroll) ===== */
.categories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
  display: none; /* Chrome */
}

.cat-item {
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.cat-item span {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

/* Active category highlight */
.cat-item.active span {
  color: #0aad6b;
  font-weight: bold;
}

/* ===== Search Suggestions Dropdown ===== */
.suggestions-box {
  position: absolute;
  background: white;
  width: 90%;
  max-width: 600px;
  margin: auto;
  left: 0;
  right: 0;
  top: 70px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
  background: #f9fafb;
}

.suggestion-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 6px;
}

.suggestion-text {
  font-size: 14px;
  color: #111;
}

.suggestion-price {
  font-size: 13px;
  color: #16a34a;
  font-weight: bold;
}
.suggestions-box {
  position: absolute;
  background: white;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-item:hover {
  background: #f3f4f6;
}
.page {
  display: none;
}

.page.active {
  display: block;
}
.search-wrapper {
  position: relative;
  flex: 1;   /* keeps full width inside flex row */
}

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 6px;
  max-height: 400px;
  overflow-y: auto;
  background: #ffffff !important;
  color: #000 !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999 !important;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
  background: #fff !important;
  color: #000 !important;
}

.search-item:hover {
  background: #f1f1f1 !important;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-item span,
.search-item .search-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #000 !important;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-text {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #000 !important;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-title {
  font-weight: bold;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  color: #000 !important;
  font-size: 13px;
}
/* Hide placeholder when typing or focusing */
#topSearchInput:focus::placeholder {
  color: transparent;
}

#topSearchInput:not(:placeholder-shown)::placeholder {
  color: transparent;
}
#topSearchInput {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ===== SPIN PAGE – DESKTOP FIX ===== */
@media (min-width: 768px) {

  #spin {
    padding: 40px 0;
  }

  .spin-container {
    max-width: 1100px;   /* full desktop width */
    padding: 32px;
  }

  .spin-wheel-card {
    max-width: 520px;    /* keep wheel nicely centered */
    margin: 0 auto;
  }

}
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
/* ===============================
   FORCE ABOUT PAGE FULL WIDTH
   =============================== */

/* Break any inherited width limits */
#about {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 32px 0 !important;
}

/* Force inner content like Support page */
#about .about-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Ensure cards don’t shrink */
#about .info-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Desktop-only polish */
@media (min-width: 1024px) {
  #about {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
#claimBtn {
  margin-top: 12px;
  width: 100%;
}

#claimBtn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}
.spin-instruction,
.wallet-instruction {
  font-size: 0.9rem;
  color: #374151;
  background: #f9fafb;
  border-left: 4px solid #22c55e;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.streak-card {
  margin: 4px 16px 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff6e8 100%);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.14);
  position: relative;
  overflow: hidden;
}

.streak-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.26) 0%, rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
}

.streak-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fde68a;
}

.streak-pill__icon {
  display: inline-flex;
  animation: flame-float 1.8s ease-in-out infinite;
}

.streak-pill__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
}

.streak-box {
  margin: 0;
  padding: 8px 10px;
  min-width: 84px;
  text-align: center;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.streak-box small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
}

.streak-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ffedd5;
  overflow: hidden;
  border: 1px solid #fed7aa;
}

.streak-meter__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 50%, #facc15 100%);
  transition: width 420ms cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
}

.streak-sub {
  margin: 10px 0 6px;
  color: #b45309;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.streak-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.streak-card.is-hot .streak-meter__fill {
  animation: pulse-glow 1.6s ease-in-out infinite;
}

@keyframes flame-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.08); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.65); }
}

@media (max-width: 480px) {
  .streak-card {
    margin: 4px 12px 14px;
    padding: 12px;
  }
  .streak-pill__label {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .streak-pill__icon,
  .streak-card.is-hot .streak-meter__fill {
    animation: none !important;
  }
  .streak-meter__fill {
    transition: none;
  }
}

/* ===== ADMIN CSV UPLOAD ===== */
.csv-upload-card {
  max-width: 520px;
  margin: 30px auto;
  padding: 22px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.csv-upload-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.admin-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.csv-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.csv-drop {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.csv-drop:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

#csvText {
  display: block;
  font-weight: 500;
}

#csvFileName {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #2563eb;
}

/* ===== CSV UPLOAD BUTTON FINAL ===== */

#csvUploadBtn {
  background: #9ca3af;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

/* enabled GREEN */
#csvUploadBtn.enabled {
  background: #10b981;
  opacity: 1;
  cursor: pointer;
}

/* ===== CSV CONTROLS LAYOUT FIX ===== */
.csv-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.csv-controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.csv-controls button {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
/* ===== GAME BAR ===== */
.game-bar {
  display: flex;
  justify-content: space-between;
  margin: 12px 16px;
  gap: 10px;
}

.level-box,
.token-box {
  flex: 1;
  background: linear-gradient(135deg, #1db954, #0f9d58);
  color: white;
  padding: 10px;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ===== LEVEL PROGRESS ===== */
.level-progress-card {
  margin: 10px 16px 18px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.6s ease;
}
/* =====================================================
   DAILY REWARD CARD
===================================================== */

.spin-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  margin: 18px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.spin-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2c2c2c;
}

.spin-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

/* =====================================================
   BANK DETAILS CARD
===================================================== */

.bank-card {
  max-width: 500px;
  margin: 30px auto;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: bankCardIn 420ms ease-out both;
}

.bank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.14);
}

.bank-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 180px at 20% 0%, rgba(34,197,94,0.12), transparent 60%),
              radial-gradient(500px 160px at 100% 40%, rgba(59,130,246,0.10), transparent 55%);
  pointer-events: none;
}

.bank-card > * {
  position: relative;
}

.bank-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.bank-card h3::before {
  content: "🏦";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.14);
}

.bank-card h3.upi-qr-title::before {
  content: "📲";
  background: rgba(59, 130, 246, 0.14);
}

.bank-toggle-btn {
  width: 100%;
  margin: 6px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bank-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}

.bank-card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.bank-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.35);
}

.bank-card button:active {
  transform: translateY(0px);
}

/* Loading state hook */
.bank-card button.is-loading {
  opacity: 0.92;
  cursor: wait;
}
.bank-card button.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  animation: bankSpin 0.8s linear infinite;
  vertical-align: -2px;
}

#bankStatus.info-small {
  margin: 10px 0 0;
  font-size: 13px;
  color: #475569;
  text-align: center;
}

#bankStatus.info-small.ok {
  color: #16a34a;
  font-weight: 700;
}

#bankStatus.info-small.err {
  color: #dc2626;
  font-weight: 700;
}

@keyframes bankSpin {
  to { transform: rotate(360deg); }
}

@keyframes bankCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .bank-card {
    margin: 18px 14px;
    padding: 22px;
  }
}

/* =====================================================
   ADMIN PANEL DROPDOWNS
===================================================== */

.admin-input,
.admin-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.admin-input:focus,
.admin-select:focus {
  outline: none;
  border-color: #6b5cff;
  box-shadow: 0 0 0 3px rgba(107, 92, 255, 0.15);
}

/* =====================================================
   PRIMARY BUTTON (VIOLET THEME)
===================================================== */

.primary-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  /* Violet gradient */
  background: linear-gradient(135deg, #7b5cff, #a66bff);
  color: #fff;

  box-shadow: 0 6px 14px rgba(123, 92, 255, 0.35);
  transition: all 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(123, 92, 255, 0.45);
}

.primary-btn:active {
  transform: scale(0.97);
}

/* Disabled state */
.primary-btn:disabled {
  background: #dcd6ff;
  color: #7a6fb0;
  cursor: not-allowed;
  box-shadow: none;
}

/* =====================================================
   WALLET CARD COLOR BALANCE
===================================================== */

.wallet-card {
  background: linear-gradient(135deg, #f8fff9, #f1f7ff);
  border-radius: 18px;
  margin: 16px 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Amount highlight */
.wallet-amount {
  font-weight: 700;
  color: #1a7f37; /* green only for money */
}

/* =====================================================
   LEVEL + TOKEN BADGES
===================================================== */

.game-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin: 6px;
}

/* Level badge = GOLD */
.level-badge {
  background: linear-gradient(135deg, #ffd76a, #ffb300);
  color: #5a3d00;
}

/* Token badge = BLUE */
.token-badge {
  background: linear-gradient(135deg, #5ecbff, #2f8cff);
  color: #ffffff;
}

/* =====================================================
   PROGRESS BAR STYLE
===================================================== */

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7b5cff, #ff7ad9);
  transition: width 0.4s ease;
}
/* TOKEN CASHOUT SPECIAL COLOR */
#tokenCashoutCard {
  background: linear-gradient(135deg, #fff7e6, #f3f7ff);
  border: 1px solid #ffe2a8;
}

/* Disabled claim look */
#claimTokenRewardBtn:disabled {
  background: #eee;
  color: #888;
}
/* ===== REFERRAL CARD (CLEAN PREMIUM UI) ===== */

.referral-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

/* title */
.referral-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

/* code display */
.referral-code {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;

  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;

  padding: 12px;
  border-radius: 12px;
  margin: 10px 0 14px 0;
}

/* stats row */
.referral-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.referral-stat {
  text-align: center;
  flex: 1;
}

.referral-stat strong {
  display: block;
  font-size: 18px;
  color: #111827;
}

.referral-stat span {
  font-size: 12px;
  color: #6b7280;
}

/* Refer & Earn — actions (Copy Code / Copy Link) */
.referral-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.ref-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: 0.2s;
}

.ref-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Refer & Earn — stats (Friends Joined / Total Rewards) */
.referral-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.ref-stat-box {
  flex: 1;
  background: #f9f9ff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: #7C3AED;
}

.stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}


/* note */
.referral-note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}
/* ===== LEADERBOARD ===== */

.leaderboard-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

.leaderboard-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  color: #7c3aed;
}
/* ===== REFERRAL REWARD POPUP ===== */
.reward-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.reward-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  width: 90%;
  max-width: 340px;
  animation: popupScale 0.35s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.reward-emoji {
  font-size: 48px;
  margin-bottom: 10px;
}

@keyframes popupScale {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== TOKEN REWARD POPUP ANIMATION ===== */
.reward-pop .reward-pop-inner {
  animation: rewardBounce 0.8s ease;
}

@keyframes rewardBounce {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
/* ===== XP PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ===== LEVEL POPUP ANIMATION ===== */
.level-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.level-popup-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  width: 260px;
  animation: popScale 0.3s ease;
}

@keyframes popScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.level-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.level-popup-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  width: 260px;
  animation: popScale 0.3s ease;
}

.level-popup-card button {
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  background: #22c55e;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes popScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* POPUP BASE */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

/* POPUP BOX */
.popup-box {
  background: white;
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: bold;
  animation: pop 0.4s ease;
}

.popup-box.heroic {
  background: gold;
  color: black;
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* LEVEL UP MODAL */
#levelUpModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.levelup-hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* ===== PRODUCT REQUEST (Floating button + popup) ===== */
#requestBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #ff9800;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100000;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  user-select: none;
}

#requestBtn:hover {
  filter: brightness(0.98);
}

#requestPopup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#requestPopup .popup-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 600;
}

#requestPopup .popup-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

#requestPopup input#productLink {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
}

#requestPopup input#productLink:focus {
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

#requestPopup .popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

#submitRequestBtn.is-loading {
  opacity: 0.95;
  cursor: wait;
}

#submitRequestBtn.is-loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top-color: #fff;
  animation: reqSpin 0.8s linear infinite;
  vertical-align: -1px;
}

@keyframes reqSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  #requestBtn {
    right: 14px;
    bottom: 92px;
  }
}

/* =====================================================
   HOME PRODUCTS: FINAL CONSISTENT MOBILE GRID
   (prevents device-specific misalignment from conflicting rules)
===================================================== */
#homeProducts.products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 10px !important;
  box-sizing: border-box;
  align-items: stretch;
}

#homeProducts.products-grid > .card-mini {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
}

#homeProducts.products-grid > .card-mini .img-wrap {
  width: 100%;
  height: 120px;
}

#homeProducts.products-grid > .card-mini .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  #homeProducts.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  #homeProducts.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.levelup-box {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  animation: popIn 0.4s ease;
}

.levelup-box h2 {
  margin-bottom: 10px;
}

.levelup-box button {
  margin-top: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* POP ANIMATION */
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* CONFETTI CANVAS */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
/* ===== PIGGY BANK DESIGN ===== */

.savings-card {
  background: linear-gradient(135deg, #fff5e6, #ffe0b3);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.savings-amount {
  font-size: 38px;
  font-weight: bold;
  color: #ff8c00;
  margin: 15px 0;
}

.savings-status {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.savings-progress {
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.savings-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  transition: width 0.4s ease;
}

.withdraw-info {
  font-size: 14px;
  color: #666;
}
/* ===== PIGGY BREAK ANIMATION ===== */

@keyframes shakePiggy {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes breakEffect {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.piggy-shake {
  animation: shakePiggy 0.6s ease;
}

.piggy-break {
  animation: breakEffect 0.6s ease forwards;
}

.coin-burst {
  position: absolute;
  font-size: 24px;
  animation: floatUp 1s ease forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-60px); opacity: 0; }
}
/* ===== XP FLOAT ANIMATION ===== */

#xpFloatingContainer {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.xp-float {
  font-size: 32px;
  font-weight: 700;
  color: #7b5cff;
  text-shadow: 0 0 10px rgba(123, 92, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: xpRise 1.5s ease forwards;
  white-space: nowrap;
  user-select: none;
}

@keyframes xpRise {
  0% { 
    opacity: 0; 
    transform: translateY(20px) scale(0.8); 
  }
  20% { 
    opacity: 1; 
    transform: translateY(0) scale(1.1); 
  }
  50% {
    transform: translateY(-20px) scale(1);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-80px) scale(1.3); 
  }
}

/* XP glow effect */
.xp-glow {
  animation: xpGlow 0.6s ease;
}

@keyframes xpGlow {
  0% { box-shadow: 0 0 0px #7b5cff; }
  50% { box-shadow: 0 0 20px #7b5cff; }
  100% { box-shadow: 0 0 0px #7b5cff; }
}
/* =========================================
   ACCOUNT PAGE – CLEAN FINAL VERSION
========================================= */

#account {
  width: 100%;
  padding: 40px 60px 140px;
  box-sizing: border-box;
}

/* ================= GUEST VIEW ================= */

.guest-wrapper {
  width: 100%;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

/* ================= HEADER ================= */

.account-header-card {
  width: 100%;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  margin-bottom: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ================= ACCOUNT CARD (hover + glow) ================= */

#account .account-card {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

#account .account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(120deg, #6b5cff, #a855f7, #6b5cff);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

#account .account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

#account .account-card:hover::before {
  opacity: 0.25;
}

#account .welcome-card {
  animation: welcomeFade 0.6s ease;
}

@keyframes welcomeFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#account .wallet-amount {
  font-weight: 700;
  color: #6b5cff;
  transition: all 0.25s ease;
}

#account .wallet-amount:hover {
  transform: scale(1.05);
  color: #7b61ff;
}

#account .referrer-item,
#account .leaderboard-item.referrer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

#account .referrer-item:hover,
#account .leaderboard-item.referrer-item:hover {
  transform: translateX(4px);
}

#account .referrer-item span:first-child,
#account .leaderboard-item.referrer-item span:first-child {
  display: inline-block;
  animation: medalFloat 2s ease-in-out infinite;
}

@keyframes medalFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* Profile container (inline layout) */
.profile-container {
  display: flex;
  gap: 30px;
  padding: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.profile-left {
  width: 30%;
  min-width: 200px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-left .profile-display-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-left .profile-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.profile-left .profile-username-text {
  font-size: 1.25rem;
  margin: 12px 0 4px;
  color: #1f2937;
}
.profile-left .profile-bio-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.4;
  min-height: 1.4em;
}
.profile-right {
  flex: 1;
  min-width: 240px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: start;
}
.profile-right .stat-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.profile-right .stat-box h3 {
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: #6b5cff;
}
.profile-right .stat-box p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}
.profile-right .ref-box {
  grid-column: span 3;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.profile-right .ref-box p {
  font-size: 0.9rem;
  margin: 0 0 8px;
  color: #374151;
}
.profile-right .ref-box-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile-right .ref-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
}
.profile-right .ref-box button {
  padding: 10px 18px;
  background: #6b5cff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.profile-right .ref-box button:hover {
  background: #5a4de6;
}
@media (max-width: 700px) {
  .profile-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    align-items: center;
    overflow-x: hidden;
  }
  .profile-left {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .profile-right {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr;
  }
  .profile-right .ref-box { grid-column: span 1; }
}

/* Invite Link - mobile */
@media (max-width: 700px) {
  .profile-right .ref-box {
    padding: 16px;
  }
  .profile-right .ref-box-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .profile-right .ref-box input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .profile-right .ref-box button {
    width: 100%;
  }
}

/* Profile expand modal (big card) */
.profile-expand-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: profileExpandFadeIn 0.3s ease;
}
.profile-expand-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.profile-expand-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: profileExpandScaleIn 0.35s ease;
}
.profile-expand-card.profile-expand-simple {
  padding: 48px 40px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-expand-simple .profile-expand-avatar-wrap {
  width: 220px;
  height: 220px;
  margin: 0;
}
.profile-expand-simple .profile-expand-placeholder {
  font-size: 5rem;
}
@keyframes profileExpandFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes profileExpandScaleIn {
  from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); }
}
.profile-expand-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
}
.profile-expand-close:hover {
  background: #e5e7eb;
  color: #374151;
}
.profile-expand-avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #6b5cff, 0 4px 20px rgba(107,92,255,0.3);
}
.profile-expand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-expand-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.profile-left.profile-expand-trigger { cursor: pointer; }

/* Bottom nav profile avatar */
.bottom-account-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.bottom-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #6b5cff, 0 0 8px rgba(107,92,255,0.4);
}
.bottom-account-fallback {
  font-size: 1.4rem;
}
.bottom-account-wrap.has-avatar .bottom-account-fallback {
  display: none !important;
}
.bottom-account-wrap.has-avatar .bottom-profile-avatar {
  display: block !important;
}
.bottom-item.active .bottom-profile-avatar {
  box-shadow: 0 0 0 2px #10b981, 0 0 10px rgba(16,185,129,0.5);
}

/* Edit Profile modal */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.profile-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.profile-modal-content h3 { margin-top: 0; margin-bottom: 20px; }
.profile-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.profile-modal-actions .secondary-btn { flex: 1; }
.profile-modal-actions .primary-btn { flex: 1; }

/* Edit Profile card (inside modal) */
.edit-profile-card .edit-profile-row,
.profile-modal-content .edit-profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.edit-profile-card .profile-avatar-wrap,
.profile-modal-content .profile-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.edit-profile-card .profile-avatar,
.profile-modal-content .profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.edit-profile-card .profile-avatar.placeholder,
.profile-modal-content .profile-avatar.placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.edit-profile-card .profile-upload-btn,
.profile-modal-content .profile-upload-btn {
  font-size: 0.85rem;
  color: #6b5cff;
  cursor: pointer;
  text-decoration: underline;
}
.edit-profile-card .edit-profile-fields,
.profile-modal-content .edit-profile-fields {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edit-profile-card .edit-profile-fields label,
.profile-modal-content .edit-profile-fields label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}
.edit-profile-card .edit-profile-fields input,
.edit-profile-card .edit-profile-fields textarea,
.profile-modal-content .edit-profile-fields input,
.profile-modal-content .edit-profile-fields textarea {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
}
.edit-profile-card .edit-profile-fields textarea,
.profile-modal-content .edit-profile-fields textarea {
  resize: vertical;
  min-height: 70px;
}
@media (max-width: 500px) {
  .edit-profile-card .edit-profile-row {
    flex-direction: column;
  }
}

#account .activity-icon {
  display: inline-block;
  animation: pulseIcon 2.5s ease-in-out infinite;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#account .reward-list li {
  opacity: 0;
  transform: translateY(8px);
  animation: rewardFade 0.4s ease forwards;
}

#account .reward-list li:nth-child(1) { animation-delay: 0.1s; }
#account .reward-list li:nth-child(2) { animation-delay: 0.2s; }
#account .reward-list li:nth-child(3) { animation-delay: 0.3s; }
#account .reward-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes rewardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MAIN GRID ================= */

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  margin-bottom: 60px;
}

/* ================= GENERAL CARD ================= */

.info-card {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

#account .info-card.account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-card h3 {
  margin-bottom: 18px;
}

/* ================= WALLET ================= */

.wallet-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

/* ================= LIST ================= */

.info-list {
  padding-left: 18px;
}

.info-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ================= REFER SECTION ================= */

.account-wide-card {
  width: 100%;
  margin-top: 40px;
}

/* Referral box stacked vertically */
.referral-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  margin: 18px 0;
}

#referralCode {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}

#copyReferralBtn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#6d5dfc,#8e6dfc);
  color: white;
  cursor: pointer;
  font-weight: 500;
}

/* Referral stats */
.referral-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.ref-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-stat strong {
  font-size: 18px;
}

/* ================= LOGOUT ================= */

.logout-card {
  margin-top: 30px;
}

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

/* Tablet */
@media (max-width: 1000px) {
  #account {
    padding: 30px 30px 120px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #account {
    padding: 20px 16px 120px;
    overflow-x: hidden;
  }
  #account .profile-container {
    padding: 12px 0;
    margin-left: 0;
    margin-right: 0;
  }

  .guest-card {
    padding: 30px;
  }

  .account-header-card {
    padding: 20px;
  }

  .info-card {
    padding: 18px;
    border-radius: 14px;
  }

  .account-grid {
    gap: 20px;
    margin-bottom: 30px;
  }

  .referral-box {
    padding: 14px;
    gap: 10px;
  }

  .referral-stats {
    flex-direction: column;
    gap: 12px;
  }

  .account-wide-card {
    margin-top: 20px;
  }

  .logout-card {
    margin-top: 20px;
  }
}
/* FORCE FULL WIDTH GRID ITEMS */
.account-grid {
  width: 100%;
}

.account-grid .info-card {
  width: 100%;
}

/* ================= FORCE FULL WIDTH MOBILE FIX ================= */

@media (max-width: 768px) {

  .account-grid {
    width: 100%;
  }

  .account-grid .info-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

}

/* ===== BREAK BUTTON GLOW ===== */
#claimBtn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#claimBtn.enabled {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(168,85,247,0.4); }
  50% { box-shadow: 0 0 25px rgba(168,85,247,0.8); }
  100% { box-shadow: 0 0 10px rgba(168,85,247,0.4); }
}

/* ===== PIGGY SHAKE BEFORE BREAK ===== */
.piggy-shake {
  animation: shakePiggy 0.6s ease;
}

@keyframes shakePiggy {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* ===== BREAK EXPLOSION EFFECT ===== */
.break-effect {
  animation: breakPop 0.5s ease forwards;
}

@keyframes breakPop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===== MONEY FLOATING EFFECT ===== */
.money-float {
  position: absolute;
  font-size: 22px;
  animation: floatUp 1.5s ease forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100px); opacity: 0; }
}

/* =========================================================================
   SMART HOME (Amazon-like safe UI layer)
   - Uses only new classes (no removals / no overrides of your core UI)
=========================================================================== */
.banner-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 0 12px 6px;
}

.banner-slider::-webkit-scrollbar {
  height: 6px;
}

.banner-card {
  min-width: 260px;
  max-width: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  flex: 0 0 auto;
}

.banner-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  width: 100%;
  height: 160px;
  background: #f3f4f6;
}

.banner-info {
  padding: 10px 12px 12px;
}

.banner-info h2 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 4px;
  font-weight: 700;
  color: #111827;
}

.banner-info p {
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 700;
  margin: 0;
}

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 12px 10px;
}

.scroll-row::-webkit-scrollbar {
  height: 6px;
}

/* Hide scrollbar track/line while keeping horizontal scroll enabled */
.scroll-row {
  scrollbar-width: none; /* Firefox */
}
.scroll-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ===== DEALZ CONTAINER (Best Dealz + Trending layout) ===== */
.dealz-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
}

.deal-section {
  margin: 20px 0;
}

.deal-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  padding-left: 10px;
}

/* ===== ULTRA PRO DEALZ LAYOUT ===== */
.hero-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  padding: 15px;
}

.big-hero--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.big-hero--split .hero-media {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.big-hero--split .hero-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
}

.dealz-hero-img.fade-in {
  animation: dealzFadeIn 220ms ease-out;
}

@keyframes dealzFadeIn {
  from { opacity: 0.55; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

.big-hero--split .hero-content {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.big-hero--split .hero-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.big-hero--split .hero-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ff9900;
  color: #111827;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(255, 153, 0, 0.25);
}

.big-hero--split .hero-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.big-hero--split .hero-sub {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.hero-right {
  display: grid;
  gap: 10px;
}

.mini-hero--row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.mini-hero--row .mini-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mini-hero--row .mini-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mini-hero--row .mini-content {
  min-width: 0;
}

.mini-hero--row .mini-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.mini-hero--row .mini-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-hero--row .mini-price {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 900;
  font-size: 12px;
}

.flash-sale {
  padding: 15px;
  margin: 10px 15px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff6a00, #ffb347);
  color: #fff;
}

.flash-sale h2 {
  margin: 0 0 10px;
  padding-left: 0;
  font-size: 18px;
}

.flash-sale .deal-row {
  padding: 0;
}

/* Mobile: make Flash Sale a proper horizontal slider */
.flash-sale .deal-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
}

.flash-sale .deal-row > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Ensure cards don't shrink into thin strips */
.flash-sale .deal-row .card-mini {
  width: 170px;
  min-width: 170px;
}

@media (max-width: 480px) {
  .flash-sale .deal-row .card-mini {
    width: 150px;
    min-width: 150px;
  }
}

.premium-banner {
  margin: 20px 15px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 12px;
  font-weight: 800;
  color: #111827;
}

.premium-banner h2 {
  margin: 0 0 8px;
  padding-left: 0;
}

.premium-banner p {
  margin: 0;
  font-weight: 700;
}

.card-highlight {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 15px;
}

.highlight-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef2f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.highlight-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
}

.highlight-card h3 {
  font-size: 13px;
  margin: 10px 0 6px;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.highlight-card p {
  margin: 0 0 10px;
  font-weight: 800;
  color: #111827;
}

.highlight-card button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: #ff9900;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

.highlight-card button:hover {
  filter: brightness(0.97);
}

.deal-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 15px;
}

.big-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.big-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.big-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.big-info {
  padding: 10px;
}

.big-info h3 {
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 6px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.big-info p {
  margin: 0;
  font-weight: 700;
  color: #111827;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 10px;
}

.deal-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
}

.deal-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #ff9900;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.load-more-btn:hover {
  filter: brightness(0.98);
}

/* Banner between sections */
.deal-banner {
  margin: 20px;
  padding: 25px;
  background: #ffe0b2;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .big-hero--split {
    grid-template-columns: 1fr;
  }
  .big-hero--split .hero-img {
    height: 220px;
  }
  .card-highlight {
    grid-template-columns: repeat(2, 1fr);
  }
  .deal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .deal-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-highlight {
    grid-template-columns: 1fr;
  }
  .deal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deal-hero-grid {
    grid-template-columns: 1fr;
  }
  .deal-banner {
    margin: 12px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .deal-grid {
    grid-template-columns: 1fr;
  }
}

.best-dealz {
  width: 240px;
  flex-shrink: 0;
}

.best-dealz h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.best-dealz .grid-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.best-dealz .product-card {
  width: 100%;
  max-width: 240px;
}

.best-dealz .product-card .product-image,
.best-dealz .product-card img {
  height: 120px;
  object-fit: contain;
}

/* Right side (Trending) - full width */
.dealz-container .trending-wrapper {
  width: calc(100% - 260px);
  overflow: hidden;
  position: relative;
}

.dealz-container .trending-wrapper h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .dealz-container {
    flex-direction: column;
  }

  .best-dealz {
    width: 100%;
  }

  .dealz-container .trending-wrapper {
    width: 100%;
  }
}

/* ===== AMAZON-STYLE MULTI-CARD SECTION (4 per row, grid in main block above) ===== */
.multi-section,
#multiSection {
  padding: 16px;
}

.multi-card {
  background: white;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.multi-main-img,
.main-product-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
  cursor: pointer;
}

.multi-title,
.product-title {
  font-size: 13px;
  margin: 6px 0;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.multi-price,
.product-price {
  font-size: 16px;
  font-weight: bold;
  color: #B12704;
}

.multi-mrp,
.strike {
  font-size: 12px;
  text-decoration: line-through;
  color: #555;
  margin-left: 6px;
}

.multi-small,
.product-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.multi-small img,
.thumb-img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.multi-see-more,
.multi-card button {
  margin-top: 8px;
  width: 100%;
  padding: 6px;
  background: #007185;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.multi-see-more:hover {
  background: #005f6b;
}

/* ===== DEALS PAGE: Full width, vertical stack ===== */
#dealsProducts {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  width: 100%;
  padding: 0 12px 16px;
  box-sizing: border-box;
}
#dealsProducts > * {
  width: 100% !important;
  min-width: 0 !important;
}

/* ===== TRENDING SECTION (full width) ===== */
.trending-section {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

/* Main content: prevent horizontal overflow */
#mainContent {
  overflow-x: hidden;
  width: 100%;
}

/* Deals page: full width, section + grid layout */
#deals.page.active {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#deals .section,
#deals .trending-section {
  width: 100%;
  box-sizing: border-box;
}

#deals .section .grid-layout {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  #deals .section .grid-layout {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.trending-section h3,
.trending-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* GRID MODE: ≤8 products — no empty space, no slider */
.trending-section.trending-grid-mode .trending-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.trending-section.trending-grid-mode .trending-grid .trending-card {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

@media (max-width: 1024px) {
  .trending-section.trending-grid-mode .trending-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .trending-section.trending-grid-mode .trending-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.trending-wrapper.trending-slider-mode {
  overflow: hidden;
  width: 100%;
}

.trending-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 14px;
  padding: 10px 5px;
  scroll-behavior: smooth;
  max-width: 100%;
}

.trending-row::-webkit-scrollbar {
  display: none;
}

.trending-row {
  scrollbar-width: none;
}

.trending-row > * {
  flex-shrink: 0 !important;
}

.trending-card {
  flex: 0 0 200px !important;
  width: 200px !important;
  flex-shrink: 0 !important;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.trending-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.trending-name,
.trending-card .trending-title {
  font-size: 13px;
  min-height: 38px;
  height: 38px;
  overflow: hidden;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
}

.trending-price {
  font-size: 16px;
  font-weight: bold;
  color: #B12704;
  margin-top: 5px;
  flex-shrink: 0;
}

.trending-off {
  font-size: 12px;
  color: green;
}

.trending-buy,
.trending-card .buy-btn,
.buy-btn {
  background: #f0c14b;
  border: none;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  margin-top: auto;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.trending-buy:hover,
.trending-card .buy-btn:hover {
  background: #e6b73d;
}

/* Trending scroll arrows (Amazon carousel style) */
.trending-wrapper {
  position: relative;
}

.trending-wrapper .scroll-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #ddd;
  width: 35px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 4px;
  opacity: 0.9;
}

.trending-wrapper .scroll-btn:hover {
  background: #f3f3f3;
}

.trending-wrapper .scroll-left {
  left: 0;
}

.trending-wrapper .scroll-right {
  right: 0;
}

@media (max-width: 768px) {
  .trending-wrapper .scroll-btn {
    display: none;
  }
}

.card-mini {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.scroll-row .card-mini {
  flex: 0 0 auto;
  width: 180px;
  max-width: 180px;
}

.product-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
  border-radius: 10px;
}

.product-img-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 10px;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0 8px;
  color: #333;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-mini .price {
  color: #111827;
  font-weight: bold;
}

.discount-green {
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
}

.card-mini .old {
  text-decoration: line-through;
  color: #888;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-mini .buy-btn {
  margin-top: 6px;
  flex: 1;
  width: auto;
  background: #ff9900;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.card-mini .cart-btn {
  margin-top: 6px;
  width: 44px;
  flex: 0 0 44px;
  padding: 6px 0;
  border-radius: 10px;
  text-align: center;
}

/* Clean mobile card structure (img-wrap + info) */
.card-mini .img-wrap {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-mini .img-wrap .product-img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.card-mini .img-wrap .product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-mini .info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-mini .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 34px; /* prevent overlap on small screens */
}

@media (max-width: 600px) {
  .card-mini .img-wrap {
    height: 90px;
  }

  .card-mini .product-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 34px; /* prevent overlap */
  }

  .card-mini .card-actions {
    margin-top: 2px;
  }
}

.card-mini .buy-btn,
.card-mini .cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .grid-layout {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section {
  margin: 32px 0;
  padding: 0 10px;
}

.section > h2 {
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Badge (Smart homepage UX) */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
}

.badge-hot {
  background: #ff3d00;
}

.badge-limited {
  background: #6c4cff;
  top: 26px; /* below Hot badge */
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Smart-only: hide cart icon in homepage rows to keep UI clean */
#homeSmartContainer .card-actions .cart-btn {
  display: none;
}

/* Category grid blocks (Amazon-like, NOT product cards) */
.category-block {
  margin: 32px 0 0;
  padding: 0 10px;
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-block-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.category-see-more {
  border: none;
  background: #007185;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.category-see-more:hover {
  background: #005f74;
}

.category-block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .category-block-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.category-tile-img {
  width: 100%;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f4f6;
}

.category-tile-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.category-tile-label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  width: 100%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Big deal card */
.big-deal-card {
  margin: 16px 10px 0;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.big-deal-left {
  flex: 0 0 42%;
}

.big-deal-img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 14px;
  display: block;
}

.big-deal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.big-deal-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.big-deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.big-deal-price {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.big-deal-discount {
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
}

.big-deal-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.big-deal-buy {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .big-deal-card {
    flex-direction: column;
    align-items: stretch;
  }

  .big-deal-left {
    flex: 0 0 auto;
  }

  .big-deal-img {
    height: 160px;
  }
}

/* =========================================================================
   FINAL UI PERFECTION OVERRIDES (CSS-ONLY)
   - Fix: image containment (no crop)
   - Fix: consistent product card/grid spacing
   - Fix: big deal highlight premium layout
   - Fix: category block tile visibility
=========================================================================== */

/* Ensure images never get cropped */
.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-img-placeholder {
  object-fit: contain;
}

/* Card consistency for legacy + related sections */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Keep title single-line in compact contexts */
.product-card .product-title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  line-height: 1.2;
  height: 32px;
  overflow: hidden;
}

/* Contain images for any product-card that might still be used */
.product-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Grid consistency (inherits from main .products-grid) */
.products-grid {
  display: grid;
  gap: 16px;
  padding: 10px;
  box-sizing: border-box;
}

/* Big deal highlight (premium grid) */
.big-deal-card {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.big-deal-img {
  height: 250px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .big-deal-card {
    grid-template-columns: 1fr;
  }

  .big-deal-img {
    height: 200px;
  }
}

/* Category block tiles: ensure they don't appear empty */
.category-block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .category-block-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .category-block-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .category-tile {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
  }
}

.category-tile-img {
  height: 80px !important;
  object-fit: contain !important;
}

.category-tile {
  padding: 6px 4px;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}

/* =========================================================================
   AMAZON-STYLE AI SECTIONS (image-only slider + grid)
=========================================================================== */

.ai-image-slider {
  margin: 16px 0;
  padding: 0 10px;
}

.ai-image-slider h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #111;
}

.ai-image-slider .slider-wrapper {
  position: relative;
}

.ai-image-slider .slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
}

.ai-image-slider .slider-track::-webkit-scrollbar {
  display: none;
}

.ai-slide-item {
  min-width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
}

.ai-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-image-slider .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
}

.ai-image-slider .scroll-btn.left {
  left: -10px;
}

.ai-image-slider .scroll-btn.right {
  right: -10px;
}

.ai-grid-section {
  margin: 16px 0;
  padding: 0 10px;
}

.ai-grid-section h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #111;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ai-grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.ai-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ai-slide-item {
    min-width: 110px;
    height: 110px;
  }

  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ai-slide-item {
    min-width: 160px;
    height: 160px;
  }
}

/* =========================================================================
   SMART HOME: AMAZON-STYLE STABLE LAYOUT (scoped to homeSmartContainer)
=========================================================================== */

#homeSmartContainer .hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  margin: 0 10px 20px;
  gap: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  align-items: center;
}

#homeSmartContainer .hero-left img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
}

#homeSmartContainer .hero-left {
  width: 100%;
}

#homeSmartContainer .hero-right h2 {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  margin: 0 0 8px;
}

#homeSmartContainer .hero-right p {
  margin: 0 0 12px;
  font-weight: 800;
  color: #111827;
  font-size: 22px;
}

#homeSmartContainer .hero-right .hero-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#homeSmartContainer .hero-right .hero-price-row .mrp {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

#homeSmartContainer .hero-right .hero-price-row .discount {
  color: #16a34a;
  font-weight: 900;
  font-size: 14px;
}

#homeSmartContainer .hero-buy {
  background: linear-gradient(90deg, #ff7a00, #ff3d00) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  width: fit-content !important;
  display: inline-block !important;
  justify-self: start !important;
  margin-top: 12px !important;
}

#homeSmartContainer .hero-img-placeholder {
  width: 100%;
  height: 300px;
  background: #f3f4f6;
  border-radius: 14px;
}

#homeSmartContainer .category-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 16px;
}

#homeSmartContainer .category-box {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Floating premium feel (scoped to smart homepage only) */
#homeSmartContainer .h-section,
#homeSmartContainer .grid-section,
#homeSmartContainer .category-box,
#homeSmartContainer .big-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  #homeSmartContainer .h-section:hover,
  #homeSmartContainer .grid-section:hover,
  #homeSmartContainer .category-box:hover,
  #homeSmartContainer .big-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
}

#homeSmartContainer .category-box h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

/* Clean premium titles inside smart home */
#homeSmartContainer h3 {
  font-weight: 600;
  color: #1a1a1a;
}

#homeSmartContainer .category-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .category-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#homeSmartContainer .category-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 8px 10px;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

#homeSmartContainer .category-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
}

#homeSmartContainer .category-item-img-placeholder {
  width: 100%;
  height: 90px;
  background: #fff;
  border-radius: 8px;
}

#homeSmartContainer .category-item p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 32px; /* prevent overlap */
}

#homeSmartContainer .category-products > * {
  min-width: 0;
  max-width: 100%;
}

/* old smart-home category styles (cat-grid/cat-item) are no longer used */

#homeSmartContainer .h-section {
  padding: 0 10px;
  margin: 28px 0 0;
}

#homeSmartContainer .h-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .h-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
}

#homeSmartContainer .h-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

#homeSmartContainer .h-card {
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  transition: 0.25s ease;
}

#homeSmartContainer .h-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
  border-radius: 10px;
}

/* =========================================================================
   Product Detail UI Polish (scoped)
=========================================================================== */

#productDetail #detailTitle.product-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
  color: #020617;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: vertical !important;
}

#productDetail #detailPrice.product-description {
  font-size: 20px;
  font-weight: 800;
  color: #b12704;
  margin: 0 0 4px;
}

#productDetail #detailMeta.product-meta {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px;
}

#homeSmartContainer .h-img-placeholder {
  width: 100%;
  height: 140px;
  background: #f3f4f6;
  border-radius: 10px;
}

#homeSmartContainer .h-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  height: 34px;
  overflow: hidden;
}

/* Smart grid sections (Continue / Inspired / Cart based) */
#homeSmartContainer .grid-section {
  padding: 0 16px;
  margin: 28px 0 0;
}

#homeSmartContainer .grid-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

#homeSmartContainer .big-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

#homeSmartContainer .big-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

#homeSmartContainer .big-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  background: #f3f4f6;
  border-radius: 10px;
}

#homeSmartContainer .big-img-placeholder {
  width: 100%;
  height: 200px;
  background: #f3f4f6;
  border-radius: 10px;
}

#homeSmartContainer .big-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  height: 36px;
  overflow: hidden;
}

#homeSmartContainer .big-price-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#homeSmartContainer .big-price {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .big-mrp {
  text-decoration: line-through;
  color: #6b7280;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

#homeSmartContainer .big-discount {
  margin-top: 6px;
  color: #16a34a;
  font-weight: 900;
  font-size: 12px;
}

@media (max-width: 768px) {
  #homeSmartContainer .grid-2 {
    grid-template-columns: repeat(1, 1fr);
  }
}

#homeSmartContainer .h-price {
  margin-top: 6px;
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .h-price-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

#homeSmartContainer .h-price-row .price {
  font-weight: 900;
  color: #111827;
}

#homeSmartContainer .h-price-row .mrp {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#homeSmartContainer .h-price-row .discount {
  color: #16a34a;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

#homeSmartContainer .h-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#homeSmartContainer .h-scroll-wrapper {
  position: relative;
}

#homeSmartContainer .h-scroll {
  padding: 0 40px 6px;
  scroll-behavior: smooth;
}

#homeSmartContainer .h-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  line-height: 32px;
  padding: 0;
}

#homeSmartContainer .h-scroll-arrow.left {
  left: 10px;
}

#homeSmartContainer .h-scroll-arrow.right {
  right: 10px;
}

#homeSmartContainer .h-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff3d00;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 4px;
  padding: 2px 6px;
}

@media (max-width: 768px) {
  #homeSmartContainer .hero-section {
    grid-template-columns: 1fr;
    margin: 0 10px 20px;
  }

  #homeSmartContainer .hero-left img,
  #homeSmartContainer .hero-img-placeholder {
    height: 240px;
  }

  #homeSmartContainer .category-row {
    grid-template-columns: repeat(1, 1fr);
  }

  #homeSmartContainer .h-card {
    min-width: 180px;
  }

  #homeSmartContainer .h-scroll {
    padding: 0 6px 6px;
  }

  #homeSmartContainer .h-scroll-arrow {
    display: none;
  }
}

/* Full white restore: global base */
body {
  background: #f8fafc !important;
  color: #111 !important;
}

h1, h2, h3, h4, h5, h6,
p, span, div {
  color: #111 !important;
}

/* White cards/surfaces stay readable on every page */
.card,
.section,
.product-card,
.wallet-container,
.support-container,
.faq-container {
  background: #ffffff;
  color: #111;
  border-radius: 12px;
}

.card *,
.section *,
.product-card *,
.wallet-container *,
.support-container *,
.faq-container * {
  color: #111 !important;
}

/* Navbar clean light style */
.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb;
}

.navbar * {
  color: #111 !important;
}

/*
========================================================
DROPDOWN (clean, no overrides)
========================================================
*/

.nav-right {
  position: relative;
}

.nav-dropdown-desktop {
  position: absolute;
  top: 55px;
  right: 0;

  width: 220px;
  padding: 8px 0;

  background: #ffffff;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  display: none;
  flex-direction: column;

  z-index: 9999;
}

.nav-right.desktop-dropdown-open .nav-dropdown-desktop {
  display: flex;
}

.nav-dropdown-desktop a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;

  color: #111 !important;
  text-decoration: none;

  transition: background 0.2s ease;
}

.nav-dropdown-desktop a:not(.active):hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #111 !important;
}

.nav-dropdown-desktop a:not(.active):hover span,
.nav-dropdown-desktop a:not(.active):hover i,
.nav-dropdown-desktop a:not(.active):hover * {
  color: #111 !important;
  opacity: 1 !important;
}

.nav-dropdown-desktop a:active,
.nav-dropdown-desktop a.active {
  background: #22c55e !important;
  color: #ffffff !important;
}

.nav-dropdown-desktop a.active * {
  color: #ffffff !important;
}

/* =========================================================================
   ABOVE-FOLD AMAZON-STYLE (compact navbar, category)
=========================================================================== */

.navbar {
  padding: 6px 10px !important;
}

.top-search-inner {
  padding: 4px 8px !important;
}

.top-search-inner input {
  font-size: 0.85rem !important;
}

.cat-item {
  min-width: 60px !important;
  font-size: 0.7rem !important;
}

.cat-item img {
  width: 32px !important;
  height: 32px !important;
}

.reward-slider .slide {
  padding: 10px !important;
}

.reward-slider h2 {
  font-size: 1rem !important;
}

.reward-slider p {
  font-size: 0.8rem !important;
}

@media (max-width: 768px) {
  .cat-item {
    min-width: 55px !important;
  }
}

/* =========================================================================
   AMAZON-STYLE CATEGORY BAR
=========================================================================== */

.amazon-category-bar {
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  will-change: transform;
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

.amazon-category-bar::-webkit-scrollbar {
  display: none;
}

.amazon-cat {
  position: relative;
  min-width: 140px;
  height: 95px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transform: translateZ(0);
  will-change: transform;
}

.amazon-cat .cat-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(1.1) contrast(1.05);
  will-change: transform;
  transform: scale(1.01);
}

.amazon-cat .cat-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
  z-index: 2;
}

.amazon-cat .cat-content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #ffffff !important;
  z-index: 3;
}

.amazon-cat .cat-content h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
  color: #ffffff !important;
}

.amazon-cat .cat-content p {
  font-size: 11px;
  margin: 2px 0 0;
  color: #ffffff !important;
  opacity: 0.95;
}

.amazon-cat:hover {
  transform: translateZ(0);
}

.amazon-cat.active {
  outline: 3px solid #22c55e;
}

@media (max-width: 768px) {
  .amazon-cat {
    min-width: 130px;
    height: 95px;
  }
}

/* =========================================================================
   BIG PRODUCT ROW (Amazon style)
=========================================================================== */

.big-product-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 16px;
}

.big-product-row::-webkit-scrollbar {
  display: none;
}

.big-product-card {
  min-width: 140px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.big-product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}

.big-product-img-placeholder {
  width: 100%;
  height: 120px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.big-product-price {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  color: #111;
}

.big-product-discount {
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 500;
}

@media (max-width: 768px) {
  .big-product-card {
    min-width: 120px;
  }

  .big-product-card img,
  .big-product-img-placeholder {
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .big-product-card {
    min-width: 180px;
  }

  .big-product-card img,
  .big-product-img-placeholder {
    height: 140px;
  }
}

/* SEO Footer (trust links) */
.seo-footer {
  padding: 24px 16px;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}
.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.seo-footer-links a {
  color: #4b5563;
  text-decoration: none;
}
.seo-footer-links a:hover {
  color: #111;
  text-decoration: underline;
}
.seo-footer-links span {
  color: #d1d5db;
}
.seo-footer-copy {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

/* ===== MY CASHBACK PAGE ===== */
#cashback .cashback-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#cashback .progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}
#cashback .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.5s ease;
}
#cashback .step {
  font-size: 13px;
  margin: 4px 0;
  color: #999;
}
#cashback .step.done {
  color: green;
  font-weight: 500;
}
#cashback .step.active {
  color: orange;
}
#cashback .unlock-btn {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
#cashback .unlock-btn.locked {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}
#cashback .unlock-btn.ready {
  background: green;
  color: white;
}

/* ===== FINAL SEARCH OVERLAY LOCK (always on top, all breakpoints) ===== */
.top-header {
  z-index: 2147483000 !important;
}

.top-header .search-container {
  position: relative !important;
  z-index: 2147483600 !important;
}

#suggestionsBox.suggestions-box,
.top-header .search-container .suggestions-box {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  z-index: 2147483647 !important;
}

@media (max-width: 1100px) {
  #suggestionsBox.suggestions-box,
  .top-header .search-container .suggestions-box {
    z-index: 2147483647 !important;
  }
}

/* ===== MOBILE HEADER STABILIZER (keep PC unchanged) ===== */
@media (max-width: 768px) {
  .top-header {
    height: 60px !important;
    min-height: 60px !important;
  }

  .header-container {
    min-height: 60px !important;
    height: 60px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .top-header .logo-img {
    width: 28px !important;
    height: 28px !important;
  }

  .top-header .logo-text {
    font-size: 18px !important;
  }

  .top-header .search-container {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
  }

  .top-header .custom-menu.header-links {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .top-header .custom-menu.header-links .nav-link {
    display: none !important;
  }

  .top-header .custom-menu.header-links .menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
  }

  .main-content,
  .home-container,
  .products-section {
    margin-top: 68px !important;
  }
}

/* ===== MOBILE ONLY: AMAZON/FLIPKART-LIKE TOP BAR ===== */
@media (max-width: 768px) {
  .top-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    z-index: 2147483000 !important;
    overflow: visible !important;
  }

  .header-container {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
  }

  .top-header .logo-container {
    min-width: 32px !important;
    width: 32px !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .top-header .logo-img {
    width: 28px !important;
    height: 28px !important;
  }

  .top-header .logo-text {
    display: none !important;
  }

  .top-header .search-container {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    height: 36px !important;
    margin: 0 !important;
    z-index: 2147483600 !important;
  }

  .top-header .search-container input {
    font-size: 14px !important;
    padding: 0 8px !important;
  }

  /* Keep all top links inside hamburger on phone */
  .top-header .custom-menu.header-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .top-header .custom-menu.header-links > .nav-link {
    display: none !important;
  }

  .top-header .custom-menu.header-links > .menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force suggestions above every product/grid layer on mobile */
  #suggestionsBox.suggestions-box,
  .top-header .search-container .suggestions-box {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: min(48vh, 320px) !important;
    z-index: 2147483647 !important;
  }

  .main-content,
  .home-container,
  .products-section {
    margin-top: 66px !important;
  }

  .menu-dropdown {
    top: 60px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 2147483647 !important;
  }
}

/* Prevent phone-specific horizontal clipping/shift on Home */
@media (max-width: 768px) {
  html,
  body,
  .main-content,
  #home.page.active {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  #homeProducts.products-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 10px 8px 16px !important;
  }

  #homeProducts.products-grid > .card-mini {
    min-width: 0 !important;
  }
}

/* Extra-safe Home grid sizing for device-specific viewport quirks */
@media (max-width: 768px) {
  #home {
    overflow-x: clip !important;
  }

  #home #multiSection,
  #home .multi-section,
  #home #homeProducts.products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 8px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  #home #multiSection > *,
  #home .multi-section > *,
  #home #homeProducts.products-grid > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}