/* Shared styles for Top pages (index, overview, top products) */

/* Advanced keyframe animations */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; filter: blur(8px); }
  50% { opacity: 1; filter: blur(12px); }
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header layout variables used to keep sticky positions consistent */
:root { 
  --header-h: 68px; 
  --subnav-h: 50px;
  --accent: #4a9eff;
  --accent-hover: #5eb3ff;
  --border: #2a2a2a;
  --surface: #13181c;
  --bg: #0d1117;
  --fg: #e6e6e6;
  --muted: #9aa4ae;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky site header */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 3000; 
  background: rgba(16,18,20,0.95); 
  backdrop-filter: blur(12px) saturate(180%); 
  border-bottom: 1px solid rgba(74,158,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s var(--transition-smooth);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--header-h); padding: 8px 16px; }
.site-logo { 
  display: inline-block; 
  position: relative;
  transition: transform 0.3s var(--transition-smooth);
}
.site-logo:hover { transform: scale(1.05); }
/* Slightly larger logo on desktop */
.site-logo-img { height: 52px !important; width: auto; display: block; }
/* Experimental badge styling - centered on logo */
.exp-badge { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 4px 10px; font-size: 10px; line-height: 1; border-radius: 999px; font-weight: 900; color: #0b0f12; background: linear-gradient(90deg,#ffd54a,#ff9a3c); border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.35), 0 0 20px rgba(255,213,74,0.4); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; pointer-events: none; }
.site-tagline { color: var(--muted, #9aa4ae); font-size: .92rem; margin-left: 4px; }

/* Sticky top navigation (search/sort/filter) just below header */
.top-nav { position: sticky; top: var(--header-h); z-index: 2500; background: rgba(16,18,20,0.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border, #2a2a2a); padding: 8px 0; }

@media (max-width: 768px) {
  :root { --header-h: 60px; --subnav-h: 56px; }
  .site-logo-img { height: 44px !important; }
  .site-tagline { display: none; }
  .exp-badge { font-size: 9px; padding: 3px 8px; letter-spacing: .5px; }
  .site-header .container { padding: 6px 12px; }
  .top-nav { top: var(--header-h); }
}

/* Breadcrumb navigation */
.breadcrumb { margin: -20px 0 32px; max-width: 1400px; margin-left: auto; margin-right: auto; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 32px; list-style: none; font-size: 0.9rem; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--muted, #9aa4ae); font-weight: 500; }
.breadcrumb-link { display: flex; align-items: center; gap: 6px; color: var(--accent, #4a9eff); text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: all 0.2s ease; }
.breadcrumb-link:hover { background: rgba(74,158,255,0.1); transform: translateY(-1px); }
.breadcrumb-link svg { width: 14px; height: 14px; }
.breadcrumb-item.active { color: var(--fg, #e6e6e6); font-weight: 600; padding: 4px 8px; }
@media (max-width: 768px) {
  .breadcrumb { margin: -10px 0 24px; }
  .breadcrumb-list { font-size: 0.85rem; padding: 0 20px; }
  .breadcrumb-link svg { width: 12px; height: 12px; }
}

/* Index page: prominent section headings and filter titles */
.section-heading { font-size: clamp(1.05rem, 1.1vw + 0.9rem, 1.6rem); font-weight: 900; letter-spacing: .2px; line-height: 1.2; color: #eaf2ff; text-shadow: 0 1px 0 rgba(0,0,0,0.15); margin: 6px 2px; }
.section-heading .accent-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #4a9eff); box-shadow: 0 0 0 3px rgba(74,158,255,0.18), 0 6px 16px rgba(74,158,255,0.28); margin-right: 8px; transform: translateY(-1px); }
.filters-title, .sidebar-header h2 { font-size: clamp(1.05rem, 0.9vw + 0.8rem, 1.35rem); font-weight: 900; color: #eaf2ff; margin: 4px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent, #4a9eff); }

/* Top products big header - styled to match index.html */
.top-products-header { 
  position: relative; 
  text-align: center; 
  padding: 48px 32px 56px; 
  background: rgba(10,10,10,0.6);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px; 
  overflow: hidden;
}
.top-products-header::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: linear-gradient(135deg, rgba(74,158,255,0.05) 0%, rgba(145,197,255,0.08) 50%, rgba(74,158,255,0.03) 100%);
  opacity: 0.5;
  pointer-events: none;
}
.top-products-header > * { position: relative; z-index: 1; }
.top-products-header h1 { 
  font-size: clamp(2rem, 4vw, 3rem); 
  margin: 0 0 16px; 
  font-weight: 900; 
  background: linear-gradient(90deg, var(--accent), #91c5ff); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.top-products-header p { 
  font-size: clamp(1rem, 1.8vw, 1.2rem); 
  margin: 0; 
  color: var(--muted);
  max-width: 800px; 
  margin: 0 auto; 
  line-height: 1.6; 
  font-weight: 500;
  background: linear-gradient(90deg, #9ca3af, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 768px) {
  .top-products-header { padding: 36px 20px 44px; }
  .top-products-header h1 { font-size: 2rem; margin-bottom: 12px; }
  .top-products-header p { font-size: 1rem; }
}

/* Content intro / related / faq / comparison table */
.content-intro, .related-lists, .faq, .comparison-table { max-width: 1400px; margin: 24px auto; padding: 0 32px; }
.content-intro p { color: var(--muted, #aab5bf); font-size: 1.05rem; line-height: 1.7; margin: 0 auto; max-width: 900px; text-align: center; }
.comparison-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--border, #2a2a2a); border-radius: 12px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 10px 12px; border-bottom: 1px solid var(--border, #2a2a2a); text-align: left; }
.comparison-table th { background: rgba(74,158,255,0.08); color: #e7f1ff; }
.related-lists ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-lists a { color: var(--accent, #4a9eff); text-decoration: none; border: 1px solid rgba(74,158,255,0.25); padding: 6px 10px; border-radius: 999px; }
.faq details { background: rgba(255,255,255,0.03); border: 1px solid var(--border, #2a2a2a); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Product grid - modern stacked cards */
.top-products .product-grid { display: flex; flex-direction: column; gap: 32px; margin: 48px auto 48px; max-width: 1400px; padding: 0 32px; }
.top-products .product-card { 
  position: relative; 
  display: grid; 
  grid-template-columns: 100px 360px 1fr; 
  grid-template-areas: "rank image content"; 
  gap: 32px 80px; 
  align-items: start; 
  padding: 40px 48px; 
  border: 1px solid rgba(74,158,255,0.2); 
  border-radius: 20px; 
  background: linear-gradient(135deg, rgba(18,24,28,0.85) 0%, rgba(24,30,36,0.80) 100%); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.3), 
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 40px -20px rgba(0,0,0,0.3); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  overflow: visible; 
  min-height: 400px;
  isolation: isolate;
}
.top-products .product-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px; 
  background: linear-gradient(90deg, #4a9eff 0%, #667eea 50%, #91c5ff 100%); 
  border-radius: 20px 20px 0 0;
  opacity: 0; 
  transition: opacity 0.4s ease;
  z-index: 1;
}
.top-products .product-card::after { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at top right, rgba(74,158,255,0.12), transparent 70%); 
  opacity: 0; 
  transition: opacity 0.5s ease; 
  pointer-events: none;
  border-radius: 20px;
}
.top-products .product-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 
    0 12px 40px rgba(74,158,255,0.25), 
    0 0 0 2px rgba(74,158,255,0.3),
    0 0 40px rgba(74,158,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.12); 
  border-color: rgba(74,158,255,0.4); 
  cursor: pointer;
}
.top-products .product-card:hover::before,
.top-products .product-card:hover::after { opacity: 1; }
.top-products .ranking-number { 
  grid-area: rank; 
  font-size: 3.8rem; 
  font-weight: 900; 
  background: linear-gradient(180deg, #5eb3ff 0%, #4a9eff 50%, #3d8de0 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  text-align: center; 
  line-height: 1; 
  filter: drop-shadow(0 4px 12px rgba(74,158,255,0.6)); 
  display: flex; 
  align-items: flex-start; 
  justify-content: center; 
  align-self: start; 
  padding-top: 12px; 
  cursor: pointer; 
  user-select: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.top-products .product-card:hover .ranking-number {
  transform: scale(1.1) rotate(-2deg);
  filter: drop-shadow(0 6px 20px rgba(74,158,255,0.8));
}
.top-products .product-image { 
  grid-area: image; 
  position: relative; 
  height: 360px; 
  aspect-ratio: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #ffffff; 
  border-radius: 16px; 
  padding: 12px; 
  border: 1px solid rgba(0,0,0,0.08); 
  overflow: hidden; 
  flex-shrink: 0;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-products .product-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease; 
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
}
.top-products .product-image .badge-stack { position: absolute; top: -8px; left: -8px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.top-products .product-card:hover .product-image { 
  background: #ffffff; 
  border-color: rgba(74,158,255,0.3);
  box-shadow: 
    0 8px 32px rgba(74,158,255,0.2),
    0 0 0 2px rgba(74,158,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(-4px) rotate(1deg);
}
.top-products .product-card:hover .product-image img { 
  transform: scale(1.08); 
  filter: drop-shadow(0 12px 32px rgba(74,158,255,0.25));
}
.top-products .product-content { grid-area: content; position: relative; display: flex; flex-direction: column; gap: 14px; justify-content: flex-start; padding: 8px 0; min-width: 0; align-self: start; }
.top-products .product-content > * { transition: transform 0.3s ease; }
.top-products .product-card:hover .product-title,
.top-products .product-card:hover .product-description { transform: translateX(2px); }
.top-products .product-card:hover .product-rating { transform: scale(1.02); }
.top-products .product-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.top-products .product-brand { display: inline-flex; align-items: center; padding: 6px 14px; font-size: 0.7rem; font-weight: 800; color: #4a9eff; background: rgba(74,158,255,0.12); border: 1px solid rgba(74,158,255,0.3); border-radius: 6px; text-transform: uppercase; letter-spacing: 1.4px; transition: all 0.2s ease; white-space: nowrap; }
.top-products .product-card:hover .product-brand { background: rgba(74,158,255,0.2); border-color: rgba(74,158,255,0.5); transform: translateY(-1px); }
.top-products .product-pick-badge { display: inline-flex; align-items: center; padding: 6px 14px; font-size: 0.7rem; font-weight: 800; color: #ffd54a; background: rgba(255,213,74,0.15); border: 1px solid rgba(255,213,74,0.35); border-radius: 6px; text-transform: uppercase; letter-spacing: 1.4px; transition: all 0.2s ease; white-space: nowrap; }
.top-products .product-card:hover .product-pick-badge { background: rgba(255,213,74,0.25); border-color: rgba(255,213,74,0.5); transform: translateY(-1px); }
.top-products .product-title { font-size: 1.75rem; font-weight: 800; color: #f0f4f8; line-height: 1.3; margin: 0; text-align: left !important; letter-spacing: -0.4px; transition: color 0.2s ease; }
.top-products .product-card:hover .product-title { color: #fff; }
.top-products .product-rating { font-size: 0.9rem; color: #9aa4ae; margin: 0; display: flex; align-items: center; gap: 8px; }
.top-products .product-rating-stars { color: #ffa724; font-size: 1rem; font-weight: 600; }
.top-products .product-rating-count { color: #7a8894; font-size: 0.85rem; }
.top-products .variant-info { 
  font-size: 0.85rem; 
  color: #91c5ff; 
  background: rgba(74,158,255,0.1); 
  border: 1px solid rgba(74,158,255,0.25); 
  border-radius: 8px; 
  padding: 6px 12px; 
  margin: 6px 0; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  font-weight: 600;
  transition: all 0.3s ease;
}
.top-products .product-card:hover .variant-info {
  background: rgba(74,158,255,0.18);
  border-color: rgba(74,158,255,0.4);
  transform: translateX(2px);
}
.top-products .product-description { font-size: 0.95rem; color: #8a96a3; line-height: 1.6; margin: 0; text-align: left !important; max-height: 4.8em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.top-products .product-usps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.top-products .product-usp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 0.75rem; font-weight: 600; color: #9aa4ae; background: rgba(74,158,255,0.06); border: 1px solid rgba(74,158,255,0.15); border-radius: 5px; white-space: nowrap; cursor: default; pointer-events: none; }
.top-products .product-usp svg { width: 14px; height: 14px; color: #4a9eff; flex-shrink: 0; }
.top-products .product-score { padding: 8px 16px; font-size: 0.9rem; font-weight: 800; color: #ffd54a; background: linear-gradient(135deg, rgba(255,213,74,0.15) 0%, rgba(255,213,74,0.08) 100%); border: 1px solid rgba(255,213,74,0.35); border-radius: 8px; white-space: nowrap; width: fit-content; box-shadow: 0 2px 8px rgba(255,213,74,0.12); transition: all 0.3s ease; position: relative; overflow: hidden; margin-left: 0; }
.top-products .product-score::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,213,74,0.2) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; }
.top-products .product-card:hover .product-score { background: linear-gradient(135deg, rgba(255,213,74,0.22) 0%, rgba(255,213,74,0.12) 100%); border-color: rgba(255,213,74,0.5); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,213,74,0.2); }
.top-products .product-card:hover .product-score::before { opacity: 1; }
.top-products .product-price-label { font-size: 0.7rem; color: #7a8894; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; margin-bottom: 4px; }
.top-products .product-price { font-size: 2.8rem; font-weight: 900; color: #5eb3ff; margin: 0; text-shadow: 0 2px 10px rgba(74,158,255,0.3); line-height: 1; letter-spacing: -1.2px; }
.top-products .product-price-wrapper { display: flex; flex-direction: column; gap: 4px; }
.top-products .product-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(74,158,255,0.1); }
.top-products .product-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.top-products .product-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  padding: 18px 36px; 
  background: linear-gradient(135deg, #ff9900 0%, #ff8800 100%); 
  color: #ffffff; 
  text-decoration: none; 
  border-radius: 14px; 
  font-weight: 800; 
  font-size: 1.05rem; 
  box-shadow: 
    0 4px 20px rgba(255,153,0,0.4), 
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  white-space: nowrap; 
  position: relative; 
  overflow: hidden; 
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,200,0,0.5);
}
.top-products .product-link::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -100%; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); 
  transition: left 0.6s ease;
}
.top-products .product-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.top-products .product-link:hover::before { left: 100%; }
.top-products .product-link:hover::after { opacity: 1; }
.top-products .product-link:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 
    0 12px 40px rgba(255,153,0,0.6), 
    0 4px 16px rgba(255,153,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4); 
  background: linear-gradient(135deg, #ffaa22 0%, #ff9900 100%);
  border-color: rgba(255,220,0,0.8);
}
.top-products .product-link svg { 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.top-products .product-link:hover svg { transform: translateX(6px) scale(1.1); }
.top-products .product-link img { 
  width: 20px; 
  height: 20px; 
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.top-products .product-link:hover img { transform: scale(1.1); }

@media (max-width: 1200px) {
  .top-products .product-card { grid-template-columns: 90px 320px 1fr; gap: 28px 64px; padding: 36px 40px; }
  .top-products .ranking-number { font-size: 3.2rem; }
  .top-products .product-image { height: 320px; }
  .top-products .product-title { font-size: 1.65rem; }
}

@media (max-width: 1024px) {
  .top-products .product-card { grid-template-columns: 80px 280px 1fr; gap: 24px 48px; min-height: 340px; padding: 32px 36px; }
  .top-products .ranking-number { font-size: 3rem; }
  .top-products .product-image { height: 280px; }
  .top-products .product-title { font-size: 1.5rem; }
  .top-products .product-price { font-size: 2.3rem; }
  .top-products .product-link { padding: 14px 24px; font-size: 0.95rem; }
  .top-products .product-metrics { gap: 16px; }
}

@media (max-width: 768px) {
  /* Mobile card optimizations */
  .top-products .product-grid { gap: 20px; margin: 24px auto; padding: 0 16px; }
  .top-products .product-card { grid-template-columns: 1fr; grid-template-areas: "rank" "image" "content"; text-align: center; padding: 28px 20px; gap: 20px; min-height: auto; }
  .top-products .ranking-number { font-size: 3.5rem; margin-bottom: 0; padding-top: 0; justify-self: center; font-weight: 900; filter: drop-shadow(0 6px 16px rgba(74,158,255,0.7)); }
  .top-products .product-image { margin: 0 auto; max-width: 320px; height: auto; }
  .top-products .product-image img { object-fit: cover; padding: 0; }
  .top-products .product-content { align-items: center; }
  .top-products .product-badges { justify-content: center; margin-bottom: 0; }
  .top-products .product-title { font-size: 1.4rem; margin: 0; text-align: center !important; }
  .top-products .product-rating { justify-content: center; margin: 0; }
  .top-products .product-description { font-size: 0.9rem; margin: 0; text-align: center !important; max-height: none; -webkit-line-clamp: 3; line-clamp: 3; }
  .top-products .product-usps { justify-content: center; }
  .top-products .product-metrics { flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; padding-top: 16px; border-top: 1px solid rgba(74,158,255,0.1); }
  .top-products .product-price-wrapper { text-align: center; align-items: center; }
  .top-products .product-price-label { text-align: center; }
  .top-products .product-price { font-size: 2rem; }
  .top-products .product-score { margin-left: 0; }
  .top-products .product-actions { align-items: center; width: 100%; margin-left: 0; }
  .top-products .product-link { width: 100%; justify-content: center; padding: 18px 36px; font-size: 1.05rem; border-radius: 12px; }
}

/* Overview page: hero header - Vibrant hero with lifestyle background */
.hero-header { 
  position: relative; 
  text-align: center; 
  padding: 100px 32px 80px; 
  background: linear-gradient(135deg, #0a0d12 0%, #1a1f28 50%, #0f1419 100%);
  border-bottom: 1px solid rgba(74,158,255,0.2); 
  margin-bottom: 48px; 
  overflow: hidden;
}
.hero-header::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(74,158,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(102,126,234,0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,213,74,0.08) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}
.hero-header > * { position: relative; z-index: 1; }
.hero-header h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  margin: 0 0 24px; 
  font-weight: 900; 
  background: linear-gradient(135deg, #5eb3ff 0%, #4a9eff 50%, #91c5ff 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  letter-spacing: -0.8px; 
  line-height: 1.1; 
  text-shadow: 0 4px 20px rgba(74,158,255,0.3);
  animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-header p { 
  font-size: clamp(1.1rem, 2vw, 1.35rem); 
  margin: 0 auto 48px; 
  color: #cbd5e1;
  max-width: 850px; 
  line-height: 1.7; 
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
.hero-intro { 
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); 
  color: #94a3b8; 
  max-width: 700px; 
  margin: 0 auto 40px; 
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}
.hero-stats { 
  display: flex; 
  justify-content: center; 
  gap: 48px; 
  margin-top: 48px; 
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}
.hero-stat { 
  text-align: center; 
  padding: 28px 44px; 
  background: linear-gradient(135deg, rgba(18,24,28,0.98) 0%, rgba(24,30,36,0.95) 100%); 
  border-radius: 20px; 
  border: 1px solid rgba(74,158,255,0.2); 
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03); 
  backdrop-filter: blur(12px); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  overflow: hidden;
}
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a9eff, #667eea, #4a9eff);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-stat::after { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at top center, rgba(74,158,255,0.15), transparent 70%); 
  opacity: 0; 
  transition: opacity 0.4s ease; 
  pointer-events: none;
}
.hero-stat:hover { 
  transform: translateY(-8px) scale(1.02); 
  background: linear-gradient(135deg, rgba(24,30,36,1) 0%, rgba(30,38,48,0.98) 100%); 
  border-color: rgba(74,158,255,0.4); 
  box-shadow: 0 16px 48px rgba(74,158,255,0.2), 0 0 0 1px rgba(74,158,255,0.3);
}
.hero-stat:hover::before,
.hero-stat:hover::after { opacity: 1; }
.hero-stat-number { 
  font-size: 3.5rem; 
  font-weight: 900; 
  display: block; 
  margin-bottom: 10px; 
  background: linear-gradient(180deg, #5eb3ff 0%, #4a9eff 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  filter: drop-shadow(0 4px 12px rgba(74,158,255,0.4));
  transition: transform 0.3s ease;
}
.hero-stat:hover .hero-stat-number {
  transform: scale(1.1);
}
.hero-stat-label { 
  font-size: 0.95rem; 
  color: #94a3b8; 
  text-transform: uppercase; 
  letter-spacing: 1.4px; 
  font-weight: 700;
}
@media (max-width: 768px) {
  .hero-header { padding: 70px 20px 56px; margin-bottom: 32px; }
  .hero-header h1 { font-size: 2.3rem; margin-bottom: 18px; }
  .hero-header p { font-size: 1.05rem; margin-bottom: 32px; }
  .hero-intro { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-stats { gap: 20px; margin-top: 40px; }
  .hero-stat { padding: 22px 32px; }
  .hero-stat-number { font-size: 2.8rem; margin-bottom: 8px; }
  .hero-stat-label { font-size: 0.85rem; letter-spacing: 1.1px; }
}

/* Overview page: collections grid with enhanced visual appeal */
.collections-container { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 32px 64px; 
}

/* Featured/Editor's Choice Section */
.featured-section {
  margin-bottom: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(74,158,255,0.12) 0%, rgba(102,126,234,0.08) 100%);
  border: 2px solid rgba(74,158,255,0.3);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.featured-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74,158,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.featured-badge svg {
  width: 18px;
  height: 18px;
}

.featured-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f8fafc;
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Enhanced Filter/Search Section */
.collections-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(18,24,28,0.98) 0%, rgba(24,30,36,0.95) 100%);
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 16px;
  align-items: center;
}

.collections-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-controls select {
  transition: all 0.3s ease;
}

.sort-controls select:hover {
  border-color: rgba(74,158,255,0.4);
  background: rgba(255,255,255,0.08);
}

.sort-controls select:focus {
  outline: none;
  border-color: rgba(74,158,255,0.5);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}

.collections-search input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.collections-search input:focus {
  outline: none;
  border-color: rgba(74,158,255,0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}

.collections-search input::placeholder {
  color: #64748b;
}

.collections-search svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #64748b;
  pointer-events: none;
}

.collections-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 10px;
  color: #91c5ff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(74,158,255,0.2);
  border-color: rgba(74,158,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74,158,255,0.3);
}

.filter-btn.active::after {
  content: '✓';
  margin-left: 6px;
  font-weight: bold;
}

.collections-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  margin-bottom: 56px;
  align-items: stretch;
  isolation: isolate;
}

/* Ensure consistent card heights */
.collection-card { 
  background: linear-gradient(135deg, rgba(18,24,28,0.85) 0%, rgba(24,30,36,0.80) 100%); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(74,158,255,0.2); 
  border-radius: 24px; 
  padding: 32px; 
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  overflow: hidden; 
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.3), 
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-origin: center;
}

/* Feature badges overlay */
.collection-card .feature-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.collection-card:hover .feature-badges {
  opacity: 1;
  transform: translateX(0);
}

.feature-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.feature-badge.new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.feature-badge.popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.feature-badge.top-rated {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.feature-badge.matter {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.collection-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px; 
  background: linear-gradient(90deg, #4a9eff 0%, #667eea 50%, #91c5ff 100%); 
  opacity: 0; 
  transition: opacity 0.4s ease;
}
.collection-card::after { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at top right, rgba(74,158,255,0.12), transparent 70%); 
  opacity: 0; 
  transition: opacity 0.5s ease; 
  pointer-events: none;
}
.collection-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 
    0 12px 40px rgba(74,158,255,0.25), 
    0 0 0 2px rgba(74,158,255,0.3),
    0 0 40px rgba(74,158,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.12); 
  border-color: rgba(74,158,255,0.4);
  z-index: 1;
  position: relative;
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 16px 48px rgba(74,158,255,0.25), 0 0 0 2px rgba(74,158,255,0.4); }
  50% { box-shadow: 0 20px 56px rgba(74,158,255,0.35), 0 0 0 2px rgba(74,158,255,0.6); }
}
.collection-card:hover::before,
.collection-card:hover::after { opacity: 1; }
.collection-icon { 
  width: 72px; 
  height: 72px; 
  background: linear-gradient(135deg, #4a9eff 0%, #667eea 100%); 
  border-radius: 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 24px; 
  box-shadow: 0 8px 24px rgba(74,158,255,0.4), 0 0 0 3px rgba(74,158,255,0.1); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.collection-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.collection-card:hover .collection-icon { 
  transform: scale(1.05) rotate(3deg); 
  box-shadow: 0 12px 36px rgba(74,158,255,0.6), 0 0 0 3px rgba(74,158,255,0.2);
}
.collection-card:hover .collection-icon::before {
  transform: translateX(100%);
}
.collection-icon svg { 
  width: 36px; 
  height: 36px; 
  color: white; 
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  z-index: 1;
}
.collection-title { 
  font-size: 1.75rem; 
  font-weight: 800; 
  color: #f8fafc; 
  margin: 0 0 16px; 
  line-height: 1.25; 
  letter-spacing: -0.4px; 
  transition: all 0.3s ease; 
  text-decoration: none;
}
.collection-card:hover .collection-title { 
  color: #ffffff; 
  text-decoration: none;
  transform: translateX(4px);
}
.collection-description { 
  font-size: 1.05rem; 
  color: #94a3b8; 
  line-height: 1.7; 
  margin-bottom: 20px; 
  text-decoration: none;
  transition: color 0.3s ease;
  flex-grow: 1;
}
.collection-card:hover .collection-description {
  color: #cbd5e1;
}
.collection-preview-images { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; 
  margin: 16px 0 20px;
  min-height: 80px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Product count badge */
.collection-product-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(102,126,234,0.15);
  border: 1px solid rgba(102,126,234,0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  width: fit-content;
  transition: all 0.3s ease;
}

.collection-product-count svg {
  width: 14px;
  height: 14px;
}

.collection-card:hover .collection-product-count {
  background: rgba(102,126,234,0.25);
  border-color: rgba(102,126,234,0.5);
  transform: translateY(-2px);
}

.preview-image { 
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%); 
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.preview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,158,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.preview-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  z-index: 1;
}

/* Image quick view overlay */
.preview-image .quick-view {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  cursor: pointer;
}

.preview-image:hover .quick-view {
  opacity: 1;
}

.preview-image .quick-view svg {
  width: 24px;
  height: 24px;
  color: white;
}

.collection-card:hover .preview-image { 
  border-color: rgba(74,158,255,0.4);
  background: linear-gradient(135deg, rgba(74,158,255,0.12) 0%, rgba(74,158,255,0.06) 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.collection-card:hover .preview-image::after {
  opacity: 1;
}
.collection-card:hover .preview-image img { 
  transform: scale(1.15);
}
.collection-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.compatibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #91c5ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.compatibility-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.4s ease;
}

.compatibility-badge:hover::before {
  left: 100%;
}

.compatibility-badge svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Ecosystem-specific colors */
.compatibility-badge[data-ecosystem="alexa"] {
  background: rgba(0,168,255,0.15);
  border-color: rgba(0,168,255,0.35);
  color: #4fc3f7;
}

.compatibility-badge[data-ecosystem="google"] {
  background: rgba(66,133,244,0.15);
  border-color: rgba(66,133,244,0.35);
  color: #64b5f6;
}

.compatibility-badge[data-ecosystem="homekit"] {
  background: rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.25);
  color: #e0e0e0;
}

.compatibility-badge[data-ecosystem="home assistant"] {
  background: rgba(65,183,216,0.15);
  border-color: rgba(65,183,216,0.35);
  color: #4dd0e1;
}

.compatibility-badge[data-ecosystem="matter"] {
  background: rgba(138,43,226,0.15);
  border-color: rgba(138,43,226,0.35);
  color: #ba68c8;
}

.collection-card:hover .compatibility-badge {
  background: rgba(74,158,255,0.18);
  border-color: rgba(74,158,255,0.4);
  transform: translateY(-2px);
}

.collection-link-inline { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  color: white;
  text-decoration: none; 
  font-weight: 800; 
  padding: 16px 28px; 
  background: linear-gradient(135deg, #4a9eff 0%, #667eea 100%);
  border: 1px solid rgba(255,255,255,0.2); 
  border-radius: 14px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  font-size: 1rem; 
  position: relative; 
  overflow: hidden;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(74,158,255,0.3);
}

.collection-link-inline::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -100%; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); 
  transition: left 0.6s ease;
}
.collection-card:hover .collection-link-inline::before { 
  left: 100%;
}
.collection-card:hover .collection-link-inline { 
  background: linear-gradient(135deg, #5eb3ff 0%, #7a8ef5 100%);
  border-color: rgba(255,255,255,0.4); 
  box-shadow: 0 8px 24px rgba(74,158,255,0.5);
  transform: translateX(4px);
}
.collection-link-inline svg { 
  width: 20px; 
  height: 20px; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.collection-card:hover .collection-link-inline svg { 
  transform: translateX(6px);
}
.category-section { 
  margin-bottom: 72px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}

/* Visual separator between sections */
.category-section::after {
  content: '';
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.2), transparent);
}

.category-section:last-child::after {
  display: none;
}

.category-section:nth-child(2) { animation-delay: 0.1s; }
.category-section:nth-child(3) { animation-delay: 0.2s; }
.category-section:nth-child(4) { animation-delay: 0.3s; }
.category-title { 
  font-size: 2.2rem; 
  font-weight: 900; 
  color: #f8fafc; 
  margin: 0 0 40px; 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  letter-spacing: -0.6px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(74,158,255,0.08) 0%, rgba(102,126,234,0.05) 100%);
  border-left: 4px solid #4a9eff;
  border-radius: 12px;
}
.category-icon { 
  width: 48px; 
  height: 48px; 
  background: linear-gradient(135deg, #4a9eff 0%, #667eea 100%); 
  border-radius: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 6px 20px rgba(74,158,255,0.4);
  flex-shrink: 0;
}
.category-icon svg { 
  width: 24px; 
  height: 24px; 
  color: white; 
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@media (max-width: 768px) {
  .collections-container { padding: 0 20px 40px; }
  .collections-controls { flex-direction: column; padding: 20px; }
  .collections-search { min-width: 100%; }
  .collections-filters { width: 100%; justify-content: center; }
  .filter-btn { flex: 1; min-width: 80px; text-align: center; }
  .collections-grid { grid-template-columns: 1fr; gap: 28px; }
  .collection-card { padding: 28px 24px; height: auto; }
  .collection-icon { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px; }
  .collection-icon svg { width: 32px; height: 32px; }
  .collection-title { font-size: 1.5rem; margin-bottom: 14px; }
  .collection-description { font-size: 1rem; margin-bottom: 16px; }
  .collection-preview-images { grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 80px; padding: 12px; }
  .preview-image img { padding: 6px; }
  .collection-link-inline { padding: 14px 24px; font-size: 0.95rem; gap: 10px; }
  .category-section { margin-bottom: 56px; }
  .category-section::after { bottom: -28px; }
  .category-title { font-size: 1.75rem; margin-bottom: 32px; gap: 14px; padding: 16px 20px; }
  .category-icon { width: 42px; height: 42px; }
  .category-icon svg { width: 22px; height: 22px; }
}

/* Tablet layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .collections-container { max-width: 1600px; }
  .collections-grid { gap: 40px; }
}

/* Index page: collections rail (horizontal list) */
.collections-rail { position: relative; display: block; }
.rail-title { margin: 6px 2px 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: clamp(1rem, 0.8vw + 0.9rem, 1.35rem); background: linear-gradient(90deg, var(--accent,#4a9eff), #9ad1ff); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .3px; }
.collections-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 6px 8px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%); scroll-padding-inline: 8px; }
.collections-scroller::-webkit-scrollbar { display: none; }
.collection-pill { flex: 0 0 auto; scroll-snap-align: start; scroll-snap-stop: always; text-decoration: none; white-space: nowrap; font-weight: 700; letter-spacing: .2px; padding: 10px 14px; border-radius: 999px; background: var(--surface, #13181c); border: 1px solid var(--border, #2a2a2a); color: var(--fg, #e6e6e6); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 6px 12px rgba(0,0,0,0.18); transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.collection-pill:hover { transform: translateY(-1px); border-color: rgba(130,170,255,0.4); background: rgba(28,34,40,0.95); }
.collection-pill:active { transform: translateY(0); }
.collection-pill:focus-visible { outline: 2px solid var(--accent, #4a9eff); outline-offset: 2px; }
.collections-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #1f262b, #14191d); border: 1px solid var(--border, #2a2a2a); color: var(--fg, #e6e6e6); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.collections-arrow.right { right: 6px; }
.collections-arrow.left { left: 6px; }
.collections-arrow:hover { border-color: rgba(130,170,255,0.4); }
.collections-rail:not(.at-start) .collections-arrow.left { display: flex; }
.collections-rail:not(.at-end) .collections-arrow.right { display: flex; }
.collections-fade { position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; z-index: 4; }
.collections-fade.left { left: 0; background: linear-gradient(to right, rgba(16,18,20,0.95), rgba(16,18,20,0)); }
.collections-fade.right { right: 0; background: linear-gradient(to left, rgba(16,18,20,0.95), rgba(16,18,20,0)); }
@media (max-width: 768px) {
  .collection-pill { padding: 9px 12px; font-weight: 800; font-size: 13px; }
  .collections-arrow { width: 32px; height: 32px; }
  .rail-title { font-size: 1.05rem; }
}

/* Badge styles for top products */
.badge-stack { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.loyolo-badge { background: linear-gradient(135deg, rgba(74,158,255,0.25), rgba(74,158,255,0.15)); color: #b8d4ff; padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; border: 1px solid rgba(74,158,255,0.5); box-shadow: 0 4px 16px rgba(74,158,255,0.3), 0 2px 8px rgba(0,0,0,0.3); backdrop-filter: blur(8px); animation: badgePulse 3s ease-in-out infinite; }
.discount-badge { background: linear-gradient(135deg, #ff5f5f, #d62f2f); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 4px 16px rgba(255,95,95,0.4), 0 2px 8px rgba(0,0,0,0.3); }
.pack-badge { background: rgba(0,0,0,0.75); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.4); backdrop-filter: blur(8px); }

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(74,158,255,0.3), 0 2px 8px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 4px 20px rgba(74,158,255,0.5), 0 2px 12px rgba(0,0,0,0.4); }
}

/* Hide pagination */
.pagination { display: none !important; }

