/* ── PREMIUM HOMEPAGE STYLES (cleaned, no duplicates) ───────────────────────────────── */

:root {
  --brand: #0077ff;
  --brand-dark: #0063db;
  --brand-glow: rgba(0, 119, 255, 0.4);
  --brand-light: #60a9ff;
  --brand-pale: #f0f6ff;
  --navy: #000000;
  --navy-mid: #0a0a0c;
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #fefefe;
  --line: #eef0f2;
  --line-soft: #f0f2f5;
  --ink: #121214;
  --ink-mid: #2c2c30;
  --ink-soft: #5e5e66;
  --ink-muted: #8e8e93;
  --r6: 6px; --r8: 8px; --r12: 12px; --r16: 16px; --r20: 20px; --r24: 24px; --r32: 32px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .02);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .02);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  --shadow-premium: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-smooth: cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration: 0.32s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 15px;
}

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0 48px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-title span {
  background: linear-gradient(135deg, var(--brand), #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.view-all {
  font-size: 13.5px;
  font-weight: 560;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all var(--duration);
  border-bottom: 1.5px solid transparent;
}
.view-all:hover { opacity: 0.8; border-bottom-color: var(--brand); }

/* ── Badges premium ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}
.badge-blue { background: rgba(0, 119, 255, .12); color: var(--brand); border: 1px solid rgba(0, 119, 255, .2); }
.badge-gold { background: rgba(245, 158, 11, .1); color: #b85c00; border: 1px solid rgba(245, 158, 11, .2); }
.badge-used { background: rgba(110, 110, 115, .1); color: var(--ink-soft); border: 1px solid rgba(110, 110, 115, .15); }
.badge-new-item { background: rgba(0, 119, 255, .08); color: var(--brand); border: 1px solid rgba(0, 119, 255, .15); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 48px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease-smooth);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 119, 255, .35);
}
.btn-brand:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(0, 119, 255, .45);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(0, 0, 0, .04); color: var(--ink); border-color: rgba(0, 0, 0, .1); }
.btn-lg { padding: 14px 32px; font-size: 15px; font-weight: 600; }

/* ── HERO (elevated premium) ───────────────────────────────── */
.hero {
  background: radial-gradient(circle at 10% 20%, #03060c, #000000);
  padding: 90px 0 88px;
  overflow: hidden;
  position: relative;
}

/* Layered ambient glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,119,255,0.14), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(100,60,255,0.08), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0,119,255,.07), transparent 70%);
  pointer-events: none;
  animation: heroGlowDrift 12s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.1); }
}

/* Grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  align-items: center;
}

/* ── Badge ─────────────────────────────────────────────────── */
.hero .badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,119,255,.15);
  backdrop-filter: blur(8px);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,.25);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 13px;
  border-radius: 60px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero .badge-blue::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  flex-shrink: 0;
  animation: badgePulse 2s ease infinite;
}
@keyframes badgePulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px #3b82f6; }
  50%      { opacity: .5; box-shadow: 0 0 12px #3b82f6; }
}

/* ── Headline ──────────────────────────────────────────────── */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 40%, #38bdf8 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Sub ───────────────────────────────────────────────────── */
.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 440px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── Stats ─────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 0;
}
.hero-stats > div {
  position: relative;
  padding: 0 32px 0 0;
  margin-right: 32px;
}
.hero-stats > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.15);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 10.5px;
  color: rgba(255,255,255,.45);
  margin-top: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Category grid (premium) ─────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 22px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--duration) var(--ease-spring);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
}
.cat-card:hover {
  border-color: rgba(0, 119, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}
.cat-card .icon { font-size: 34px; line-height: 1; transition: transform 0.2s; }
.cat-card:hover .icon { transform: scale(1.08); }
.cat-card .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
}
.cat-card .count {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── Product cards (premium) ─────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-smooth);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 119, 255, 0.2);
}
.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eef2f6;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
  display: block;
}
.product-card:hover .card-image-wrap img { transform: scale(1.06); }
.card-badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.3px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.card-negotiable {
  font-size: 11px;
  color: #16a34a;
  font-weight: 520;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Promo strip luxury ─────────────────────────────────── */
.promo {
  background: linear-gradient(125deg, #0c0c10, #111217);
  border-radius: 36px;
  padding: 48px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 48px 0 72px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.4);
}
.promo h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.promo p { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 6px; }
.promo-steps {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.promo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 500;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 60px;
  background: rgba(0, 119, 255, 0.2);
  border: 1px solid rgba(0, 119, 255, 0.5);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.promo .btn-white {
  background: #fff;
  color: #111;
  border: none;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 650;
  font-family: var(--font-body);
  transition: all var(--duration);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.promo .btn-white:hover {
  background: #f0f2ff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}

/* ── Entrance animations ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
  animation: fadeUp 0.65s var(--ease-smooth) both;
}
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.cat-card { animation: fadeUp 0.5s var(--ease-smooth) both; }
.cat-card:nth-child(1)  { animation-delay: .04s; }
.cat-card:nth-child(2)  { animation-delay: .08s; }
.cat-card:nth-child(3)  { animation-delay: .12s; }
.cat-card:nth-child(4)  { animation-delay: .16s; }
.cat-card:nth-child(5)  { animation-delay: .20s; }
.cat-card:nth-child(6)  { animation-delay: .24s; }
.cat-card:nth-child(7)  { animation-delay: .28s; }
.cat-card:nth-child(8)  { animation-delay: .32s; }

/* ── Scrollbar & selection ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8e8ed; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #c0c0c8; border-radius: 10px; }
::selection { background: rgba(0, 119, 255, .2); }

/* ── Profile dropdown (glass) ───────────────────────────── */
.profile-dropdown {
  position: relative;
  display: inline-block;
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 119, 255, 0.3);
}
.profile-trigger img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
}
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.premium-badge {
  font-size: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-top: 2px;
}
.dropdown-arrow {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s;
}
.profile-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: rgba(20, 22, 32, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}
.profile-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s;
}
.dropdown-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.dropdown-item:hover {
  background: rgba(0, 119, 255, 0.2);
  color: #fff;
}
.dropdown-item:hover svg { opacity: 1; }
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}
.logout { color: #ff6b6b; }
.logout:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8787;
}

/* ── Mobile bottom navigation ───────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(8, 9, 16, .96);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.mob-nav-items {
  display: flex;
  justify-content: space-around;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  font-weight: 530;
  transition: all .2s;
  cursor: pointer;
  border: none;
  background: none;
}
.mob-nav-item.active { color: var(--brand); }
.mob-nav-item.active .mni { filter: drop-shadow(0 0 4px rgba(0, 119, 255, .5)); }
.mni { font-size: 21px; line-height: 1; }
.mob-nav-item.post-cta {
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 4px 22px;
  margin-top: -14px;
  box-shadow: 0 -4px 18px rgba(0, 119, 255, .5);
}
.mob-nav-item.post-cta .mni { font-size: 22px; }
.mob-nav-item.post-cta:hover { background: var(--brand-dark); }

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state .ei {
  font-size: 52px;
  margin-bottom: 14px;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 720;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--ink-muted);
  font-size: 14px;
}

/* ── RESPONSIVE BREAKPOINTS (cleaned) ───────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-search { max-width: 480px; margin: 0 auto; }
  .hero { padding: 110px 0 68px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-stats > div::before { display: none; }
  .section-title { font-size: 22px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 50px); }
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; padding: 13px 14px; }
  .hero-stat-num { font-size: 21px; }
  .section { padding: 46px 0 34px; }
  .section-title { font-size: 20px; }

  .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: var(--r20); }
  .card-body { padding: 11px 12px 14px; gap: 3px; }
  .card-title-text { font-size: 13px; }
  .card-price { font-size: 17px; }
  .card-meta { font-size: 11px; }
  .promo { padding: 30px 22px; border-radius: var(--r24); }
  .promo h3 { font-size: 20px; }
  .promo-steps { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: 62px; }
  .profile-dropdown .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s;
  }
  .profile-dropdown.open .dropdown-menu { transform: translateY(0); }
  .profile-trigger { background: rgba(0, 0, 0, 0.5); }
}
@media (max-width: 480px) {
  .hero-stat-lbl { font-size: 9.5px; letter-spacing: .03em; }
  .products-grid { gap: 10px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
@media (max-width: 768px) {
  .promo {
    flex-direction: column;
    align-items: center; /* center content */
    gap: 12px;           /* reduce spacing */
    padding: 16px 12px;  /* smaller padding */
    margin: 20px 0 24px; /* smaller margin */
    border-radius: 20px; /* sharper premium radius */
    box-shadow: 0 12px 28px -6px rgba(0,0,0,0.35); /* subtle premium shadow */
  }
  .promo h3 {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }
  .promo p {
    font-size: 11px;
    text-align: center;
  }
  .promo .btn-white {
    padding: 8px 20px;
    font-size: 12px;
    border-radius: 36px;
  }
  .promo-steps { display: none; }
}@media(max-width:768px) {
  .cat-card {
    padding: 8px 6px 6px;  /* smaller top/bottom and horizontal padding */
    border-radius: 16px;    /* slightly tighter corners */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); /* lighter shadow for compact look */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;               /* less space between icon, name, count */
    text-align: center;
  }

  .cat-card .icon {
    font-size: 24px;        /* smaller icon */
  }

  .cat-card .name {
    font-size: 10px;        /* smaller text */
  }

  .cat-card .count {
    font-size: 8px;         /* smaller product count */
  }
}@media (max-width: 768px) {
  .hero {
    padding: 40px 2px 40px; /* reduced padding */
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left-aligned */
    gap: 12px;
  }

  .hero-content {
    width: 100%;
    max-width: 360px;
    text-align: left; /* left-aligned text */
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero h1 em {
    font-size: inherit;
  }

  .hero-sub {
    font-size: 11px;
    max-width: 100%;
    margin-bottom: 12px;
    text-align: left;
  }

  .hero-stats-mobile {
    display: flex;
    flex-direction: row; /* show stats in a row */
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: flex-start; /* left-aligned stats */
  }

  .hero-stats-mobile > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
  }

  .hero-stat-num {
    font-size: 16px;
  }

  .hero-stat-lbl {
    font-size: 8px;
    margin-top: 2px;
  }
}
/* Category layout override */
.cat-slider-container {
  overflow: visible;
}

.cat-grid {
  grid-template-columns: repeat(auto-fit, minmax(clamp(76px, 6.8vw, 102px), 1fr));
  gap: 10px;
}

.cat-card {
  border-radius: 20px;
  padding: 16px 8px 14px;
  gap: 7px;
}

.cat-card .icon {
  font-size: 26px;
}

.cat-card .name {
  font-size: 11px;
  line-height: 1.3;
}

.cat-card .count {
  font-size: 9px;
}

@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}

@media (max-width: 768px) {
  .cat-slider-container {
    overflow: visible;
    max-height: none;
    padding-bottom: 0;
    display: block;
  }

  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
  }

  .cat-card {
    width: auto;
    height: auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
