/* Promotional banner, toast, RTL helpers, scrollbar */
.toast-container {
  position: fixed;
  z-index: 1080;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.toast {
  background: var(--glass-warm, hsla(35, 25%, 92%, 0.95));
  backdrop-filter: var(--blur, blur(20px));
  border: 1px solid var(--border, hsl(35, 15%, 82%));
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

[dir="rtl"] .navbar-nav {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .ms-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .cart-link .badge-cart {
  right: auto;
  left: -8px;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-warm-alt, hsl(35, 16%, 85%)); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary, #008c69), var(--secondary, #523db8));
  border-radius: 4px;
}

.promo-banner {
  position: sticky;
  top: 0;
  z-index: 1029;
  background: linear-gradient(135deg, hsla(160, 84%, 28%, 0.96), hsla(250, 50%, 44%, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px hsla(160, 84%, 30%, 0.25);
  border-bottom: 1px solid hsla(35, 10%, 80%, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: promoShimmer 4s infinite;
  pointer-events: none;
}

@keyframes promoShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.promo-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.promo-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.promo-icon {
  display: inline-block;
  font-size: 1.5rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  animation: deliveryMove 3s ease-in-out infinite;
}

@keyframes deliveryMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.promo-text-static {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.promo-divider {
  color: hsla(35, 16%, 84%, 0.4);
  font-weight: 300;
  margin: 0 10px;
  font-size: 1.3rem;
}

.promo-cities {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  font-weight: 700;
  position: relative;
  height: 32px;
}

.promo-city {
  position: absolute;
  inset-inline: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  pointer-events: none;
  font-weight: 800;
}

.promo-city.active {
  opacity: 1;
  animation: cityFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: auto;
}

@keyframes cityFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.city-flag {
  font-size: 1.5rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  animation: flagFloat 3s ease-in-out infinite;
}

@keyframes flagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.city-name {
  color: hsl(35, 25%, 92%);
  font-weight: 800;
  letter-spacing: 0.8px;
}

.promo-close {
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 60, 60, 0.95);
  border: 2px solid hsla(35, 18%, 86%, 0.5);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(255, 60, 60, 0.5);
}

.promo-close:hover {
  background: rgba(255, 30, 30, 1);
  transform: translateY(-50%) rotate(90deg) scale(1.2);
}

@media (max-width: 768px) {
  .promo-banner { padding: 12px 55px 12px 12px; }
  .promo-content { font-size: 0.95rem; gap: 8px; }
  .promo-cities { min-width: 130px; height: 28px; }
  .promo-city { font-size: 0.95rem; gap: 6px; }
  .city-flag { font-size: 1.3rem; }
  .promo-icon { font-size: 1.3rem; }
  .promo-close { inset-inline-end: 12px; width: 30px; height: 30px; font-size: 16px; }
}

@media (max-width: 480px) {
  .promo-banner { padding: 10px 50px 10px 10px; }
  .promo-content { font-size: 0.85rem; gap: 6px; }
  .promo-cities { min-width: 110px; height: 26px; }
  .promo-city { font-size: 0.85rem; }
  .city-flag { font-size: 1.15rem; }
  .promo-icon { font-size: 1.15rem; }
  .promo-close { width: 28px; height: 28px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner::before,
  .promo-icon,
  .city-flag {
    animation: none;
  }
}
