/* ============================================================
   eksec Design System — Warm Indian Marketplace
   Inspired by Etsy but rooted in Indian warmth
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&display=swap');

:root {
  --saffron:     #b5451b;
  --saffron-lt:  #d4622e;
  --saffron-dk:  #8c3214;
  --cream:       #f7f3ee;
  --cream-dk:    #ede7dc;
  --gold:        #c8900a;
  --gold-lt:     #f0b429;
  --green:       #2d6a4f;
  --green-lt:    #40916c;
  --ink:         #1a1510;
  --ink-md:      #3d3529;
  --ink-lt:      #6b5f52;
  --border:      #e0d6c8;
  --border-lt:   #ede7dc;
  --white:       #ffffff;
  --shadow-sm:   0 1px 4px rgba(26,21,16,.08);
  --shadow-md:   0 4px 16px rgba(26,21,16,.10);
  --shadow-lg:   0 8px 32px rgba(26,21,16,.14);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-hindi:  'Noto Sans Devanagari', sans-serif;
  --transition:  0.18s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

body.lang-hi { font-family: var(--font-hindi); }
.hi { font-family: var(--font-hindi); }

/* ---- Typography ------------------------------------------ */
h1,h2,h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--ink-lt); }
a  { color: var(--saffron); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--saffron-dk); }

/* ---- Layout ---------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ---- Navigation ------------------------------------------ */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 600;
  color: var(--saffron) !important;
  letter-spacing: -0.5px;
  margin-right: 32px;
  flex-shrink: 0;
}
.nav-logo span { font-style: italic; }
.nav-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 50px; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(181,69,27,.12);
}
.nav-search input {
  flex: 1; border: none; background: transparent;
  padding: 10px 16px; font-size: 14px; outline: none;
  font-family: inherit; color: var(--ink);
}
.nav-search button {
  background: var(--saffron); border: none; cursor: pointer;
  padding: 10px 18px; color: white; font-size: 15px;
  transition: background var(--transition);
}
.nav-search button:hover { background: var(--saffron-dk); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; list-style: none;
}
.nav-links a {
  color: var(--ink-md); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--cream); color: var(--saffron); }
.nav-links .btn-nav {
  background: var(--saffron); color: white !important;
  padding: 8px 18px; border-radius: 50px;
}
.nav-links .btn-nav:hover { background: var(--saffron-dk); }

.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--cream-dk); border-radius: 50px;
  padding: 3px; margin-left: 8px;
}
.lang-toggle a {
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 50px; color: var(--ink-lt) !important;
}
.lang-toggle a.active {
  background: var(--white); color: var(--saffron) !important;
  box-shadow: var(--shadow-sm);
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--saffron); color: white; }
.btn-primary:hover { background: var(--saffron-dk); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--saffron); border: 2px solid var(--saffron); }
.btn-secondary:hover { background: var(--saffron); color: white; }
.btn-ghost { background: var(--cream-dk); color: var(--ink-md); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ---- Forms ----------------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink-md); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(181,69,27,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--ink-lt); margin-top: 4px; }
.form-error { font-size: 12px; color: #c0392b; margin-top: 4px; }

/* OTP inputs */
.otp-inputs {
  display: flex; gap: 10px; justify-content: center; margin: 24px 0;
}
.otp-input {
  width: 52px; height: 64px; text-align: center;
  font-size: 26px; font-weight: 700; font-family: monospace;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); color: var(--saffron); outline: none;
  transition: border-color var(--transition);
}
.otp-input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(181,69,27,.12); }

/* Star rating picker */
.star-picker { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-picker input { display: none; }
.star-picker label { font-size: 32px; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-picker label:hover, .star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: var(--gold); }

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Product listing card */
.listing-card { cursor: pointer; }
.listing-card-img {
  position: relative; width: 100%; padding-bottom: 100%;
  overflow: hidden; background: var(--cream-dk);
}
.listing-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.35s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--saffron); color: white;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
}
.listing-card-save {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.listing-card-save:hover { background: white; transform: scale(1.1); }
.listing-card-save.saved { color: #e74c3c; }
.listing-card-body { padding: 14px; }
.listing-card-title {
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin-bottom: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card-seller { font-size: 12px; color: var(--ink-lt); margin-bottom: 6px; }
.listing-card-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.listing-card-price .currency { font-size: 12px; font-weight: 400; color: var(--ink-lt); }
.listing-card-location { font-size: 12px; color: var(--ink-lt); margin-top: 4px; }
.listing-card-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.listing-card-stars { color: var(--gold); font-size: 12px; }
.listing-card-count { font-size: 12px; color: var(--ink-lt); }

/* ---- Listing Grid ---------------------------------------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #2d1810 0%, #5c2d1a 50%, #8c4a20 100%);
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; }
.hero-search {
  display: flex; max-width: 600px; margin: 0 auto 24px;
  background: white; border-radius: 50px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; border: none; padding: 16px 24px;
  font-size: 16px; font-family: inherit; outline: none; color: var(--ink);
}
.hero-search button {
  background: var(--saffron); color: white; border: none;
  padding: 16px 32px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--saffron-dk); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tag {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
  padding: 6px 16px; border-radius: 50px; font-size: 13px;
  cursor: pointer; transition: background var(--transition);
  text-decoration: none;
}
.hero-tag:hover { background: rgba(255,255,255,.25); color: white; }

/* ---- Categories ------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 12px;
  text-align: center; cursor: pointer; text-decoration: none;
  transition: all var(--transition);
}
.category-card:hover {
  border-color: var(--saffron); background: #fff8f4;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.category-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.category-name { font-size: 13px; font-weight: 600; color: var(--ink-md); }
.category-count { font-size: 11px; color: var(--ink-lt); margin-top: 2px; }

/* ---- Section headings ------------------------------------ */
.section { padding: 60px 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--ink); }
.section-link { font-size: 14px; color: var(--saffron); font-weight: 500; }

/* ---- Seller profile / shop header ------------------------ */
.shop-banner {
  height: 180px;
  background: linear-gradient(135deg, #8c3214, #c8900a);
  position: relative;  /* anchor for absolute avatar */
}
.shop-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Avatar sits at the bottom of the banner, half overlapping */
.shop-avatar {
  position: absolute;
  bottom: -40px;         /* half of 80px height hangs below banner */
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  background: var(--cream-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--saffron);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 2;
}
.shop-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
/* Info row sits BELOW the banner — no negative margin needed */
.shop-info {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 24px 16px;
  flex-wrap: wrap;
  position: relative;
}
/* Spacer pushes meta text to the right of where the avatar is */
.shop-avatar-spacer {
  width: 80px;
  height: 48px;  /* top half of avatar is above — leave room for bottom half */
  flex-shrink: 0;
}
.shop-meta { flex: 1; min-width: 0; padding-top: 8px; }
.shop-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.shop-stats { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.shop-stat { font-size: 13px; color: var(--ink-lt); }
.shop-stat strong { color: var(--ink); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e8f5e9; color: var(--green); padding: 3px 10px;
  border-radius: 50px; font-size: 12px; font-weight: 600;
}

/* ---- Review cards ---------------------------------------- */
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border-lt); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-dk); display: flex; align-items: center;
  justify-content: center; font-weight: 600; color: var(--saffron); font-size: 14px;
  flex-shrink: 0;
}
.review-stars { color: var(--gold); font-size: 14px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--ink-lt); }
.review-body { font-size: 14px; color: var(--ink-md); line-height: 1.6; }
.review-reply {
  background: var(--cream); border-left: 3px solid var(--saffron);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 12px; font-size: 13px; color: var(--ink-lt);
}
.review-reply strong { color: var(--saffron); display: block; margin-bottom: 4px; }

/* ---- Listing detail page --------------------------------- */
.listing-photos { display: grid; grid-template-columns: 1fr; gap: 10px; }
.listing-photo-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; }
.listing-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.listing-photo-thumb {
  width: 70px; height: 70px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition);
}
.listing-photo-thumb.active, .listing-photo-thumb:hover { border-color: var(--saffron); }
.listing-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.listing-detail-price {
  font-family: var(--font-serif); font-size: 2rem; color: var(--ink);
  margin: 12px 0 4px;
}
.listing-detail-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--ink); }
.listing-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.listing-meta-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 50px; font-size: 13px; color: var(--ink-md);
}
.payments-banner {
  background: #fff8e1; border: 1px solid #f0b429;
  border-radius: var(--radius-md); padding: 14px 18px;
  font-size: 13px; color: #7a5f00; margin: 16px 0;
  display: flex; align-items: center; gap: 10px;
}

/* ---- Dashboard ------------------------------------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.stat-card .stat-label { font-size: 13px; color: var(--ink-lt); margin-bottom: 6px; }
.stat-card .stat-value { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 8px; }

/* ---- Auth pages ------------------------------------------ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2d1810 0%, #5c2d1a 100%);
  padding: 40px 20px;
}
.auth-card {
  background: white; border-radius: var(--radius-xl);
  padding: 48px 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  font-family: var(--font-serif); font-size: 2.4rem;
  color: var(--saffron); text-align: center; margin-bottom: 8px;
  font-style: italic;
}
.auth-subtitle { text-align: center; color: var(--ink-lt); font-size: 14px; margin-bottom: 32px; }

/* ---- Alerts / Flash -------------------------------------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #e8f5e9; color: #2d6a4f; border: 1px solid #a5d6a7; }
.alert-error   { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.alert-warning { background: #fff8e1; color: #7a5f00; border: 1px solid #ffe082; }

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-lt); padding: 16px 0;
}
.breadcrumb a { color: var(--ink-lt); }
.breadcrumb a:hover { color: var(--saffron); }
.breadcrumb-sep { color: var(--border); }

/* ---- Pagination ------------------------------------------ */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 40px 0; }
.page-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); background: white;
  font-family: inherit; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--ink-md);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.page-btn.active { background: var(--saffron); border-color: var(--saffron); color: white; }

/* ---- Photo upload area ----------------------------------- */
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--cream);
}
.photo-upload-area:hover, .photo-upload-area.drag-over {
  border-color: var(--saffron); background: #fff8f4;
}
.photo-upload-area .upload-icon { font-size: 40px; margin-bottom: 12px; }
.photo-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.photo-preview-item {
  position: relative; width: 90px; height: 90px;
  border-radius: var(--radius-sm); overflow: hidden;
}
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.6); color: white; border: none;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---- Map placeholder ------------------------------------- */
.map-container {
  height: 280px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--cream-dk); position: relative;
}
.map-privacy-note {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: white; padding: 6px 14px;
  border-radius: 50px; font-size: 12px; white-space: nowrap;
}

/* ---- Footer ---------------------------------------------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--font-serif); font-size: 1.8rem;
  color: var(--gold-lt); font-style: italic; display: block; margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nav-search { display: none; }
  .hero { padding: 48px 0; }
  .auth-card { padding: 32px 24px; }
  .shop-banner { height: 140px; }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Utility --------------------------------------------- */
.text-center { text-align: center; }
.text-muted   { color: var(--ink-lt); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   eksec — Extensions: Logo, Tagline, Responsive, Mobile
   Single definitive block — replaces all previous appended patches
   ============================================================ */

/* ── Logo (clean — no pseudo-elements, no display:none tricks) */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--saffron) !important;
  letter-spacing: -0.5px;
  margin-right: 28px;
  flex-shrink: 0;
  text-decoration: none !important;
  display: inline-block;
  line-height: 1;
}
.nav-logo::before { content: none; }
.nav-logo::after  { content: none; }
.nav-logo span    { font-style: italic; color: var(--saffron); }

/* ── Tagline bar below nav ────────────────────────────────── */
.nav-tagline-bar {
  background: var(--white);
  border-top: 1px solid var(--border-lt);
  padding: 3px 0 5px;
}
.nav-tagline-text {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--saffron);
  text-decoration: none;
  opacity: .7;
  transition: opacity var(--transition);
}
.nav-tagline-text:hover { opacity: 1; }

/* ── Mobile hamburger ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 22px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Mobile search bar ────────────────────────────────────── */
.nav-mobile-search {
  display: none;
  padding: 10px 16px;
  border-top: 1px solid var(--border-lt);
  background: var(--white);
}
.nav-mobile-search form {
  display: flex;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.nav-mobile-search input {
  flex: 1; border: none; background: transparent;
  padding: 10px 16px; font-size: 14px; outline: none;
}
.nav-mobile-search button {
  background: var(--saffron); border: none;
  padding: 10px 16px; color: white; cursor: pointer;
}

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-search { display: none !important; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--saffron);
    box-shadow: var(--shadow-md);
    z-index: 200;
    padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 16px; border-radius: var(--radius-md); font-size: 15px; }
  .nav-links .btn-nav { margin: 6px 0 2px; border-radius: var(--radius-md); }
  .nav-mobile-search { display: block; }
  .nav { position: relative; }
  .nav-inner { flex-wrap: nowrap; position: relative; }
}

@media (max-width: 480px) {
  .nav-tagline-bar { display: none; }
  .nav-logo { margin-right: 12px; font-size: 1.4rem; }
}

/* ── Category grid responsive ─────────────────────────────── */
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-icon { font-size: 26px; }
  .category-name { font-size: 11px; }
}

/* ── Listing grid responsive ──────────────────────────────── */
@media (max-width: 360px) {
  .listings-grid { grid-template-columns: 1fr; }
}

/* ── Profile layout responsive ────────────────────────────── */
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr !important; padding: 16px !important; }
  .profile-sidebar { position: static !important; }
}

/* ── Form grids collapse on mobile ───────────────────────────*/
@media (max-width: 600px) {
  .grid-2col, [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .grid-3col, [style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── Footer responsive ────────────────────────────────────── */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Auth pages ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .otp-inputs { gap: 6px; }
  .otp-input  { width: 44px; height: 56px; font-size: 22px; }
}

/* ── Touch devices ────────────────────────────────────────── */
@media (hover: none) {
  .listing-card-save { opacity: 1 !important; }
}

/* ── Skip link (accessibility) ────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--saffron); color: white;
  padding: 8px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ── Honeypot spam field ──────────────────────────────────── */
.hp-field { display: none !important; visibility: hidden !important; }

/* ── Focus rings ──────────────────────────────────────────── */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

/* ── Password strength bar ────────────────────────────────── */
.strength-bar  { height: 4px; border-radius: 2px; background: var(--border); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }
.req-list { font-size: 12px; color: var(--ink-lt); margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.req-item { padding: 2px 8px; border-radius: 50px; background: var(--cream-dk); transition: all .2s; }
.req-item.met { background: #e8f5e9; color: #2d6a4f; }

/* ── Diya icon in logo ───────────────────────────────────── */
.nav-logo-diya {
  font-style: normal;
  font-size: 1.3rem;
  margin-right: 5px;
  vertical-align: middle;
  display: inline-block;
}
.nav-logo-tm {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--ink-lt);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 1px;
  opacity: .75;
}
