/* ============================================
   PAHADI BAZAAR - Styling
   Color theme: pahadi earthy tones (green/brown/cream)
   ============================================ */

:root {
  --brand-green: #2f5233;
  --brand-green-dark: #24402a;
  --brand-brown: #8b5e3c;
  --marigold: #e08a1e;
  --cream: #faf6ef;
  --text-dark: #2b2b2b;
  --text-muted: #6b6b6b;
  --whatsapp-green: #25d366;
  --border-light: #e5ddd0;
  --section-gap: 72px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, .section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Hindi mode mein Devanagari serif */
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] .section-title {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-weight: 400;
}

/* highlight word: italic + marigold */
.hl {
  font-style: italic;
  color: var(--marigold);
}

/* chhota uppercase label heading ke upar */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
/* -------- LANGUAGE TOGGLE -------- */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: rgba(0,0,0,0.15);
  padding: 6px 0;
}
.lang-toggle a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
}
.lang-toggle a.active {
  background: var(--marigold);
  border-color: var(--marigold);
  color: white;
  font-weight: 600;
}
.standalone-toggle {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 3;
}
.legal-page .lang-toggle {
  background: transparent;
  justify-content: flex-start;
  padding: 0 0 16px;
}
.legal-page .lang-toggle a {
  color: var(--brand-green);
  border-color: var(--brand-green);
}
.legal-page .lang-toggle a.active {
  background: var(--marigold);
  border-color: var(--marigold);
  color: white;
}

/* -------- HEADER -------- */
.site-header {
  background: var(--brand-green);
  color: white;
  padding: 18px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  color: white;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.login-box h2 .logo-mark,
.admin-main h2 .logo-mark {
  height: 34px;
  width: 34px;
  vertical-align: middle;
  margin-right: 4px;
}
.tagline {
  font-size: 0.85rem;
  opacity: 0.85;
  width: 100%;
}

/* ---- Public site header (light version) ----
   Admin pages keep the plain .site-header (dark green),
   so everything below is scoped to .site-header--light */
.site-header--light {
  background: #fff;
  color: var(--text-dark);
  padding: 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header--light .header-inner {
  flex-wrap: nowrap;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header--light .logo { color: var(--brand-green); }
.site-header--light .logo-mark { height: 38px; width: 38px; }
.logo-accent { color: var(--marigold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header--light .lang-toggle {
  justify-content: flex-start;
  gap: 2px;
  background: var(--cream);
  padding: 3px;
  border-radius: 999px;
}
.site-header--light .lang-toggle a {
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  transition: color 0.2s;
}
.site-header--light .lang-toggle a:hover { color: var(--brand-green); }
.site-header--light .lang-toggle a.active {
  background: var(--marigold);
  color: #fff;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--marigold); }

@media (max-width: 760px) {
  .site-header--light .header-inner { flex-wrap: wrap; justify-content: center; }
  .header-actions { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-link { display: none; }
}

/* -------- HERO BANNER (homepage) -------- */
/* Photo: "a view of the mountains from a high point of view" by Amit Kumar,
   Dhanaulti, Uttarakhand - free to use under the Unsplash License.
   https://unsplash.com/photos/d5W5owCFllE
   NOTE: this is hotlinked to Unsplash's CDN for now. For a production site,
   download it once and serve it from /public/images/ instead - hotlinking
   depends on Unsplash staying up and can be slower to load. */
.hero-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 24px;
  border-radius: 18px;
  padding: 96px 20px 88px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('https://images.unsplash.com/photo-1649794313493-c5ebdf85d1cf?fm=jpg&q=70&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,25,0.35) 0%, rgba(20,40,25,0.55) 55%, rgba(20,40,25,0.85) 100%);
  z-index: 0;
}
.hero-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

.hero-banner p {
  color: #f2f2f2;
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.hero-treeline {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero-treeline svg { width: 100%; height: auto; display: block; }

/* -------- TRUST BAR -------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  background: white;
  padding: 20px 16px;
  margin-top: 24px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.trust-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green);
}

/* -------- ABOUT STRIP -------- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: var(--section-gap) auto;
  padding: 0 16px;
}
.about-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(47,82,51,0.15);
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--brand-green);
  margin-bottom: 14px;
}
.about-text p { color: #444; line-height: 1.8; }
@media (max-width: 640px) {
  .about-strip { grid-template-columns: 1fr; gap: 24px; margin: 48px auto; }
  .about-photo img { height: 200px; }
}

/* -------- FILTER BAR -------- */
.filter-bar {
  margin: var(--section-gap) 0 32px;
}
/* One rounded pill; the arrow button sits inside it */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 28px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 4px 16px rgba(47,82,51,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
  border-color: var(--brand-green);
  box-shadow: 0 4px 20px rgba(47,82,51,0.14);
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.search-form input:focus { outline: none; }
.search-form button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--brand-green-dark); }
.category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  padding: 7px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--brand-green); color: var(--brand-green); }
.pill.active {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}

/* -------- PRODUCT GRID -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin: 32px 0 var(--section-gap);
}
.product-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: 0 2px 8px rgba(47,82,51,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(47,82,51,0.14);
}
.product-card a { text-decoration: none; color: inherit; }
.product-img, .no-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ece2;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { font-size: 2.5rem; }
.no-img.large { height: 300px; font-size: 4rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.price { color: var(--brand-brown); font-weight: bold; margin-bottom: 6px; }
.seller-info { font-size: 0.85rem; color: #666; margin-bottom: 10px; }
.verified-badge {
  background: #e6f4ea;
  color: var(--brand-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}
.empty-msg { text-align: center; padding: 40px; color: #888; }

/* -------- BUTTONS -------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
/* Arrow motif: add class "btn-arrow" to any button/link */
.btn-arrow::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-outline {
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  background: white;
  font-size: 0.9rem;
  padding: 6px 14px;
}
.btn-primary { background: var(--brand-green); color: white; }
.btn-primary:hover { background: var(--brand-green-dark); }
.btn-outline:hover { background: var(--brand-green); color: white; }
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  font-size: 1.1rem;
  margin: 16px 0 8px;
}
.contact-buttons { display: flex; gap: 10px; align-items: stretch; margin: 16px 0 8px; }
.contact-buttons .btn-whatsapp { flex: 1; margin: 0; }
.btn-call {
  background: var(--marigold);
  color: white;
  font-size: 1.3rem;
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
}
.seller-brand-name { font-size: 1.1rem; }
.seller-owner-name { color: #666; font-size: 0.85rem; margin-top: -6px; }
.btn-outline-light {
  border: 1px solid white;
  color: white;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
}

/* -------- PRODUCT DETAIL -------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
.product-detail-img img {
  width: 100%;
  border-radius: 10px;
}
.category-tag {
  display: inline-block;
  background: #f0ece2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin: 8px 0;
}
.price-large { font-size: 1.6rem; color: var(--brand-brown); font-weight: bold; margin: 10px 0; }
.description { margin: 14px 0; color: #444; }
.seller-box {
  background: white;
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
}
.order-note { font-size: 0.85rem; color: #777; margin-bottom: 16px; }
.back-link { display: inline-block; margin-top: 16px; color: var(--brand-green); }

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* -------- FOOTER -------- */
.site-footer {
  background: var(--brand-green);
  color: white;
  text-align: center;
  padding: 28px 0;
  margin-top: var(--section-gap);
  font-size: 0.85rem;
}
.footer-admin-link a { color: #cfe8d3; }

/* -------- ADMIN LOGIN -------- */
.login-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--brand-green);
  padding: 40px 16px;
  gap: 16px;
  /* Halka faded pahadon ka silhouette - subtle, distract nahi karta */
  background-image: linear-gradient(to bottom, rgba(47,82,51,0.92), rgba(47,82,51,0.97)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 180 L150 60 L280 160 L420 40 L560 150 L700 20 L860 170 L1000 70 L1200 190 L1200 300 Z' fill='%23274a2b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
}
.login-box {
  background: var(--cream);
  padding: 34px 32px 28px;
  border-radius: 14px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
/* Aipan-style zigzag border - Uttarakhand ki traditional dwar-patti se inspired,
   pure CSS se, koi image chahiye nahi */
.login-box::before {
  content: '';
  display: block;
  height: 10px;
  margin: -34px -32px 22px;
  background:
    linear-gradient(135deg, var(--marigold) 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, var(--marigold) 25%, transparent 25%) -5px 0,
    linear-gradient(315deg, var(--brand-brown) 25%, transparent 25%),
    linear-gradient(45deg, var(--brand-brown) 25%, transparent 25%);
  background-size: 10px 10px;
  background-repeat: repeat-x;
}
.login-box h2 {
  margin-bottom: 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--brand-green);
}
.login-box .form-subtitle { margin-bottom: 18px; }
.login-box label { display: block; margin: 10px 0 4px; font-size: 0.9rem; }
.login-box input, .login-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  font-family: inherit;
}
.login-box textarea { resize: vertical; }
.login-box input[type="file"] { padding: 8px 6px; background: #fdfbf7; }
.login-box input:focus, .login-box textarea:focus { outline: none; border-color: var(--brand-green); }
.login-box button { width: 100%; margin-top: 16px; }
.admin-hint { font-size: 0.85rem; color: #666; margin-top: 8px; }
.error-msg { color: #c0392b; background: #fdecea; padding: 8px; border-radius: 6px; font-size: 0.9rem; }
.success-msg { color: #1e6b3c; background: #e8f7ee; padding: 8px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 10px; }
.role-badge { font-size: 0.85rem; color: #666; margin: 12px 0 0; }
.back-link {
  display: inline-block;
  color: var(--brand-green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 14px 0;
}
.back-link:hover { text-decoration: underline; }

/* -------- ADMIN DASHBOARD -------- */
.admin-header { display: flex; }
.admin-main { padding-top: 24px; padding-bottom: 60px; }
.admin-section { margin-bottom: 40px; }
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.9rem;
}
.admin-table th { background: #f0ece2; }
.action-cell { display: flex; gap: 10px; align-items: center; }
.link-edit { color: var(--brand-green); text-decoration: none; }
.link-delete {
  color: #c0392b;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.admin-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-form label { margin-top: 10px; font-size: 0.9rem; font-weight: 500; }
.admin-form input, .admin-form select, .admin-form textarea {
  padding: 9px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
}
.admin-form button { margin-top: 16px; }
.inline-form { max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-form input { flex: 1; min-width: 150px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-weight: normal; }

/* -------- FOOTER EXTRAS -------- */
.footer-tagline { font-style: italic; opacity: 0.9; margin-bottom: 10px; }
.footer-emotion { font-weight: 600; margin: 4px 0 16px; line-height: 1.6; }
.footer-help { margin-bottom: 8px; font-size: 0.85rem; }
.footer-help a, .footer-links a { color: #cfe8d3; }
.footer-links { margin-bottom: 10px; font-size: 0.85rem; }

/* "Powered by" - jaan-boojh kar handcrafted/designer jaisa look diya hai,
   generic footer text jaisa nahi lagna chahiye */
.powered-by {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: #f0e4c8;
  margin-top: 12px;
  letter-spacing: 0.5px;
}
.powered-by .brand-mark {
  color: #ffd97a;
  font-weight: 700;
  border-bottom: 2px dotted #ffd97a55;
}

/* -------- PLATFORM HELP BOX (product page) -------- */
.platform-help-box {
  background: #fff8ec;
  border: 1px dashed var(--brand-brown);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: #6b4f2f;
}
.platform-help-box a { color: var(--brand-brown); font-weight: 600; }

/* -------- HELP NOTE (vendor register/login) -------- */
.help-note { text-align: center; font-size: 0.8rem; color: #888; margin-top: 10px; }
.help-note a { color: var(--brand-brown); }

/* -------- LEGAL PAGES (Terms / Privacy) -------- */
.legal-page { max-width: 800px; margin: 32px auto; background: white; padding: 32px; border-radius: 10px; border: 1px solid var(--border-light); }
.legal-page h1 { margin-bottom: 6px; }
.legal-page .legal-updated { color: #888; font-size: 0.85rem; margin-bottom: 24px; }
.legal-page h2 { margin: 24px 0 10px; color: var(--brand-green); font-size: 1.15rem; }
.legal-page p, .legal-page li { margin-bottom: 10px; color: #333; }
.legal-page ul { padding-left: 20px; }

/* -------- VENDOR REGISTER / LOGIN EXTRAS -------- */
.wide-box { max-width: 420px; }
.form-subtitle { font-size: 0.9rem; color: #666; margin-bottom: 16px; text-align: center; }
.field-note { font-size: 0.78rem; color: #888; margin-top: 2px; }
.field-optional { font-size: 0.78rem; color: #888; font-weight: normal; }
.switch-link { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.switch-link a { color: var(--brand-green); }
.link-button {
  background: none; border: none; color: var(--brand-green);
  text-decoration: underline; cursor: pointer; width: 100%; margin-top: 12px; font-size: 0.85rem;
}

/* -------- STATUS BANNERS (vendor dashboard) -------- */
.status-banner { padding: 16px; border-radius: 8px; margin: 16px 0; }
.status-banner p { margin-top: 6px; font-size: 0.9rem; }
.status-pending { background: #fff8e1; border: 1px solid #f0d878; color: #8a6d00; }
.status-approved { background: #e6f4ea; border: 1px solid #a8d5b5; color: var(--brand-green); }
.status-rejected { background: #fdecea; border: 1px solid #f0aca4; color: #c0392b; }
.status-banner a { color: inherit; text-decoration: underline; }

/* -------- APPROVE BUTTON (admin) -------- */
.link-approve {
  color: var(--brand-green); background: none; border: 1px solid var(--brand-green);
  padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 0.85rem;
}

.header-vendor-links { display: flex; gap: 8px; flex-wrap: wrap; }


/* ============================================
   SIDE ART + BACK BUTTON + SEARCH SUGGESTIONS
   ============================================ */

/* -------- Soft background glow + side ornament (public pages only) --------
   Body class "has-side-art" is set in header.ejs, so admin/login pages are untouched.
   The ornament is an Aipan-style diamond; it only shows on wide screens
   where there is empty space on both sides of the 1100px content. */
.has-side-art {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(224,138,30,0.10), transparent 62%),
    radial-gradient(900px 520px at 100% 45%, rgba(47,82,51,0.09), transparent 62%),
    var(--cream);
  background-attachment: fixed;
}
@media (min-width: 1280px) {
  .has-side-art::before,
  .has-side-art::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 44px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 3 L41 22 L22 41 L3 22 Z' fill='none' stroke='%238b5e3c' stroke-width='1.6'/%3E%3Cpath d='M22 12 L32 22 L22 32 L12 22 Z' fill='%23e08a1e'/%3E%3Ccircle cx='22' cy='22' r='2.6' fill='%23faf6ef'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-position: center top;
  }
  .has-side-art::before { left: 24px; }
  .has-side-art::after  { right: 24px; }
}

/* -------- Back button -------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 0;
  padding: 7px 16px 7px 12px;
  background: white;
  color: var(--brand-green);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.back-btn:hover {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: white;
}
.back-btn[hidden] { display: none; }

/* -------- Search suggestions dropdown -------- */
.search-form { position: relative; }
.suggest-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(47,82,51,0.16);
  text-align: left;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.suggest-item:hover,
.suggest-item.is-active { background: var(--cream); }
.suggest-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf1e8;
  font-size: 0.95rem;
}
.suggest-item[data-type="vendor"] .suggest-icon { background: #fbefd9; }
.suggest-label { font-size: 0.95rem; color: var(--text-dark); }
.suggest-label mark {
  background: none;
  color: var(--marigold);
  font-weight: 600;
}
.suggest-sub { font-size: 0.78rem; color: var(--text-muted); }


/* ============================================
   FORMS (select), ERROR PAGE, FOOTER DETAILS
   ============================================ */

.login-box select,
.admin-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.login-box select:focus { outline: none; border-color: var(--brand-green); }
.terms-check span { line-height: 1.5; }

.error-page {
  text-align: center;
  max-width: 520px;
  margin: 96px auto;
  padding: 0 16px;
}
.error-page h1 { font-size: 2.2rem; margin-bottom: 12px; color: var(--brand-green); }
.error-page .error-text { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }

.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.75;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  margin-top: 8px;
}
.footer-bottom p { margin-bottom: 4px; }
.footer-credits { font-size: 0.78rem; opacity: 0.8; }
.footer-credits .brand-mark { color: #ffd97a; font-weight: 600; }

/* Back / Home button on the dark-green standalone pages (register, login) */
.login-body .back-btn {
  display: flex;
  width: fit-content;
  margin: 14px auto 0;
}


/* ============================================
   CLICK / FOCUS HIGHLIGHT (all pages)
   Every button, link and field shows a clear ring when it is
   selected with the keyboard, and a "pressed" effect when clicked.
   ============================================ */
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: rgba(224,138,30,0.18); }

:focus-visible {
  outline: 3px solid rgba(224,138,30,0.65);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible, .pill:focus-visible, .back-btn:focus-visible,
.search-form button:focus-visible { border-radius: 999px; }

.btn:active, .pill:active, .back-btn:active, .search-form button:active {
  transform: translateY(1px) scale(0.98);
}
.btn, .pill, .back-btn { transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(47,82,51,0.28); }

.product-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(47,82,51,0.14); }

.suggest-item:active { background: #f1e9d8; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ============================================
   VENDOR REGISTRATION PAGE
   (only affects <body class="register-page">)
   ============================================ */
.register-page {
  min-height: 100vh;
  padding: 20px 16px 64px;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(224,138,30,0.12), transparent 62%),
    radial-gradient(900px 520px at 100% 60%, rgba(47,82,51,0.10), transparent 62%),
    var(--cream);
  background-attachment: fixed;
}

.reg-topbar {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reg-topbar .back-btn { margin: 0; }
.reg-topbar .lang-toggle {
  position: static;
  justify-content: flex-start;
  gap: 2px;
  background: white;
  border: 1px solid var(--border-light);
  padding: 3px;
  border-radius: 999px;
}
.reg-topbar .lang-toggle a {
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
}
.reg-topbar .lang-toggle a:hover { color: var(--brand-green); }
.reg-topbar .lang-toggle a.active { background: var(--marigold); color: #fff; }

.reg-card {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow: 0 18px 50px rgba(47,82,51,0.10);
}

.reg-header { text-align: center; margin-bottom: 28px; }
.reg-logo .logo-mark { height: 64px; width: 64px; border-radius: 50%; margin-bottom: 12px; }
.reg-header h1 { font-size: 1.9rem; color: var(--brand-green); margin-bottom: 8px; }
.reg-subtitle { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* 3-step indicator */
.reg-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.reg-steps li { display: inline-flex; align-items: center; gap: 8px; }
.reg-steps li span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee6d6;
  font-weight: 600;
  font-size: 0.78rem;
}
.reg-steps li.is-current { color: var(--brand-green); font-weight: 500; }
.reg-steps li.is-current span { background: var(--brand-green); color: white; }

.reg-error {
  background: #fdeceb;
  border: 1px solid #f3b9b4;
  color: #8a1f17;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Sections */
.reg-section {
  border: none;
  margin: 0 0 8px;
  padding: 0;
}
.reg-section legend {
  display: block;
  width: 100%;
  padding: 0 0 8px;
  margin: 18px 0 14px;
  border-bottom: 2px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-green);
}
html[lang="hi"] .reg-section legend,
html[lang="gd"] .reg-section legend { font-family: 'Tiro Devanagari Hindi', serif; font-weight: 400; }

.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.reg-wide { grid-column: 1 / -1; }
.reg-field { min-width: 0; }
.reg-field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); }
.reg-field .field-optional { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.reg-field .field-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

.reg-field input[type="text"],
.reg-field input[type="tel"],
.reg-field input[type="password"],
.reg-field select,
.reg-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fffdf9;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.reg-field textarea { resize: vertical; min-height: 72px; }
.reg-field input:hover, .reg-field select:hover, .reg-field textarea:hover { border-color: #cdbfa6; }
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(47,82,51,0.12);
}
.reg-field .uppercase { text-transform: uppercase; }

/* Password with Show/Hide */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 78px !important; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--brand-green);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.password-toggle:hover { background: #eef3ec; }

/* File upload box */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px dashed #cdbfa6;
  border-radius: 12px;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--brand-green); background: #f5f9f3; }
.file-input:focus-visible + .field-note, .file-drop:focus-within { border-color: var(--brand-green); }
.file-drop-icon { font-size: 1.6rem; }
.file-drop-text { font-size: 0.88rem; color: var(--text-muted); word-break: break-word; }
.file-drop.has-file { border-style: solid; border-color: var(--brand-green); background: #f0f6ee; }
.file-drop.has-file .file-drop-text { color: var(--brand-green); font-weight: 500; }

/* Terms + submit */
.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dark);
  cursor: pointer;
}
.reg-terms input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-green); flex-shrink: 0; }
.reg-terms a { color: var(--brand-green); font-weight: 500; }
.reg-submit { width: 100%; padding: 14px 20px; font-size: 1rem; text-align: center; }

.reg-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.9rem; }
.reg-footer a { color: var(--brand-green); font-weight: 500; }
.reg-help { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .reg-card { padding: 28px 18px 24px; border-radius: 16px; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-header h1 { font-size: 1.6rem; }
}


/* ============================================
   ANIMATED MOUNTAIN SCENE (vendor login + registration)
   Sunrise, shining snow peaks, drifting clouds.
   It sits behind the page (fixed), so it never moves when scrolling.
   ============================================ */
.auth-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #cfe4ef 0%, #e9eee6 38%, #fbe6bd 72%, #f9d9a0 100%);
}
.auth-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* sun: slow breathing glow + turning rays */
.auth-scene .sun-glow { transform-box: fill-box; transform-origin: center; animation: sun-breathe 6s ease-in-out infinite; }
.auth-scene .sun-rays { transform-box: view-box; transform-origin: 1230px 210px; animation: sun-turn 80s linear infinite; }
@keyframes sun-breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes sun-turn { to { transform: rotate(360deg); } }

/* clouds drift from left to right */
.auth-scene .cloud { fill: #ffffff; opacity: 0.85; }
.auth-scene .cloud-1 { animation: cloud-drift 95s linear infinite; }
.auth-scene .cloud-2 { animation: cloud-drift 130s linear infinite; animation-delay: -60s; opacity: 0.7; }
.auth-scene .cloud-3 { animation: cloud-drift 110s linear infinite; animation-delay: -30s; opacity: 0.8; }
@keyframes cloud-drift { from { transform: translateX(-420px); } to { transform: translateX(1900px); } }

/* snow peaks gently shine, little stars twinkle on top */
.auth-scene .snow { animation: snow-shine 5s ease-in-out infinite alternate; }
.auth-scene .snow-mid { animation-duration: 7s; animation-delay: -2s; }
@keyframes snow-shine { from { opacity: 0.82; } to { opacity: 1; } }
.auth-scene .spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: sparkle 3.4s ease-in-out infinite; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.5) rotate(45deg); }
}

/* On narrow phones the sun moves toward the middle so it stays visible */
@media (max-width: 800px) {
  .auth-scene .sun { transform: translate(-430px, 40px); }
}

/* Cards sit on top of the scene */
.register-page .reg-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.register-page { background: transparent; }

/* Login page: narrow card, a little lower on the screen */
.reg-card.is-narrow { max-width: 440px; }
.auth-login .reg-card { margin-top: 4vh; }
.auth-forgot { text-align: right; margin: 10px 0 18px; font-size: 0.85rem; }
.auth-forgot a { color: var(--brand-green); font-weight: 500; }
.auth-login .reg-submit { margin-top: 0; }

/* Green success note (for example "password changed") */
.reg-success {
  background: #eaf5ec;
  border: 1px solid #b7dcbd;
  color: #1d5a2a;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* "Number already registered" help box */
.reg-help-box {
  background: #fff8e8;
  border: 1px solid #f0d9a4;
  border-radius: 14px;
  padding: 16px 18px;
  margin: -8px 0 22px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5b4a1c;
}
.reg-help-box p + p { margin-top: 6px; }
.reg-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.reg-help-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
.reg-help-mail a { color: var(--brand-green); font-weight: 500; }


/* ============================================
   REAL PHOTO BACKGROUND (vendor login + registration)
   Used automatically when public/images/auth-bg.jpg (or .webp/.jpeg/.png) exists.
   ============================================ */
.auth-scene.has-photo { background: #1d2f24; }
.auth-photo {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  animation: photo-drift 45s ease-in-out infinite alternate;
}
@keyframes photo-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); }
}
/* soft shade so the white card and the top buttons stay easy to read */
.auth-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,36,28,0.30) 0%, rgba(18,36,28,0.08) 38%, rgba(18,36,28,0.50) 100%);
}


/* ============================================
   VENDOR REGISTRATION: photo panel + form side by side
   (desktop = two columns, mobile = a banner on top)
   ============================================ */
.has-split .reg-topbar { max-width: 1040px; }

.reg-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(47,82,51,0.16);
}
.reg-layout .reg-card {
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.reg-aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  color: white;
  background:
    radial-gradient(500px 300px at 20% 10%, rgba(255,210,94,0.35), transparent 60%),
    linear-gradient(165deg, #3f6b46 0%, #2f5233 55%, #20391f 100%);
  background-size: cover;
  background-position: center;
}
.reg-aside.has-photo { background-color: #20391f; }
.reg-aside-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,28,20,0.15) 0%, rgba(14,28,20,0.35) 45%, rgba(14,28,20,0.82) 100%);
}
.reg-aside-text { position: relative; padding: 36px 30px; }
.eyebrow-light {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffd97a;
  margin-bottom: 12px;
}
.reg-aside h2 {
  font-size: 1.7rem;
  line-height: 1.25;
  color: white;
  margin-bottom: 18px;
}
.reg-aside ul { list-style: none; display: grid; gap: 10px; }
.reg-aside li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.reg-aside li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffd97a;
}

@media (max-width: 860px) {
  .reg-layout { grid-template-columns: 1fr; border-radius: 18px; }
  .reg-aside { min-height: 190px; align-items: flex-end; }
  .reg-aside-text { padding: 20px 20px 18px; }
  .reg-aside h2 { font-size: 1.15rem; margin-bottom: 0; }
  .reg-aside ul, .eyebrow-light { display: none; }
}


/* ============================================
   HOME BANNER (full width, photo clearly visible, text on the left)
   ============================================ */
body { overflow-x: clip; }

.hero-banner {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  width: auto;
  border-radius: 0;
  padding: 0;
  min-height: clamp(440px, 74vh, 640px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: #1d2f24;
  background-image: none;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease, transform 9s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

/* dark on the text side, almost clear on the other side, so the photo stays visible */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14,28,20,0.78) 0%, rgba(14,28,20,0.46) 46%, rgba(14,28,20,0.06) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 16px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd97a;
  margin-bottom: 14px;
}
.hero-banner h1 {
  max-width: 640px;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  text-align: left;
}
.hero-banner .hero-sub {
  max-width: 520px;
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #f4f4f4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-hero {
  background: var(--marigold);
  color: #fff;
  padding: 13px 26px;
  font-size: 0.98rem;
}
.btn-hero:hover { background: #c97a14; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-hero-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  padding: 12px 24px;
  font-size: 0.98rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: #fff; color: var(--brand-green); }

@media (max-width: 720px) {
  .hero-banner { min-height: 460px; align-items: flex-end; }
  .hero-photo-overlay { background: linear-gradient(180deg, rgba(14,28,20,0.12) 0%, rgba(14,28,20,0.45) 45%, rgba(14,28,20,0.86) 100%); }
  .hero-inner { padding: 40px 16px 34px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}


/* ============================================
   PRODUCT CARDS (marketplace style)
   ============================================ */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.product-grid .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: none;
}
.product-grid .product-card:hover { box-shadow: 0 14px 32px rgba(47,82,51,0.14); }

.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf1e6, #f7efdd);
}
.pcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.45s ease;
}
.product-card:hover .pcard-media img { transform: scale(1.05); }
.pcard-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-green); }
.pcard-placeholder svg { width: 28%; height: auto; max-width: 84px; }

.pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 7px;
  background: rgba(255,255,255,0.96);
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

.pcard-body { flex: 1; padding: 14px 16px 2px; }
.pcard-cat {
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marigold);
}
.pcard-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}
.pcard-name a { color: var(--text-dark); text-decoration: none; }
.pcard-name a:hover { color: var(--brand-green); }
.pcard-price strong { font-size: 1.2rem; font-weight: 600; color: var(--brand-green); }
.pcard-price span { font-size: 0.85rem; color: var(--text-muted); }

.pcard-seller {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0e9da;
}
.pcard-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf1e8;
  color: var(--brand-green);
  font-size: 0.85rem;
  font-weight: 600;
}
.pcard-seller-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pcard-seller-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-dark);
}
.pcard-seller-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.pcard-seller-text small svg { color: var(--marigold); vertical-align: -1px; margin-right: 2px; }

.pcard-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 16px;
  padding: 10px 14px;
  background: #f3f7f1;
  color: var(--brand-green);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.pcard-cta:hover { background: var(--brand-green); color: #fff; }

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 10px 12px 2px; }
  .pcard-name { font-size: 0.92rem; }
  .pcard-price strong { font-size: 1.05rem; }
  .pcard-badge { top: 8px; left: 8px; padding: 3px 8px 3px 6px; font-size: 0.66rem; }
  .pcard-seller { margin-top: 10px; padding-top: 10px; gap: 8px; }
  .pcard-avatar { width: 28px; height: 28px; font-size: 0.78rem; }
  .pcard-cta { margin: 10px 12px 12px; padding: 8px 12px; font-size: 0.8rem; }
}


/* ============================================
   OUR MISSION SECTION (home page)
   ============================================ */
.mission {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
  max-width: 1040px;
  margin: var(--section-gap) auto;
}
.mission-photo { position: relative; }
.mission-photo::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid rgba(224,138,30,0.5);
  border-radius: 22px;
  z-index: 0;
}
.mission-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}
.mission-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--brand-green); margin-bottom: 16px; }
.mission-text > p { color: #4a4a4a; line-height: 1.85; margin-bottom: 14px; }
.mission-points { list-style: none; display: grid; gap: 16px; margin-top: 22px; }
.mission-points li { display: flex; gap: 14px; align-items: flex-start; }
.mission-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.mission-points strong { display: block; color: var(--text-dark); margin-bottom: 2px; }
.mission-points p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 860px) {
  .mission { grid-template-columns: 1fr; gap: 32px; margin: 56px auto; }
  .mission-photo { margin: 0 16px 0 0; }
  .mission-photo img { height: 260px; }
  .mission-photo::before { inset: 12px -12px -12px 12px; }
}


/* ============================================
   PHONE VIEW (feels like an app)
   Bottom menu bar, compact top bar, sliding category chips,
   big touch buttons, sticky "WhatsApp" bar on the product page.
   ============================================ */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* trust strip with line icons (all screen sizes) */
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-dark); }
.trust-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf1e8;
  color: var(--brand-green);
}
.trust-icon svg, .mnav-item svg, .btn-whatsapp svg, .btn-call svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-icon svg { width: 19px; height: 19px; }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-whatsapp svg, .btn-call svg { width: 20px; height: 20px; }
.btn-call { display: inline-flex; align-items: center; justify-content: center; }

/* the bottom bar only exists on phones */
.mobile-nav { display: none; }

@media (max-width: 768px) {
  /* compact top bar: logo + language only (login and register are in the bottom bar) */
  .site-header--light .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .site-header--light { background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .header-actions { gap: 8px; flex-wrap: nowrap; }
  .header-actions .nav-link, .header-actions .btn { display: none; }
  .site-header--light .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 1.02rem; }
  .site-header--light .lang-toggle a { padding: 5px 10px; }

  /* inputs at 16px, so phones do not zoom in when you tap them */
  input, select, textarea { font-size: 16px !important; }

  /* bigger touch targets */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pill { padding: 9px 16px; }
  .back-btn { padding: 9px 16px 9px 12px; }

  /* trust strip: 2 x 2 */
  .trust-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 16px 14px; }
  .trust-item { font-size: 0.8rem; line-height: 1.3; gap: 8px; }
  .trust-icon { width: 30px; height: 30px; }

  /* search + category chips */
  .filter-bar { margin: 40px 0 24px; }
  .search-form { margin-bottom: 18px; padding-left: 16px; }
  .category-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 4px 16px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-pills::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; white-space: nowrap; }

  .suggest-box { max-height: 52vh; }

  /* bottom menu bar */
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 26px rgba(47,82,51,0.10);
  }
  .mnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px 5px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 14px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
  }
  .mnav-item svg { width: 23px; height: 23px; }
  .mnav-item:active { transform: scale(0.94); background: #f3f7f1; }
  .mnav-item.is-active { color: var(--brand-green); }
  .mnav-item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--marigold);
  }
  .mnav-accent svg { color: var(--marigold); }

  /* room under the page so the bottom bar never covers the footer */
  .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* product page: WhatsApp / Call bar stays at the bottom */
  .product-detail .contact-buttons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 121;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 26px rgba(47,82,51,0.12);
  }
  .product-detail .contact-buttons .btn { min-height: 48px; }
}


/* ============================================
   APP FEEL ON PHONES, PART 2
   Step-by-step registration, compact home banner, swipe chips,
   product page with a photo on top and a sheet that slides over it.
   ============================================ */

/* step-by-step form pieces: only active on phones (class "is-wizard" is added by site.js) */
.wizard-progress, .wizard-actions { display: none; }
.reg-form [hidden] { display: none !important; }
.file-drop.is-invalid { border-color: #c0392b; background: #fdf1ef; }

.is-wizard .wizard-progress { display: block; margin: 0 0 16px; }
.wizard-bar { height: 6px; background: #eee6d6; border-radius: 99px; overflow: hidden; }
.wizard-bar span {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--brand-green), var(--marigold));
  border-radius: 99px;
  transition: width 0.35s ease;
}
.wizard-label { margin-top: 8px; font-size: 0.82rem; font-weight: 500; color: var(--brand-green); }

.is-wizard .reg-section legend { display: none; }
.is-wizard .reg-submit { display: none !important; }
.is-wizard .reg-section { margin-bottom: 0; }
.is-wizard .reg-terms { margin: 8px 0 0; }
.is-wizard .wizard-actions {
  display: flex;
  gap: 10px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -8px 26px rgba(47,82,51,0.12);
}
.wizard-actions .btn { flex: 1; min-height: 48px; justify-content: center; }
.wizard-actions .wizard-back { flex: 0 0 32%; }

@media (max-width: 768px) {

  /* ---- registration page: banner on top, white sheet over it ---- */
  .register-page { padding: 0 0 calc(104px + env(safe-area-inset-bottom)); }
  .reg-topbar { margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
  .reg-layout { background: transparent; border: none; border-radius: 0; box-shadow: none; overflow: visible; }
  .reg-aside { min-height: 130px; }
  .reg-aside-text { padding: 14px 18px 30px; }
  .reg-aside h2 { font-size: 1.05rem; }
  .reg-layout .reg-card {
    position: relative;
    margin-top: -18px;
    padding: 22px 16px 24px;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.10);
  }
  .reg-steps, .reg-header .reg-logo { display: none; }
  .reg-header { margin-bottom: 14px; }
  .reg-header h1 { font-size: 1.35rem; }
  .reg-subtitle { font-size: 0.86rem; }
  .reg-footer { margin-top: 18px; padding-top: 14px; }

  /* login page: card also fills the width */
  .auth-login .reg-card.is-narrow { margin-top: 2vh; }

  /* ---- home: compact banner card instead of a tall full-width image ---- */
  .hero-banner {
    margin: 12px 0 0;
    min-height: 300px;
    border-radius: 20px;
  }
  .hero-inner { padding: 22px 18px 20px; }
  .hero-eyebrow { font-size: 0.68rem; margin-bottom: 8px; }
  .hero-banner h1 { font-size: 1.6rem; line-height: 1.18; }
  .hero-banner .hero-sub {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions { gap: 8px; margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 0; padding: 10px 12px; font-size: 0.88rem; min-height: 44px; }

  /* trust points slide sideways like app chips */
  .trust-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    margin: 8px -16px 0;
    padding: 6px 16px 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .trust-bar::-webkit-scrollbar { display: none; }
  .trust-item {
    flex: 0 0 auto;
    padding: 7px 14px 7px 7px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    white-space: nowrap;
  }
  .filter-bar { margin: 28px 0 20px; }

  /* ---- product page: photo on top, info sheet slides over it ---- */
  main.container:has(.product-detail) { position: relative; padding-left: 0; padding-right: 0; }
  main.container:has(.product-detail) .back-btn {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 5;
    margin: 0;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
  }
  .product-detail { gap: 0; margin: 0; }
  .product-detail-img img,
  .product-detail-img .no-img.large {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }
  .product-detail-info {
    position: relative;
    margin-top: -26px;
    padding: 22px 18px 32px;
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  }
  .product-detail-info h1 { font-size: 1.45rem; }
  .price-large { font-size: 1.5rem; }

  /* footer a little tighter */
  .footer-disclaimer { font-size: 0.72rem; }
}

/* a gentle fade when a page opens */
main.container { animation: page-in 0.35s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
a, button, .pill, .btn { touch-action: manipulation; }


/* ============================================
   TIGHTER SPACING (cards, forms, product page)
   ============================================ */
/* product card: name and price sit close together, the seller line sits at the bottom */
.pcard-body { display: flex; flex-direction: column; padding: 12px 14px 2px; }
.pcard-cat { margin-bottom: 2px; }
.pcard-name { min-height: 0; margin: 0 0 3px; line-height: 1.3; }
.pcard-seller { margin-top: auto; padding-top: 10px; }
.pcard-price { margin-bottom: 10px; }
.pcard-cta { margin: 10px 14px 14px; padding: 9px 14px; }

/* forms */
.reg-grid { gap: 12px 16px; }
.reg-section legend { margin: 14px 0 10px; padding-bottom: 6px; }
.reg-field label { margin-bottom: 5px; }
.reg-field .field-note { margin-top: 4px; }
.reg-terms { margin: 16px 0 14px; }
.reg-header { margin-bottom: 20px; }
.reg-steps { margin-top: 16px; }

/* product page */
.price-large { margin: 4px 0 8px; }
.category-tag { margin: 4px 0; }
.description { margin: 10px 0; }
.seller-box { margin: 12px 0; padding: 12px 14px; }
.seller-box h3 { margin-bottom: 6px; }
.seller-box p { margin-bottom: 3px; }
.contact-buttons { margin: 12px 0 6px; }
.order-note { margin-bottom: 12px; }

/* sections */
.mission-points { gap: 12px; margin-top: 18px; }
.mission-text > p { margin-bottom: 10px; }
.filter-bar { margin-top: 56px; margin-bottom: 24px; }
.search-form { margin-bottom: 20px; }

@media (max-width: 768px) {
  :root { --section-gap: 52px; }
  .pcard-body { padding: 10px 12px 2px; }
  .pcard-cta { margin: 8px 12px 12px; }
  .product-detail-info { padding: 18px 16px 28px; }
  .filter-bar { margin-top: 28px; margin-bottom: 18px; }
}


/* ============================================
   ADMIN: seller contact numbers page
   ============================================ */
.contacts-page { max-width: 980px; margin: 0 auto; padding: 8px 0 24px; }
.contacts-page h1 { font-size: 1.6rem; color: var(--brand-green); margin: 14px 0 8px; }
.contacts-intro { color: #4a4a4a; font-size: 0.9rem; line-height: 1.65; margin-bottom: 18px; }
.contacts-list { display: grid; gap: 10px; }
.contact-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.contact-row.is-saved { border-color: var(--brand-green); background: #f3f8f1; }
.contact-row small { display: block; color: var(--text-muted); font-size: 0.74rem; }
.contact-who strong { display: block; font-size: 0.95rem; }
.contact-wa span { font-size: 0.92rem; font-weight: 500; }
.contact-call input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
}
.contact-call input:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(47,82,51,0.12); }
@media (max-width: 768px) {
  .contact-row { grid-template-columns: 1fr 1fr; }
  .contact-who { grid-column: 1 / -1; }
  .contact-call { grid-column: 1 / 2; }
  .contact-row .btn { grid-column: 2 / 3; align-self: end; }
}


/* ============================================
   PRODUCT PHOTOS: same shape everywhere, nothing stretched
   ============================================ */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pcard-media { aspect-ratio: 1 / 1; }
.pcard-media img { object-position: center; }

/* product page (laptop): square photo, stays in view while the details scroll */
.product-detail { align-items: start; gap: 40px; }
.product-detail-img { position: sticky; top: 96px; }
.product-detail-img img,
.product-detail-img .no-img.large {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #eaf1e6, #f7efdd);
}
.product-detail-img img { cursor: zoom-in; }
.product-detail-img .no-img.large { display: grid; place-items: center; color: var(--brand-green); }
.zoom-hint { margin-top: 8px; font-size: 0.78rem; color: var(--text-muted); text-align: center; }

@media (max-width: 768px) {
  .product-detail-img { position: static; }
  .zoom-hint { display: none; }
}

/* full photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10,18,14,0.92);
  cursor: zoom-out;
  animation: page-in 0.2s ease both;
}
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* admin contacts page, second version */
.contact-row { grid-template-columns: 1.2fr 1.3fr 1.7fr; align-items: start; }
.contact-call-line { display: flex; gap: 8px; margin: 4px 0 4px; }
.contact-call-line input { flex: 1; min-width: 0; }
.contact-wa span { display: block; margin: 2px 0; }
.contact-wa form { margin-top: 6px; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; min-height: 0 !important; }
.contacts-warn { color: #a5521a; }
@media (max-width: 768px) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-who, .contact-call { grid-column: auto; }
}


/* ============================================
   PHONE PRODUCT CARDS: 2 per row, shorter, whole card tappable
   (this block sits last on purpose so it wins over the laptop rule above)
   ============================================ */
.product-grid .product-card { position: relative; }
.pcard-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard-cta { display: none; }
  .pcard-body { padding: 10px 12px 12px; }
  .pcard-name { font-size: 0.92rem; }
  .pcard-price { margin-bottom: 8px; }
  .pcard-price strong { font-size: 1.05rem; }
  .pcard-seller { padding-top: 8px; gap: 8px; }
  .pcard-avatar { width: 26px; height: 26px; font-size: 0.74rem; }
  .pcard-seller-text strong { font-size: 0.78rem; }
  .pcard-seller-text small { font-size: 0.7rem; }
}


/* ============================================
   REGISTRATION: verification options
   ============================================ */
.verify-intro { font-size: 0.88rem; line-height: 1.65; color: #4a4a4a; margin-bottom: 14px; }
.verify-intro strong { color: var(--brand-green); }
.verify-option {
  margin-bottom: 12px;
  padding: 14px 14px 12px;
  background: #fffdf9;
  border: 1px solid var(--border-light);
  border-radius: 14px;
}
.verify-option h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}
html[lang="hi"] .verify-option h3 { font-family: var(--font-body); }
.verify-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.75rem;
}
.verify-optional { background: transparent; border-style: dashed; }
.verify-option .field-note { margin: 0 0 10px; }
.verify-option .file-drop { margin-top: 2px; }
.proof-alert {
  margin-top: 4px;
  padding: 10px 14px;
  background: #fdeceb;
  border: 1px solid #f3b9b4;
  border-radius: 10px;
  color: #8a1f17;
  font-size: 0.86rem;
  line-height: 1.5;
}
.reg-privacy-note { margin: 0 0 14px; font-size: 0.78rem; line-height: 1.6; color: var(--text-muted); }


/* ============================================
   ADMIN: vendor verification page
   ============================================ */
.review-page { max-width: 880px; margin: 0 auto; padding: 8px 0 28px; }
.review-page h1 { font-size: 1.6rem; color: var(--brand-green); margin: 14px 0 8px; }
.review-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-nav .back-btn { margin: 0; }
.review-link { color: var(--brand-green); font-weight: 500; font-size: 0.9rem; }
.review-empty { padding: 28px; text-align: center; color: var(--text-muted); background: #fff; border: 1px dashed var(--border-light); border-radius: 14px; }
.review-sub { font-size: 1.15rem; color: var(--brand-green); margin: 32px 0 6px; }
.review-card { margin-bottom: 18px; padding: 18px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; }
.review-card h2 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 2px; }
.review-card header p { font-size: 0.85rem; color: var(--text-muted); }
.review-card h3 { margin: 14px 0 6px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--brand-green); }
.review-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 12px; font-size: 0.88rem; }
.review-facts dt { font-size: 0.74rem; color: var(--text-muted); }
.review-facts dd a { color: var(--brand-green); font-weight: 500; }
.review-proofs { list-style: none; display: grid; gap: 8px; font-size: 0.88rem; line-height: 1.55; }
.review-proofs code { padding: 2px 6px; background: #f4efe3; border-radius: 6px; }
.review-proofs a { color: var(--brand-green); font-weight: 500; }
.review-photo { max-width: 240px; max-height: 240px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--border-light); object-fit: cover; }
.review-approve { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light); font-size: 0.88rem; }
.review-approve label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.review-approve input { margin-top: 3px; accent-color: var(--brand-green); }
.review-tick-title { font-weight: 600; margin-bottom: 2px; }
.review-buttons { margin-top: 8px; }
.review-reject { margin-top: 8px; }
@media (max-width: 640px) { .review-facts { grid-template-columns: 1fr; } .review-card { padding: 14px; } }


/* ============================================
   TERMS, PRIVACY, REPORT A LISTING
   ============================================ */
.legal-page { max-width: 820px; margin: 28px auto; padding: 32px 36px; line-height: 1.8; }
.legal-page h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--brand-green); margin-bottom: 4px; }
.legal-updated { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 18px; }
.legal-page h2 { font-size: 1.12rem; color: var(--brand-green); margin: 24px 0 6px; scroll-margin-top: 90px; }
.legal-page p { color: #3f3f3f; margin-bottom: 8px; }
.legal-page ul { margin: 4px 0 8px 22px; color: #3f3f3f; }
.legal-page li { margin-bottom: 6px; }
.legal-links { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.legal-links a { color: var(--brand-green); font-weight: 500; }
.grievance-card { padding: 14px 16px; background: #f4f8f2; border: 1px solid #d9e6d4; border-radius: 12px; line-height: 1.8; }
.grievance-card a { color: var(--brand-green); font-weight: 500; }
@media (max-width: 768px) { .legal-page { margin: 16px 0; padding: 22px 16px; border-radius: 14px; } }

.report-link { margin-top: 10px; font-size: 0.82rem; }
.report-link a { color: var(--text-muted); text-decoration: underline; }
.report-link a:hover { color: #a5521a; }

.report-page { max-width: 560px; margin: 24px auto; }
.report-card { padding: 26px 24px; background: #fff; border: 1px solid var(--border-light); border-radius: 18px; }
.report-card h1 { font-size: 1.5rem; color: var(--brand-green); margin-bottom: 6px; }
.report-card .reg-subtitle { margin-bottom: 16px; }
.report-reasons { border: none; display: grid; gap: 8px; }
.report-reasons legend { margin-bottom: 8px; font-weight: 600; font-size: 0.92rem; }
.report-reason { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.45; }
.report-reason:hover { border-color: var(--brand-green); }
.report-reason input { margin-top: 3px; accent-color: var(--brand-green); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-card textarea, .report-card input[type="text"] { width: 100%; padding: 11px 14px; border: 1px solid var(--border-light); border-radius: 10px; font-family: inherit; font-size: 0.95rem; }
.report-card label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 5px; }
.report-details { padding: 10px 12px; background: #faf6ef; border-radius: 10px; font-size: 0.9rem; line-height: 1.6; margin: 8px 0; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
