/* ============================================================
   NeoVibe — Premium UI Components (Silver Metallic + Electric Blue)
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  background-image:
    radial-gradient(ellipse 1400px 800px at 80% -10%, rgba(0, 102, 238, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 1000px 600px at -5% 90%, rgba(200, 215, 235, 0.30) 0%, transparent 65%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ── Utility Animations ────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blue-pulse {
  0%, 100% { box-shadow: var(--shadow-blue); }
  50%       { box-shadow: 0 0 48px rgba(0,148,255,0.55), 0 0 16px rgba(0,148,255,0.40); }
}

/* ── Top Announcement Bar ──────────────────────────────────── */
.topbar {
  background: var(--grad-topbar);
  color: #0c1422;
  height: 36px;
  line-height: 36px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.topbar-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.topbar-content {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

.topbar-marquee:hover .topbar-content {
  animation-play-state: paused;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topbar-sep {
  color: rgba(0, 96, 204, 0.45);
  font-size: 0.75rem;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 600px 100%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

.topbar-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0060cc;
  margin-right: 4px;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
}

.topbar-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #0060cc;
  animation: pulse-ring 1.8s infinite ease-out;
}

/* ── Glassmorphic Navbar ───────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255,255,255,0.80), 0 4px 20px rgba(12,20,34,0.05);
  transition: all var(--t-normal) var(--ease-out);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,102,238,0.30), rgba(0,148,255,0.20), transparent);
  pointer-events: none;
}

.navbar.is-scrolled {
  background: rgba(246, 249, 253, 0.98);
  border-bottom-color: var(--border-mid);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 1.25rem;
  justify-content: space-between;
}

/* Brand */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.accent-dot {
  background: var(--grad-blue-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(0,102,238,0.5));
}

.brand-badge {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(0,102,238,0.08);
  border: 1px solid rgba(0,102,238,0.25);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(0,102,238,0.10);
}

/* Search */
.search-form {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  padding: 0.72rem 1.2rem 0.72rem 2.8rem;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.search-input::placeholder { color: var(--text-dim); }

.search-input:focus {
  outline: none;
  border-color: var(--border-blue-glow);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,102,238,0.12), var(--shadow-xs);
}


.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(192,210,230,0.06);
}

.nav-link.active {
  color: var(--text-main);
  background: rgba(0,148,255,0.10);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--grad-blue-vivid);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-blue);
}

/* Cart Button */
.cart-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0,148,255,0.10);
  border: 1px solid rgba(0,148,255,0.28);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-out);
  white-space: nowrap;
}

.cart-button:hover {
  background: rgba(0,148,255,0.20);
  border-color: var(--border-blue-glow);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--grad-blue-vivid);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,148,255,0.5);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Admin Portal Dropdown */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown:hover .admin-dropdown-menu,
.nav-item-dropdown:focus-within .admin-dropdown-menu,
.admin-dropdown-menu.is-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.admin-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  min-width: 190px;
  padding: 6px 0;
  z-index: 9999;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-dropdown-menu a:hover {
  background: rgba(0, 102, 238, 0.08);
  color: var(--blue) !important;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.8rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all var(--t-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Ripple effect layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
  border-radius: inherit;
}
.btn:active::after { background: rgba(255,255,255,0.08); }

/* Primary — Electric Blue Chrome */
.btn-primary {
  background: var(--grad-blue-vivid);
  color: #ffffff;
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-blue), var(--shadow-inset);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00ccff 0%, #0077ee 100%);
  box-shadow: 0 0 40px rgba(0,148,255,0.50), 0 0 14px rgba(0,148,255,0.35), var(--shadow-inset);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — Steel Ghost */
.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--border-blue-glow);
  box-shadow: 0 0 16px rgba(0,102,238,0.12);
  color: var(--blue);
  transform: translateY(-1px);
}

/* Accent — Cyan Glow */
.btn-accent {
  background: linear-gradient(135deg, #0066ee 0%, #0094ff 100%);
  color: #ffffff;
  font-weight: 900;
  border-color: rgba(0,148,255,0.30);
  box-shadow: 0 0 24px rgba(0,148,255,0.25);
}
.btn-accent:hover {
  box-shadow: 0 0 36px rgba(0,148,255,0.35);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1rem; }

/* Loading state */
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form Inputs ───────────────────────────────────────────── */
.nv-input {
  width: 100%;
  padding: 0.82rem 1.1rem;
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
  -webkit-appearance: none;
}

.nv-input::placeholder { color: var(--text-dim); font-weight: 400; }

.nv-input:focus {
  outline: none;
  border-color: var(--border-blue-glow);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,102,238,0.12), var(--shadow-xs);
}

.nv-input:hover:not(:focus) { border-color: var(--border-bright); }


select.nv-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237e95ae' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.nv-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.nv-field { display: grid; gap: 0; }

/* ── Hero Section ──────────────────────────────────────────── */
.hero-banner {
  background:
    linear-gradient(145deg, rgba(14,20,30,0.95) 0%, rgba(8,12,18,0.98) 100%),
    radial-gradient(ellipse 900px 600px at 90% 0%, rgba(0,148,255,0.12) 0%, transparent 65%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 5rem 4rem;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--grad-metallic);
  opacity: 0.45;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,148,255,0.08);
  border: 1px solid rgba(0,148,255,0.28);
  color: var(--cyan);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  box-shadow: 0 0 14px rgba(0,148,255,0.12);
}

.hero-heading {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
}

.gradient-text {
  background: linear-gradient(135deg, #e8f0f8 10%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 2.4rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-mockup-card {
  background: var(--grad-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md), 0 0 30px rgba(0,148,255,0.10);
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
  transition: transform var(--t-slow) var(--ease-out);
  animation: float-y 5s ease-in-out infinite;
}

.hero-mockup-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* ── Category Cards ────────────────────────────────────────── */
.category-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: all var(--t-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-metallic);
  opacity: 0.25;
}

.category-card:hover {
  border-color: rgba(0,148,255,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.65), var(--shadow-blue);
}

.category-icon-wrapper {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(0,148,255,0.14), rgba(0,60,120,0.08));
  border: 1px solid rgba(0,148,255,0.22);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  transition: all var(--t-normal) var(--ease-out);
  box-shadow: var(--shadow-inset);
}

.category-card:hover .category-icon-wrapper {
  transform: scale(1.12) rotate(5deg);
  background: linear-gradient(145deg, rgba(0,148,255,0.22), rgba(0,212,255,0.10));
  box-shadow: 0 0 20px rgba(0,148,255,0.25), var(--shadow-inset);
}

.category-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.category-count {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Product Cards ─────────────────────────────────────────── */
.product-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-metallic);
  opacity: 0.18;
}

.product-card:hover {
  border-color: rgba(0,148,255,0.38);
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.70), var(--shadow-blue);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: var(--sale-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  box-shadow: 0 0 14px rgba(0,148,255,0.40);
}

.product-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #111822, #0a0f18);
  position: relative;
  overflow: hidden;
}

.product-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.product-card:hover .product-img-box img {
  transform: scale(1.09);
}

.product-details {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.price-container { display: flex; align-items: baseline; gap: 0.5rem; }

.current-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
}

.old-price {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

/* ── Trust Grid ────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}

.trust-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-metallic);
  opacity: 0.25;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(0,148,255,0.14), rgba(0,30,80,0.08));
  border: 1px solid rgba(0,148,255,0.20);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-inset);
}

.trust-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.trust-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── Section Eyebrow / Labels ──────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-main);
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash-msg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid rgba(0, 102, 238, 0.28);
  color: #0b1118;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 10px 30px rgba(0, 102, 238, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.4s var(--ease-out) both;
}

.flash-msg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--grad-metallic);
}

.flash-msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 102, 238, 0.08);
  color: var(--blue);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.flash-msg-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.flash-msg-close:hover {
  color: var(--text-main);
}

.flash-msg.flash-msg-error,
.flash-msg.flash-msg-warning {
  border-color: rgba(239, 68, 68, 0.35);
}

.flash-msg.flash-msg-error .flash-msg-icon,
.flash-msg.flash-msg-warning .flash-msg-icon {
  background: rgba(239, 68, 68, 0.10);
  color: #ef4444;
}


.footer {
  background: linear-gradient(180deg, #ebf1f8 0%, #e1e9f4 100%);
  border-top: 1.5px solid var(--border-mid);
  padding: 5.5rem 0 2.5rem;
  margin-top: 6rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-metallic);
  opacity: 0.20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.65;
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-silver);
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Scroll Fade-in (JS target) ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Catalog Design Enhancements ───────────────────────────── */
.catalog-sort-select {
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all var(--t-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066ee' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

.catalog-sort-select:hover {
  border-color: var(--blue);
  background-color: #ffffff;
}

.catalog-sort-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 238, 0.15);
}

.catalog-pills-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

.catalog-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid var(--border-mid);
  transition: all var(--t-fast) var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.catalog-pill:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.catalog-pill.is-active {
  color: #ffffff;
  background: var(--grad-blue-vivid);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.catalog-empty-box {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.catalog-empty-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-metallic);
}

/* ── 3D Glassmorphic Product Card ─────────────────────────── */
.product-card-3d {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(12, 20, 34, 0.05), 0 1px 3px rgba(12, 20, 34, 0.03);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, box-shadow;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 350px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 8;
  border-radius: inherit;
}

.product-card-3d:hover {
  border-color: var(--border-blue-glow);
  box-shadow: 0 16px 44px rgba(12, 20, 34, 0.12), 0 0 20px rgba(0, 102, 238, 0.14);
}

.product-card-3d:hover::after {
  opacity: 1;
}

.product-3d-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--sale-grad);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 102, 238, 0.35);
  transform: translateZ(24px);
}

.product-3d-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #0c1422;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateZ(20px);
}

.product-3d-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #ffffff 0%, #f0f4fa 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.product-3d-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(16px);
}

.product-card-3d:hover .product-3d-img-box img {
  transform: scale(1.08) translateZ(22px);
}

.product-3d-details {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transform: translateZ(12px);
}

.product-3d-category-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.product-3d-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-3d-name:hover {
  color: var(--blue);
}

.product-3d-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  gap: 8px;
}

.product-3d-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.product-3d-old-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 4px;
}

/* ── Sticky Buy Bar for Mobile ─────────────────────────────── */
.mobile-sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-mid);
  padding: 12px 18px;
  box-shadow: 0 -8px 24px rgba(12, 20, 34, 0.10);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-buy-bar.is-active {
  transform: translateY(0);
}

/* ── Responsive Checkout & Grids ───────────────────────────────── */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  max-width: 1100px;
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.checkout-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
  .checkout-form-grid,
  .cart-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

.cart-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 580px) {
  .checkout-row-2,
  .checkout-row-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Mobile Menu Toggle Button (Desktop: Hidden) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--t-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  z-index: 101;
}

.mobile-menu-btn:hover {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(0, 148, 255, 0.2);
}

.mobile-menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease-out);
}

/* Mobile Navigation Backdrop & Slide-Over Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 30, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86vw;
  max-width: 360px;
  background: #ffffff;
  z-index: 99999;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast) ease;
}

.mobile-nav-close:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.mobile-search-form {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

.mobile-search-input {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.mobile-search-input:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.15);
}

.mobile-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-links {
  padding: 0.8rem 0;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--t-fast) ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--blue);
  background: rgba(0, 148, 255, 0.06);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 1.4rem;
}

.mobile-nav-subhead {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 6px 1.4rem;
}

.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

body.nv-mobile-menu-open {
  overflow: hidden !important;
}

@media (max-width: 1100px) {
  .grid-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { grid-template-columns: 1fr; text-align: center; padding: 3.5rem 2.5rem; }
  .hero-subtext, .hero-buttons { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-mockup-card { display: none; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-menu { display: none !important; }
  .nav-actions > .nav-link,
  .nav-actions > .btn { display: none !important; }
  .nv-desktop-action { display: none !important; }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-3d-details { padding: 12px 14px 14px; }
  .product-3d-name { font-size: 0.92rem; min-height: 38px; margin-bottom: 6px; }
  .product-3d-price { font-size: 1.1rem; }
  .mobile-sticky-buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
}

@media (max-width: 640px) {
  .trust-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-heading { font-size: 2rem; line-height: 1.15; }
  .hero-banner  { padding: 2.2rem 1.4rem; border-radius: var(--radius-xl); }
  .container    { padding-left: 16px !important; padding-right: 16px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .section      { padding-top: 40px; padding-bottom: 40px; }
  .navbar       { height: 60px; }
  .navbar-inner { height: 60px; gap: 10px; padding: 0 16px !important; }
  .brand-logo   { font-size: 1.2rem; gap: 8px; }
  .brand-logo img { width: 26px; height: 26px; }
  .brand-badge  { display: none !important; }
  .search-form  { display: none !important; }
  .nav-item-dropdown { display: none !important; }
  
  /* Mobile: Clean 100% full-width stack for catalog price & cart button */
  .product-3d-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .product-3d-price-row form,
  .product-3d-price-row .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Distraction-free mobile shopping: Hide floating sales popups that block cards & WhatsApp */
  #nv-social-ticker {
    display: none !important;
  }

  /* Modern Mobile Cart Button & Hamburger Alignment with Breathing Room */
  .cart-label   { display: none !important; }
  .cart-button  {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 12px !important;
    position: relative !important;
    background: rgba(0, 102, 238, 0.08) !important;
    border: 1.5px solid rgba(0, 102, 238, 0.25) !important;
  }
  .cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    font-size: 0.70rem !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 4px !important;
    box-shadow: 0 2px 8px rgba(0, 102, 238, 0.45) !important;
  }
  .mobile-menu-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    margin-left: 4px !important;
  }
}

@media (max-width: 480px) {
  .container { padding-left: 14px !important; padding-right: 14px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .navbar-inner { height: 56px; padding: 0 14px !important; }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; width: 100% !important; box-sizing: border-box !important; }
  .product-card-3d { min-width: 0 !important; width: 100% !important; box-sizing: border-box !important; }
  .product-3d-details { padding: 10px 8px 12px !important; }
  .product-3d-name { font-size: 0.82rem !important; line-height: 1.25 !important; min-height: 32px !important; }
  .product-3d-price { font-size: 0.95rem !important; }
}

/* Global Android Phones & Compact Screens (341px - 380px: Samsung Galaxy A-series 360px, Redmi, Vivo, Oppo, Realme, iPhone SE 375px) */
@media (max-width: 380px) {
  .container { padding-left: 10px !important; padding-right: 10px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .navbar-inner { padding: 0 10px !important; }
  .grid-cols-4 { gap: 6px !important; }
  .product-3d-details { padding: 8px 6px 10px !important; }
  .product-3d-name { font-size: 0.78rem !important; line-height: 1.22 !important; min-height: 26px !important; }
  .product-3d-price { font-size: 0.90rem !important; }
}

/* Ultra-compact Phones & Foldables (<=340px: Samsung Galaxy Z Fold outer screen 280px, legacy 320px) */
@media (max-width: 340px) {
  .grid-cols-4 { grid-template-columns: 1fr !important; gap: 10px !important; }
  .container { padding-left: 8px !important; padding-right: 8px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .navbar-inner { padding: 0 8px !important; }
  .brand-logo { font-size: 1.05rem !important; }
}

/* ══════════════════════════════════════════════════════════════
   HIGH-TECH FUTURISTIC EXTENSIONS (Social Proof, Pincode, VIP Support)
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Live Social Proof Sales Ticker ── */
#nv-social-ticker {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  background: rgba(14, 20, 32, 0.92);
  border: 1px solid rgba(0, 148, 255, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 148, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 320px;
  width: calc(100vw - 48px);
  transform: translateY(120px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
  pointer-events: auto;
}

#nv-social-ticker.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nv-ticker-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00e5ff;
  display: inline-block;
  margin-bottom: 6px;
}

.nv-ticker-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.nv-ticker-close:hover { color: #ffffff; }

.nv-ticker-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nv-ticker-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 148, 255, 0.4));
}

.nv-ticker-text {
  flex: 1;
  min-width: 0;
}

.nv-ticker-buyer {
  font-size: 0.84rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-ticker-buyer strong {
  color: #38bdf8;
}

.nv-ticker-item {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-ticker-time {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* ── 2. VIP Floating WhatsApp Concierge ── */
#nv-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 20px rgba(37, 211, 102, 0.25);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#nv-floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.nv-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse-ring 2s infinite;
}

/* ── Mobile Phone Optimization (<=768px & <=480px) ── */
@media (max-width: 768px) {
  #nv-floating-whatsapp {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: 14px;
    padding: 0;
    width: 46px;
    height: 46px;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 998;
  }
  #nv-floating-whatsapp span {
    display: none;
  }
  #nv-floating-whatsapp .nv-wa-dot {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  /* Compact non-intrusive micro-ticker on mobile that never covers buttons or overlaps WhatsApp */
  #nv-social-ticker {
    bottom: 74px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;
    max-width: min(230px, calc(100vw - 84px)) !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    background: rgba(14, 20, 32, 0.95) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
  }
  .nv-ticker-badge {
    font-size: 0.56rem !important;
    margin-bottom: 2px !important;
  }
  .nv-ticker-icon {
    font-size: 1.25rem !important;
  }
  .nv-ticker-buyer {
    font-size: 0.74rem !important;
  }
  .nv-ticker-item {
    font-size: 0.70rem !important;
  }
  .nv-ticker-time {
    font-size: 0.62rem !important;
  }
  .nv-ticker-close {
    top: 6px !important;
    right: 8px !important;
    font-size: 1.1rem !important;
  }
}

/* Adjust when mobile sticky buy bar is visible on product pages */
@media (max-width: 768px) {
  .mobile-sticky-buy-bar.is-active ~ #nv-floating-whatsapp,
  body:has(.mobile-sticky-buy-bar.is-active) #nv-floating-whatsapp {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.mobile-sticky-buy-bar.is-active) #nv-social-ticker {
    display: none !important;
  }
}

@media (max-width: 580px) {
  .checkout-summary-card {
    position: static !important;
    top: auto !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   UNIVERSAL PHONE SCREEN RESPONSIVENESS SUITE (ALL PAGES)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* 1. Cart Page: Native Card Stack (Zero horizontal overflow on any phone) */
  .cart-table-card {
    overflow-x: visible !important;
    border-radius: var(--radius-lg) !important;
  }
  .cart-table-card table,
  .cart-table-card tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .cart-table-card thead {
    display: none !important;
  }
  .cart-table-card tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "prod prod"
      "qty total" !important;
    gap: 12px 14px !important;
    padding: 16px 14px 14px !important;
    border-bottom: 1.5px solid var(--border-subtle) !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .cart-table-card td {
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
  }
  .cart-table-card td:nth-child(1) {
    grid-area: prod !important;
    padding-right: 36px !important;
  }
  .cart-table-card td:nth-child(2) {
    grid-area: qty !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
  }
  .cart-table-card td:nth-child(3) {
    grid-area: total !important;
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .cart-table-card td:nth-child(4) {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    padding: 0 !important;
  }
  .cart-table-card td:nth-child(4) button {
    padding: 6px 9px !important;
    font-size: 0.82rem !important;
  }

  /* 2. Order Tracking Lookup Form */
  .track-lookup-form {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .track-lookup-form button {
    width: 100% !important;
    justify-content: center !important;
    height: 48px !important;
  }

  /* 3. User Profile: Order History Rows into Clean Responsive Cards */
  .profile-order-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 14px !important;
  }
  .profile-order-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding-bottom: 8px !important;
  }
  .profile-order-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    text-align: left !important;
  }
  .profile-order-stats > div {
    text-align: left !important;
  }
  .profile-order-row .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }

  /* 4. About Page Cards Grid */
  .about-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Universal container card padding on mobile */
  .nv-card-padding-mobile,
  .checkout-section-card,
  .checkout-summary-card,
  .payment-card,
  .cashfree-checkout-card,
  .profile-header-card,
  .profile-orders-card,
  .edit-profile-card,
  .about-card,
  .contact-card,
  .faq-card,
  .policy-card {
    padding: 18px 14px !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Checkout Payment Method Options */
  .checkout-pay-option {
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .checkout-pay-option .checkout-pay-icon {
    font-size: 1.3rem !important;
  }
  .checkout-badge-pill {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    letter-spacing: 0.02em !important;
  }

  /* Product Detail Mobile Optimization */
  .product-stage-card {
    min-height: auto !important;
    padding: 14px 10px !important;
    border-radius: var(--radius-lg) !important;
  }
  #product-photo-stage {
    min-height: 240px !important;
  }
  #main-product-image {
    max-height: 240px !important;
  }
  #product-3d-stage {
    height: 260px !important;
  }
  #product-model-viewer {
    height: 230px !important;
  }
  .product-thumbnails button {
    width: 48px !important;
    height: 48px !important;
  }
  .product-price-box {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  #display-price {
    font-size: 1.85rem !important;
  }
  .product-trust-badges {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    text-align: left !important;
  }
  .product-trust-badges > div {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: left !important;
  }
  .product-trust-badges > div > div:first-child {
    margin-bottom: 0 !important;
    font-size: 1.4rem !important;
    width: 32px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }
  .product-specs-card,
  .product-reviews-card {
    padding: 18px 14px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 2.5rem !important;
  }
  .product-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .reviews-summary-grid {
    gap: 1.2rem !important;
  }
  .reviews-score-card {
    padding: 1.2rem 1rem !important;
  }
  .rating-breakdown-row {
    grid-template-columns: 46px 1fr 54px !important;
    gap: 8px !important;
    font-size: 0.76rem !important;
  }
  .review-form-card {
    padding: 14px 12px !important;
  }

  /* Order Tracking Elements */
  .nv-courier-box {
    padding: 14px 12px !important;
    border-radius: var(--radius-md) !important;
  }
  .awb-tracking-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .awb-tracking-row code {
    font-size: 0.96rem !important;
  }
  .track-item-row {
    padding: 10px 12px !important;
  }

  /* Payment Gateway (UPI & Cashfree) */
  .payment-order-header,
  .cashfree-order-header {
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  .payment-upi-details-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  #cf-pay-button {
    font-size: 0.96rem !important;
    padding: 0.95rem 0.6rem !important;
    line-height: 1.35 !important;
  }
}

/* Global Android Phones & Compact Screens (341px - 380px: Samsung Galaxy A-series 360px, Redmi, Vivo, Oppo, Realme, iPhone SE 375px) */
@media (max-width: 380px) {
  .checkout-section-card,
  .checkout-summary-card,
  .payment-card,
  .cashfree-checkout-card,
  .profile-header-card,
  .profile-orders-card,
  .edit-profile-card {
    padding: 14px 10px !important;
  }
  .phone-input-combo > div:first-child {
    padding: 0 8px !important;
    font-size: 0.84rem !important;
  }
  .phone-input-combo #id_phone {
    padding: 9px 8px !important;
    font-size: 0.88rem !important;
  }
  .rating-breakdown-row {
    grid-template-columns: 40px 1fr 48px !important;
    gap: 6px !important;
    font-size: 0.72rem !important;
  }
  .mobile-sticky-buy-bar {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .mobile-sticky-buy-bar > div > div:first-child {
    max-width: 125px !important;
    font-size: 0.76rem !important;
  }
  #mobile-sticky-price {
    font-size: 1.02rem !important;
  }
  #mobile-add-btn {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }
}

/* Ultra-compact Phones & Foldables (<=340px: Samsung Galaxy Z Fold outer screen 280px, legacy 320px) */
@media (max-width: 340px) {
  .checkout-section-card,
  .checkout-summary-card,
  .payment-card,
  .cashfree-checkout-card,
  .profile-header-card,
  .profile-orders-card,
  .edit-profile-card,
  .about-card,
  .contact-card,
  .faq-card,
  .policy-card {
    padding: 12px 8px !important;
    border-radius: var(--radius-md) !important;
  }
  .product-specs-grid {
    grid-template-columns: 1fr !important;
  }
  .cart-table-card td:nth-child(1) a[style*="width: 74px"] {
    width: 54px !important;
    height: 54px !important;
  }
  .cart-table-card .qty-input {
    width: 52px !important;
    padding: 6px 4px !important;
    font-size: 0.86rem !important;
  }
  .checkout-pay-option .checkout-pay-icon {
    display: none !important;
  }
}



