/* ════════════════════════════════════════════════════
   ShopWithMore — swmnet_v3.css
   Seamless dark-to-black gradient. No dividing lines.
   Canva-style dominant search bar with blue glow.
   Recent searches. Mobile-first.
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg-top:       #111936;
  --bg-mid:       #07090f;
  --bg-bottom:    #000000;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(30,107,255,0.5);
  --accent:       #1e6bff;
  --accent-hover: #1558d6;
  --accent-glow:  rgba(30,107,255,0.35);
  --text:         #f1f3f9;
  --muted:        #6b7280;
  --muted-2:      #9ca3af;
  --card-bg:      rgba(255,255,255,0.035);
  --card-border:  rgba(255,255,255,0.08);
  --success:      #4ade80;
  --font:         'Poppins', sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

/* ── SEAMLESS GRADIENT — entire page top to bottom ── */
body {
  background:
    linear-gradient(
      180deg,
      var(--bg-top)    0%,
      var(--bg-mid)    40%,
      var(--bg-bottom) 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════
   HEADER — no border, blends into gradient
════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  /* Transparent glass — no hard line */
  background: rgba(11,15,30,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* No border-bottom — seamless */
  border-bottom: none;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.logo-link { grid-column: 1; flex-shrink: 0; }
.logo-link .header-logo { height: 36px; width: auto; display: block; }

/* Header search — compact version */
.header-search {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.header-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  width: 32px;
  height: 32px;
  margin: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.18s;
}
.header-search button:hover { background: var(--accent-hover); }

.header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.product-count-meta {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

/* Hamburger */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
}
.menu-btn:hover { background: var(--surface-2); }

.mobile-menu {
  display: none !important;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 60px;
  right: 16px;
  background: #0f1222;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  width: 230px;
  z-index: 10000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.mobile-menu.active { display: flex !important; }
.mobile-menu a {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }

@media (max-width: 900px)  { .menu-btn { display: flex !important; } }
@media (max-width: 600px) {
  .header-content { padding: 10px 14px; gap: 10px; }
  .logo-link .header-logo { height: 28px; }
  .product-count-meta { display: none; }
  .mobile-menu { top: 54px; right: 10px; }
}

/* ════════════════════════════════════════════
   HOMEPAGE HERO — centred, Canva-style
════════════════════════════════════════════ */
.homepage-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 20px 52px;
  width: 100%;
  position: relative;
  /* Subtle radial highlight from top — fades into body gradient */
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(30,107,255,0.10) 0%,
    transparent 70%
  );
}

.hero-logo {
  max-width: 400px;
  width: 85%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted-2);
  font-weight: 400;
  margin: 0 0 48px;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════
   THE SEARCH — dominant, Canva-style
   Full rounded, no button, blue glow
═══════════════════════════════════════ */
.search-wrap {
  width: 100%;
  max-width: 680px;
  position: relative;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  text-align: left;
}

/* Ambient glow behind bar — activates on focus */
.search-glow {
  position: absolute;
  inset: -10px;
  border-radius: 40px;
  background: var(--accent-glow);
  filter: blur(22px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1; }
}

.search-form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.search-form:focus-within {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14); /* Keep same border — no change */
  outline: none;
  box-shadow:
    0 0 0 6px rgba(30,107,255,0.28),
    0 0 40px rgba(30,107,255,0.20),
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Search icon inside left of bar */
.search-form-icon {
  padding: 0 4px 0 20px;
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s;
}
.search-form:focus-within .search-form-icon { color: var(--accent); }

.search-form input {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 18px 20px 18px 12px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: var(--font) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  letter-spacing: -0.01em !important;
}
.search-form input::placeholder {
  color: var(--muted);
  font-size: 16px;
}

/* Enter hint removed */

@media (max-width: 600px) {
  .search-form input { font-size: 15px; padding: 15px 12px 15px 10px; }
  .search-form-icon { padding-left: 14px; font-size: 14px; }
  .search-enter-hint { display: none; }
  .search-form { border-radius: 18px; }
}

/* ════════════════════════════════════════════
   RECENT SEARCHES
════════════════════════════════════════════ */
.recent-searches {
  width: 100%;
  max-width: 680px;
  margin: 14px auto 0;
  display: none;
}
.recent-searches.has-items { display: block; }

.recent-searches-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.recent-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.recent-pill:hover {
  background: rgba(30,107,255,0.12);
  border-color: rgba(30,107,255,0.4);
  color: var(--text);
}
.recent-pill i { font-size: 10px; opacity: 0.6; }
.recent-clear {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.18s;
  flex-shrink: 0;
}
.recent-clear:hover { color: var(--text); }

/* ════════════════════════════════════════════
   POPULAR SEARCHES
════════════════════════════════════════════ */
.popular-searches {
  width: 100%;
  max-width: 680px;
  margin: 20px auto 0;
  padding: 0 8px;
}
.popular-searches-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}
.popular-pills-track {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 400px) {
  .popular-pills-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .popular-pills-track::-webkit-scrollbar { display: none; }
}
.popular-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s;
}
.popular-pill:hover {
  background: rgba(30,107,255,0.12);
  border-color: rgba(30,107,255,0.4);
  color: var(--text);
  transform: translateY(-1px);
}
.popular-pill i { font-size: 11px; opacity: 0.6; }

.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  transition: color 0.18s;
}
.browse-all-link:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   RESULTS SECTION
════════════════════════════════════════════ */
.results-section {
  width: 100%;
  padding: 0 12px 80px;
}
.results-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── FILTERS BAR ── */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 14px;
}
.filters-left { width: 100%; }
.results-summary {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filters-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: #0b0f1e;
  cursor: pointer;
  outline: none;
  flex: 1 1 120px;
  transition: border-color 0.18s;
}
.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: #0b0f1e; }
.btn-clear-search {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-clear-search:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 640px) {
  .filters-bar { flex-direction: row; align-items: center; }
  .filters-left { flex: 1; }
  .filters-right { flex: none; }
  .filter-select { flex: none; width: 140px; font-size: 13px; }
}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 500px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px)  { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
@media (min-width: 1300px) { .product-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: rgba(30,107,255,0.35);
}
.card-img-wrap {
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-fallback { font-size: 28px; color: var(--border); }
.card-merchant-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.card-category {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
}
.card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.card-price sup { font-size: 10px; vertical-align: super; }
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-visit:hover { background: var(--accent-hover); }
.btn-visit i { font-size: 9px; }
@media (min-width: 700px) {
  .card-body { padding: 12px 12px 14px; gap: 6px; }
  .card-title { font-size: 13px; }
  .card-price { font-size: 15px; }
  .btn-visit  { padding: 7px 12px; font-size: 12px; }
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-accent:hover { background: var(--accent-hover); }

/* ── LOAD MORE ── */
.load-more-wrap { text-align: center; margin-top: 28px; padding-bottom: 20px; }
.btn-load-more {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 11px 36px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-load-more:hover { background: var(--accent); color: #fff; }

/* ── SKELETON ── */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0;
}
@media (min-width: 700px)  { .skeleton-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px)  { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .skeleton-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1300px) { .skeleton-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sk-img {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line {
  height: 9px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  margin: 10px 12px 0;
}
.sk-line.w70 { width: 70%; }
.sk-line.w50 { width: 50%; }
.sk-line.w30 { width: 30%; margin-bottom: 12px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── MERCHANT HEADER ── */
.merchant-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0 0;
  flex-wrap: wrap;
  animation: fadeSlideIn 0.3s ease;
}
@keyframes fadeSlideIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.merchant-header-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.merchant-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.merchant-header-info { flex: 1; min-width: 0; }
.merchant-header-name { font-size: 1.1em; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.merchant-header-sub  { font-size: 12px; color: var(--muted); }
.merchant-header-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(30,107,255,0.3);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: all 0.18s;
  white-space: nowrap; flex-shrink: 0;
}
.merchant-header-all:hover { background: rgba(30,107,255,0.1); color: #fff; }
@media (max-width: 480px) {
  .merchant-header { padding: 12px 14px; }
  .merchant-header-all { display: none; }
}

/* ════════════════════════════════════════════
   FOOTER — blends into black bottom
════════════════════════════════════════════ */
.site-footer {
  /* No border-top — seamless into gradient */
  background: transparent;
  border-top: none;
  margin-top: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  text-align: center;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.footer-links {
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-size: 13px; font-weight: 500; transition: color 0.18s; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 12px; }

/* Footer signup */
.footer-signup {
  background: rgba(30,107,255,0.06);
  border: 1px solid rgba(30,107,255,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 440px;
  margin: 0 auto 28px;
}
.footer-signup-label { font-size: 13px; color: var(--muted-2); margin-bottom: 12px; }
.footer-email-form {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.footer-email-form input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
}
.footer-email-form input::placeholder { color: var(--muted); }
.footer-email-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s;
}
.footer-email-form button:hover { background: var(--accent-hover); }
.footer-signup-msg { font-size: 12px; margin-top: 8px; color: var(--success); min-height: 1em; }

/* ════════════════════════════════════════════
   POPUP
════════════════════════════════════════════ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.popup-box {
  background: #0d1020;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 420px; width: 100%;
  text-align: center; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp { from{transform:translateY(24px) scale(0.97);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }
.popup-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  color: var(--muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
}
.popup-close:hover { color: var(--text); background: var(--surface-2); }
.popup-icon { margin-bottom: 12px; }
.popup-icon img { height: 40px; width: auto; margin: 0 auto; }
.popup-title { font-size: 1.35em; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.popup-sub { font-size: 14px; color: var(--muted-2); line-height: 1.7; margin-bottom: 20px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input {
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); color: var(--text);
  font-family: var(--font); font-size: 14px;
  text-align: center; outline: none; transition: border-color 0.18s;
}
.popup-form input:focus { border-color: var(--accent); }
.popup-form input::placeholder { color: var(--muted); }
.popup-submit {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.popup-small { font-size: 11px; color: var(--muted); margin-top: 10px; }
.popup-msg { font-size: 13px; color: var(--success); margin-top: 8px; min-height: 1em; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}


/* ── HOMEPAGE SEARCH OVERRIDES (beat style.css) ── */
.homepage-hero .search-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  align-self: center !important;
  position: relative !important;
}

.homepage-hero .search-form {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 24px !important;
  border: 1.5px solid #ffffff !important;
  background: rgba(255,255,255,0.07) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  overflow: hidden !important;
}

.homepage-hero .search-form:focus-within {
  border-color: #ffffff !important;
  background: rgba(255,255,255,0.09) !important;
  box-shadow:
    0 0 0 6px rgba(30,107,255,0.28),
    0 0 40px rgba(30,107,255,0.20),
    0 4px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.homepage-hero .search-form input {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 18px 16px 18px 12px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: var(--font) !important;
  font-size: 17px !important;
  color: var(--text) !important;
}

.homepage-hero .search-form button {
  display: none !important;
}

/* Fix 3 — Product count font size */
.product-count-meta {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}
