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

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

:root {
  --brand-dark:  #2d5a24;
  --brand:       #4a7c3f;
  --brand-mid:   #7ab56d;
  --brand-light: #e8f2e6;
  --gold:        #c9920e;
  --gold-light:  #fdf3dc;
  --gold-border: #e6c14a;
  --text:        #1a1a1a;
  --muted:       #6b7280;
  --bg:          #ffffff;
  --surface:     #f9fafb;
  --border:      rgba(0,0,0,0.11);
  --border-h:    rgba(0,0,0,0.22);
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 14px rgba(0,0,0,0.09);
}

body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--surface); min-height: 100vh; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  background: var(--brand-light);
  border-bottom: 1px solid rgba(45,90,36,0.14);
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero--slim { padding: 1.25rem 2rem; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-sub { font-size: 13px; color: var(--brand); }

.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hero-badge {
  background: var(--brand-dark);
  color: var(--brand-light);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-badge--outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
}

.hero-badge--outline:hover { background: var(--brand-dark); color: var(--brand-light); }

.hero-badge--cart {
  background: var(--gold);
  position: relative;
}

.hero-badge--cart:hover { background: #a87a0c; }

.hero-cart-count {
  background: white;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--brand-dark); }

/* ─── SEARCH ROW ────────────────────────────────────────── */
.search-row {
  padding: 1.1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap { flex: 1; min-width: 180px; position: relative; }

.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.search-wrap input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input:focus { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(74,124,63,0.1); }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab:hover { background: var(--surface); color: var(--text); border-color: var(--border-h); }
.tab.active { background: var(--brand-dark); color: var(--brand-light); border-color: var(--brand-dark); }

/* ─── MAIN LAYOUT ───────────────────────────────────────── */
.main {
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}

.sidebar-cat-pill:hover { background: var(--surface); }

.sidebar-cat-pill.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 500;
}

.price-range { display: flex; flex-direction: column; gap: 8px; }
.price-range input[type=range] { width: 100%; accent-color: var(--brand); cursor: pointer; }
.price-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
#priceVal { font-weight: 500; color: var(--brand-dark); }

.check-list { display: flex; flex-direction: column; gap: 9px; }

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

.check-item input[type=checkbox] { accent-color: var(--brand-dark); width: 15px; height: 15px; cursor: pointer; }

.badge-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  padding: 1px 7px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.promo-card {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}

.promo-card h3 { font-size: 13px; font-weight: 500; color: #7a5500; margin-bottom: 5px; }
.promo-card p  { font-size: 12px; color: #a07020; line-height: 1.6; }
.promo-card strong { color: #7a5500; background: rgba(201,146,14,0.15); padding: 1px 5px; border-radius: 3px; }

/* ─── PRODUCTS HEADER ───────────────────────────────────── */
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.products-count  { font-size: 13px; color: var(--muted); }

.sort-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

/* ─── PRODUCTS GRID ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  align-content: start;
}

/* ─── PRODUCT CARD ──────────────────────────────────────── */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover { border-color: var(--brand-mid); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-img-wrap { height: 128px; position: relative; overflow: hidden; background: var(--surface); }

.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.organic-tag {
  position: absolute; top: 7px; left: 7px;
  font-size: 10px; font-weight: 500;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 2px 8px; border-radius: 9px; border: 1px solid var(--brand-mid);
}

.bulk-tag {
  position: absolute; top: 7px; right: 7px;
  font-size: 10px; font-weight: 500;
  background: var(--gold-light); color: #7a5500;
  padding: 2px 8px; border-radius: 9px; border: 1px solid var(--gold-border);
}

.product-info { padding: 10px 11px 12px; }

.product-info h4 {
  font-size: 13px; font-weight: 500; margin-bottom: 2px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-origin { font-size: 11px; color: var(--muted); margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-footer { display: flex; align-items: center; justify-content: space-between; }

.price      { font-size: 15px; font-weight: 500; color: var(--brand-dark); }
.price-unit { font-size: 11px; color: var(--muted); font-weight: 400; }

.add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-dark); border: none;
  color: var(--brand-light); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  font-family: monospace; line-height: 1;
}

.add-btn:hover  { background: var(--brand); }
.add-btn:active { transform: scale(0.88); }

/* Inline qty controls on product card */
.qty-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-light);
  border-radius: 20px;
  padding: 2px 4px;
  border: 1px solid var(--brand-mid);
}

.qty-btn-sm {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-dark); border: none;
  color: white; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: monospace; line-height: 1;
  transition: background 0.12s, transform 0.1s;
}

.qty-btn-sm:hover  { background: var(--brand); }
.qty-btn-sm:active { transform: scale(0.88); }

.qty-val-sm {
  font-size: 13px; font-weight: 500; min-width: 18px;
  text-align: center; color: var(--brand-dark);
}

/* ─── EMPTY STATE ───────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; color: var(--muted);
}

.empty-state svg { margin-bottom: 10px; opacity: 0.4; }
.empty-state p   { font-size: 14px; }

/* ─── STICKY CART BAR ───────────────────────────────────── */
.cart-bar {
  position: sticky; bottom: 0;
  background: var(--brand-dark);
  color: var(--brand-light);
  padding: 1rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  z-index: 100;
  border-top: 2px solid rgba(122,181,109,0.3);
  transition: background 0.15s;
}

.cart-bar.visible { display: flex; }
.cart-bar:hover   { background: var(--brand); }

@keyframes pulse-bar { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.03); } }
.cart-bar.pulse { animation: pulse-bar 0.35s ease; }

.cart-left  { display: flex; align-items: center; gap: 12px; }
.cart-label { font-size: 14px; font-weight: 500; }

.cart-count {
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 12px; font-weight: 500;
  min-width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

.cart-total { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }

/* ─── CART PAGE ─────────────────────────────────────────── */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  align-items: start;
}

/* Cart item row */
.cart-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name   { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.cart-item-origin { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cart-item-tags   { display: flex; gap: 5px; flex-wrap: wrap; }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.qty-controls {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 6px;
}

.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-dark); border: none;
  color: white; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: monospace; line-height: 1;
  transition: background 0.12s, transform 0.1s;
}

.qty-btn:hover  { background: var(--brand); }
.qty-btn:active { transform: scale(0.88); }

.qty-val { font-size: 14px; font-weight: 500; min-width: 22px; text-align: center; }

.cart-item-price { font-size: 12px; color: var(--muted); }
.cart-item-total { font-size: 15px; font-weight: 500; color: var(--brand-dark); }

.remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 2px;
  transition: color 0.15s;
}

.remove-btn:hover { color: #c0392b; }

/* Empty cart state */
.cart-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border-h);
  border-radius: var(--radius-lg);
}

.cart-empty svg  { margin-bottom: 16px; opacity: 0.35; }
.cart-empty h3   { font-size: 18px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.cart-empty p    { font-size: 13px; margin-bottom: 20px; }

/* ─── ORDER SUMMARY CARD ────────────────────────────────── */
.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1.5rem;
}

.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.summary-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.summary-line--item  { color: var(--muted); }
.summary-line--sub   { font-size: 14px; padding: 3px 0; }
.summary-line--total { font-size: 17px; font-weight: 600; color: var(--brand-dark); padding: 4px 0; }

.discount-label { color: #1a7c3f; }
.discount-val   { color: #1a7c3f; font-weight: 500; }

.summary-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* Promo */
.promo-row { display: flex; gap: 8px; }

.promo-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-input:focus { border-color: var(--brand-mid); }

.promo-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--brand-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.promo-btn:hover { background: var(--brand); }

.promo-msg { font-size: 12px; margin-top: 6px; min-height: 16px; }

/* Checkout button */
.btn-checkout {
  width: 100%;
  padding: 13px 20px;
  background: var(--brand-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  margin-top: 1rem;
}

.btn-checkout:hover  { background: var(--brand); }
.btn-checkout:active { transform: scale(0.98); }

.secure-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Primary button (empty cart CTA) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--brand-dark);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--brand); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .cart-page { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; padding: 1rem; }
  .sidebar { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .sidebar-card { flex: 1; min-width: 140px; }
  .hero, .search-row, .cart-page { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-item { flex-wrap: wrap; }
  .cart-item-controls { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ─── CART LOADING STATE ────────────────────────────────── */
.cart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--muted);
  gap: 14px;
  font-size: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--brand-light);
  border-top-color: var(--brand-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── QTY-CONTROL (your original class name, kept for compat) ── */
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-light);
  border-radius: 20px;
  padding: 2px 4px;
  border: 1px solid var(--brand-mid);
}

.qty-control button {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-dark); border: none;
  color: white; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: monospace; line-height: 1;
  transition: background 0.12s;
}

.qty-control button:hover { background: var(--brand); }

.qty-control span {
  font-size: 13px; font-weight: 500;
  min-width: 18px; text-align: center;
  color: var(--brand-dark);
}

/* ─── USER MENU DROPDOWN ────────────────────────────────── */
.user-menu {
  position: relative;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--brand-dark);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: var(--brand-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.user-btn:hover { background: var(--brand); }

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-mid);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  opacity: 0.75;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.user-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  transform-origin: top right;
}

.user-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown header (name + email) */
.dropdown-header {
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.dropdown-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Menu items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.dropdown-item:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.dropdown-item svg { flex-shrink: 0; opacity: 0.7; }
.dropdown-item:hover svg { opacity: 1; }

.dropdown-item--logout {
  color: #c0392b;
}

.dropdown-item--logout:hover {
  background: #fff0f0;
  color: #c0392b;
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);

    display:none;

    align-items:center;
    justify-content:center;

    z-index:9999;
}

.modal-overlay.show{
    display:flex;
}

.modal{

    width:min(500px,95vw);

    background:#fff;

    border-radius:16px;

    padding:24px;

    box-shadow:0 20px 50px rgba(0,0,0,.25);

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.close-btn{

    border:none;

    background:none;

    font-size:22px;

    cursor:pointer;

}

.modal-body{

    display:grid;

    gap:14px;

}

.modal-footer{

    margin-top:24px;

    display:flex;

    justify-content:flex-end;

    gap:12px;

}

.cancel-btn {
  margin-top: 1.25rem;
  padding: 12px 28px;
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.cancel-btn:hover {
  background: #e5e7eb;
  border-color: var(--brand-mid);
}

.cancel-btn:disabled {
  background: #f8f9fa;
  color: var(--muted);
  cursor: not-allowed;
}

/* ─── SITE FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--brand-dark); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 12px;
  color: var(--muted);
}

.footer-gstin {
  font-size: 12px;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-links a:hover { color: var(--brand-dark); }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem 1.25rem; }
  .footer-bottom { padding: 1rem 1.25rem; }
}

/* ─── LEGAL / POLICY PAGES ──────────────────────────────── */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
}

.legal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-updated {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-card h2:first-of-type { margin-top: 0; }

.legal-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.legal-card ul, .legal-card ol {
  margin: 0.75rem 0 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-card li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.legal-card strong { color: var(--brand-dark); }

.legal-card a {
  color: var(--brand);
  text-decoration: underline;
}

.legal-toc {
  background: var(--brand-light);
  border: 1px solid var(--brand-mid);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.legal-toc h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.legal-toc ul {
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-toc a {
  font-size: 13px;
  color: var(--brand-dark);
  text-decoration: none;
}

.legal-toc a:hover { text-decoration: underline; }

.business-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
}

.business-info-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.business-info-box dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.business-info-box dd {
  font-size: 13.5px;
  color: var(--text);
}

.legal-nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.legal-nav-pill {
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}

.legal-nav-pill:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand-mid);
}

.legal-nav-pill.active {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

.gstin-placeholder {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #7a5500;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--gold-light) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.about-hero-icon {
  width: 68px;
  height: 68px;
  background: var(--bg);
  border: 2px solid var(--brand-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-sm);
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.about-hero p {
  font-size: 15px;
  color: var(--brand);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

/* Story section */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-story-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.about-story-text p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-story-visual {
  background: var(--brand-light);
  border: 1px solid var(--brand-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.about-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.about-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* Values section */
.about-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.about-value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-value-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.about-value-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.about-value-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Categories showcase */
.about-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 3rem;
}

.about-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
}

/* CTA */
.about-cta {
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: white;
}

.about-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-cta p {
  font-size: 14px;
  color: var(--brand-light);
  margin-bottom: 1.5rem;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: white;
  color: var(--brand-dark);
  text-decoration: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}

.about-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
  .about-story    { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: repeat(2, 1fr); }
  .about-values   { grid-template-columns: 1fr; }
  .about-hero h1  { font-size: 26px; }
  .about-page     { padding: 1.5rem 1.25rem 2rem; }
}
