.brand-pill,
.trust-chip,
.count-pill,
.permission-pill,
.delivery-badge,
.stock-pill,
.language-toggle {
  border-radius: var(--radius-pill);
}

.brand-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 12px;
  border: 1px solid rgba(255, 187, 133, 0.2);
  box-shadow: var(--shadow-float);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 24px;
  height: 24px;
}

.location-chip {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 87, 54, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 26px rgba(31, 41, 36, 0.07);
  text-align: left;
}

.header-brand {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.header-brand__line {
  display: block;
  font-size: clamp(0.95rem, 3.7vw, 1.45rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.header-brand__line--apna {
  color: #0f5b34;
}

.header-brand__line--bazar {
  color: #ff6b00;
}

.location-chip__icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(244, 116, 33, 0.1);
  display: grid;
  place-items: center;
}

.location-chip__icon {
  width: 18px;
  height: 18px;
}

.location-chip__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #145736;
}

.location-chip__pulse {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7cc96b;
  box-shadow: 0 0 0 3px #ffffff;
}

.location-chip__content {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.location-chip__city,
.location-chip__delivery {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chip__city {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: #145736;
}

.location-chip__delivery {
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-soft);
}

.location-chip__delivery-value {
  color: var(--brand-deep);
  font-weight: 700;
}

.location-chip__caret {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(20, 87, 54, 0.06);
  display: grid;
  place-items: center;
}

.location-chip__caret svg {
  width: 16px;
  height: 16px;
  stroke: #145736;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 87, 54, 0.1);
  box-shadow: 0 12px 22px rgba(31, 41, 36, 0.07);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  color: #145736;
}

.icon-button__badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f97352;
  color: white;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(249, 115, 82, 0.22);
}

.icon-button svg,
.search-shell svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  padding: 0 17px;
  color: var(--text-soft);
  background: #ffffff;
  border: 1px solid rgba(20, 87, 54, 0.12);
  box-shadow: 0 16px 30px rgba(31, 41, 36, 0.07);
  transition:
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  min-height: 60px;
}

.search-shell:focus-within {
  border-color: rgba(244, 116, 33, 0.38);
  box-shadow: 0 18px 34px rgba(31, 41, 36, 0.1);
}

.search-shell__icon {
  flex-shrink: 0;
  color: #145736;
}

.search-shell__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  outline: 0;
}

.search-shell__input::placeholder {
  color: #8f918f;
}

.search-shell__back,
.search-shell__clear {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(20, 87, 54, 0.06);
  border: 1px solid rgba(20, 87, 54, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #145736;
}

.search-shell__back svg,
.search-shell__clear svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 187, 133, 0.2);
  box-shadow: var(--shadow-float);
}

.language-toggle--compact {
  align-self: flex-start;
}

.language-toggle__button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  transition: background-color 160ms ease, color 160ms ease;
}

.language-toggle__button.is-active {
  background: rgba(255, 145, 102, 0.14);
  color: var(--brand-deep);
}

.primary-button,
.secondary-button,
.ghost-button,
.action-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.action-button:active,
.nav-item:active,
.location-chip:active,
.icon-button:active,
.category-orb:active,
.product-card:active {
  transform: scale(0.98);
}

.primary-button {
  background: var(--accent-sun);
  color: white;
  box-shadow: 0 12px 22px rgba(249, 115, 82, 0.22);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.primary-button-lg {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

.secondary-button {
  background: rgba(255, 145, 102, 0.12);
  color: var(--brand-deep);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  border: 1px solid rgba(255, 181, 137, 0.22);
}

.count-pill,
.delivery-badge,
.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.count-pill {
  min-height: 28px;
  padding: 0 11px;
  background: rgba(15, 91, 52, 0.08);
  color: #0f5b34;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid rgba(255, 193, 142, 0.2);
}

.empty-card {
  text-align: center;
  padding: 18px 16px;
  display: grid;
  gap: 10px;
}

.empty-card--tall {
  min-height: 280px;
  place-items: center;
  align-content: center;
}

.empty-card__icon {
  font-size: 34px;
}

.empty-card p,
.profile-copy,
.mini-list__item small {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.mini-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.mini-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-list__item span {
  font-size: 20px;
}

.mini-list__item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.profile-language-card .language-toggle {
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + var(--safe-bottom));
  transform: translate(-50%, 24px);
  width: min(calc(100vw - 32px), 320px);
  background: rgba(29, 26, 24, 0.94);
  color: white;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
  text-align: center;
  box-shadow: 0 14px 28px rgba(29, 26, 24, 0.2);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Search Discovery & Category Pill */
.search-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(15, 91, 52, 0.08);
  color: #0f5b34;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-category-pill__close {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 800;
  color: currentColor;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.search-discovery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 4px;
}

.search-discovery__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-discovery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-discovery__header h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0;
}

.search-discovery__clear-all {
  font-size: 12px;
  font-weight: 800;
  color: #ff6b00;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

.recent-searches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 87, 54, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  transition: background 120ms ease, border-color 120ms ease;
}

.recent-search-item:hover {
  background: #fffdfb;
  border-color: rgba(249, 115, 82, 0.12);
}

.recent-search-item__text {
  flex: 1 1 auto;
  text-align: left;
  background: transparent;
  border: none;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.recent-search-item__remove {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.recent-search-item__remove:hover {
  background: rgba(255, 107, 0, 0.12);
  color: #ff6b00;
}

.popular-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-tag-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(20, 87, 54, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.popular-tag-pill:hover {
  background: #ffffff;
  border-color: rgba(249, 115, 82, 0.26);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

/* Category Fallback / Broader Results Warning Badge */
.search-warning-banner {
  padding: 12px 14px;
  background: #fff8f1;
  border: 1px solid rgba(249, 115, 82, 0.16);
  border-radius: 16px;
  color: #8a5a23;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Empty State Upgraded Layout */
.search-empty-recovery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 188, 148, 0.18);
  border-radius: 20px;
  text-align: center;
}

.search-empty-recovery h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}

.search-empty-recovery p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.45;
}

.search-empty-recovery__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.search-empty-recovery__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border-top: 1px dashed rgba(20, 87, 54, 0.08);
  padding-top: 14px;
  margin-top: 4px;
}

.search-empty-recovery__section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.search-recovery-section-title {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
