/* Buyer / guest header (components/new-header.blade.php), like the app's shop bar and drawer. */
.shop-header {
  --sh-primary: #1E88E5;
  --sh-primary-dark: #1565C0;
  --sh-soft: #E3F2FD;
  --sh-border: #E2E8F0;
  --sh-text: #0F172A;
  --sh-muted: #475569;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #FFFFFF;
  border-bottom: 1px solid var(--sh-border);
  box-shadow: 0 2px 12px rgba(21, 101, 192, 0.06);
}
[dir="rtl"] .shop-header,
[dir="rtl"] .shop-header button { font-family: 'Vazirmatn', system-ui, sans-serif; }

.shop-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sh-text);
  flex-shrink: 0;
}
.shop-header__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sh-primary);
  color: #fff;
  font-size: 1.2rem;
}
.shop-header__name { display: flex; flex-direction: column; line-height: 1.15; }
.shop-header__name strong { font-size: 1.2rem; font-weight: 800; color: var(--sh-primary-dark); }
.shop-header__name small { font-size: 0.75rem; color: var(--sh-muted); }

.shop-header__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.shop-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 76px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--sh-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.shop-tab:hover { background: var(--sh-soft); color: var(--sh-primary-dark); }
.shop-tab.is-active { background: var(--sh-soft); color: var(--sh-primary-dark); }
.shop-tab__icon { position: relative; font-size: 1.2rem; }
.shop-tab__badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E53935;
  color: #fff;
  font-size: 0.68rem;
  line-height: 18px;
  text-align: center;
}

.shop-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* N3: «برگشت به دکان من» for a seller or employee on the marketplace. */
.shop-backshop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sh-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.shop-backshop:hover { background: var(--sh-primary-dark); color: #fff; }
.shop-lang {
  display: flex;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  overflow: hidden;
}
.shop-lang a {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sh-muted);
  text-decoration: none;
}
.shop-lang a.is-active { background: var(--sh-primary); color: #fff; }

.shop-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--sh-border);
  background: #fff;
  color: var(--sh-text);
  font-size: 1.1rem;
}
.shop-menu-toggle:hover { background: var(--sh-soft); }

.shop-menu {
  min-width: 290px;
  padding: 8px;
  border: 1px solid var(--sh-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.shop-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--sh-text);
  font-weight: 600;
}
.shop-menu .dropdown-item i { width: 18px; text-align: center; color: var(--sh-primary); }
.shop-menu .dropdown-item:hover,
.shop-menu .dropdown-item.is-active { background: var(--sh-soft); color: var(--sh-primary-dark); }
.shop-menu__logout,
.shop-menu__logout i { color: #DC2626 !important; }
.shop-menu__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
}
.shop-menu__profile strong { display: block; color: var(--sh-text); }
.shop-menu__profile small { color: var(--sh-muted); }
.shop-menu__avatar { font-size: 2rem; color: var(--sh-primary); }
.shop-menu__guest { padding: 10px 12px 14px; }
.shop-menu__guest p { color: var(--sh-muted); font-size: 0.88rem; margin-bottom: 10px; }
.shop-menu__guest-actions { display: flex; gap: 8px; }
.shop-menu__guest-actions a {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.shop-menu__primary { background: var(--sh-primary); color: #fff; }
.shop-menu__primary:hover { background: var(--sh-primary-dark); color: #fff; }
.shop-menu__secondary { border: 1px solid var(--sh-primary); color: var(--sh-primary-dark); }

@media (max-width: 900px) {
  .shop-header__name small { display: none; }
  .shop-tab { min-width: 0; padding: 6px 8px; }
  .shop-tab__label { display: none; }
}
@media (max-width: 560px) {
  .shop-header__inner { flex-wrap: wrap; }
  .shop-header__tabs { order: 3; width: 100%; justify-content: space-around; margin: 0; }
}

/* Guests: the app's "Login required" sheet. */
.shop-login-sheet {
  position: relative;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 24px 22px;
  border: 0;
  border-radius: 20px;
}
.shop-login-sheet .btn-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.shop-login-sheet__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: #E3F2FD; color: #1E88E5; font-size: 1.4rem;
}
.shop-login-sheet h3 { font-size: 1.2rem; font-weight: 800; margin: 0; color: #0F172A; }
.shop-login-sheet p { color: #475569; margin: 0 0 6px; }
.shop-login-sheet .shop-menu__primary { width: 100%; padding: 11px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.shop-login-sheet__secondary { color: #1565C0; font-weight: 700; text-decoration: none; }
[dir="rtl"] .shop-login-sheet { font-family: 'Vazirmatn', system-ui, sans-serif; }

/* Donya logo (the app's assets/images/logo_donya.png), as in the app's header and drawers.
   The old bag icon stays in the markup, hidden. */
.shop-header__logo:has(> .brand-logo) { background: transparent; overflow: hidden; }
.shop-header__logo > .brand-logo { width: 42px; height: 42px; border-radius: 12px; display: block; }
.shop-header__logo:has(> .brand-logo) > i { display: none; }
