:root {
    --ink: #0F2B1E;
    --ink-2: #0B2118;
    --panel: #173A28;
    --panel-2: #153726;
    --panel-3: #1B4530;
    --border: rgba(16,60,40,0.18);
    --border-dark: rgba(16,120,80,0.35);
    --cream: #F6F3EA;
    --white: #FFFFFF;
    --text-dark: #14301F;
    --text-muted: #14301F99;
    --emerald-50: #ECF6EF;
    --emerald-200: #A9E0BE;
    --emerald-300: #7FD3A0;
    --emerald-400: #55C583;
    --emerald-500: #2FAE6C;
    --emerald-600: #1F8F58;
    --emerald-700: #197549;
    --emerald-100-a: rgba(210,238,222,0.75);
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
  }
  button, input, select, textarea { font-family: inherit; font-size: inherit; }
  button { cursor: pointer; border: none; background: none; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; }
  .container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
  @media (min-width: 768px) { .container { padding: 0 32px; } }

  .view { display: none; }
  .view.active { display: block; }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,43,30,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(6,90,56,0.4);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 8px; color: #F4F1E8; }
  .brand span.name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
  .brand span.zone { color: var(--emerald-300); }
  .nav-links { display: none; align-items: center; gap: 32px; font-size: 14px; color: var(--emerald-100-a); }
  .nav-links button.link { color: var(--emerald-100-a); transition: color .15s; }
  .nav-links button.link:hover, .nav-links button.link.active { color: var(--emerald-300); }
  .btn-pill {
    padding: 10px 20px; border-radius: 999px; background: var(--emerald-300);
    color: var(--ink); font-weight: 500; transition: background .15s;
  }
  .btn-pill:hover { background: var(--emerald-200); }
  .btn-solid {
    padding: 12px 24px; border-radius: 999px; background: var(--emerald-600);
    color: white; font-weight: 500; transition: background .15s; display: inline-flex; align-items:center; gap:8px;
  }
  .btn-solid:hover { background: var(--emerald-700); }
  .btn-solid:disabled { opacity: .6; cursor: default; }
  @media (min-width: 768px) { .nav-links { display: flex; } .nav-toggle { display: none !important; } }
  .nav-toggle { color: #E4F2E9; }
  .mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 0 20px 20px; color: rgba(210,238,222,0.9); font-size: 14px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu .btn-pill { text-align: center; }

  /* ---------- Hero ---------- */
  .hero { position: relative; background: var(--ink); color: #F4F1E8; overflow: hidden; }
  .hero svg.mountains { position: absolute; inset-inline: 0; bottom: 0; width: 100%; opacity: .6; }
  .hero-inner { position: relative; padding: 64px 0 96px; }
  @media (min-width: 768px) { .hero-inner { padding: 96px 0 128px; } }
  .eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 12px; color: rgba(127,211,160,0.9); margin-bottom: 16px; }
  .hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.05; max-width: 640px; }
  @media (min-width: 768px) { .hero h1 { font-size: 60px; } }
  .hero h1 .italic { display: block; color: var(--emerald-300); font-style: italic; }
  .hero p.lead { margin-top: 24px; max-width: 420px; color: rgba(210,238,222,0.75); line-height: 1.6; }
  .search-row { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
  @media (min-width: 640px) { .search-row { flex-direction: row; } }
  .search-box {
    flex: 1; display: flex; align-items: center; gap: 8px; background: var(--panel);
    border: 1px solid rgba(6,90,56,0.6); border-radius: 999px; padding: 12px 16px;
  }
  .search-box input {
    background: transparent; border: none; outline: none; color: #F0FBF4; width: 100%; font-size: 14px;
  }
  .search-box input::placeholder { color: rgba(210,238,222,0.4); }
  .search-box svg { flex-shrink: 0; opacity: .7; }

  /* ---------- Stats ---------- */
  .stats { background: var(--ink-2); border-top: 1px solid rgba(6,90,56,0.4); border-bottom: 1px solid rgba(6,90,56,0.4); }
  .stats-grid { padding: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  @media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
  .stat-value { font-family: var(--font-mono); font-size: 26px; color: var(--emerald-200); }
  .stat-label { font-size: 12px; color: rgba(210,238,222,0.6); margin-top: 4px; }

  /* ---------- Terrace divider ---------- */
  .terrace { width: 100%; overflow: hidden; line-height: 0; }
  .terrace.flip { transform: rotate(180deg); }
  .terrace svg { width: 100%; height: 40px; display: block; }
  @media (min-width: 768px) { .terrace svg { height: 56px; } }

  /* ---------- Categories ---------- */
  .section-cream { background: var(--cream); }
  .section-pad { padding: 64px 0 80px; }
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
  .section-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--text-dark); }
  @media (min-width: 768px) { .section-title { font-size: 36px; } }
  .link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--emerald-700); }
  .link-arrow:hover { color: var(--emerald-500); }

  .cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  @media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
  .cat-card {
    text-align: left; background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px;
    padding: 20px; transition: border-color .15s, box-shadow .15s, transform .15s;
  }
  .cat-card:hover { border-color: rgba(31,143,88,0.4); box-shadow: 0 4px 20px rgba(15,43,30,0.08); }
  .cat-card svg { color: var(--emerald-700); margin-bottom: 16px; transition: transform .15s; }
  .cat-card:hover svg { transform: scale(1.1); }
  .cat-card .name { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--text-dark); }

  /* ---------- Directory ---------- */
  .filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
  @media (min-width: 768px) { .filters { flex-direction: row; } }
  .search-box.light { background: var(--emerald-50); border: 1px solid rgba(16,60,40,0.1); }
  .search-box.light input { color: var(--text-dark); }
  .search-box.light input::placeholder { color: rgba(20,48,31,0.4); }
  .search-box.light svg { color: var(--emerald-700); }
  select.select-pill {
    background: var(--emerald-50); border: 1px solid rgba(16,60,40,0.1); border-radius: 999px;
    padding: 12px 16px; font-size: 14px; color: var(--text-dark); outline: none;
  }

  .listing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 768px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
  .listing-card {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    text-align: left; background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px;
    padding: 20px; transition: border-color .15s, box-shadow .15s; width: 100%;
  }
  .listing-card:hover { border-color: rgba(31,143,88,0.3); box-shadow: 0 4px 20px rgba(15,43,30,0.06); }
  .listing-left { display: flex; gap: 16px; }
  .listing-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--emerald-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .listing-icon svg { color: var(--emerald-700); }
  .listing-name-row { display: flex; align-items: center; gap: 6px; }
  .listing-name { font-weight: 500; color: var(--text-dark); }
  .listing-meta { font-size: 12px; color: rgba(25,117,73,0.7); margin-top: 4px; }
  .listing-desc { font-size: 14px; color: rgba(20,48,31,0.6); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .listing-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--emerald-700); flex-shrink: 0; }
  .listing-rating svg { color: var(--emerald-400); fill: var(--emerald-400); }
  .empty-state, .loading-state { text-align: center; padding: 64px 0; font-size: 14px; color: rgba(20,48,31,0.5); display: flex; align-items: center; justify-content: center; gap: 8px; }
  .spin { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ---------- Detail ---------- */
  .detail-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
  .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--emerald-700); margin-bottom: 32px; }
  .back-link:hover { color: var(--emerald-500); }
  .detail-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .detail-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--emerald-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .detail-icon svg { color: var(--emerald-700); width: 28px; height: 28px; }
  .detail-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .detail-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--text-dark); }
  @media (min-width: 768px) { .detail-title { font-size: 32px; } }
  .detail-meta { font-size: 14px; color: rgba(25,117,73,0.7); margin-top: 4px; }
  .detail-desc { color: rgba(20,48,31,0.8); line-height: 1.6; margin-bottom: 32px; }
  .detail-info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  @media (min-width: 640px) { .detail-info-grid { grid-template-columns: 1fr 1fr; } }
  .info-card { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(16,60,40,0.1); border-radius: 12px; padding: 16px; }
  .info-card svg { color: var(--emerald-700); }
  .info-label { font-size: 12px; color: rgba(25,117,73,0.7); }
  .info-value { font-size: 14px; color: var(--text-dark); }

  /* ---------- Add listing form ---------- */
  .form-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px; }
  .form-card { background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
  .field label { font-size: 12px; color: rgba(20,80,50,0.7); display: block; margin-bottom: 6px; }
  .field input, .field select, .field textarea {
    width: 100%; border: 1px solid rgba(16,60,40,0.15); border-radius: 8px; padding: 10px 12px;
    font-size: 14px; outline: none; transition: border-color .15s; font-family: inherit;
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald-500); }
  .form-error { font-size: 14px; color: #DC2626; }
  .form-page-desc { font-size: 14px; color: rgba(20,48,31,0.6); margin-bottom: 32px; }

  /* ---------- About ---------- */
  .about-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
  .about-wrap p { font-size: 14px; color: rgba(20,48,31,0.8); line-height: 1.7; margin-bottom: 16px; }

  /* ---------- CTA ---------- */
  .cta-section { background: var(--ink); color: #F4F1E8; position: relative; overflow: hidden; }
  .cta-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
  @media (min-width: 768px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
  .cta-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.2; }
  @media (min-width: 768px) { .cta-title { font-size: 36px; } }
  .cta-title .italic { display: block; color: var(--emerald-300); font-style: italic; }
  .cta-lead { margin-top: 16px; color: rgba(210,238,222,0.7); max-width: 420px; }
  .cta-btn { margin-top: 24px; }
  .cta-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
  .cta-card { background: var(--panel); border: 1px solid rgba(6,90,56,0.5); border-radius: 12px; padding: 16px; }
  .cta-card .big { font-family: var(--font-mono); color: var(--emerald-300); font-size: 18px; }
  .cta-card .small { color: rgba(210,238,222,0.6); font-size: 12px; margin-top: 4px; }

  /* ---------- Footer ---------- */
  footer.site-footer { background: var(--ink-2); color: rgba(210,238,222,0.7); font-size: 14px; }
  .footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  @media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
  .footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #F4F1E8; }
  .footer-brand span { font-family: var(--font-display); font-weight: 600; }
  .footer-col-title { color: rgba(210,238,222,0.9); margin-bottom: 12px; font-weight: 500; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; color: rgba(210,238,222,0.5); }
  .footer-col ul li.contact-row { display: flex; align-items: center; gap: 8px; }
  .footer-bottom { border-top: 1px solid rgba(6,90,56,0.4); padding: 20px 20px; font-size: 12px; color: rgba(210,238,222,0.4); }
  @media (min-width: 768px) { .footer-bottom { padding: 20px 32px; } }

  /* ---------- Auth slot (nav) ---------- */
  .auth-slot { display: flex; align-items: center; gap: 12px; }
  .mobile-menu .auth-slot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 4px; }
  .auth-user-btn {
    display: flex; align-items: center; gap: 8px; color: rgba(210,238,222,0.9); font-size: 14px;
    background: var(--panel); border: 1px solid rgba(6,90,56,0.5); border-radius: 999px; padding: 8px 14px;
  }
  .auth-user-btn:hover { border-color: rgba(127,211,160,0.6); }
  .avatar-circle {
    width: 22px; height: 22px; border-radius: 999px; background: var(--emerald-400); color: var(--ink);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
  }
  .btn-ghost { color: rgba(210,238,222,0.8); font-size: 14px; padding: 8px 4px; }
  .btn-ghost:hover { color: var(--emerald-300); }
  .dropdown-wrap { position: relative; }
  .dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; background: var(--panel); border: 1px solid rgba(6,90,56,0.5);
    border-radius: 12px; padding: 8px; min-width: 180px; display: none; flex-direction: column; z-index: 60;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .dropdown-menu.open { display: flex; }
  .dropdown-menu button {
    text-align: left; padding: 10px 12px; border-radius: 8px; color: rgba(210,238,222,0.85); font-size: 14px;
  }
  .dropdown-menu button:hover { background: rgba(127,211,160,0.1); color: var(--emerald-200); }

  /* ---------- Auth forms ---------- */
  .form-switch { text-align: center; font-size: 14px; color: rgba(20,48,31,0.6); margin-top: 16px; }
  .link-inline { color: var(--emerald-700); font-weight: 500; text-decoration: underline; }
  .link-inline:hover { color: var(--emerald-500); }

  /* ---------- Carousel ---------- */
  .carousel { position: relative; display: flex; align-items: center; gap: 12px; }
  .carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
    padding-bottom: 4px; flex: 1;
  }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-card {
    scroll-snap-align: start; flex: 0 0 260px; background: white; border: 1px solid rgba(16,60,40,0.1);
    border-radius: 16px; overflow: hidden; text-align: left; transition: box-shadow .15s, border-color .15s;
  }
  .carousel-card:hover { border-color: rgba(31,143,88,0.35); box-shadow: 0 4px 20px rgba(15,43,30,0.08); }
  .carousel-img { width: 100%; height: 150px; background: var(--emerald-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .carousel-img img { width: 100%; height: 100%; object-fit: cover; }
  .carousel-img svg { color: var(--emerald-300); }
  .carousel-body { padding: 14px 16px 16px; }
  .carousel-price { font-family: var(--font-mono); font-size: 13px; color: var(--emerald-600); margin-top: 4px; }
  .carousel-name { font-weight: 500; font-size: 14px; color: var(--text-dark); margin-top: 2px; }
  .carousel-biz { font-size: 12px; color: rgba(20,48,31,0.5); margin-top: 4px; }
  .carousel-arrow {
    width: 36px; height: 36px; border-radius: 999px; background: white; border: 1px solid rgba(16,60,40,0.15);
    display: flex; align-items: center; justify-content: center; color: var(--emerald-700); flex-shrink: 0;
  }
  .carousel-arrow:hover { background: var(--emerald-50); }
  .carousel-empty { color: rgba(20,48,31,0.5); font-size: 14px; padding: 32px 0; }

  /* ---------- Product grid ---------- */
  .product-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }
  .product-card {
    background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px; overflow: hidden;
    text-align: left; transition: box-shadow .15s, border-color .15s;
  }
  .product-card:hover { border-color: rgba(31,143,88,0.3); box-shadow: 0 4px 20px rgba(15,43,30,0.06); }
  .product-img { width: 100%; height: 160px; background: var(--emerald-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .product-img img { width: 100%; height: 100%; object-fit: cover; }
  .product-img svg { color: var(--emerald-300); }
  .product-body { padding: 16px; }
  .product-name-row { display: flex; align-items: center; gap: 6px; }
  .product-price { font-family: var(--font-mono); font-size: 13px; color: var(--emerald-600); margin-top: 6px; }
  .product-meta { font-size: 12px; color: rgba(25,117,73,0.7); margin-top: 4px; }
  .product-desc { font-size: 13px; color: rgba(20,48,31,0.6); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* ---------- Dashboard ---------- */
  .dash-card { background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
  .dash-empty { text-align: center; padding: 40px 20px; color: rgba(20,48,31,0.5); font-size: 14px; }
  .dash-biz-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .dash-biz-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--emerald-50); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
  .dash-biz-logo img { width: 100%; height: 100%; object-fit: cover; }
  .status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
  .status-badge.verified { background: rgba(47,174,108,0.12); color: var(--emerald-700); }
  .status-badge.pending { background: rgba(217,119,6,0.12); color: #B45309; }
  .status-badge.declined { background: rgba(220,38,38,0.1); color: #B91C1C; }
  .dash-product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(16,60,40,0.08); }
  .dash-product-row:first-child { border-top: none; }
  .dash-product-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--emerald-50); overflow: hidden; flex-shrink: 0; }
  .dash-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Admin ---------- */
  .admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(16,60,40,0.1); }
  .admin-tab { padding: 10px 18px; font-size: 14px; color: rgba(20,48,31,0.5); border-bottom: 2px solid transparent; }
  .admin-tab.active { color: var(--emerald-700); border-bottom-color: var(--emerald-500); font-weight: 500; }
  .admin-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px;
    border: 1px solid rgba(16,60,40,0.1); border-radius: 12px; margin-bottom: 12px; background: white;
  }
  .admin-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .btn-approve { background: var(--emerald-600); color: white; padding: 8px 14px; border-radius: 999px; font-size: 13px; }
  .btn-approve:hover { background: var(--emerald-700); }
  .btn-reject { background: #FEE2E2; color: #B91C1C; padding: 8px 14px; border-radius: 999px; font-size: 13px; }
  .btn-reject:hover { background: #FECACA; }

  /* ---------- Top utility bar ---------- */
  .topbar { background: var(--ink-2); border-bottom: 1px solid rgba(6,90,56,0.4); }
  .topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 12px; }
  .topbar-social { display: flex; align-items: center; gap: 14px; }
  .topbar-social a { color: rgba(210,238,222,0.6); display: flex; }
  .topbar-social a:hover { color: var(--emerald-300); }
  .topbar-contact { display: none; align-items: center; gap: 18px; color: rgba(210,238,222,0.55); }
  .topbar-contact a { display: flex; align-items: center; gap: 5px; }
  .topbar-contact a:hover { color: var(--emerald-300); }
  @media (min-width: 640px) { .topbar-contact { display: flex; } }

  /* ---------- Gallery ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  @media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
  .gallery-item {
    aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--emerald-50);
    border: 1px solid rgba(16,60,40,0.1); position: relative; cursor: pointer;
    opacity: 0; transform: translateY(16px) scale(0.97);
    animation: galleryFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  }
  .gallery-item:hover img { transform: scale(1.12); filter: brightness(0.85); }
  .gallery-item::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,33,24,0.55), transparent 55%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  }
  .gallery-item:hover::after { opacity: 1; }
  .gallery-item-label {
    position: absolute; left: 10px; bottom: -24px; right: 10px; color: white; font-size: 12px; font-weight: 500;
    text-align: left; opacity: 0; transition: all 0.3s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gallery-item:hover .gallery-item-label { bottom: 10px; opacity: 1; }
  .gallery-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  }
  .gallery-overlay svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  .gallery-item:hover .gallery-overlay { opacity: 1; }
  .gallery-item:hover .gallery-overlay svg { transform: scale(1); }
  /* Stagger the fade-in across the grid so items don't all pop at once */
  .gallery-item:nth-child(1) { animation-delay: 0.02s; }
  .gallery-item:nth-child(2) { animation-delay: 0.06s; }
  .gallery-item:nth-child(3) { animation-delay: 0.10s; }
  .gallery-item:nth-child(4) { animation-delay: 0.14s; }
  .gallery-item:nth-child(5) { animation-delay: 0.18s; }
  .gallery-item:nth-child(6) { animation-delay: 0.22s; }
  .gallery-item:nth-child(7) { animation-delay: 0.26s; }
  .gallery-item:nth-child(8) { animation-delay: 0.30s; }
  .gallery-item:nth-child(n+9) { animation-delay: 0.34s; }
  @keyframes galleryFadeIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .gallery-item { animation: none; opacity: 1; transform: none; }
    .gallery-item img, .gallery-item-label { transition: none; }
  }

  /* ---------- Category bar (30 sectors, horizontal scroll) ---------- */
  .category-bar { background: white; border-bottom: 1px solid rgba(16,60,40,0.08); position: sticky; top: 64px; z-index: 40; }
  .category-bar-track {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none;
  }
  .category-bar-track::-webkit-scrollbar { display: none; }
  .cat-pill {
    display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
    padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(16,60,40,0.12);
    font-size: 13px; color: var(--text-dark); background: white; transition: all .15s;
  }
  .cat-pill:hover { border-color: var(--emerald-500); color: var(--emerald-700); background: var(--emerald-50); }
  .cat-pill svg { flex-shrink: 0; }

  /* ---------- Homepage category grid "more" card ---------- */
  .cat-card-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--emerald-50); border-style: dashed; }
  .cat-card-more svg { color: var(--emerald-600); }

  /* ---------- Featured storefront cards ---------- */
  .section-white { background: white; }
  .store-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  @media (min-width: 640px) { .store-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .store-grid { grid-template-columns: repeat(4, 1fr); } }
  .store-card {
    background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 16px; overflow: hidden;
    text-align: left; transition: box-shadow .15s, border-color .15s; display: flex; flex-direction: column;
  }
  .store-card:hover { border-color: rgba(31,143,88,0.3); box-shadow: 0 6px 24px rgba(15,43,30,0.08); }
  .store-banner { height: 90px; background: linear-gradient(135deg, var(--panel-3), var(--panel-2)); position: relative; }
  .store-avatar {
    position: absolute; left: 16px; bottom: -24px; width: 52px; height: 52px; border-radius: 999px;
    background: var(--emerald-50); border: 3px solid white; display: flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .store-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .store-avatar svg { color: var(--emerald-600); }
  .store-area-tag {
    position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.92); color: var(--text-dark);
    font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 500;
  }
  .store-body { padding: 32px 16px 16px; flex: 1; display: flex; flex-direction: column; }
  .store-name-row { display: flex; align-items: center; gap: 5px; }
  .store-category { font-size: 12px; color: rgba(25,117,73,0.7); margin-top: 3px; }
  .store-meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: rgba(20,48,31,0.55); }
  .store-rating { display: flex; align-items: center; gap: 3px; color: var(--emerald-700); }
  .store-rating svg { color: var(--emerald-400); }
  .store-visit-btn {
    margin-top: 14px; width: 100%; text-align: center; padding: 9px; border-radius: 8px;
    background: var(--ink); color: white; font-size: 13px; font-weight: 500; transition: background .15s;
  }
  .store-visit-btn:hover { background: var(--panel-3); }

  .pending-approval-notice {
    margin-top: 16px; padding: 14px 16px; background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.2);
    border-radius: 10px; font-size: 13px; color: #92400E; line-height: 1.5;
  }

  /* ---------- Category checkbox filter ---------- */
  .filter-dropdown { position: relative; }
  .filter-toggle-btn {
    display: flex; align-items: center; gap: 8px; background: var(--emerald-50); border: 1px solid rgba(16,60,40,0.1);
    border-radius: 999px; padding: 12px 18px; font-size: 14px; color: var(--text-dark); white-space: nowrap;
  }
  .filter-toggle-btn:hover { border-color: rgba(31,143,88,0.4); }
  .filter-toggle-btn svg { color: var(--emerald-700); flex-shrink: 0; }
  .filter-count-badge {
    background: var(--emerald-600); color: white; font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: 999px; line-height: 1.5;
  }
  .filter-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 55; width: 280px;
    background: white; border: 1px solid rgba(16,60,40,0.12); border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15,43,30,0.14); padding: 12px;
  }
  .filter-panel.open { display: block; }
  .filter-panel-actions {
    display: flex; align-items: center; justify-content: space-between; font-size: 12px;
    color: rgba(20,48,31,0.5); padding: 0 4px 8px; border-bottom: 1px solid rgba(16,60,40,0.08); margin-bottom: 8px;
  }
  .filter-checkbox-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
  .filter-checkbox-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px;
    color: var(--text-dark); cursor: pointer; transition: background .1s;
  }
  .filter-checkbox-item:hover { background: var(--emerald-50); }
  .filter-checkbox-item input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--emerald-600); flex-shrink: 0; cursor: pointer;
  }
  .filter-checkbox-item span { flex: 1; }

  /* ---------- Registration: photo upload, toggle switch, store fields ---------- */
  .photo-upload-row { display: flex; align-items: center; gap: 12px; }
  .photo-preview {
    width: 48px; height: 48px; border-radius: 999px; background: var(--emerald-50);
    border: 1px solid rgba(16,60,40,0.15); display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; color: var(--emerald-600);
  }
  .photo-preview img { width: 100%; height: 100%; object-fit: cover; }
  .photo-upload-row input[type="file"] { flex: 1; }

  .toggle-row {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 14px;
    background: var(--emerald-50); border: 1px solid rgba(16,60,40,0.1); border-radius: 10px; margin: 4px 0;
  }
  .toggle-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
  .toggle-switch {
    position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(16,60,40,0.2);
    flex-shrink: 0; margin-top: 2px; transition: background .2s;
  }
  .toggle-switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px;
    background: white; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .toggle-row input:checked + .toggle-switch { background: var(--emerald-500); }
  .toggle-row input:checked + .toggle-switch::after { transform: translateX(18px); }
  .toggle-label strong { display: block; font-size: 14px; color: var(--text-dark); }
  .toggle-label small { display: block; font-size: 12px; color: rgba(20,48,31,0.55); margin-top: 2px; }

  .store-fields-divider {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: var(--emerald-700); border-top: 1px dashed rgba(16,60,40,0.15); padding-top: 16px; margin-top: 8px;
  }

  .social-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 420px) { .social-input-grid { grid-template-columns: 1fr; } }
  .social-input-grid input {
    border: 1px solid rgba(16,60,40,0.15); border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: none;
  }
  .social-input-grid input:focus { border-color: var(--emerald-500); }

  /* ---------- Business detail: banner + social links ---------- */
  .detail-banner { width: 100%; height: 180px; border-radius: 16px; overflow: hidden; margin-bottom: 20px; background: var(--emerald-50); }
  .detail-banner img { width: 100%; height: 100%; object-fit: cover; }
  @media (min-width: 768px) { .detail-banner { height: 240px; } }
  .detail-social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .social-link-pill {
    font-size: 12px; padding: 6px 14px; border-radius: 999px; background: var(--emerald-50);
    border: 1px solid rgba(16,60,40,0.12); color: var(--emerald-700); transition: all .15s;
  }
  .social-link-pill:hover { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }

  /* ---------- Add Product form: price + unit side by side ---------- */
  .price-unit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  @media (max-width: 420px) { .price-unit-row { grid-template-columns: 1fr; } }

  /* ---------- Professional UI polish: refined shadows & transitions ---------- */
  .cat-card, .listing-card, .product-card, .store-card, .carousel-card, .dash-card, .admin-row {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .store-card:hover, .product-card:hover { transform: translateY(-2px); }
  .btn-solid, .btn-pill, .btn-approve, .btn-reject, .store-visit-btn {
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  }
  .btn-solid:active, .btn-pill:active { transform: scale(0.98); }
  .form-card { box-shadow: 0 1px 3px rgba(15,43,30,0.04); }
  .form-error { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.15); border-radius: 8px; padding: 10px 12px; }
  .form-success { background: rgba(47,174,108,0.08); border: 1px solid rgba(47,174,108,0.2); border-radius: 8px; padding: 10px 12px; color: var(--emerald-700); font-size: 14px; }

  /* ---------- Homepage gallery slideshow ---------- */
  .home-slideshow { position: relative; width: 100%; height: 320px; overflow: hidden; background: var(--ink); }
  @media (min-width: 768px) { .home-slideshow { height: 420px; } }
  .slideshow-track { position: relative; width: 100%; height: 100%; }
  .slideshow-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease;
    display: flex; align-items: flex-end; pointer-events: none;
  }
  .slideshow-slide.active { opacity: 1; pointer-events: auto; }
  .slideshow-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .slideshow-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,33,24,0.85) 0%, rgba(11,33,24,0.2) 55%, transparent 100%);
  }
  .slideshow-caption { position: relative; z-index: 2; padding: 24px; color: white; }
  .slideshow-caption .name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
  @media (min-width: 768px) { .slideshow-caption .name { font-size: 26px; } }
  .slideshow-caption .sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
  .slideshow-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px); color: white; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.25); transition: background 0.15s;
  }
  .slideshow-arrow:hover { background: rgba(255,255,255,0.3); }
  .slideshow-arrow.left { left: 16px; }
  .slideshow-arrow.right { right: 16px; }
  .slideshow-dots { position: absolute; bottom: 16px; right: 24px; z-index: 3; display: flex; gap: 6px; }
  .slideshow-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.4); transition: background 0.2s, width 0.2s; cursor: pointer; }
  .slideshow-dot.active { background: white; width: 20px; }
  .slideshow-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(255,255,255,0.4); font-size: 14px; }

  /* ---------- Professional auth split-panel layout ---------- */
  .auth-split { display: flex; min-height: calc(100vh - 64px); }
  @media (max-width: 900px) { .auth-split { display: block; } }
  .auth-side-panel {
    position: relative; flex: 0 0 42%; background: var(--ink); overflow: hidden;
    display: flex; align-items: center; padding: 48px;
  }
  @media (max-width: 900px) { .auth-side-panel { display: none; } }
  .auth-mountains { position: absolute; inset-inline: 0; bottom: 0; width: 100%; opacity: 0.6; }
  .auth-side-content { position: relative; z-index: 1; color: #F4F1E8; }
  .auth-side-content .brand { margin-bottom: 40px; }
  .auth-side-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.25; max-width: 340px; }
  .auth-side-text { margin-top: 16px; color: rgba(210,238,222,0.7); max-width: 320px; line-height: 1.6; font-size: 14px; }
  .auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--cream); }
  .auth-form-inner { width: 100%; max-width: 460px; }
  .auth-form-card { box-shadow: 0 4px 24px rgba(15,43,30,0.06); }
  .input-with-icon { position: relative; display: flex; align-items: center; }
  .input-with-icon svg { position: absolute; left: 12px; color: rgba(20,48,31,0.4); pointer-events: none; }
  .input-with-icon input { padding-left: 38px !important; }

  /* ---------- Analytics dashboard ---------- */
  .analytics-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
  @media (min-width: 640px) { .analytics-stat-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1024px) { .analytics-stat-grid { grid-template-columns: repeat(6, 1fr); } }
  .analytics-stat-card {
    background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 12px; padding: 16px; text-align: center;
  }
  .analytics-stat-card .stat-value { color: var(--emerald-700); font-size: 22px; font-family: var(--font-mono); }
  .analytics-stat-card .stat-label { color: rgba(20,48,31,0.55); font-size: 11px; margin-top: 4px; }
  .analytics-chart-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 900px) { .analytics-chart-grid { grid-template-columns: 1fr 1fr; } }
  .analytics-chart-card { background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 12px; padding: 16px; }
  .analytics-chart-title { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 12px; }

  .dash-analytics-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    background: white; border: 1px solid rgba(16,60,40,0.1); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
  }
  .dash-analytics-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
  .dash-analytics-stats { display: flex; gap: 16px; font-size: 12px; color: rgba(20,48,31,0.6); flex-wrap: wrap; }
  .dash-analytics-stats b { color: var(--emerald-700); font-family: var(--font-mono); }

  /* ---------- Email verification banner ---------- */
  .verify-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.25); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 24px; font-size: 14px; color: #92400E;
  }
  .verify-banner button.link-inline { color: #92400E; text-decoration: underline; font-weight: 500; }
