:root {
  --green: #1a6b5c;
  --gold:  #f0a500;
  --dark:  #1a2332;
}

body { font-family: 'Segoe UI', Arial, sans-serif; }

.gb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  font-weight: 800;
  font-size: 12px;
  vertical-align: middle;
}

.btn-green { background: var(--green); color: #fff; border: none; }
.btn-green:hover { background: #145549; color: #fff; }
.btn-gold  { background: var(--gold);  color: #fff; border: none; }
.btn-gold:hover  { background: #d9940a; color: #fff; }

/* Search dropdown */
.srch-drop {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; z-index: 999; max-height: 300px;
  overflow-y: auto; border: 1px solid #ddd; display: none;
}
.srch-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; text-decoration: none; color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.srch-item:hover { background: #f8f8f8; }
.srch-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #0f4a3e 100%);
  color: #fff; padding: 60px 0;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; }
.hero h1 span { color: var(--gold); }

/* Category pills */
.cat-pill {
  padding: 7px 18px; border-radius: 50px;
  border: 1.5px solid #dee2e6; background: #fff;
  cursor: pointer; font-size: 13px; transition: .2s;
  text-decoration: none; color: #333; white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--green); color: #fff; border-color: var(--green);
}

/* Product card */
.p-card {
  border: 1px solid #e9ecef; border-radius: 10px;
  transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.p-card img { height: 190px; object-fit: cover; width: 100%; }

/* OTP inputs */
.otp-box { display: flex; gap: 8px; justify-content: center; }
.otp-box input {
  width: 50px; height: 54px; text-align: center;
  font-size: 22px; font-weight: 700;
  border: 2px solid #dee2e6; border-radius: 8px;
}
.otp-box input:focus { border-color: var(--green); outline: none; }

/* Cart */
.cart-img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

/* User sidebar */
.u-sidebar .nav-link { color: #555; padding: 9px 14px; border-radius: 7px; }
.u-sidebar .nav-link:hover { background: #f0faf6; color: var(--green); }
.u-sidebar .nav-link.active { background: var(--green); color: #fff; }

/* Admin sidebar */
.a-sidebar {
  width: 230px; min-height: 100vh;
  background: var(--dark); position: fixed; top: 0; left: 0; z-index: 100;
  transition: transform .3s;
}
.a-sidebar .nav-link {
  color: rgba(255,255,255,.65); padding: 10px 20px;
  display: flex; align-items: center; gap: 9px;
  border-left: 3px solid transparent;
}
.a-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.a-sidebar .nav-link.active { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,.1); }
.a-main { margin-left: 230px; }
.a-topbar {
  background: #fff; padding: 12px 24px;
  border-bottom: 1px solid #dee2e6;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 99;
}

/* Status badges */
.badge.st-pending    { background: #fef3c7; color: #92400e; }
.badge.st-confirmed  { background: #dbeafe; color: #1e40af; }
.badge.st-processing { background: #ede9fe; color: #5b21b6; }
.badge.st-shipped    { background: #e0f2fe; color: #0c4a6e; }
.badge.st-delivered  { background: #d1fae5; color: #065f46; }
.badge.st-cancelled  { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 991px) {
  .a-sidebar { transform: translateX(-100%); }
  .a-sidebar.open { transform: translateX(0); }
  .a-main { margin-left: 0; }
  .hero h1 { font-size: 1.8rem; }
}

/* ── Improved Search Dropdown ── */
.srch-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; z-index: 1050; max-height: 420px;
  overflow-y: auto; border: 1px solid #e0e0e0;
  border-radius: 12px !important; display: none;
}
.srch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; text-decoration: none; color: #333;
  border-bottom: 1px solid #f5f5f5; transition: background .12s;
}
.srch-item:hover, .srch-item.hovered {
  background: #f0faf6; color: #1a6b5c;
}
.srch-item img {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0; border: 1px solid #eee;
}
.srch-info { flex: 1; min-width: 0; }
.srch-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-meta { display: flex; gap: 6px; margin-top: 2px; }
.srch-cat  { font-size: 11px; color: #888; background: #f0f0f0; border-radius: 4px; padding: 1px 6px; }
.srch-disc { font-size: 11px; color: #fff; background: #ef4444; border-radius: 4px; padding: 1px 6px; }
.srch-price { font-size: 13px; font-weight: 700; color: #1a6b5c; margin-top: 2px; }
.srch-mrp   { font-size: 11px; font-weight: 400; color: #999; margin-left: 4px; }
.srch-all {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px; font-size: 13px; color: #1a6b5c;
  text-decoration: none; border-top: 1px solid #eee;
  font-weight: 600; background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}
.srch-all:hover { background: #e8f5f0; }
.srch-empty {
  padding: 14px; text-align: center; color: #888; font-size: 13px;
}

/* Extra utility */
.btn-xs { padding: .2rem .45rem; font-size: .75rem; border-radius: .3rem; }
.min-width-0 { min-width: 0; }
