/* ============================================================
   121 Marketplace — CSS principal
   Mobile-first · Hanken Grotesk + DM Sans · PHP 8.3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;700;800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.19.0/dist/tabler-icons.min.css');

/* ============================================================
   Variables
   ============================================================ */
:root {
  --c-red:        #E75051;
  --c-red-dk:     #C73E3F;
  --c-red-bg:     #FFF0F0;
  --c-gold:       #FFBC00;
  --c-gold-txt:   #9A6E00;
  --c-gold-bg:    #FFFBEB;
  --c-amber:      #FFA83B;
  --c-amber-txt:  #7A4E00;
  --c-amber-bg:   #FFF8EE;

  --c-white:      #FFFFFF;
  --c-bg:         #F8F8F8;
  --c-text:       #1A1A1A;
  --c-text-soft:  #6B6B6B;
  --c-text-muted: #A0A0A0;
  --c-border:     #E8E8E8;
  --c-border-md:  #D0D0D0;

  --f-display: 'Hanken Grotesk', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  --container: 1200px;
  --gutter:    16px;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 999px;

  --header-h: 56px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.10);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 62px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 68px; }
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

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

button { cursor: pointer; font-family: var(--f-body); }

input, select, textarea {
  font-family: var(--f-body);
  font-size: 15px;
}

ul, ol { list-style: none; }

/* ============================================================
   Layout container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.h-display { font-size: clamp(32px, 7vw, 52px); font-weight: 900; letter-spacing: -.03em; }
.h1        { font-size: clamp(24px, 5vw, 36px); }
.h2        { font-size: clamp(20px, 4vw, 28px); }
.h3        { font-size: 18px; }

.text-muted  { color: var(--c-text-muted); }
.text-soft   { color: var(--c-text-soft); }
.text-red    { color: var(--c-red); }
.text-gold   { color: var(--c-gold-txt); }
.text-center { text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-full);
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px; /* touch target */
}

.btn:hover  { opacity: .9; }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { background: var(--c-red-dk); opacity: 1; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--c-border-md);
  color: var(--c-text);
}
.btn-outline:hover { border-color: var(--c-text); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--c-text-soft);
}
.btn-ghost:hover { background: var(--c-bg); opacity: 1; }

.btn-amber  { background: var(--c-amber); color: #fff; }
.btn-gold   { background: var(--c-gold); color: var(--c-amber-txt); }
.btn-white  { background: #fff; color: var(--c-red); }

.btn-sm { font-size: 12.5px; padding: 7px 14px; min-height: 36px; }
.btn-lg { font-size: 15px; padding: 13px 28px; min-height: 50px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-sm);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
}
.btn-icon:hover { background: var(--c-red-bg); color: var(--c-red); border-color: var(--c-red); opacity: 1; }
.btn-icon i { font-size: 18px; }

/* ============================================================
   Badges / Pills
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-family: var(--f-body);
}
.badge-red    { background: var(--c-red); color: #fff; }
.badge-amber  { background: var(--c-amber-bg); color: var(--c-amber-txt); }
.badge-gold   { background: var(--c-gold-bg); color: var(--c-gold-txt); }
.badge-gray   { background: var(--c-bg); color: var(--c-text-soft); border: 1px solid var(--c-border); }
.badge-green  { background: #ECFDF5; color: #065F46; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color .2s;
  min-height: 44px;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(231,80,81,.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-text-muted); }

.form-textarea { min-height: 120px; resize: vertical; }

.form-error  { font-size: 12.5px; color: var(--c-red); margin-top: 4px; }
.form-hint   { font-size: 12.5px; color: var(--c-text-muted); margin-top: 4px; }

.form-group-inline { flex-direction: row; align-items: center; gap: 10px; }

/* Search input */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 0 14px;
  transition: border-color .2s;
  min-height: 44px;
}
.search-wrap:focus-within { border-color: var(--c-red); background: var(--c-white); }
.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--c-text);
  padding: 10px 0;
  outline: none;
  min-height: 0;
}
.search-wrap input::placeholder { color: var(--c-text-muted); }
.search-wrap i { font-size: 17px; color: var(--c-text-muted); flex-shrink: 0; }

/* ============================================================
   Flash messages
   ============================================================ */
.flash {
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.flash i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: var(--c-red-bg); color: #991B1B; border: 1px solid #FECACA; }
.flash-warning { background: var(--c-amber-bg); color: var(--c-amber-txt); border: 1px solid #FCD34D; }
.flash-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-hex {
  width: 34px;
  height: 34px;
  background: var(--c-red);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 8px;
  color: var(--c-gold);
  letter-spacing: -.5px;
}
.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}
.logo-mkt {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  font-style: italic;
  color: var(--c-text);
}
.logo-plc {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 9px;
  color: var(--c-red);
  letter-spacing: .12em;
}

/* Mobile: header tools */
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--c-bg);
  border-radius: var(--r-sm);
  color: var(--c-text-soft);
  font-size: 20px;
}

.btn-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-border);
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 22px;
  flex-shrink: 0;
}
.btn-hamburger:hover { border-color: var(--c-red); color: var(--c-red); }

/* Desktop-only header elements — hidden on mobile */
.header-search-wrap { display: none; }
.header-loc         { display: none; }
.site-nav           { display: none; }
.header-auth        { display: none; }

/* ============================================================
   Mobile nav overlay
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--c-white);
  flex-direction: column;
  overflow-y: auto;
}
.nav-overlay.open { display: flex; }

.nav-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--header-h);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.btn-close-nav {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--c-border);
  background: transparent;
  border-radius: var(--r-sm);
  font-size: 22px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-loc {
  padding: 14px var(--gutter);
  background: var(--c-amber-bg);
  border-bottom: 1px solid #FFE8C0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-overlay-loc i { color: var(--c-amber); font-size: 16px; flex-shrink: 0; }
.nav-overlay-loc span { font-size: 13px; font-weight: 500; color: var(--c-text); }

.nav-overlay-links { padding: 8px 0; }
.nav-overlay-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}
.nav-overlay-links a:hover,
.nav-overlay-links a.active { color: var(--c-red); background: var(--c-red-bg); }
.nav-overlay-links a i { font-size: 20px; color: var(--c-text-muted); }
.nav-overlay-links a.active i { color: var(--c-red); }

.nav-overlay-auth {
  padding: 20px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--c-border);
}

/* Mobile search bar (expands below header) */
.mobile-search-bar {
  display: none;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-white);
}
.mobile-search-bar.open { display: block; }

/* ============================================================
   Location banner
   ============================================================ */
.loc-banner {
  background: var(--c-amber-bg);
  border-bottom: 1px solid #FFE0A0;
  padding: 10px 0;
}
.loc-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loc-banner-text {
  font-size: 13px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.loc-banner-text i { color: var(--c-amber); font-size: 15px; flex-shrink: 0; }
.loc-banner-text strong { font-weight: 500; }
.loc-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-loc-solid  { background: var(--c-amber); color: #fff; border: none; font-family: var(--f-body); font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-full); cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 5px; }
.btn-loc-ghost  { background: transparent; color: var(--c-text-soft); border: 1px solid var(--c-border-md); font-family: var(--f-body); font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-full); cursor: pointer; min-height: 36px; }
.btn-loc-plain  { background: none; border: none; color: var(--c-text-muted); font-family: var(--f-body); font-size: 12.5px; cursor: pointer; padding: 8px 4px; }

/* ============================================================
   Location chip / pill in header
   ============================================================ */
.loc-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
  background: var(--c-white);
  min-height: 36px;
}
.loc-pill:hover { border-color: var(--c-red); color: var(--c-red); }
.loc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); flex-shrink: 0; }

/* ============================================================
   Section commons
   ============================================================ */
.section { padding: 40px 0; }
.section-lg { padding: 56px 0; }
.section-alt { background: var(--c-bg); }
.section-dark { background: #111111; }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
}
.section-subtitle { font-size: 13px; color: var(--c-text-soft); margin-top: 3px; }
.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-red);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-top: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   Hero section
   ============================================================ */
.hero {
  padding: 44px 0 36px;
  text-align: center;
  background: var(--c-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-red-bg);
  color: var(--c-red);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--c-text);
  margin-bottom: 14px;
}
.hero-title em { color: var(--c-red); font-style: normal; }

.hero-sub {
  font-size: 15px;
  color: var(--c-text-soft);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* Hero search */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto 22px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border-md);
  border-radius: var(--r-full);
  padding: 5px 5px 5px 16px;
  gap: 10px;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--c-text);
  outline: none;
  padding: 8px 0;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--c-text-muted); }
.hero-search-btn {
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--f-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Location chips below hero search */
.quick-locs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.quick-locs-label { font-size: 12px; color: var(--c-text-muted); }
.loc-chip {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-soft);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 5px 12px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}
.loc-chip:hover { border-color: var(--c-red); color: var(--c-red); }
.loc-chip.active { border-color: var(--c-red); background: var(--c-red-bg); color: var(--c-red); }

/* ============================================================
   Category cards (mosaic grid)
   ============================================================ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform .2s;
}
.cat-card:hover { transform: translateY(-2px); }

.cat-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  transition: border-color .2s;
  overflow: hidden;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img i { font-size: 24px; }
.cat-card:hover .cat-img { border-color: var(--c-red); }

.cat-name {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: var(--c-text);
  line-height: 1.3;
}

/* ============================================================
   Product cards
   ============================================================ */
.prods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.prod-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: border-color .2s, transform .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.prod-card:hover {
  border-color: var(--c-border-md);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prod-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.prod-card:hover .prod-img img { transform: scale(1.03); }
.prod-img-icon { font-size: 36px; color: var(--c-text-muted); }

.prod-badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
}

.prod-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 16px;
  backdrop-filter: blur(4px);
  transition: color .15s, background .15s;
}
.prod-fav-btn:hover,
.prod-fav-btn.active { color: var(--c-red); background: var(--c-red-bg); }

.prod-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }

.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.prod-vendor { font-size: 11px; color: var(--c-text-muted); font-weight: 500; }
.prod-dist {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--c-amber-txt);
  display: flex;
  align-items: center;
  gap: 2px;
}
.prod-dist i { font-size: 10px; }

.prod-title {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.prod-price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }

.prod-price {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--c-gold-txt);
}

.price-locked {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-muted);
  background: var(--c-bg);
  padding: 4px 9px;
  border-radius: var(--r-full);
}
.price-locked i { font-size: 11px; }

.btn-contact {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-red);
  background: var(--c-red-bg);
  border: none;
  padding: 5px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  min-height: 30px;
}
.btn-contact:hover { background: var(--c-red); color: #fff; }

/* Register CTA strip */
.reg-cta {
  background: var(--c-red);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.reg-cta h3 { font-family: var(--f-display); font-size: 16px; font-weight: 800; color: #fff; }
.reg-cta p  { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 3px; }
.reg-cta .btn-white { align-self: flex-start; }

/* ============================================================
   Store cards
   ============================================================ */
.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.store-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.store-card:hover { border-color: var(--c-red); transform: translateY(-1px); }

.store-banner {
  height: 76px;
  position: relative;
  background: var(--c-bg);
  overflow: hidden;
}
.store-banner img { width: 100%; height: 100%; object-fit: cover; }

.store-avatar {
  position: absolute;
  bottom: -18px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2.5px solid var(--c-white);
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-avatar i { font-size: 20px; color: var(--c-text-soft); }

.store-info { padding: 24px 16px 16px; }
.store-name { font-family: var(--f-display); font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.store-cat  { font-size: 12px; color: var(--c-text-soft); margin-bottom: 10px; }
.store-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-stats { font-size: 12px; color: var(--c-text-muted); }
.store-stats strong { color: var(--c-text); font-weight: 500; }

.btn-follow {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid var(--c-red);
  color: var(--c-red);
  background: transparent;
  min-height: 34px;
}
.btn-follow:hover,
.btn-follow.active { background: var(--c-red); color: #fff; }

/* ============================================================
   How it works section
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
.how-step { text-align: center; }
.how-num  { font-family: var(--f-display); font-size: 52px; font-weight: 900; line-height: 1; color: var(--c-gold); margin-bottom: 12px; }
.how-step h3 { font-family: var(--f-display); font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.how-step p  { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 240px; margin: 0 auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #111;
  padding: 44px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand-text {
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.32);
  margin-top: 12px;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--f-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,.48);
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.22);
}

/* ============================================================
   Dashboard / Panel del negocio
   ============================================================ */
.dash-layout { display: flex; min-height: calc(100vh - var(--header-h)); }

.dash-sidebar {
  width: 240px;
  background: var(--c-white);
  border-right: 1px solid var(--c-border);
  padding: 20px 0;
  flex-shrink: 0;
  display: none; /* hidden on mobile */
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.dash-sidebar-link i { font-size: 18px; }
.dash-sidebar-link:hover { color: var(--c-text); background: var(--c-bg); }
.dash-sidebar-link.active { color: var(--c-red); background: var(--c-red-bg); border-left-color: var(--c-red); }

.dash-main { flex: 1; padding: 24px var(--gutter); min-width: 0; }

.dash-page-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }

.stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.stat-label { font-size: 12px; color: var(--c-text-muted); margin-bottom: 6px; }
.stat-value { font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--c-text); }

/* Mobile bottom nav for dashboard */
.dash-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.dash-bottom-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color .15s;
  min-height: 56px;
}
.dash-bottom-link i { font-size: 22px; }
.dash-bottom-link.active { color: var(--c-red); }

/* ============================================================
   Utilities
   ============================================================ */
.mt-1 { margin-top: 4px; }   .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }  .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }  .mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex  { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   Responsive — Tablet (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
  .reg-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 24px; }
  .reg-cta .btn-white { align-self: auto; flex-shrink: 0; margin-left: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .loc-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .prods-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cats-grid  { grid-template-columns: repeat(6, 1fr); }
  .how-grid   { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Responsive — Tablet grande / Desktop pequeño (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: 52px 0; }
  .section-lg { padding: 68px 0; }
  .section-title { font-size: 24px; }
  .cat-img i { font-size: 28px; }
  .cat-name { font-size: 12px; }
  .prod-title { font-size: 14px; }
  .prod-info { padding: 12px 14px 14px; }
  .prod-price { font-size: 17px; }

  /* Header: show search */
  .header-search-wrap {
    display: flex;
    flex: 1;
    max-width: 360px;
  }
  .btn-search-toggle { display: none; }
  .mobile-search-bar { display: none !important; }

  /* Dashboard sidebar shows */
  .dash-sidebar { display: block; }
  .dash-bottom-nav { display: none; }
  .dash-main { padding: 32px 40px; }
}

/* ============================================================
   Responsive — Desktop (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* Full header */
  .header-loc    { display: flex; }
  .site-nav      { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .header-auth   { display: flex; align-items: center; gap: 8px; }
  .btn-hamburger { display: none; }

  .header-search-wrap { max-width: 420px; }

  /* Nav links */
  .site-nav a {
    font-family: var(--f-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-text-soft);
    padding: 7px 12px;
    border-radius: var(--r-sm);
    transition: background .15s, color .15s;
  }
  .site-nav a:hover,
  .site-nav a.active { color: var(--c-text); background: var(--c-bg); }

  .prods-grid    { grid-template-columns: repeat(4, 1fr); }
  .cats-grid     { grid-template-columns: repeat(8, 1fr); }
  .stores-grid   { grid-template-columns: repeat(3, 1fr); }

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