/* ==========================================================================
   MarketLink — Design System
   Plain CSS + Bootstrap 5 (Bootstrap loaded first, this stylesheet after)
   Converted from the original Tailwind/React styles
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ===== Dark Forest + Lime palette ===== */
  --background: oklch(0.14 0.015 152);          /* green-black page base */
  --foreground: oklch(0.93 0.02 150);           /* light sage text */
  --card: oklch(0.18 0.018 152);                /* raised glass panel */
  --card-foreground: oklch(0.93 0.02 150);
  --primary: oklch(0.86 0.2 130);               /* lime — main CTA color */
  --primary-foreground: oklch(0.17 0.03 140);   /* dark green text on lime */
  --secondary: oklch(0.23 0.02 152);            /* hover / soft surface */
  --secondary-foreground: oklch(0.93 0.02 150);
  --muted: oklch(0.21 0.016 152);
  --muted-foreground: oklch(0.72 0.025 150);
  --accent: oklch(0.9 0.21 128);                /* bright lime highlight */
  --accent-foreground: oklch(0.17 0.03 140);
  --olive: oklch(0.8 0.17 150);                 /* fresh leaf green */
  --olive-foreground: oklch(0.17 0.03 140);
  --honey: oklch(0.85 0.14 85);                 /* stars stay golden */
  --destructive: oklch(0.68 0.19 25);
  --destructive-foreground: oklch(0.98 0.005 85);
  --border: oklch(0.3 0.025 152);
  --ring: oklch(0.9 0.21 128);
  --shade: oklch(0.13 0.02 152);                /* dark overlay base for image shades */

  --radius: 1rem;
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.35), 0 8px 24px -8px oklch(0 0 0 / 0.5);
  --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.4), 0 24px 48px -16px oklch(0 0 0 / 0.65);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;

  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--background);
  --bs-body-color: var(--foreground);
  --bs-border-color: var(--border);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 163, 230, 53;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  background-image:
    radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, color-mix(in srgb, var(--olive) 5%, transparent), transparent 60%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--foreground);
}
p { margin-top: 0; margin-bottom: 1rem; }

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

img { max-width: 100%; }

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Layout + small utilities
   -------------------------------------------------------------------------- */
.container-x {
  width: 100%;
  max-width: 130rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container-x { padding-inline: 2rem; }
}

.text-accent { color: var(--accent) !important; }
.text-olive { color: var(--olive) !important; }
.text-honey { color: var(--honey) !important; }
.text-destructive { color: var(--destructive) !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-foreground { color: var(--foreground) !important; }
.font-display { font-family: var(--font-display); }
.fw-800 { font-weight: 800; }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lift { box-shadow: var(--shadow-lift); }

.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.rounded-3xl { border-radius: var(--radius-3xl) !important; }

.eyebrow {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grids ------------------------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.g-2, .g-3, .g-4, .g-6 { grid-template-columns: 1fr; }
.g-sm-2, .g-sm-3, .g-sm-4 { grid-template-columns: 1fr; }
.g-lg-3, .g-lg-4 { grid-template-columns: 1fr; }

@media (min-width: 576px) {
  .g-sm-2 { grid-template-columns: repeat(2, 1fr); }
  .g-sm-3 { grid-template-columns: repeat(2, 1fr); }
  .g-sm-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .g-6 { grid-template-columns: repeat(6, 1fr); }
  .g-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .g-lg-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .g-sm-3 { grid-template-columns: repeat(3, 1fr); }
  .g-sm-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two column layouts */
.split-1 { display: grid; gap: 2rem; }
@media (min-width: 992px) {
  .split-1 { grid-template-columns: 1.5fr 1fr; }
  .split-2 { grid-template-columns: 1fr 1.4fr; }
  .split-cart { grid-template-columns: 1fr 360px; }
  .split-rev { grid-template-columns: 280px 1fr; }
  .split-hero { grid-template-columns: 1fr 1fr; }
}
.split-2, .split-cart, .split-rev, .split-hero { display: grid; gap: 2rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-ml {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  text-align: center;
}
.btn-ml:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ml:active { transform: translateY(0) scale(.97); }
.btn-ml:disabled { opacity: .5; pointer-events: none; }
.btn-ml svg { width: 1rem; height: 1rem; }

.btn-primary-ml { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary-ml:hover { background: var(--accent); color: var(--accent-foreground); }

.btn-accent-ml { background: var(--accent); color: var(--accent-foreground); }
.btn-accent-ml:hover { color: var(--accent-foreground); }

.btn-ghost-ml { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-ghost-ml:hover { background: var(--secondary); }

.btn-light-ml { background: var(--background); color: var(--foreground); }

.btn-outline-ml { background: transparent; border-color: color-mix(in srgb, var(--foreground) 32%, transparent); color: var(--foreground); }
.btn-outline-ml:hover { background: color-mix(in srgb, var(--foreground) 10%, transparent); color: var(--foreground); }

.btn-sm-ml { padding: .625rem 1.25rem; font-size: .8125rem; }
.btn-block-ml { width: 100%; }

/* --------------------------------------------------------------------------
   Chips, badges
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 .5rem .5rem 0;
  padding: .4rem .8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { background: var(--secondary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.badge-ml {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-olive { background: color-mix(in srgb, var(--olive) 12%, transparent); color: var(--olive); }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }
.badge-accent { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.badge-card { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px); }
.badge-dark { background: color-mix(in srgb, var(--foreground) 85%, transparent); color: var(--background); }

.dot { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; display: inline-block; }

/* Stars */
.stars {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}
.stars svg { width: 1rem; height: 1rem; fill: var(--honey); color: var(--honey); }
.stars .stars-count { font-weight: 500; color: var(--muted-foreground); }
.cover-body .stars,
.farmer-head .stars { color: #fff; }
.cover-body .stars .stars-count,
.farmer-head .stars .stars-count { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.ml-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
a.ml-card:hover,
.ml-card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

.ml-card-media {
  position: relative;
  overflow: hidden;
  height: 12rem;
}
.ml-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.ml-card:hover .ml-card-media img { transform: scale(1.09); }

.ml-card-media .media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--shade) 65%, transparent), transparent 55%);
  pointer-events: none;
}

.ml-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.ml-card-body .ml-card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.ml-card-sub { display: flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }
.ml-card-sub svg { width: .9rem; height: .9rem; flex: none; }
.ml-card-text { margin-top: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.ml-card-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: .875rem; font-weight: 600; }
.ml-card-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ml-card-meta svg { width: 1rem; height: 1rem; color: var(--accent); }
.ml-card-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.ml-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  font-size: .875rem;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease;
}
a.ml-card:hover .ml-card-cta,
.ml-card.hoverable:hover .ml-card-cta { background: var(--primary); color: var(--primary-foreground); }
.ml-card-cta svg { width: 1rem; height: 1rem; }

/* Product card specifics */
.ml-card-media.ratio-43 { height: auto; aspect-ratio: 4 / 3; }
.ml-card-title-sm { font-family: var(--font-sans); font-size: 1rem; font-weight: 800; line-height: 1.25; }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.price-unit { font-size: .75rem; color: var(--muted-foreground); }

/* Category card */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-3xl);
  background: var(--secondary);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.cat-card:hover img { transform: scale(1.09); }
.cat-card .cat-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--shade) 88%, transparent), color-mix(in srgb, var(--shade) 10%, transparent) 55%, transparent);
}
.cat-card .cat-body { position: absolute; bottom: 0; padding: 1.25rem; color: #fff; }
.cat-card .cat-blurb { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; opacity: .8; }
.cat-card .cat-name { margin-top: .25rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* Review card */
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 1.5rem; height: 100%; }
.review-head { display: flex; align-items: center; gap: .75rem; }
.review-head .who { flex: 1; }
.review-head .who p { margin: 0; }
.review-head .who .date { font-size: .75rem; color: var(--muted-foreground); }
.review-text { margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Info card (details sidebar) */
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.info-item { display: flex; gap: 1rem; padding: .75rem 0; }
.info-item + .info-item { border-top: 1px solid var(--border); }
.info-icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: .9rem;
  background: var(--secondary);
  color: var(--accent);
}
.info-icon svg { width: 1.25rem; height: 1.25rem; }
.info-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.info-value { font-weight: 600; }

/* Plain border card */
.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); }
.box-soft { box-shadow: var(--shadow-soft); }
.box-pad { padding: 1.5rem; }
.box-pad-lg { padding: 1.75rem; }
.box-muted { background: color-mix(in srgb, var(--secondary) 55%, transparent); }

/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */
.avatar-ml {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, oklch(0.55 0.1 var(--hue, 30)), oklch(0.35 0.06 calc(var(--hue, 30) + 40)));
  box-shadow: 0 0 0 4px var(--card);
}
.avatar-ring-bg { box-shadow: 0 0 0 4px var(--background); }
.avatar-ring-0 { box-shadow: none; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--background);
  transition: box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.site-header .navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: auto;
  padding-top: .75rem;
}

/* Green rounded pill bar (fresh-basket style) */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .55rem .9rem;
  border-radius: 1.35rem;
  /* background: linear-gradient(135deg, #1c9a3f, #23b14d 55%, #1c9a3f); */
  background: linear-gradient(135deg, #065a1e, #014214 55%, #035b1c);
  box-shadow: 0 10px 28px -12px oklch(0 0 0 / .55);
}
.nav-pill .logo-text { color: #fff; }
.nav-pill .logo-text .alt { color: #d9f99d; }
.nav-pill .logo-mark { background: rgba(255,255,255,.18); color: #fff; }

.nav-search {
  display: none;
  align-items: center;
  flex: 1;
  max-width: 34rem;
  margin: 0 auto;
  padding: .25rem .25rem .25rem 1.1rem;
  border-radius: 999px;
  background: #fff;
}
@media (min-width: 992px) { .nav-search { display: flex; } }
.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .9rem;
  color: #14532d;
}
.nav-search input::placeholder { color: #6b8f78; }
.nav-search button {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: none; border-radius: 50%;
  background: #d9f99d;
  color: #14532d;
  cursor: pointer;
}

.nav-pill-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }

.deliver-pill {
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .3rem .35rem .3rem .9rem;
  border-radius: 999px;
  background: #d9f99d;
}
@media (min-width: 768px) { .deliver-pill { display: flex; } }
.deliver-pill .label { font-size: .75rem; font-weight: 700; color: #14532d; }
.deliver-pill select {
  border: none;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: .35rem .8rem;
  outline: none;
  cursor: pointer;
  min-width: 7.5rem;
  text-align: center;
}

.nav-pill .icon-btn { color: #fff; }
.nav-pill .icon-btn:hover { background: rgba(255,255,255,.16); }
.nav-pill .cart-btn { position: relative; }
.nav-pill .count-badge { top: -.15rem; right: -.25rem; border: 2px solid #1c9a3f; }
.burger-btn { display: flex; }
@media (min-width: 992px) { .burger-btn { display: none; } }

.nav-pill .link-login { color: #fff; }
.nav-pill .link-login:hover { background: rgba(255,255,255,.16); }
.nav-pill .btn-primary-ml { background: #d9f99d; color: #14532d; }
.nav-pill .btn-primary-ml:hover { background: #ecfccb; }
.nav-pill .profile-btn { border-color: rgba(255,255,255,.35); color: #fff; }
.nav-pill .profile-btn:hover { background: rgba(255,255,255,.16); }
.nav-pill .profile-btn .initial { background: #d9f99d; color: #14532d; }

/* Category strip below the pill */
.cat-strip-wrap { padding: .5rem 0 .25rem; }
.cat-strip {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .25rem 0 .35rem;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
  transition: all .2s ease;
}
.cat-strip a img {
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  object-fit: cover;
}
.cat-strip a svg { width: 1rem; height: 1rem; }
.cat-strip a:hover { border-color: var(--accent); color: var(--foreground); }
.cat-strip a.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* Desktop links row below strip */
.links-row { display: none; border-top: 1px solid var(--border); }
@media (min-width: 992px) { .links-row { display: block; } }
.links-row .main-nav-desktop { height: 2.75rem; display: flex; align-items: center; }
.links-row .main-nav { margin-left: 0; display: flex; }

.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: .75rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.logo-mark svg { width: 1.25rem; height: 1.25rem; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.logo-text .alt { color: var(--accent); }
.footer .logo-mark { background: var(--accent); }
.footer .logo-text { color: var(--foreground); }
.footer .logo-text .alt { color: var(--honey); }

.main-nav { display: none; margin-left: 1.5rem; align-items: center; gap: .25rem; }
@media (min-width: 992px) { .main-nav { display: flex; } }
.main-nav a {
  position: relative;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--foreground); }
.main-nav a.active { background: var(--secondary); color: var(--foreground); }

.nav-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }

.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--secondary); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

.count-badge {
  position: absolute;
  top: -.1rem; right: -.1rem;
  display: flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: .625rem;
  font-weight: 800;
}
.count-badge[hidden] { display: none; }

.nav-auth { display: none; margin-left: .5rem; align-items: center; gap: .25rem; }
@media (min-width: 768px) { .nav-auth { display: flex; } }
.nav-auth .link-login { padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.nav-auth .link-login:hover { background: var(--secondary); }

.profile-btn {
  display: flex; align-items: center; gap: .5rem;
  margin-left: .5rem;
  padding: .3rem .9rem .3rem .3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: .875rem; font-weight: 700;
  cursor: pointer;
}
.profile-btn:hover { background: var(--secondary); }
.profile-btn .initial {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-foreground);
  font-weight: 800;
}

.dropdown-menu-ml {
  position: absolute;
  right: 0; top: calc(100% + .5rem);
  width: 13rem;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1050;
}
.dropdown-menu-ml.open { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu-ml a, .dropdown-menu-ml button {
  display: flex; align-items: center; gap: .6rem;
  width: 100%;
  padding: .65rem .8rem;
  border: none;
  border-radius: .75rem;
  background: transparent;
  font-size: .875rem;
  text-align: left;
  cursor: pointer;
}
.dropdown-menu-ml a:hover, .dropdown-menu-ml button:hover { background: var(--secondary); }
.dropdown-menu-ml svg { width: 1rem; height: 1rem; }

/* expanding search + mobile menu rows */
/* Expanding search + mobile menu rows */
#nav-menu-toggle { display: flex; }
@media (min-width: 992px) { #nav-menu-toggle { display: none; } }

/* Order confirmation */
.ml-confirm-ico { display: inline-flex; color: var(--olive); }
.ml-confirm-ico svg { width: 4rem; height: 4rem; }

.nav-row { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; border-top: 1px solid transparent; }
.nav-row.open { grid-template-rows: 1fr; border-top-color: var(--border); }
.nav-row > div { min-height: 0; overflow: hidden; }
.nav-row.open > div { overflow: visible; }

.mobile-nav { display: flex; flex-direction: column; gap: .25rem; padding-block: 1rem; }
.mobile-nav a.m-link {
  padding: .75rem 1rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(-1rem);
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
}
.nav-row.open .mobile-nav a.m-link { opacity: 1; transform: none; }
.mobile-nav a.m-link.active, .mobile-nav a.m-link:hover { background: var(--secondary); }
.mobile-nav .m-auth { display: flex; gap: .5rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mobile-nav .m-auth > * { flex: 1; }

/* Search box */
.search-wrap { position: relative; }
.search-form { position: relative; display: block; }
.search-form .s-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1rem; height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input::placeholder { color: var(--muted-foreground); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.search-input.big { padding: 1rem 1rem 1rem 2.9rem; font-size: 1rem; }

.search-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + .5rem);
  z-index: 1050;
  max-height: 70vh;
  overflow: auto;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  animation: fade-up .35s cubic-bezier(.2,.7,.2,1) both;
}
.search-results .group-title {
  padding: .6rem 1rem .25rem;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted-foreground);
}
.search-results button.result {
  display: flex; flex-direction: column;
  width: 100%;
  padding: .55rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.search-results button.result:hover { background: var(--secondary); }
.search-results button.result .r-title { font-size: .875rem; font-weight: 700; }
.search-results button.result .r-sub { font-size: .75rem; color: var(--muted-foreground); }
.search-empty { padding: 1.25rem; font-size: .875rem; color: var(--muted-foreground); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { margin-top: 6rem; background: oklch(0.15 0.018 152); border-top: 1px solid var(--border); color: var(--foreground); }
.footer .footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer .blurb { max-width: 24rem; margin-top: 1rem; font-size: .875rem; opacity: .7; }
.footer .col-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; opacity: .6; }
.footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; }
.footer ul a { opacity: .8; }
.footer ul a:hover { opacity: 1; }
.footer .footer-bottom { border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.footer .footer-bottom .inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: 1.5rem; font-size: .75rem; opacity: .6;
}

/* --------------------------------------------------------------------------
   Page header / crumbs / section head
   -------------------------------------------------------------------------- */
/* Distance pill — Foodpanda style "X km from you" */
.dist-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .85rem; border-radius: 999px;
  background: #d9f99d; color: #14532d;
  font-size: .8rem; font-weight: 700; width: fit-content;
}
.dist-pill svg { flex-shrink: 0; }

/* "Use my location" chip — jab viewer ki location set nahi */
.geo-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem; border-radius: 999px;
  border: 1.5px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--foreground);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.geo-chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.page-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--secondary) 55%, transparent); }
.page-header .inner { padding-block: 3rem; }
@media (min-width: 768px) { .page-header .inner { padding-block: 4rem; } }
.page-header h1 { margin: 1.25rem 0 0; max-width: 48rem; font-size: clamp(2.25rem, 5vw, 3.75rem); animation: fade-up .6s cubic-bezier(.2,.7,.2,1) both; }
.page-header .lead { margin: 1rem 0 0; max-width: 42rem; font-size: 1.125rem; color: var(--muted-foreground); }
.page-header .header-slot { margin-top: 2rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted-foreground); }
.crumbs a:hover { color: var(--foreground); }
.crumbs .current { color: var(--foreground); }
.crumbs svg { width: .875rem; height: .875rem; opacity: .7; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: .5rem 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.section-head .action { font-size: .875rem; font-weight: 700; }

.section { margin-top: 6rem; }
.section-tight { margin-top: 3.5rem; }
.band { background: color-mix(in srgb, var(--secondary) 60%, transparent); padding: 5rem 0; margin-top: 6rem; }

/* --------------------------------------------------------------------------
   Hero — carousel
   -------------------------------------------------------------------------- */
.hero { padding-top: 1rem; }
@media (min-width: 768px) { .hero { padding-top: 1.5rem; } }
.hero-carousel {
  position: relative;
  border-radius: var(--radius-3xl);
}
@media (min-width: 768px) { .hero-carousel { border-radius: 2.5rem; } }
.hero-track { position: relative; overflow: hidden; border-radius: inherit; }
.hero-slide {
  position: relative;
  display: none;
}
.hero-slide.is-active { display: block; animation: hero-fade .55s ease both; }
@keyframes hero-fade {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: none; }
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.hero-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--shade) 92%, transparent), color-mix(in srgb, var(--shade) 60%, transparent) 55%, color-mix(in srgb, var(--shade) 15%, transparent)); }
.hero-body { position: relative; padding: 4rem 2rem; color: #fff; }
@media (min-width: 768px) { .hero-body { padding: 7rem 3.5rem; } }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 15%, transparent);
  backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 700;
}
.hero-pill svg { width: .875rem; height: .875rem; }
.hero-title { margin: 1.5rem 0 0; max-width: 48rem; color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; }
.hero-title .accent-line { font-style: italic; color: var(--accent); }
.hero-desc { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-search {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 2.5rem;
  max-width: 42rem;
  padding: .5rem;
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  color: var(--foreground);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 576px) { .hero-search { flex-direction: row; } }
.hero-search select {
  padding: .75rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--secondary);
  font-size: .875rem; font-weight: 700;
  outline: none;
  width: 100%;
}
@media (min-width: 576px) { .hero-search select { width: 11rem; } }
.hero-search .search-wrap { flex: 1; }

/* Carousel dots (fresh-basket style, bottom center — track ke andar) */
.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.1rem;
  display: flex;
  justify-content: center;
  gap: .45rem;
  z-index: 5;
  pointer-events: none;
}
.hero-dot { pointer-events: auto; }
.hero-dot {
  width: .5rem; height: .5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .25s ease;
}
.hero-dot.is-active {
  width: 1.75rem;
  background: var(--accent);
}
.hero-dot:hover { background: rgba(255,255,255,.8); }
.hero-dot.is-active:hover { background: var(--accent); }

/* Search box banner ke neeche floating card */
.hero-carousel .hero-search {
  position: relative;
  margin: .75rem 0 0;
  padding: .5rem;
}
.hero-slide .hero-body { padding-bottom: 3.25rem; }
@media (min-width: 768px) { .hero-slide .hero-body { padding-bottom: 4rem; } }

/* Page hero (about) */
.img-hero { position: relative; overflow: hidden; }
.img-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-hero .shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--shade) 66%, transparent); }
.img-hero .inner { position: relative; padding-block: 7rem; color: #fff; }
.img-hero h1 { margin-top: .75rem; max-width: 48rem; color: #fff; font-size: clamp(2.5rem, 5vw, 3.75rem); }

/* Listing pages ka banner header (markets / farmers / products) */
.page-header.img-hero { border-bottom: 1px solid var(--border); }
.page-header.img-hero .shade { background: linear-gradient(to top, color-mix(in srgb, var(--shade) 92%, transparent), color-mix(in srgb, var(--shade) 55%, transparent) 60%, color-mix(in srgb, var(--shade) 35%, transparent)); }
.page-header.img-hero .inner { padding-block: 3.5rem; }
@media (min-width: 768px) { .page-header.img-hero .inner { padding-block: 4.5rem; } }
.page-header.img-hero .crumbs,
.page-header.img-hero .lead { color: #fff; }
.page-header.img-hero .crumbs a:hover { color: var(--accent); }
.page-header.img-hero .crumbs .current { color: var(--accent); }
.page-header.img-hero .lead { opacity: .85; }
.page-header.img-hero h1 { color: #fff; }
.page-header.img-hero .header-slot .icon-input svg,
.page-header.img-hero .header-slot .select-ml { color: var(--foreground); }

/* Detail hero (market / farmer / product) */
.detail-cover { position: relative; margin-top: 1.25rem; height: 21rem; overflow: hidden; border-radius: 1.75rem; }
@media (min-width: 768px) { .detail-cover { height: 27.5rem; border-radius: 2rem; } }
.detail-cover > img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .shade { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--shade) 94%, transparent), color-mix(in srgb, var(--shade) 35%, transparent) 55%, transparent); }
.detail-cover .cover-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.5rem;
  color: #fff;
}
@media (min-width: 768px) { .detail-cover .cover-body { flex-direction: row; align-items: flex-end; padding: 2.5rem; } }
.detail-cover h1 { margin: .5rem 0 0; color: #fff; font-size: clamp(2rem, 5vw, 3.75rem); }
.cover-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .75rem; font-size: .875rem; opacity: .9; }
.cover-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.cover-meta svg { width: 1rem; height: 1rem; }
.cover-icon {
  display: flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem; flex: none;
  border-radius: 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-lift);
}
.cover-icon svg { width: 2.25rem; height: 2.25rem; }

.farmer-cover { position: relative; height: 15rem; overflow: hidden; border-radius: 1.75rem; }
@media (min-width: 768px) { .farmer-cover { height: 20rem; } }
.farmer-cover img { width: 100%; height: 100%; object-fit: cover; }
.farmer-cover .shade { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--shade) 50%, transparent), transparent 60%); }

.farmer-head { position: relative; margin-top: -4rem; display: flex; flex-direction: column; gap: 1.5rem; padding: 0 .5rem; }
@media (min-width: 768px) { .farmer-head { flex-direction: row; align-items: flex-end; padding: 0 2.5rem; } }
.farmer-head h1 { margin: .5rem 0 0; font-size: clamp(2rem, 4vw, 3rem); }
.farmer-head .farm-name { font-size: 1.125rem; font-weight: 600; color: var(--accent); margin: 0; }
.farmer-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --------------------------------------------------------------------------
   Buttons row / stats
   -------------------------------------------------------------------------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .75rem; font-size: .875rem; }
.stat-strip span { display: inline-flex; align-items: center; gap: .4rem; }
.stat-strip svg { width: 1rem; height: 1rem; }

.dash-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 1.5rem; }
.dash-stat .label { font-size: .875rem; color: var(--muted-foreground); }
.dash-stat .value { margin-top: .5rem; font-family: var(--font-display); font-size: 2.25rem; }

.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 1.75rem; height: 100%; box-shadow: var(--shadow-soft); }
.step-card .top { display: flex; align-items: center; justify-content: space-between; }
.step-card .top svg { width: 2rem; height: 2rem; color: var(--accent); }
.step-card .num { font-family: var(--font-display); font-size: 3rem; color: color-mix(in srgb, var(--muted-foreground) 32%, transparent); }
.step-card h3 { margin: 1.5rem 0 0; font-size: 1.5rem; }
.step-card p { margin: .5rem 0 0; font-size: .875rem; color: var(--muted-foreground); }

.cta-band { position: relative; overflow: hidden; border-radius: 2.5rem; background: radial-gradient(600px 320px at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(135deg, oklch(0.22 0.03 152), oklch(0.14 0.02 152)); border: 1px solid var(--border); color: var(--foreground); padding: 4rem 2rem; }
@media (min-width: 768px) { .cta-band { padding: 4rem; } }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cta-band .inner { position: relative; max-width: 42rem; }
.cta-band h2 { margin: 1rem 0 0; color: var(--foreground); font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { margin-top: 1rem; opacity: .8; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.filter-layout { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 992px) { .filter-layout { grid-template-columns: 260px 1fr; } }
.filter-aside { display: none; }
@media (min-width: 992px) { .filter-aside { display: block; } }
.filter-panel {
  position: sticky;
  top: 7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.filter-panel-head h3 { margin: 0; font-family: var(--font-sans); font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.filter-reset { border: none; background: none; font-size: .75rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.filter-group + .filter-group { margin-top: 1.75rem; }
.filter-group > p { margin-bottom: .75rem; font-size: .875rem; font-weight: 700; }
.filter-check { display: flex; align-items: center; gap: .65rem; font-size: .875rem; cursor: pointer; }
.filter-check + .filter-check { margin-top: .6rem; }
.filter-check input { width: 1rem; height: 1rem; accent-color: var(--accent); }

.filter-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.filter-toolbar .count { font-size: .875rem; color: var(--muted-foreground); }
.filter-toolbar .count b { color: var(--foreground); }
.filter-toolbar .push { margin-left: auto; }

.btn-filters {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: .875rem; font-weight: 700;
  cursor: pointer;
}
@media (min-width: 992px) { .btn-filters { display: none; } }
.btn-filters svg { width: 1rem; height: 1rem; }

.view-toggle { display: inline-flex; padding: .25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.view-toggle button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: .875rem; font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
  text-transform: capitalize;
}
.view-toggle button.active { background: var(--primary); color: var(--primary-foreground); }
.view-toggle svg { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.input-ml, .select-ml, .textarea-ml {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-ml::placeholder, .textarea-ml::placeholder { color: var(--muted-foreground); }
.input-ml:focus, .select-ml:focus, .textarea-ml:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.select-ml { border-radius: .9rem; padding: .65rem .9rem; appearance: auto; }
.textarea-ml { min-height: 8rem; resize: vertical; }
.input-pill { border-radius: 999px; padding-left: 2.75rem; }
.input-error { border-color: var(--destructive) !important; }
.field-error { margin-top: .3rem; font-size: .75rem; color: var(--destructive); }
.form-label-ml { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 700; }

.range-ml { width: 100%; accent-color: var(--accent); }

.icon-input { position: relative; max-width: 36rem; }
.icon-input > svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted-foreground); pointer-events: none; }

/* --------------------------------------------------------------------------
   Cart / qty / steps
   -------------------------------------------------------------------------- */
.cart-lines { display: grid; gap: 1rem; }
.cart-line { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); padding: 1rem; }
.cart-line img { width: 5rem; height: 5rem; border-radius: var(--radius-2xl); object-fit: cover; flex: none; }
.cart-line .who { flex: 1; min-width: 0; }
.cart-line .who .name { font-weight: 700; }
.cart-line .who .sub { font-size: .75rem; color: var(--muted-foreground); }
.cart-line .who .price { font-family: var(--font-sans); font-size: .875rem; font-weight: 500; }
.remove-btn { border: none; background: none; color: var(--muted-foreground); cursor: pointer; padding: .5rem; border-radius: 50%; }
.remove-btn:hover { color: var(--destructive); background: var(--secondary); }
.remove-btn svg { width: 1rem; height: 1rem; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
  flex: none;
}
.qty button {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: none; background: transparent;
  cursor: pointer;
  color: var(--foreground);
}
.qty button:hover { background: var(--secondary); }
.qty button svg { width: 1rem; height: 1rem; }
.qty .val { min-width: 2.25rem; text-align: center; font-weight: 700; font-size: .875rem; }
.qty-lg { padding: .25rem; }
.qty-lg button { width: 2.5rem; height: 2.5rem; border-radius: 50%; }

/* Pre-order steps */
.steps { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; padding: 0; list-style: none; }
.steps li { padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--muted); color: var(--muted-foreground); }
.steps li.current { background: var(--primary); color: var(--primary-foreground); }
.steps li.done { background: color-mix(in srgb, var(--olive) 12%, transparent); color: var(--olive); }

.option-card {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}
.option-card:hover { background: var(--secondary); }
.option-card.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.option-card .sub { font-size: .875rem; color: var(--muted-foreground); }

.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Empty / error / skeleton states
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-3xl);
  background: var(--card);
  text-align: center;
}
.empty-state .ico {
  display: flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--accent);
}
.empty-state .ico svg { width: 1.75rem; height: 1.75rem; }
.empty-state h3 { margin: 1.25rem 0 0; font-size: 1.5rem; }
.empty-state p { margin: .5rem 0 0; max-width: 24rem; color: var(--muted-foreground); }
.empty-state .action { margin-top: 1.5rem; }

.error-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 3.5rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--destructive) 30%, transparent);
  border-radius: var(--radius-3xl);
  background: color-mix(in srgb, var(--destructive) 5%, transparent);
  text-align: center;
}
.error-state svg { width: 2rem; height: 2rem; color: var(--destructive); }
.error-state h3 { margin: 1rem 0 0; font-size: 1.25rem; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  border-radius: .5rem;
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 55%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
.sk-card { overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-3xl); }
.sk-card .sk-body { display: grid; gap: .75rem; padding: 1.25rem; }

/* Pagination */
.pagination-ml { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pagination-ml button {
  min-width: 2.5rem; height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: .875rem; font-weight: 700;
  cursor: pointer;
}
.pagination-ml button:hover:not(:disabled):not(.active) { background: var(--secondary); }
.pagination-ml button.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pagination-ml button:disabled { opacity: .4; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.map-box {
  width: 100%;
  height: 26rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  background: var(--muted);
}
.map-box.tall { height: 40rem; }
.map-box.full { height: 100%; min-height: 24rem; }
.leaflet-container { font-family: var(--font-sans); border-radius: inherit; z-index: 0; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: .7rem .9rem; }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 1090;
  display: grid;
  gap: .6rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.ml-toast {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  font-size: .875rem;
  animation: toast-in .4s cubic-bezier(.2,.7,.2,1) both;
  pointer-events: auto;
}
.ml-toast.leaving { animation: toast-out .3s ease forwards; }
.ml-toast .t-body { flex: 1; }
.ml-toast .t-title { font-weight: 700; }
.ml-toast .t-sub { font-size: .75rem; color: var(--muted-foreground); }
.ml-toast .t-ico { color: var(--olive); display: flex; }
.ml-toast .t-ico svg { width: 1.1rem; height: 1.1rem; }
.ml-toast.err .t-ico { color: var(--destructive); }

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */
.auth-wrap { display: flex; min-height: 70vh; align-items: center; justify-content: center; padding: 4rem 0; }
.auth-card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 1rem;
}
.auth-card h1 { margin: 0 0 .5rem; font-size: 2.25rem; }
.auth-card .alt-links { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted-foreground); }
.auth-card .alt-links a:hover { color: var(--foreground); }
.auth-error { font-size: .875rem; color: var(--destructive); }

/* --------------------------------------------------------------------------
   Misc interactive
   -------------------------------------------------------------------------- */
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform .2s ease;
  color: var(--foreground);
}
.fav-btn:hover { transform: scale(1.06); }
.fav-btn svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.fav-btn .heart.on { fill: var(--accent); color: var(--accent); }
.fav-btn .heart { display: inline-flex; }
.fav-btn .heart svg { width: 1rem; height: 1rem; }
.fav-btn .heart.on svg { fill: var(--accent); color: var(--accent); }
.fav-btn.icon { width: 2.25rem; height: 2.25rem; box-shadow: var(--shadow-soft); }
.fav-btn.with-label { border: 1px solid var(--border); padding: .5rem 1rem; font-size: .875rem; font-weight: 700; }
.fav-btn.pop svg { animation: pop .4s ease; }
.fav-float { position: absolute; top: 1rem; right: 1rem; }
.fav-float-lg { width: 2.75rem; height: 2.75rem; }

.gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-2xl);
  opacity: .7;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: opacity .2s ease, border-color .2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }

.main-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  background: var(--card);
}
.main-image img { width: 100%; height: 100%; object-fit: cover; animation: fade-up .5s ease both; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; font-size: .75rem; }
.trust-row .item {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .75rem .5rem;
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--secondary) 60%, transparent);
  text-align: center;
}
.trust-row svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }

.rating-bars { display: grid; gap: .5rem; margin-top: 1.25rem; }
.rating-bars .row { display: flex; align-items: center; gap: .5rem; font-size: .75rem; }
.rating-bars .lbl { width: .75rem; }
.rating-bars .track { flex: 1; height: .5rem; overflow: hidden; border-radius: 999px; background: var(--muted); }
.rating-bars .fill { height: 100%; border-radius: 999px; background: var(--honey); }
.rating-bars .pct { width: 2rem; text-align: right; color: var(--muted-foreground); }

.order-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  font-size: .875rem;
}

.list-reset { list-style: none; margin: 0; padding: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* --------------------------------------------------------------------------
   Bootstrap overrides
   -------------------------------------------------------------------------- */
.offcanvas {
  background: var(--background);
  color: var(--foreground);
  border: none;
}
.offcanvas-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.offcanvas-title { font-family: var(--font-display); font-weight: 600; }
.btn-close { filter: invert(1); opacity: .7; }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  padding: .35rem;
}
.dropdown-item { border-radius: .75rem; font-size: .875rem; padding: .6rem .8rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--secondary); color: var(--foreground); }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

.animate-fade-up { animation: fade-up .6s cubic-bezier(.2,.7,.2,1) both; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive hardening — cards har screen par container ke andar rahen
   -------------------------------------------------------------------------- */

/* Grid/flex children apni content se bare na hon (overflow ka root cause:
   min-width:auto). min-width:0 se lambay naam/description card ko nahi
   phailate — content wrap/clamp hoti hai. */
.grid > *,
.split-2 > *,
.filter-layout > * { min-width: 0; max-width: 100%; }

/* Images kabhi container se bahar na niklen */
img { max-width: 100%; }

/* Final safety: horizontal scroll kabhi na aaye (clip sticky ko nahi todta) */
body { overflow-x: clip; }

/* Product cards: lambay titles 2 lines par clamp, foot row wrap kare */
.ml-card-title-sm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ml-card-foot { flex-wrap: wrap; }
.ml-card-foot .price { min-width: 0; }

/* Trust row chhoti screens par khud adjust ho */
.trust-row { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }

/* Products page: 992–1199px par sidebar (260px) ke sath 3 columns cards ko
   ~200px par squeeze karte hain — is range mein 2 columns better hain */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .filter-layout .g-lg-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Bahut chhoti screens: card body padding thora kam, order form wrap kare */
@media (max-width: 480px) {
  .ml-card-body { padding: .85rem !important; }
  .main-image { border-radius: 1.25rem; }
}

/* Product card: ab div hai (nested <a> invalid tha — parser card todta tha),
   media aur title apne links se clickable hain */
.ml-card-media-link { display: block; }
.ml-card-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.ml-card-link:hover { color: var(--accent); }
.ml-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }

/* --------------------------------------------------------------------------
   Dark Leaflet map + popups
   -------------------------------------------------------------------------- */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.55); }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-lift);
}
.leaflet-container a.leaflet-popup-close-button { color: var(--muted-foreground); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--card) 80%, transparent) !important; color: var(--muted-foreground) !important; }
.leaflet-control-attribution a { color: var(--muted-foreground) !important; }
.leaflet-bar a { background: var(--card); color: var(--foreground); border-bottom-color: var(--border); }
.leaflet-bar a:hover { background: var(--secondary); }

/* ================================================================
   ABOUT — Team grid (6 member cards: photo + role + LinkedIn)
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px)  { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.team-card::before {
  /* top lime sheen */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 20px 44px -18px oklch(0 0 0 / 0.65);
}
.team-card:hover::before { opacity: 1; }

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--secondary)), var(--secondary));
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: saturate(.96);
}
.team-card:hover .team-photo img { transform: scale(1.06); filter: saturate(1.08); }
.team-photo::after {
  /* bottom fade into card body */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 88%, transparent));
  pointer-events: none;
}

.team-body {
  position: relative;
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}
.team-role {
  color: var(--muted-foreground);
  font-size: .86rem;
  line-height: 1.45;
  min-height: 2.5em;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .45rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.team-linkedin svg { width: .95rem; height: .95rem; }
.team-linkedin:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-1px);
}

/* ==========================================================================
   Cart page — full responsive fix
   Desktop layout untouched; mobile/tablet par cart-line 2-row grid banta hai
   ========================================================================== */

/* Split layout columns apni jagah rahen (grid blowout rokne ke liye) */
.split-cart > * { min-width: 0; }

/* Cart line row: text column shrink kar sake, squeeze na ho */
.cart-line .who { flex: 1 1 auto; }
.cart-line .who .sub { overflow-wrap: anywhere; }

/* Wrapper har jagah transparent — children direct flex/grid items rehte hain */
.cart-line .line-controls { display: contents; }

/* Mobile: image left + text right (row 1), controls poori width ki row mein neeche */
@media (max-width: 575px) {
  .cart-line {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas:
      "img      who"
      "controls controls";
    align-items: center;
    column-gap: .9rem;
    row-gap: .8rem;
    padding: .9rem;
  }
  .cart-line img { grid-area: img; width: 4.5rem; height: 4.5rem; }
  .cart-line .who { grid-area: who; }
  .cart-line .who .name { font-size: .95rem; }
  .cart-line .who .sub { white-space: normal; }

  .cart-line .line-controls {
    display: flex;
    grid-area: controls;
    align-items: center;
    gap: .6rem;
  }
  /* blade ke inline width/min-width ko beat karna zaroori hai */
  .cart-line input[type="number"] { width: 4.25rem !important; flex: none; }
  .cart-line .line-controls strong { min-width: 0 !important; flex: 1; text-align: right; white-space: nowrap; }
  .cart-line .remove-btn { flex: none; margin-left: .25rem; }
  .info-card { padding: 1.15rem; }
}

/* Very narrow (< 380px): image/gaps aur chhote taake text ko jagah mile */
@media (max-width: 379px) {
  .cart-line {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    padding: .8rem;
    column-gap: .7rem;
  }
  .cart-line img { width: 3.75rem; height: 3.75rem; }
  .cart-line input[type="number"] { width: 4rem !important; }
}

/* ==========================================================================
   About page — Mentor section (team ke upar, image left / words right)
   ========================================================================== */
.mentor-split > * { min-width: 0; }
@media (min-width: 992px) {
  .mentor-split { grid-template-columns: minmax(300px, 400px) 1fr; align-items: center; }
}

.mentor-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--secondary)), var(--secondary));
  box-shadow: var(--shadow-soft);
}
.mentor-photo::before {
  /* top lime sheen — team-card jaisa */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s;
  z-index: 1;
}
.mentor-photo:hover::before { opacity: 1; }
.mentor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: saturate(.96);
}
.mentor-photo:hover img { transform: scale(1.05); filter: saturate(1.08); }

.mentor-quote {
  margin-top: 1.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--foreground);
}

.mentor-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.mentor-id .team-role { margin-top: .15rem; }

@media (max-width: 991px) {
  .mentor-photo { max-width: 26rem; }
}
