/* ═══════════════════════════════════════════════════
   نی‌نی دال – Custom Styles
   Matryoshka Doll Academy & Shop
   RTL / Persian / Responsive
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --nd-primary: #C2185B;
  --nd-primary-light: #E91E63;
  --nd-primary-dark: #880E4F;
  --nd-secondary: #F9A825;
  --nd-secondary-light: #FDD835;
  --nd-accent: #00897B;
  --nd-bg: #FFF8F0;
  --nd-bg-warm: #FFF3E0;
  --nd-bg-card: #FFFFFF;
  --nd-text: #2D2D2D;
  --nd-text-muted: #757575;
  --nd-text-light: #9E9E9E;
  --nd-border: #E0E0E0;
  --nd-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --nd-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --nd-radius: 16px;
  --nd-radius-sm: 10px;
  --nd-radius-full: 9999px;
  --nd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
  background-color: var(--nd-bg);
  color: var(--nd-text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  color: var(--nd-text);
  line-height: 1.4;
}

a {
  color: var(--nd-primary);
  text-decoration: none;
  transition: var(--nd-transition);
}
a:hover { color: var(--nd-primary-dark); }

/* ── تصاویر هیچ‌وقت نباید از کانتینرشون بیرون بزنن (ریسپانسیو) ── */
img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}

img[width], img[height] { height: auto; }

/* ── Container ── */
.nd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
.nd-navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nd-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--nd-transition);
}

.nd-navbar.scrolled {
  box-shadow: var(--nd-shadow);
}

.nd-navbar .nd-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nd-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nd-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nd-primary);
}

.nd-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-nav-links a {
  padding: 8px 16px;
  border-radius: var(--nd-radius-sm);
  color: var(--nd-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--nd-transition);
}

.nd-nav-links a:hover,
.nd-nav-links a.active {
  background: var(--nd-primary);
  color: white;
}

.nd-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--nd-radius-full);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--nd-transition);
  text-decoration: none;
}

.nd-btn-primary {
  background: var(--nd-primary);
  color: white;
}
.nd-btn-primary:hover {
  background: var(--nd-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(194,24,91,0.3);
}

.nd-btn-outline {
  background: transparent;
  color: var(--nd-primary);
  border: 2px solid var(--nd-primary);
}
.nd-btn-outline:hover {
  background: var(--nd-primary);
  color: white;
}

.nd-btn-secondary {
  background: var(--nd-secondary);
  color: var(--nd-text);
}
.nd-btn-secondary:hover {
  background: var(--nd-secondary-light);
  transform: translateY(-2px);
}

.nd-btn-accent {
  background: var(--nd-accent);
  color: white;
}
.nd-btn-accent:hover {
  background: #00695C;
  color: white;
  transform: translateY(-2px);
}

.nd-btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.nd-btn-lg {
  padding: 14px 36px;
  font-size: 1.1rem;
}

/* ── Navbar profile chip (avatar + name) ── */
.nd-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 5px;
  padding-inline-start: 6px;
  padding-inline-end: 14px;
  background: var(--nd-bg-card);
  border: 1.5px solid var(--nd-border);
  border-radius: var(--nd-radius-full);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  color: var(--nd-text);
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 230px;
  text-decoration: none;
  transition: var(--nd-transition);
}

.nd-user-chip:hover {
  background: var(--nd-bg-warm);
  border-color: var(--nd-primary);
  color: var(--nd-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(194,24,91,0.18);
}

.nd-user-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nd-primary);
  background: var(--nd-bg-warm);
}

.nd-user-info {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.nd-user-name {
  display: block;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
}

.nd-user-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--nd-text-muted);
  white-space: nowrap;
}

/* Smaller chip inside the mobile menu */
.nd-mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--nd-bg-warm);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
}

.nd-mobile-user .nd-user-avatar {
  width: 48px;
  height: 48px;
}

.nd-mobile-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nd-mobile-user-name {
  font-weight: 700;
  color: var(--nd-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nd-mobile-user-sub {
  font-size: 0.78rem;
  color: var(--nd-text-muted);
}

/* Cart icon */
.nd-cart-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
  font-size: 1.1rem;
  transition: var(--nd-transition);
}
.nd-cart-icon:hover {
  background: var(--nd-primary);
  color: white;
}

/* Mobile menu toggle */
.nd-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--nd-text);
  cursor: pointer;
  padding: 8px;
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.nd-hero {
  background: linear-gradient(135deg, var(--nd-primary-dark) 0%, var(--nd-primary) 50%, #AD1457 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.nd-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: nd-pulse 8s ease-in-out infinite;
}

@keyframes nd-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.nd-hero .nd-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.nd-hero-content {
  flex: 1;
}

.nd-hero-content h1 {
  color: white;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
}

.nd-hero-content h1 span {
  color: var(--nd-secondary);
}

.nd-hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.9;
}

.nd-hero-image {
  flex: 0 0 400px;
  text-align: center;
}

.nd-hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* ══════════════════════════════════════
   SECTION STYLES
   ══════════════════════════════════════ */
.nd-section {
  padding: 80px 0;
}

.nd-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.nd-section-title .nd-badge {
  display: inline-block;
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
  padding: 6px 18px;
  border-radius: var(--nd-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.nd-section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.nd-section-title p {
  color: var(--nd-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.nd-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  transition: var(--nd-transition);
  border: 1px solid var(--nd-border);
}

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

.nd-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.nd-card-body {
  padding: 20px;
}

.nd-card-body h4,
.nd-card-body h5 {
  margin-bottom: 8px;
}

.nd-card-body p {
  color: var(--nd-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.nd-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--nd-border);
  margin-top: 16px;
}

.nd-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--nd-primary);
}

.nd-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nd-text-muted);
}

/* ══════════════════════════════════════
   CATEGORY PILLS
   ══════════════════════════════════════ */
.nd-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.nd-category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--nd-transition);
  text-decoration: none;
  color: var(--nd-text);
  min-width: 120px;
}

.nd-category-pill:hover,
.nd-category-pill.active {
  border-color: var(--nd-primary);
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
}

.nd-category-pill img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.nd-category-pill span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════════ */
.nd-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.nd-product-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  transition: var(--nd-transition);
  border: 1px solid var(--nd-border);
}

.nd-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nd-shadow-lg);
}

.nd-product-card .nd-product-img-wrap {
  position: relative;
  overflow: hidden;
}

.nd-product-card .nd-product-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.nd-product-card:hover .nd-product-img {
  transform: scale(1.08);
}

.nd-product-card .nd-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--nd-secondary);
  color: var(--nd-text);
  padding: 4px 12px;
  border-radius: var(--nd-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.nd-product-card .nd-product-body {
  padding: 16px 20px 20px;
}

.nd-product-card .nd-product-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.nd-product-card .nd-product-desc {
  color: var(--nd-text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-product-card .nd-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nd-rating {
  color: var(--nd-secondary);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════
   COURSE CARDS
   ══════════════════════════════════════ */
.nd-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.nd-course-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  transition: var(--nd-transition);
  border: 1px solid var(--nd-border);
}

.nd-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nd-shadow-lg);
}

.nd-course-card .nd-course-img-wrap {
  position: relative;
  overflow: hidden;
}

.nd-course-card .nd-course-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.nd-course-card .nd-course-category {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--nd-primary);
  color: white;
  padding: 4px 14px;
  border-radius: var(--nd-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.nd-course-card .nd-course-body {
  padding: 20px;
}

.nd-course-card .nd-course-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.nd-course-card .nd-course-desc {
  color: var(--nd-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-course-card .nd-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══════════════════════════════════════
   WORKSHOP CARDS
   ══════════════════════════════════════ */
.nd-workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.nd-workshop-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  transition: var(--nd-transition);
  border: 1px solid var(--nd-border);
}

.nd-workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nd-shadow-lg);
}

.nd-workshop-card .nd-workshop-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.nd-workshop-card .nd-workshop-body {
  padding: 20px;
}

.nd-workshop-card .nd-workshop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nd-workshop-card .nd-tag {
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
  padding: 3px 10px;
  border-radius: var(--nd-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ══════════════════════════════════════
   FEATURED / ABOUT SECTION
   ══════════════════════════════════════ */
.nd-about {
  background: var(--nd-bg-warm);
}

.nd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nd-about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nd-about-images img {
  width: 100%;
  border-radius: var(--nd-radius);
  object-fit: cover;
}

.nd-about-images img:first-child {
  grid-row: span 2;
  height: 100%;
}

.nd-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.nd-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.nd-feature-list li .nd-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nd-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ══════════════════════════════════════
   STEPS / PROCESS
   ══════════════════════════════════════ */
.nd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.nd-step {
  text-align: center;
  padding: 30px 20px;
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
}

.nd-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nd-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.nd-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.nd-step p {
  color: var(--nd-text-muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.nd-footer {
  background: #1A1A2E;
  color: #B0B0C0;
  padding: 60px 0 0;
}

.nd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.nd-footer h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.nd-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.nd-footer-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nd-footer-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.nd-footer p {
  line-height: 1.9;
  font-size: 0.9rem;
}

.nd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nd-footer-links li {
  margin-bottom: 10px;
}

.nd-footer-links a {
  color: #B0B0C0;
  font-size: 0.9rem;
  transition: var(--nd-transition);
}

.nd-footer-links a:hover {
  color: var(--nd-secondary);
  padding-right: 6px;
}

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

.nd-social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--nd-transition);
}

.nd-social-links a:hover {
  background: var(--nd-primary);
  color: white;
  transform: translateY(-3px);
}

/* روی پس‌زمینهٔ تیره (فوتر) نسخهٔ شیشه‌ای سفید نمایش داده می‌شود */
.nd-footer .nd-social-links a {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nd-footer .nd-social-links a:hover {
  background: var(--nd-primary);
  color: white;
}

.nd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════ */
.nd-breadcrumb {
  background: linear-gradient(135deg, var(--nd-primary-dark), var(--nd-primary));
  color: white;
  padding: 50px 0;
  text-align: center;
}

.nd-breadcrumb h2 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.nd-breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.nd-breadcrumb a:hover {
  color: white;
}

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */
.nd-form-group {
  margin-bottom: 20px;
}

.nd-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.nd-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--nd-border);
  border-radius: var(--nd-radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  transition: var(--nd-transition);
  background: white;
}

.nd-form-control:focus {
  outline: none;
  border-color: var(--nd-primary);
  box-shadow: 0 0 0 3px rgba(194,24,91,0.1);
}

textarea.nd-form-control {
  resize: vertical;
  min-height: 120px;
}

/* ══════════════════════════════════════
   TABS
   ══════════════════════════════════════ */
.nd-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--nd-border);
  margin-bottom: 30px;
}

.nd-tab {
  padding: 12px 24px;
  border: none;
  background: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nd-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--nd-transition);
}

.nd-tab:hover {
  color: var(--nd-primary);
}

.nd-tab.active {
  color: var(--nd-primary);
  border-bottom-color: var(--nd-primary);
}

/* ══════════════════════════════════════
   ALERTS / MESSAGES
   ══════════════════════════════════════ */
.nd-alert {
  padding: 14px 20px;
  border-radius: var(--nd-radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nd-alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.nd-alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.nd-alert-info {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #90CAF9;
}

/* ══════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════ */
.nd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.nd-page-link {
  padding: 10px 16px;
  border-radius: var(--nd-radius-sm);
  border: 1px solid var(--nd-border);
  background: white;
  color: var(--nd-text);
  font-weight: 600;
  transition: var(--nd-transition);
  text-decoration: none;
}

.nd-page-link:hover,
.nd-page-link.active {
  background: var(--nd-primary);
  color: white;
  border-color: var(--nd-primary);
}

/* ══════════════════════════════════════
   SIDEBAR FILTER
   ══════════════════════════════════════ */
.nd-filter-sidebar {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  padding: 24px;
  box-shadow: var(--nd-shadow);
  position: sticky;
  top: 90px;
}

.nd-filter-sidebar h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nd-border);
}

.nd-filter-btn {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--nd-radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.9rem;
  color: var(--nd-text-muted);
  cursor: pointer;
  transition: var(--nd-transition);
  margin-bottom: 4px;
}

.nd-filter-btn:hover {
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
}

.nd-filter-btn.active {
  background: var(--nd-primary);
  color: white;
}

/* ══════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════ */
.nd-comment {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--nd-bg);
  border-radius: var(--nd-radius);
  margin-bottom: 16px;
}

.nd-comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nd-comment-body {
  flex: 1;
}

.nd-comment-author {
  font-weight: 700;
  margin-bottom: 4px;
}

.nd-comment-text {
  color: var(--nd-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.nd-empty {
  text-align: center;
  padding: 60px 20px;
}

.nd-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.nd-empty h4 {
  color: var(--nd-text-muted);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════ */
.nd-auth {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.nd-auth-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.nd-auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.nd-auth-card .nd-auth-subtitle {
  text-align: center;
  color: var(--nd-text-muted);
  margin-bottom: 30px;
}

/* ══════════════════════════════════════
   PROFILE
   ══════════════════════════════════════ */
.nd-profile-header {
  background: linear-gradient(135deg, var(--nd-primary-dark), var(--nd-primary));
  color: white;
  padding: 40px 0;
  border-radius: 0 0 30px 30px;
}

.nd-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
}

/* ══════════════════════════════════════
   POST CARDS (Explore)
   ══════════════════════════════════════ */
.nd-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.nd-post-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  transition: var(--nd-transition);
}

.nd-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nd-shadow-lg);
}

.nd-post-card .nd-post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nd-post-card .nd-post-body {
  padding: 16px;
}

.nd-post-card .nd-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.nd-post-card .nd-post-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nd-post-card .nd-post-likes {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nd-primary);
  font-weight: 600;
}

/* ══════════════════════════════════════
   PRODUCT DETAIL
   ══════════════════════════════════════ */
.nd-product-detail-img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--nd-radius);
  object-fit: contain;
  max-height: 500px;
}

.nd-product-detail-thumb {
  width: 90px;
  max-width: 90px;
  height: 100px;
  border-radius: var(--nd-radius-sm);
  object-fit: contain;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--nd-transition);
}

.nd-product-detail-thumb:hover,
.nd-product-detail-thumb.active {
  border-color: var(--nd-primary);
}

.nd-feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--nd-bg);
  border-radius: var(--nd-radius-sm);
  margin-bottom: 10px;
}

.nd-feature-box i {
  color: var(--nd-accent);
  font-size: 1.1rem;
}

/* ══════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════ */
.nd-contact-hero {
  background: var(--nd-bg-warm);
  margin: 0;
  padding: 0;
  width: 100%;
}

.nd-contact-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.nd-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* بدون این، متن‌های بلند (ایمیل/آدرس) ستون گرید را از عرض بیرون می‌زنند */
.nd-contact-grid > * {
  min-width: 0;
}

.nd-contact-text {
  color: var(--nd-text-muted);
  line-height: 2;
  margin-bottom: 30px;
}

.nd-contact-value {
  color: var(--nd-text-muted);
  overflow-wrap: anywhere;
}

.nd-contact-link {
  color: var(--nd-text-muted);
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
}

.nd-contact-link:hover {
  color: var(--nd-primary);
}

.nd-contact-card {
  background: var(--nd-bg-card);
  padding: 30px;
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  min-width: 0;
}

.nd-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 991px) {
  .nd-nav-links { display: none; }
  .nd-menu-toggle { display: block; }

  .nd-user-chip { max-width: 180px; }
  .nd-user-name { max-width: 90px; }

  /* صفحهٔ تماس: دو ستون به یک ستون تبدیل می‌شود */
  .nd-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .nd-hero .nd-container {
    flex-direction: column;
    text-align: center;
  }
  
  .nd-hero-content h1 { font-size: 2rem; }
  .nd-hero-image { flex: none; }
  .nd-hero-image img { max-width: 280px; }
  
  .nd-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .nd-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .nd-course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* Only the avatar stays in the navbar; the full name lives in the menu */
  .nd-user-chip { padding-inline-end: 6px; }
  .nd-user-info { display: none; }

  .nd-hero { padding: 50px 0; }
  .nd-hero-content h1 { font-size: 1.6rem; }
  .nd-section { padding: 50px 0; }
  .nd-section-title h2 { font-size: 1.5rem; }
  
  .nd-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .nd-product-card .nd-product-img {
    max-height: 180px;
  }
  
  .nd-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .nd-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .nd-category-pill {
    min-width: 100px;
    padding: 14px 16px;
  }
  
  .nd-auth-card { padding: 24px; }
  .nd-breadcrumb { padding: 30px 0; }
  .nd-breadcrumb h2 { font-size: 1.4rem; }  .nd-steps {
    grid-template-columns: 1fr;
  }

  .nd-workshop-grid {
    grid-template-columns: 1fr;
  }

  .nd-post-grid {
    grid-template-columns: 1fr;
  }

  /* صفحهٔ تماس */
  .nd-contact-form-grid { grid-template-columns: 1fr; gap: 0; }
  .nd-contact-card { padding: 22px; }
  .nd-contact-text { margin-bottom: 22px; }
  .nd-feature-list li .nd-feature-icon { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Products filter - stack on mobile */
  [style*="grid-template-columns:260px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .nd-filter-sidebar {
    position: static;
  }

  /* Auth card */
  .nd-auth-card {
    margin: 20px;
  }

  /* تصاویر بزرگ در موبایل جمع‌وجورتر */
  .nd-product-card .nd-product-img,
  .nd-course-card .nd-course-img {
    max-height: 180px;
  }

  .nd-ws-hero img,
  .nd-product-detail-img {
    max-height: 260px;
  }

  .nd-post-card .nd-post-img {
    height: 160px;
  }

  .nd-workshop-card .nd-workshop-img,
  .nd-ws-list-img,
  .nd-ws-side-img {
    max-height: 180px;
  }

  .nd-product-detail-thumb {
    height: 70px;
  }
}

/* Mobile Nav Overlay */
.nd-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nd-mobile-nav.show {
  display: block;
  opacity: 1;
}

.nd-mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nd-mobile-nav.show .nd-mobile-nav-content {
  transform: translateX(0);
}

.nd-mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.nd-mobile-nav-close button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--nd-text);
  cursor: pointer;
}

.nd-mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nd-mobile-nav-links a {
  display: block;
  padding: 14px 16px;
  color: var(--nd-text);
  font-weight: 600;
  border-radius: var(--nd-radius-sm);
  transition: var(--nd-transition);
}

.nd-mobile-nav-links a:hover {
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--nd-bg); }
::-webkit-scrollbar-thumb {
  background: var(--nd-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--nd-text-muted); }

/* ══════════════════════════════════════
   WORKSHOP DETAIL / LIST (new)
   ══════════════════════════════════════ */
.nd-ws-card-media {
  position: relative;
  display: block;
}

.nd-ws-card-media .nd-ws-list-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

/* نشان نوع برگزاری روی عکس کارت */
.nd-ws-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--nd-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(4px);
}

.nd-ws-type-online {
  background: rgba(0, 137, 123, 0.9);
}

.nd-ws-type-inperson {
  background: rgba(194, 24, 91, 0.9);
}

/* نشان رایگان */
.nd-ws-free-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: var(--nd-radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--nd-accent);
  color: white;
}

/* نشان فوریت: کم‌ماندن تا برگزاری */
.nd-ws-urgent-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: var(--nd-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--nd-secondary);
  color: var(--nd-primary-dark);
}

/* پوشش «برگزار شد» روی کارت‌های تمام‌شده */
.nd-ws-ended-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: var(--nd-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

/* متادیتای کارت در لیست */
.nd-ws-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--nd-text-muted);
  font-size: 0.85rem;
  margin: 10px 0;
}

.nd-ws-list-meta i {
  color: var(--nd-secondary);
  margin-left: 4px;
}

/* فوتر کارت: قیمت + دکمه جزئیات */
.nd-ws-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--nd-border);
  margin-top: 12px;
  padding-top: 12px;
}

/* چیپ‌های فیلتر برچسب */
.nd-ws-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-ws-chip {
  padding: 7px 18px;
  border-radius: var(--nd-radius-full);
  border: 1px solid var(--nd-border);
  background: var(--nd-bg-card);
  color: var(--nd-text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--nd-transition);
}

.nd-ws-chip:hover {
  border-color: var(--nd-primary);
  color: var(--nd-primary);
}

.nd-ws-chip.active {
  background: var(--nd-primary);
  border-color: var(--nd-primary);
  color: white;
}

/* شمارنده کنار عنوان تب */
.nd-tab-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: var(--nd-radius-full);
  background: var(--nd-bg-warm);
  color: var(--nd-primary);
  font-size: 0.75rem;
  text-align: center;
}

/* ═══════════ صفحه جزئیات ═══════════ */
.nd-workshop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.nd-workshop-detail-main {
  min-width: 0;
}

/* تصویر اصلی + نشان‌های روی آن */
.nd-ws-hero {
  position: relative;
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
  margin-bottom: 20px;
  background: var(--nd-bg-warm);
}

.nd-ws-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}

/* نگهدارنده‌ی جایگزین برای عکس خراب */
.nd-img-broken {
  display: none;
}

.nd-ws-hero.nd-img-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.nd-ws-hero.nd-img-broken::before {
  content: '\f03e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--nd-border);
}

/* کارت یکپارچه اطلاعات کلیدی */
.nd-ws-meta-card {
  display: flex;
  flex-wrap: wrap;
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  margin-bottom: 28px;
  gap: 4px 0;
}

.nd-ws-chip-info {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.nd-ws-chip-info i {
  font-size: 1.15rem;
  color: var(--nd-secondary);
  flex-shrink: 0;
}

.nd-ws-chip-info small {
  display: block;
  color: var(--nd-text-muted);
  font-size: 0.72rem;
}

.nd-ws-chip-info strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* توضیحات داخل کارت */
.nd-ws-desc-card {
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  padding: 24px 28px;
  line-height: 2.1;
  color: var(--nd-text);
  font-size: 0.98rem;
}

.nd-ws-desc {
  line-height: 2.1;
  color: var(--nd-text);
  font-size: 0.98rem;
}

/* لیست پیش‌نیازها */
.nd-ws-prereq-list {
  display: grid;
  gap: 10px;
}

.nd-ws-prereq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
}

.nd-ws-prereq-item > i {
  color: var(--nd-accent);
  font-size: 1.05rem;
}

.nd-ws-prereq-item small {
  color: var(--nd-text-muted);
}

.nd-ws-provided {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: var(--nd-radius-full);
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ═══════════ ورکشاپ‌های مرتبط ═══════════ */
.nd-ws-related-section {
  margin-top: 44px;
}

.nd-ws-related-section h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.nd-ws-related-section h3 i {
  color: var(--nd-primary);
  margin-left: 6px;
}

.nd-ws-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-ws-related-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-sm);
  padding: 10px 14px;
  transition: var(--nd-transition);
}

.nd-ws-related-item:hover {
  border-color: var(--nd-primary);
  box-shadow: var(--nd-shadow);
  transform: translateX(-4px);
}

.nd-ws-related-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--nd-radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.nd-ws-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nd-bg-warm);
  color: var(--nd-text-light);
  font-size: 1.1rem;
}

.nd-ws-related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-ws-related-body strong {
  color: var(--nd-text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-ws-related-body small {
  color: var(--nd-text-muted);
  font-size: 0.8rem;
}

.nd-ws-related-body small i {
  color: var(--nd-secondary);
}

.nd-ws-related-arrow {
  color: var(--nd-text-light);
  transition: var(--nd-transition);
  flex-shrink: 0;
}

.nd-ws-related-item:hover .nd-ws-related-arrow {
  color: var(--nd-primary);
}

/* گالری رسانه ورکشاپ */
.nd-ws-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.nd-ws-media-item {
  margin: 0;
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  overflow: hidden;
  box-shadow: var(--nd-shadow);
}

.nd-ws-media-item img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

/* جایگزین عکس خراب در گالری */
.nd-ws-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--nd-bg-warm);
  color: var(--nd-text-light);
  font-size: 2rem;
}

.nd-ws-media-item figcaption {
  padding: 10px 14px 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.nd-ws-media-desc {
  padding: 4px 14px 14px;
  margin: 0;
  color: var(--nd-text-muted);
  font-size: 0.85rem;
}

/* سایدبار چسبان جزئیات */
.nd-ws-side-card {
  background: var(--nd-bg-card);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
}

.nd-ws-side-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--nd-radius-sm);
  margin-bottom: 16px;
}

.nd-ws-side-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--nd-border);
}

.nd-ws-side-price > span:first-child {
  color: var(--nd-text-muted);
  font-size: 0.9rem;
}

.nd-ws-side-info {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  font-size: 0.88rem;
}

.nd-ws-side-info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--nd-border);
}

.nd-ws-side-info li:last-child {
  border-bottom: none;
}

.nd-ws-side-info span i {
  color: var(--nd-secondary);
  margin-left: 6px;
}

.nd-ws-side-info strong {
  font-size: 0.85rem;
  max-width: 60%;
  text-align: left;
}

/* یادداشت فوریت زیر دکمه ثبت‌نام */
.nd-ws-urgency-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--nd-text-muted);
  margin: 10px 0 0;
}

@media (max-width: 992px) {
  .nd-workshop-detail {
    grid-template-columns: 1fr;
  }

  /* در موبایل کارت قیمت بالای صفحه باشه */
  .nd-workshop-detail-side {
    order: -1;
  }

  .nd-ws-side-card {
    position: static;
  }

  .nd-ws-side-img {
    display: none; /* تصویر اصلی بالای کارت هست؛ تکرار لازم نیست */
  }

  .nd-ws-chip-info {
    flex: 1 1 45%;
  }
}

/* ═══════════════════════════════════════════════════
   DETAIL PAGE GRIDS (product / course)
   ═══════════════════════════════════════════════════ */
.nd-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nd-detail-grid-wide {
  grid-template-columns: 2fr 1fr;
}

.nd-detail-grid > * {
  min-width: 0;
}

/* سایدبار چسبان کارت خرید دوره */
.nd-detail-side-card {
  background: var(--nd-bg-card);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  padding: 24px;
  position: sticky;
  top: 90px;
}

@media (max-width: 991px) {
  .nd-detail-grid,
  .nd-detail-grid-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* در موبایل کارت قیمت بالای صفحه باشه (مثل ورکشاپ) */
  .nd-detail-grid-wide > div:last-child {
    order: -1;
  }

  .nd-detail-side-card {
    position: static;
  }
}

/* ── سبد خرید: ستون خلاصه قیمت ── */
.nd-cart-grid {
  grid-template-columns: 1fr 380px;
}

@media (max-width: 991px) {
  .nd-cart-grid {
    grid-template-columns: 1fr;
  }
}
