/* ═══════════════════════════════════════════════════════════════════
   موقع نبضة — nabda.online
   نظام التصميم الموحد: نعومة فاخرة (Soft Luxe Maternity)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --nb-bg: #FFF7FA;
  --nb-bg-surface: #FFFFFF;
  --nb-bg-soft: #FFF1F6;
  --nb-bg-teal: #E7F7F5;
  --nb-pink: #F43F7E;
  --nb-pink-gradient: linear-gradient(135deg, #F43F7E, #FF6B9A);
  --nb-pink-hot: #E91E63;
  --nb-pink-deep: #C2185B;
  --nb-teal: #00897B;
  --nb-teal-deep: #00695C;
  --nb-ink: #1F1A20;
  --nb-ink-2: #4A434B;
  --nb-ink-3: #6B6470;
  --nb-line: #F0E6EE;
  --nb-line-pink: #F8D7E5;
  --nb-shadow-sm: 0 4px 16px rgba(244, 63, 126, 0.06);
  --nb-shadow-md: 0 10px 30px rgba(244, 63, 126, 0.09);
  --nb-shadow-lg: 0 18px 50px rgba(244, 63, 126, 0.14);
  --nb-radius-sm: 12px;
  --nb-radius-md: 20px;
  --nb-radius-lg: 28px;
  --nb-radius-full: 999px;
  --nb-font: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--nb-font);
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--nb-bg);
  color: var(--nb-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

body {
  margin: 0;
  background-color: var(--nb-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background: #F8BBD0;
  color: #C2185B;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Container ── */
.nb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   الهيدر الزجاجي العائم الموحد (Glass Nav)
   ═══════════════════════════════════════════════════════════════════ */
.nb-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px 0;
  min-height: 96px;
  transition: all 0.3s ease;
}

.nb-nav-glass {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(244, 63, 126, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── الشعار المتحرك الرسمي ── */
.nb-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nbl {
  display: block;
  height: 48px;
  width: auto;
  overflow: visible;
}

@media (max-width: 640px) {
  .nbl { height: 38px; }
}

@keyframes nblMo {
  0% { transform: scale(1); }
  8% { transform: scale(1.028); }
  13% { transform: scale(1.04); }
  20% { transform: scale(1.03); }
  32% { transform: scale(1.006); }
  46% { transform: scale(1.012); }
  60%, 100% { transform: scale(1); }
}

@keyframes nblBa {
  0% { transform: scale(1); }
  9% { transform: scale(1.115); }
  19% { transform: scale(0.985); }
  31% { transform: scale(1.058); }
  43% { transform: scale(0.998); }
  56%, 100% { transform: scale(1); }
}

@keyframes nblSw {
  0%, 100% { transform: translate(-13px, -9px) rotate(-3.6deg); }
  50% { transform: translate(13px, 9px) rotate(3.6deg); }
}

.nblMo { animation: nblMo 1.5s ease-in-out infinite; }
.nblBa { animation: nblBa 0.43s ease-in-out infinite, nblSw 3s ease-in-out infinite; }

@keyframes nbSl {
  0%, 52% { transform: translateX(0); }
  64%, 78% { transform: translateX(-55px); }
  92%, 100% { transform: translateX(0); }
}

@keyframes nbSd {
  0%, 52% { transform: translateX(0); }
  64%, 78% { transform: translateX(62px); }
  92%, 100% { transform: translateX(0); }
}

@keyframes nbHp {
  0%, 50% { transform: translateY(0) scaleX(1) scaleY(1); }
  55% { transform: translateY(6px) scaleX(1.14) scaleY(0.86); }
  66% { transform: translateY(-120px) scaleX(0.9) scaleY(1.12) rotate(-9deg); }
  78% { transform: translateY(-120px) scaleX(0.94) scaleY(1.06) rotate(7deg); }
  90% { transform: translateY(8px) scaleX(1.18) scaleY(0.82); }
  96% { transform: translateY(0) scaleX(0.96) scaleY(1.04); }
  100% { transform: translateY(0) scaleX(1) scaleY(1); }
}

@keyframes nbId {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

.nbd { animation: nbSl 3s cubic-bezier(0.34, 1.4, 0.5, 1) infinite; }
.nbp { animation: nbHp 3s cubic-bezier(0.3, 1.5, 0.5, 1) infinite, nbId 1.5s ease-in-out infinite; }
.nbd.d2 { animation-name: nbSd; }
.nbd.d1 { animation-delay: 0s; } .nbd.d1 .nbp { animation-delay: 0s, 0s; }
.nbd.d2 { animation-delay: -0.6s; } .nbd.d2 .nbp { animation-delay: -0.6s, -0.3s; }
.nbd.d3 { animation-delay: -1.2s; } .nbd.d3 .nbp { animation-delay: -1.2s, -0.6s; }
.nbd.d4 { animation-delay: -1.8s; } .nbd.d4 .nbp { animation-delay: -1.8s, -0.9s; }
.nbd.d5 { animation-delay: -2.4s; } .nbd.d5 .nbp { animation-delay: -2.4s, -1.2s; }

@media (prefers-reduced-motion: reduce) {
  .nblMo, .nblBa, .nbd, .nbp { animation: none !important; }
}

/* ── روابط الهيدر ── */
.nb-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--nb-ink-2);
}

.nb-nav-link {
  position: relative;
  padding: 6px 2px;
  color: var(--nb-ink-2);
  transition: color 0.2s ease;
}

.nb-nav-link:hover {
  color: var(--nb-pink);
}

.nb-nav-link.active {
  color: var(--nb-pink);
  font-weight: 800;
}

.nb-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: var(--nb-pink);
  border-radius: var(--nb-radius-full);
}

.nb-nav-link-articles {
  color: var(--nb-pink-hot);
  font-weight: 800;
}

/* ── أزرار الزائرة والمسجّلة ── */
.nb-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-btn-login {
  background: var(--nb-pink-gradient);
  color: #fff;
  border-radius: var(--nb-radius-full);
  padding: 10px 22px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(244, 63, 126, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nb-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 63, 126, 0.4);
}

.nb-btn-signup {
  background: #fff;
  color: var(--nb-pink);
  border: 1.5px solid var(--nb-line-pink);
  border-radius: var(--nb-radius-full);
  padding: 9px 20px;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nb-btn-signup:hover {
  background: var(--nb-bg-soft);
  border-color: #F8BBD0;
}

/* ── زر السلة مع العداد ── */
.nb-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--nb-line-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nb-cart-btn:hover {
  background: var(--nb-bg-soft);
  transform: translateY(-2px);
}

.nb-cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--nb-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--nb-radius-full);
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── كبسولة الحساب والقائمة المنسدلة ── */
.nb-user-menu {
  position: relative;
}

.nb-user-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--nb-line-pink);
  border-radius: var(--nb-radius-full);
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(244, 63, 126, 0.08);
}

.nb-user-capsule:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(244, 63, 126, 0.14);
}

.nb-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--nb-pink-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.nb-user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--nb-ink);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 270px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--nb-line-pink);
  border-radius: var(--nb-radius-md);
  box-shadow: 0 20px 48px rgba(244, 63, 126, 0.16);
  padding: 12px 8px;
  display: none;
  flex-direction: column;
  z-index: 200;
  animation: nbSlideDown 0.25s ease-out;
}

.nb-user-dropdown.show {
  display: flex;
}

@keyframes nbSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nb-dropdown-header {
  padding: 10px 14px 14px;
  border-bottom: 1px solid var(--nb-line);
  margin-bottom: 6px;
}

.nb-dropdown-badge {
  display: inline-block;
  background: var(--nb-bg-soft);
  color: var(--nb-pink-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--nb-radius-full);
  margin-top: 6px;
}

.nb-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--nb-radius-sm);
  color: var(--nb-ink-2);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.18s ease;
}

.nb-dropdown-item:hover {
  background: var(--nb-bg-soft);
  color: var(--nb-pink);
  transform: translateX(-4px);
}

.nb-dropdown-divider {
  height: 1px;
  background: var(--nb-line);
  margin: 6px 8px;
}

.nb-dropdown-item.danger {
  color: #D32F2F;
}

.nb-dropdown-item.danger:hover {
  background: #FFEBEE;
  color: #C62828;
}

/* ── زر الهامبرغر للقائمة الجانبية (شاشات صغيرة) ── */
.nb-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--nb-line-pink);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  color: var(--nb-ink);
}

/* ═══════════════════════════════════════════════════════════════════
   القائمة الجانبية للهواتف (Mobile Drawer)
   ═══════════════════════════════════════════════════════════════════ */
.nb-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 32, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nb-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.nb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  transform: translateX(105%);
  visibility: hidden;
  background: #FFFFFF;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  overflow-y: auto;
  padding: 24px 20px;
}

.nb-drawer.show {
  transform: none;
  visibility: visible;
}

.nb-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nb-line);
}

.nb-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nb-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--nb-ink-2);
}

.nb-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.nb-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--nb-radius-sm);
  font-weight: 700;
  font-size: 15px;
  color: var(--nb-ink-2);
}

.nb-drawer-link.active, .nb-drawer-link:hover {
  background: var(--nb-bg-soft);
  color: var(--nb-pink);
}

/* ═══════════════════════════════════════════════════════════════════
   شريط التبويبات السفلي الثابت للهواتف (<900px)
   ═══════════════════════════════════════════════════════════════════ */
.nb-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(240, 230, 238, 0.8);
  height: 64px;
  z-index: 90;
  padding: 0 12px;
  box-shadow: 0 -4px 20px rgba(244, 63, 126, 0.08);
}

.nb-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.nb-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--nb-ink-3);
  text-decoration: none;
  flex: 1;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.nb-bottom-tab .tab-icon {
  font-size: 20px;
  line-height: 1;
}

.nb-bottom-tab.active {
  color: var(--nb-pink);
}

.nb-bottom-tab.active .tab-icon {
  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════════
   درج السلة الجانبي (Mini Cart Drawer)
   ═══════════════════════════════════════════════════════════════════ */
.nb-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  transform: translateX(-105%);
  visibility: hidden;
  background: #FFFFFF;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.nb-cart-drawer.show {
  transform: none;
  visibility: visible;
}

.nb-cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--nb-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nb-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nb-cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nb-line);
}

.nb-cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--nb-radius-sm);
  object-fit: cover;
  background: var(--nb-bg-soft);
  flex-shrink: 0;
}

.nb-cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nb-cart-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--nb-ink);
}

.nb-cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--nb-pink);
}

.nb-cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nb-bg-soft);
  border-radius: var(--nb-radius-full);
  padding: 2px 8px;
  width: fit-content;
}

.nb-cart-qty-btn {
  font-size: 16px;
  font-weight: 800;
  color: var(--nb-ink-2);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--nb-line);
  background: var(--nb-bg);
}

.nb-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   الفوتر الموحد (Footer)
   ═══════════════════════════════════════════════════════════════════ */
.nb-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--nb-line);
  margin-top: auto;
  padding: 60px 0 24px;
}

.nb-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.nb-footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--nb-ink);
  margin-bottom: 20px;
  position: relative;
}

.nb-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--nb-pink);
  border-radius: var(--nb-radius-full);
}

.nb-footer-desc {
  font-size: 13.5px;
  color: var(--nb-ink-3);
  line-height: 1.8;
  margin-bottom: 20px;
}

.nb-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nb-footer-links a {
  font-size: 13.5px;
  color: var(--nb-ink-3);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nb-footer-links a:hover {
  color: var(--nb-pink);
  transform: translateX(-4px);
}

.nb-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.nb-play-btn:hover {
  transform: translateY(-2px);
}

.nb-social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.nb-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nb-bg-soft);
  color: var(--nb-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.nb-social-btn:hover {
  background: var(--nb-pink);
  color: #fff;
  transform: translateY(-2px);
}

.nb-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--nb-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--nb-ink-3);
}

.nb-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.nb-footer-bottom-links a:hover {
  color: var(--nb-pink);
}

/* ═══════════════════════════════════════════════════════════════════
   المكونات المشتركة: بطاقات، أزرار، حقول، skeletons
   ═══════════════════════════════════════════════════════════════════ */
.nb-card {
  background: var(--nb-bg-surface);
  border-radius: var(--nb-radius-lg);
  box-shadow: var(--nb-shadow-md);
  padding: 24px;
  transition: all 0.25s ease;
  border: 1px solid rgba(240, 230, 238, 0.6);
}

.nb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nb-shadow-lg);
}

.nb-btn-primary {
  background: var(--nb-pink-gradient);
  color: #fff;
  border-radius: var(--nb-radius-full);
  padding: 12px 28px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(244, 63, 126, 0.28);
  transition: all 0.2s ease;
}

.nb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 63, 126, 0.38);
}

.nb-btn-secondary {
  background: var(--nb-teal);
  color: #fff;
  border-radius: var(--nb-radius-full);
  padding: 12px 28px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nb-btn-secondary:hover {
  background: var(--nb-teal-deep);
  transform: translateY(-2px);
}

.nb-input {
  width: 100%;
  background: #FFF8FA;
  border: 1.5px solid var(--nb-line-pink);
  border-radius: var(--nb-radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--nb-ink);
  outline: none;
  transition: all 0.2s ease;
}

.nb-input:focus {
  background: #FFFFFF;
  border-color: var(--nb-pink);
  box-shadow: 0 0 0 3px rgba(244, 63, 126, 0.12);
}

.nb-skeleton {
  background: linear-gradient(90deg, #F0E6EE 25%, #FAEFF5 50%, #F0E6EE 75%);
  background-size: 200% 100%;
  animation: nbSkeleton 1.5s infinite;
  border-radius: var(--nb-radius-sm);
}

@keyframes nbSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast Notifications ── */
.nb-toast-container {
  position: fixed;
  bottom: 80px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nb-toast {
  background: rgba(31, 26, 32, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--nb-radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: nbSlideIn 0.3s ease;
}

@keyframes nbSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   استجابة الشاشات (Responsive)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  body {
    padding-bottom: 70px; /* مساحة للشريط السفلي */
  }

  .nb-nav-links {
    display: none;
  }

  .nb-btn-signup {
    display: none;
  }

  .nb-mobile-toggle {
    display: flex;
  }

  .nb-bottom-bar {
    display: block;
  }

  .nb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nb-header-wrap {
    padding: 10px 14px 0;
    min-height: 80px;
  }

  .nb-nav-glass {
    padding: 8px 14px;
    border-radius: 18px;
  }

  .nb-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nb-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .nb-footer-bottom-links {
    justify-content: center;
  }
}

/* ═══════════ مكوّنات مشتركة: كاروسالات المقالات والمنتجات ═══════════ */
.nb-art-grid, .nb-prod, .nb-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: #F8BBD0 transparent;
}
.nb-prod { grid-auto-columns: minmax(190px, 210px); }
.nb-art-grid > *, .nb-prod > *, .nb-hscroll > * { scroll-snap-align: start; }
.nb-art-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius-md); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; min-height: 100%;
}
.nb-art-card:hover { transform: translateY(-4px); box-shadow: var(--nb-shadow-md); border-color: var(--nb-line-pink); }
.nb-art-img-wrap { position: relative; height: 140px; overflow: hidden; background: var(--nb-bg-soft); }
.nb-art-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nb-art-card:hover .nb-art-img { transform: scale(1.06); }
.nb-art-float-cat {
  position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--nb-pink-deep);
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; max-width: 85%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-art-body { padding: 14px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; }
.nb-art-title { font-size: 14.5px; font-weight: 800; line-height: 1.55; color: var(--nb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-art-desc { font-size: 12.5px; color: var(--nb-ink-3); line-height: 1.7; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-art-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.nb-art-time { color: var(--nb-ink-3); }
.nb-art-cta { color: var(--nb-pink); font-weight: 800; }

.nb-prod-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius-md); overflow: hidden; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nb-prod-card:hover { transform: translateY(-4px); box-shadow: var(--nb-shadow-md); border-color: var(--nb-pink); }
.nb-prod-img-wrap { position: relative; aspect-ratio: 1 / 1; background: #FFF7FA; overflow: hidden; }
.nb-prod-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nb-prod-card:hover .nb-prod-img { transform: scale(1.06); }
.nb-prod-off { position: absolute; top: 10px; right: 10px; background: var(--nb-pink); color: #fff; font-size: 11.5px; font-weight: 900; padding: 3px 9px; border-radius: 999px; }
.nb-prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; flex: 1; }
.nb-prod-cat { font-size: 11px; color: var(--nb-pink); font-weight: 800; }
.nb-prod-name { font-size: 13.5px; font-weight: 800; color: var(--nb-ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.nb-prod-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nb-prod-price { font-size: 15px; font-weight: 900; color: var(--nb-pink-hot); }
.nb-prod-old { font-size: 12px; color: #9b8f95; text-decoration: line-through; }

/* نافذة منبثقة عامّة */
.nb-modal-backdrop { position: fixed; inset: 0; background: rgba(31,26,32,.45); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.nb-modal-backdrop.open, .nb-modal-backdrop.show { display: flex; }
.nb-modal-card { background: #fff; border-radius: var(--nb-radius-lg); padding: 24px; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--nb-shadow-lg); }
.nb-modal-close { border: none; background: var(--nb-bg-soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--nb-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .nb-art-card, .nb-prod-card, .nb-art-img, .nb-prod-img { transition: none !important; }
}

/* عناصر الشبكة لا تتمدّد بسبب الكاروسالات الأفقية */
[class*="-layout"] > *, [class*="-grid"] > *, main > * { min-width: 0; }
/* أبناء body (عمود flex) لا يتجاوزون عرض الشاشة بسبب محتوى أفقي قابل للتمرير */
body > * { min-width: 0; max-width: 100%; }
body > main { width: 100%; }
@media (max-width: 600px) {
  .nb-nav-glass { gap: 8px; padding: 8px 10px; }
  .nb-nav-actions { gap: 6px; }
  .nbl { height: 32px; }
  .nb-btn-login { padding: 8px 14px !important; font-size: 13px !important; white-space: nowrap; }
  .nb-cart-btn, .nb-mobile-toggle { width: 38px !important; height: 38px !important; flex: 0 0 38px; }
  .nb-user-name { display: none; }
  .nb-user-capsule { padding: 4px !important; }
}
@media (max-width: 360px) { .nb-btn-login { padding: 7px 10px !important; font-size: 12px !important; } }

/* ═══════════ مساحات الإعلانات ═══════════ */
.nb-ad { position: relative; display: flex; align-items: center; justify-content: center; margin: 26px 0; border-radius: 16px; background: repeating-linear-gradient(135deg, #FFF7FA, #FFF7FA 12px, #FFF0F5 12px, #FFF0F5 24px); border: 1px dashed #F3C6D7; overflow: hidden; }
.nb-ad.live { background: transparent; border: none; display: block; }
.nb-ad-label { position: absolute; top: 6px; right: 10px; font-size: 10.5px; font-weight: 800; color: #B9A6B0; letter-spacing: .5px; }
.nb-ad:not(.live)::after { content: 'مساحة إعلانية'; color: #CDB8C2; font-weight: 800; font-size: 13px; }
.nb-ad-sidebar, .nb-ad-sidebarSticky { margin: 0; }
@media (max-width: 980px) { .nb-ad-sidebarSticky { display: none; } }
