:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --primary: #8b5cf6;
  --primary-deep: #7c3aed;
  --secondary: #4c1d95;
  --accent: #f3e8ff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 12px;
  --container: min(1200px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 26%, #f8fafc 100%);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.brand-logo {
  width: 3.2rem;
  height: auto;
  flex: 0 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
}

.brand-wordmark {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #344577;
}

.brand-tagline {
  display: block;
  color: #7d849d;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a,
.nav-auth {
  color: #2f2744;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #6d28d9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a.active,
.nav-auth.active,
.nav-links a:hover,
.nav-auth:hover {
  color: #1d1630;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-auth {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  color: #5b21b6;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  border-radius: 0.85rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.home-page {
  padding-bottom: 4rem;
}

.home-hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 19, 36, 0.38), rgba(24, 19, 36, 0.32)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.22)),
    url("https://images.unsplash.com/photo-1517502884422-41eaead166d4?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::before {
  width: 22rem;
  height: 22rem;
  top: -10rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
}

.home-hero::after {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -8rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
}

.home-hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #7c3aed;
}

.centered {
  justify-self: center;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: none;
  color: #ffffff;
}

.hero-lead {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-lead-search {
  max-width: 40rem;
  margin-bottom: 0.5rem;
}

.home-postcode-search {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 0.85rem;
  align-items: stretch;
}

.search-input-shell {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 64px;
  background: #ffffff;
  border: 1px solid rgba(43, 35, 65, 0.3);
  border-radius: 10px;
}

.search-icon {
  display: grid;
  place-items: center;
  color: #7c7096;
  font-size: 1.3rem;
}

.home-postcode-search input {
  width: 100%;
  border: 0;
  padding: 0.85rem 1rem 0.85rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: #2b2341;
  background: transparent;
}

.home-postcode-search .button {
  border-radius: 10px;
  box-shadow: none;
  min-height: 64px;
  font-weight: 600;
}

.market-search-panel {
  width: min(800px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(43, 35, 65, 0.14);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
}

.market-search-tabs {
  gap: 0;
  justify-content: stretch;
  align-items: center;
  border-bottom: 1px solid rgba(43, 35, 65, 0.12);
  background: #ffffff;
}

.market-search-tabs .device-pill {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 0;
  background: transparent;
  color: #2b2341;
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  font-weight: 700;
  box-shadow: none;
  border-right: 1px solid rgba(43, 35, 65, 0.04);
}

.market-search-tabs .device-pill:last-child {
  border-right: 0;
}

.market-search-tabs .device-pill.active {
  color: #1d1630;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #7c3aed;
}

.market-search-tabs .device-pill:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  transform: none;
  box-shadow: none;
}

.market-search-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1rem 1.1rem;
  text-align: left;
}

.market-search-copy h2 {
  margin: 0;
  color: #2b2341;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.market-search-button {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

.market-search-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 1rem;
  background: #2f2342;
  color: #ffffff;
}

.market-search-promo h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.2;
}

.market-search-promo p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.45;
}

.market-search-promo-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;
}

.device-switches,
.location-actions,
.hero-actions,
.card-actions,
.chip-row,
.shop-facts,
.contact-points,
.info-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.device-switches {
  justify-content: center;
}

.location-actions {
  justify-content: flex-start;
  align-items: center;
}

.location-button {
  min-width: 220px;
  min-height: 50px;
  color: #ffffff;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.location-button:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.16);
}

.location-note,
.filter-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.whatsapp-widget {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.28) !important;
}

.whatsapp-widget:hover,
.whatsapp-widget:focus-visible,
.whatsapp-widget:visited {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
}

.whatsapp-widget strong,
.whatsapp-widget small {
  display: block;
  line-height: 1.2;
}

.whatsapp-widget small {
  opacity: 0.9;
}

.whatsapp-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.device-pill {
  min-width: 140px;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.device-pill.active,
.device-pill:hover {
  color: white;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  transform: translateY(-2px);
}

.home-subcopy,
.page-heading p,
.auth-intro p,
.detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.hero-metrics article,
.trust-band-card,
.home-cta-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.hero-metrics article {
  padding: 1.25rem 1.1rem;
}

.metric-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 1rem;
  font-weight: 700;
}

.hero-metrics strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-band {
  padding-top: 0;
  padding-bottom: 1rem;
}

.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-band-card {
  padding: 1.4rem;
}

.trust-band-card h3,
.home-cta-panel h2 {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.25rem;
}

.trust-band-card p,
.home-cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.home-section-title,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.home-section-title span {
  height: 1px;
  background: rgba(42, 67, 111, 0.14);
}

.home-section-title h2,
.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.featured-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.seller-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.home-product-card,
.seller-spotlight-card,
.card,
.value-card,
.steps-panel,
.stat-card,
.detail-panel,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-product-card:hover,
.seller-spotlight-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(42, 67, 111, 0.14);
  border-color: rgba(31, 102, 203, 0.14);
}

.home-product-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #ffffff, #f2f5fb);
  overflow: hidden;
}

.home-product-media img,
.seller-spotlight-media img {
  transition: transform 220ms ease;
}

.home-product-card:hover .home-product-media img,
.seller-spotlight-card:hover .seller-spotlight-media img {
  transform: scale(1.04);
}

.home-product-media img,
.seller-spotlight-media img,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-image,
.seller-spotlight-image,
.product-gallery-image,
.thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  object-fit: contain !important;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
}

.home-product-body,
.seller-spotlight-body,
.card-body,
.value-card,
.steps-panel,
.detail-panel,
.empty-state,
.stat-card {
  padding: 1.1rem 1.15rem 1.2rem;
  min-width: 0;
}

.home-product-body h3,
.seller-spotlight-body h3,
.product-card h3,
.shop-card h3,
.value-card h3,
.detail-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.home-product-body strong,
.seller-spotlight-body strong,
.meta-row strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.seller-spotlight-body strong {
  font-size: 1.25rem;
}

.rating-row,
.seller-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #f1bd2c;
  font-weight: 800;
}

.rating-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.home-product-body p,
.product-card p,
.shop-card p,
.value-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-card,
.shop-card-top,
.shop-facts,
.info-stack,
.card-actions,
.map-frame,
.map-panel,
.detail-panel,
.page-heading {
  min-width: 0;
}

.shop-facts span,
.info-stack span,
.contact-points span,
.contact-points a,
.meta-row span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.distance-tag {
  margin-top: 0.85rem;
  color: #7c3aed;
  font-size: 0.9rem;
  font-weight: 800;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(42, 67, 111, 0.08);
}

.home-product-body p a,
.text-link {
  color: #7c3aed;
  font-weight: 800;
}

.seller-spotlight-media {
  display: block;
  aspect-ratio: 5 / 4;
}

.seller-spotlight-body {
  text-align: center;
}

.seller-rating-stars {
  justify-content: center;
  margin-bottom: 0.35rem;
}

.hero,
.postcode-strip {
  display: none;
}

.hero-grid,
.dashboard-grid,
.auth-grid,
.contact-grid,
.product-layout,
.card-split,
.browse-layout,
.value-grid,
.steps-grid,
.footer-grid,
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy h1,
.page-heading h1,
.detail-panel h1,
.auth-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
  margin: 0.4rem 0 1rem;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-search,
.search-bar,
.postcode-search {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1rem;
}

.hero-search input,
.search-bar input,
.postcode-search input,
input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.2);
}

.market-search-button,
.home-postcode-search .market-search-button {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.market-search-button:hover,
.home-postcode-search .market-search-button:hover {
  background: linear-gradient(180deg, #925df6 0%, #7c3aed 100%);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.seller-cta-button {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.seller-cta-button:hover {
  background: linear-gradient(180deg, #925df6 0%, #7c3aed 100%);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.trusted-shops-button {
  color: #7c3aed !important;
  box-shadow: inset 0 0 0 1.5px rgba(124, 58, 237, 0.22) !important;
}

.trusted-shops-button:hover,
.trusted-shops-button:focus-visible,
.trusted-shops-button:visited {
  color: #7c3aed !important;
}

.button-secondary {
  background: linear-gradient(180deg, #6d28d9, #4c1d95);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.2);
}

.button-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px rgba(124, 58, 237, 0.22);
}

.button-ghost.location-button,
.market-search-promo .location-button {
  color: #ffffff;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.button-ghost.location-button:hover,
.market-search-promo .location-button:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.16);
}

.floating-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.94);
}

.spotlight-card {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.98), rgba(124, 58, 237, 0.92));
  color: white;
}

.spotlight-card h2 {
  margin: 0.5rem 0 1rem;
  font-size: 1.8rem;
}

.spotlight-label {
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
}

.stat-row,
.value-grid,
.steps-grid,
.footer-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-row,
.value-grid,
.steps-grid,
.footer-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-row strong,
.stat-card strong {
  font-size: 2rem;
}

.shop-card,
.product-card {
  overflow: hidden;
}

.product-image-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-image {
  transition: transform 180ms ease;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip-soft {
  background: rgba(124, 58, 237, 0.08);
  color: var(--secondary);
}

.meta-row,
.shop-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.meta-row {
  margin-top: 1rem;
  align-items: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.verified-badge.muted {
  background: rgba(124, 58, 237, 0.08);
  color: var(--secondary);
}

.muted-section {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(124, 58, 237, 0.08);
}

.steps-panel {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.97), rgba(124, 58, 237, 0.9));
  color: white;
}

.steps-panel .eyebrow,
.steps-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, #4c1d95, #2f2342);
}

.site-footer .footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
}

.site-footer h3,
.site-footer h4 {
  color: white;
}

.site-footer a,
.site-footer p,
.footer-bottom span {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
  display: block;
  margin-top: 0.55rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-cta {
  padding-top: 2.5rem;
}

.home-cta-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.9rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 232, 255, 0.92));
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.page-top {
  padding-bottom: 0;
}

.page-heading {
  max-width: 54rem;
}

.page-heading.narrow {
  max-width: 48rem;
}

.filter-panel {
  padding: 1.2rem;
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.filter-panel form,
.form-grid {
  display: grid;
  gap: 1rem;
}

.filter-note {
  margin-top: -0.25rem;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.span-2 {
  grid-column: span 2;
}

.browse-layout {
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

.page-hero iframe,
.map-panel iframe,
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.card-split,
.dashboard-grid,
.auth-grid,
.contact-grid,
.product-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-frame,
.map-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 24rem;
  box-shadow: var(--shadow);
  width: 100%;
}

.product-gallery {
  display: grid;
  gap: 1rem;
}

.product-gallery-main {
  min-height: 28rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.thumb {
  width: 5.2rem;
  height: 5.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
}

.thumb.active {
  box-shadow: inset 0 0 0 3px var(--primary);
}

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

.seller-box {
  margin-top: 1.4rem;
  background: rgba(31, 102, 203, 0.05);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.upload-preview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.preview-thumb {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.auth-shell,
.contact-shell {
  padding-top: 4rem;
}

.auth-card {
  padding: 1.2rem;
}

.auth-stack {
  display: grid;
  gap: 1.25rem;
}

.auth-card-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.auth-card-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.16;
}

.auth-card-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-tabs {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(36, 63, 114, 0.07);
  margin-bottom: 1rem;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button.active {
  color: white;
  background: var(--secondary);
}

.auth-message {
  color: var(--primary);
  min-height: 1.5rem;
}

.social-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.social-button {
  min-height: 3.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.social-google:hover {
  border-color: rgba(66, 133, 244, 0.45);
}

.social-facebook:hover {
  border-color: rgba(24, 119, 242, 0.45);
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0.3rem 0 1rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-box {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .section {
    padding: 3rem 0;
  }

  .home-hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-metrics,
  .trust-band-grid,
  .featured-grid,
  .seller-spotlight-grid,
  .card-grid,
  .hero-grid,
  .browse-layout,
  .card-split,
  .dashboard-grid,
  .auth-grid,
  .contact-grid,
  .product-layout,
  .value-grid,
  .steps-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid,
  .home-cta-panel {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    position: relative;
  }

  .brand-logo {
    width: 2.8rem;
  }

  .brand-wordmark {
    font-size: clamp(1.18rem, 3.7vw, 1.38rem);
  }

  .brand-tagline {
    font-size: 0.58rem;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    background: rgba(109, 40, 217, 0.08);
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.08);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }

  .nav-links a,
  .nav-auth,
  .nav-user-badge,
  .nav-cta {
    width: 100%;
  }

  .nav-links a,
  .nav-auth {
    padding: 0.2rem 0;
  }

  .nav-user-badge,
  .nav-cta {
    justify-content: center;
  }

  .shop-card-top {
    flex-direction: column;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions a,
  .card-actions button {
    width: 100%;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .section,
  .home-hero {
    padding: 2rem 0;
  }

  .container {
    width: min(100vw - 1.2rem, 100%);
  }

  .brand-logo {
    width: 2.45rem;
  }

  .brand-wordmark {
    font-size: clamp(1rem, 6vw, 1.16rem);
  }

  .brand-tagline {
    font-size: 0.5rem;
  }

  .nav-shell {
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .nav-links {
    left: 0.6rem;
    right: 0.6rem;
    gap: 0.9rem;
    padding: 0.9rem;
  }

  .home-hero h1,
  .page-heading h1,
  .detail-panel h1,
  .auth-intro h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .home-postcode-search {
    grid-template-columns: 1fr;
  }

  .search-input-shell,
  .home-postcode-search .button {
    min-height: 58px;
  }

  .market-search-body {
    padding: 1.3rem 1rem 1rem;
  }

  .market-search-promo {
    grid-template-columns: 1fr;
    padding: 1.15rem 1rem;
  }

  .market-search-promo-actions {
    align-items: stretch;
  }

  .market-search-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .market-search-tabs .device-pill {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(43, 35, 65, 0.08);
    justify-content: flex-start;
  }

  .market-search-tabs .device-pill:last-child {
    border-bottom: 0;
  }

  .location-button {
    min-width: 100%;
  }

  .hero-metrics article,
  .trust-band-card,
  .home-product-body,
  .seller-spotlight-body,
  .card-body,
  .value-card,
  .steps-panel,
  .detail-panel,
  .empty-state,
  .stat-card,
  .auth-card {
    padding: 1rem;
  }

  .device-switches,
  .location-actions,
  .home-cta-actions,
  .hero-actions,
  .card-actions,
  .footer-bottom,
  .hero-search,
  .search-bar,
  .postcode-search {
    flex-direction: column;
    align-items: stretch;
  }

  .whatsapp-widget {
    right: 0.8rem;
    left: 0.8rem;
    bottom: 0.8rem;
    justify-content: center;
    padding: 0.8rem 0.95rem;
    gap: 0.65rem;
  }

  .whatsapp-widget strong {
    font-size: 0.92rem;
  }

  .whatsapp-widget small {
    font-size: 0.78rem;
  }

  .home-section-title {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-section-title span {
    display: none;
  }

  .map-panel,
  .map-frame,
  .product-gallery-main {
    min-height: 18rem;
  }

  .product-gallery-thumbs {
    gap: 0.55rem;
  }

  .thumb {
    width: 4.4rem;
    height: 4.4rem;
  }

  .meta-row,
  .shop-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta-panel {
    padding: 1.2rem;
  }

  .filter-panel {
    padding: 1rem;
  }

  .site-footer {
    padding-bottom: 5.8rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .page-heading h1,
  .detail-panel h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-heading p,
  .home-subcopy,
  .detail-panel p {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  :root {
    --container: min(1200px, calc(100vw - 1rem));
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-logo {
    width: 2.15rem;
  }

  .brand-wordmark {
    font-size: 0.96rem;
  }

  .brand-tagline {
    font-size: 0.46rem;
  }

  .market-search-panel {
    border-radius: 16px;
  }

  .market-search-tabs .device-pill,
  .button,
  button.button,
  .social-button {
    min-height: 52px;
  }

  .home-hero h1,
  .page-heading h1,
  .detail-panel h1,
  .auth-intro h1 {
    font-size: clamp(1.65rem, 10vw, 2.1rem);
  }

  .site-footer {
    padding-bottom: 6.2rem;
  }
}
