/* ╔══════════════════════════════════════════╗
   ║     BAZAAR — Layout & Navigation  ║
   ╚══════════════════════════════════════════╝ */

/* ── Layout ──────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.dark .navbar {
  background: rgba(15, 23, 42, 0.95);
  /* لون داكن يتلاءم مع الثيم الليلي */
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }

  20% {
    transform: translateX(200%) skewX(-20deg);
  }

  100% {
    transform: translateX(200%) skewX(-20deg);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 2px 4px;
}

.nav-logo::after,
.nav-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: shimmerSweep 3s infinite ease-in-out;
  pointer-events: none;
}

.nav-brand {
  position: relative;
  overflow: hidden;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.nav-logo-text em {
  color: var(--orange);
  font-style: normal;
}

/* Nav search */
.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: var(--tr);
  max-width: 560px;
}

.nav-search:focus-within {
  background: var(--card);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.nav-search-icon {
  padding: 0 12px;
  color: var(--text-3);
  font-size: 14px;
  pointer-events: none;
  flex-shrink: 0;
}

.nav-search:focus-within .nav-search-icon {
  color: var(--text-3);
}

.nav-search-inp {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  padding: 10px 0;
}

.nav-search-inp::placeholder {
  color: var(--text-3);
}

.nav-search:focus-within .nav-search-inp {
  color: var(--text);
}

.nav-search:focus-within .nav-search-inp::placeholder {
  color: var(--text-3);
}

.nav-search-btn {
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: var(--orange-dk);
}

/* Utilities */
.show-mob-only {
  display: none !important;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  border: none;
  background: transparent;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--blue);
}

.nav-link-cta {
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-xs);
  padding: 9px 18px;
}

.nav-link-cta:hover {
  background: var(--orange-dk);
  box-shadow: 0 4px 12px rgba(249, 115, 22, .4);
  color: #fff;
}

/* User menu */
.nav-notify-wrap {
  position: relative;
}

.nav-notify-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--tr);
}

.nav-notify-btn:hover {
  background: var(--border);
  color: var(--text);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  z-index: 999;
  overflow: hidden;
}

.notif-head {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.notif-list {
  max-height: 320px;
  overflow: auto;
}

.notif-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.notif-item.unread {
  background: var(--blue-lt);
}

.notif-item.broadcast-notif {
  background: linear-gradient(135deg, rgba(255, 126, 0, 0.08) 0%, rgba(255, 180, 0, 0.12) 100%);
  border-right: 4px solid var(--orange);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.dark .notif-item.broadcast-notif {
  background: linear-gradient(135deg, rgba(255, 126, 0, 0.15) 0%, rgba(255, 180, 0, 0.08) 100%);
  border-right: 4px solid var(--orange);
}

.broadcast-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: .2px;
}

.notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.notif-msg {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.notif-reason {
  margin-top: 6px;
  font-size: 12px;
  color: var(--warning);
  font-weight: 700;
}

.notif-time {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
}

.notif-action {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-lt);
  cursor: pointer;
}

.notif-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.nav-user {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  max-width: 100%;
  overflow: hidden;
}

.nav-user-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.nav-user-btn:hover {
  background: var(--border);
  color: var(--text);
}

.nav-user-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.nav-user-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-lg);
  min-width: 180px;
  z-index: 999;
  overflow: hidden;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
}

.nav-drop-item:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-drop-item i {
  width: 16px;
  text-align: center;
  color: var(--text-3);
}

.nav-drop-item.danger {
  color: var(--danger);
}

.nav-drop-item.danger i {
  color: var(--danger);
}

.nav-drop-divider {
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--card);
  /* فاتحة في النهاري، ستصبح داكنة لوحدها بالليلي */
  border-top: 1px solid var(--border);
  color: var(--text-2);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand h3 em {
  color: var(--orange);
  font-style: normal;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
  transition: color .2s;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--blue);
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.floating-wa-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.floating-wa-btn:active {
  transform: translateY(-2px) scale(0.95);
}

/* Pulse Animation */
.floating-wa-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: #25D366;
  animation: pulse-wa 2s infinite ease-out;
}

@keyframes pulse-wa {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: var(--tr);
}

.soc-btn:hover {
  background: var(--orange);
  color: #fff;
}

.footer-btm {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ═══════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════ */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }

  /* hide-mob مُعرَّف بالفعل في media query الـ 820px أعلاه */

  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  body.dark .bottom-nav {
    background: rgba(2, 6, 23, 0.95);
    border-top-color: rgba(255, 255, 255, 0.05);
  }

  .bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    cursor: pointer;
    transition: var(--tr);
    background: transparent;
    border: none;
    text-decoration: none;
  }

  .bnav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: var(--tr);
  }

  .bnav-item.active,
  .bnav-item:hover {
    color: var(--blue);
  }

  .bnav-add {
    position: relative;
    top: -20px;
  }

  .bnav-add-btn {
    width: 56px;
    height: 56px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    border: 5px solid var(--bg);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bnav-add:hover .bnav-add-btn {
    transform: scale(1.08);
  }
}

/* ═══════════════════════════════════════════
   MOBILE USER DROPDOWN (BOTTOM SHEET)
═══════════════════════════════════════════ */
.mobile-dropdown {
  position: fixed;
  bottom: 80px;
  left: 10px;
  right: 10px;
  background: var(--card);
  border-radius: 20px 20px 12px 12px;
  padding: 16px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  pointer-events: none;
}

.mobile-dropdown.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.dark .mobile-dropdown {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

.mobile-dropdown .nav-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  text-decoration: none;
}

.mobile-dropdown .nav-drop-item:hover,
.mobile-dropdown .nav-drop-item:active {
  background: var(--bg);
}

.mobile-dropdown .nav-drop-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: var(--text-2);
}

.mobile-dropdown .nav-drop-item.danger {
  color: var(--danger);
}

.mobile-dropdown .nav-drop-item.danger i {
  color: var(--danger);
}

.mobile-dropdown .nav-drop-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}