.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__slides {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(65, 109, 109, 0.55) 0%,
    rgba(64, 86, 86, 0.3) 40%,
    transparent 70%
  );
}

.hero-slide-content {
  position: absolute;
  bottom: 20%;
  right: 8%;
  left: 8%;
  color: white;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-slide.active .hero-slide-content {
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-slide-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  font-family: var(--font-display);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-slide-content p {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  opacity: 0.8;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 480px;
}

.hero-slide-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--gold-500);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  background: rgba(207, 164, 52, 0.08);
}

.hero-slide-content a:hover {
  background: var(--btn-bg);
  color: var(--btn-color);
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.hero__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--gold-500);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(207, 164, 52, 0.4);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: var(--transition);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-500), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-headline {
  text-align: center;
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  background: var(--bg-white, #fafafa);
  position: relative;
}

.hero-headline::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500, #cfa434), var(--gold-300, #e8c76a));
  border-radius: 2px;
  margin: var(--space-lg) auto 0;
}

.hero-headline__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary, #1a1a2e);
  font-family: var(--font-display);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-headline__desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted, #666);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  position: relative;
}

.section-tag::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  margin-top: 6px;
  border-radius: 2px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.section-link {
  color: var(--gold-600);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--gold-500);
  gap: 10px;
}

.about-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
  font-family: var(--font-display);
}

.about-text {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.about-text strong {
  color: var(--gold-600);
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 12px 28px;
  border: 1px solid var(--border-gold);
  color: var(--gold-600);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.about-btn:hover {
  background: var(--gold-500);
  color: var(--bg-dark);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border: 1px solid var(--border-gold-light);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-300));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.products-section {
  padding: var(--space-3xl) 0;
}

.products-section--alt {
  background: var(--bg-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold-light);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(26, 92, 42, 0.16), 0 4px 12px rgba(207, 164, 52, 0.12);
  border-color: var(--gold-500);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--royal-jade));
}

.product-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 53, 24, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-card:hover .product-card__image::after {
  opacity: 1;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.badge--stock {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(207, 164, 52, 0.4);
}

.badge--nostock {
  background: #dc2626;
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.badge--wage {
  background: rgba(255, 255, 255, 0.85);
  color: var(--gold-600);
  border: 1px solid var(--border-gold);
}

.product-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.product-card__specs {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: var(--space-xs) 0;
  border-top: 1px dashed var(--border-gold-light);
  margin-top: auto;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-600);
  direction: ltr;
  text-align: right;
  background: linear-gradient(90deg, rgba(207,164,52,0.14), rgba(207,164,52,0.05));
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.product-card__price small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-card__btn {
  margin-top: var(--space-xs);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--btn-color);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.product-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.blog-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--bg-white), var(--bg-cream));
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold-light);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.15s; }
.blog-card:nth-child(4) { animation-delay: 0.2s; }
.blog-card:nth-child(5) { animation-delay: 0.25s; }

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(26, 92, 42, 0.14), 0 4px 12px rgba(207, 164, 52, 0.1);
  border-color: var(--royal-jade);
}

.blog-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--royal-jade));
}

.blog-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 53, 24, 0.5), transparent 60%);
  pointer-events: none;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.07);
}

.blog-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.blog-card__meta {
  font-size: 0.68rem;
  color: var(--gold-600);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 600;
}

.blog-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
  color: var(--royal-jade);
}

.blog-card__body::after {
  content: 'خواندن مطلب';
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-top: auto;
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--border-gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--royal-jade) 50%, var(--bg-dark-alt) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: var(--space-sm);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.cta-text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--btn-bg);
  color: var(--btn-color);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(207, 164, 52, 0.2);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-hover-shadow);
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
}

.message-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-inset);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-gold-light);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 1200px) {
  .product-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__scroll {
    display: none;
  }

  .hero-slide-content {
    bottom: 15%;
    right: 5%;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 60vh;
    min-height: 350px;
  }

  .hero-slide-content h2 {
    font-size: 1.6rem;
  }

  .hero-slide-content p {
    font-size: 0.85rem;
  }

  .hero-slide-content a {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .hero__dots {
    bottom: 24px;
  }

  .about-section {
    padding: var(--space-2xl) 0;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .about-title {
    font-size: 1.4rem;
  }

  .products-section,
  .blog-section {
    padding: var(--space-2xl) 0;
  }

  .product-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .product-card__body {
    padding: var(--space-sm);
  }

  .product-card__title {
    font-size: 0.8rem;
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-btn {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .hero-slide-content {
    bottom: 12%;
    right: 5%;
    left: 5%;
  }

  .hero-slide-content h2 {
    font-size: 1.3rem;
  }

  .hero-headline {
    padding: var(--space-xl) var(--space-sm) var(--space-lg);
  }

  .hero-headline__title {
    font-size: 1.3rem;
  }

  .product-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* =============================================
   بخش دسته‌بندی‌های اصلی (home-categories)
   ============================================= */
.home-categories {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-white, #fff), var(--bg-cream, #faf6ee));
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.home-cat {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-cat:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: 0 12px 28px rgba(207, 164, 52, 0.15);
}

.home-cat__media {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--royal-jade, #1a5c2a));
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cat__placeholder {
  color: var(--gold-400);
  font-size: 2rem;
}

.home-cat__body {
  flex: 1;
  min-width: 0;
}

.home-cat__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.home-cat__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cat__more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-600);
}

/* =============================================
   بخش کالکشن‌های اصلی (home-collections)
   ============================================= */
.home-collections {
  padding: var(--space-3xl) 0;
  background: var(--bg-white);
}

.home-collections__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.home-col {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-col:hover {
  transform: translateY(-8px);
  border-color: var(--royal-jade, #1a5c2a);
  box-shadow: 0 18px 40px rgba(26, 92, 42, 0.18);
}

.home-col__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
}

.home-col__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-col:hover .home-col__media img {
  transform: scale(1.07);
}

.home-col__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 53, 24, 0.55), transparent 60%);
}

.home-col__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold-500);
}

.home-col__count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.home-col__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.home-col__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.home-col__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  flex: 1;
}

.home-col__more {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-jade, #1a5c2a);
}

/* ریسپانسیو */
@media (max-width: 767px) {
  .home-categories { padding: var(--space-2xl) 0; }
  .home-collections { padding: var(--space-2xl) 0; }
  .home-categories__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-sm); }
  .home-collections__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-md); }
}

@media (max-width: 480px) {
  .home-categories__grid { grid-template-columns: 1fr; }
  .home-collections__grid { grid-template-columns: 1fr; }
  .home-cat {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
  }
  .home-cat__media {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
  }
  .home-cat__desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* =============================================
   بخش «با سرمایه‌ات خرید کن» (capital-section)
   ============================================= */
.capital-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.capital-section .section-title { color: var(--text-primary); }

.capital-box {
  margin-top: var(--space-xl);
  background: var(--bg-white);
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}

.capital-box__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 var(--space-lg);
}

.capital-box__hint strong { color: var(--gold-600); }

.capital-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 620px;
  margin: 0 auto;
}

.capital-form__input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--bg-subtle, #fff);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
  direction: rtl;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.capital-form__input::placeholder { color: var(--text-muted); }

.capital-form__input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(207, 164, 52, 0.25);
}

.capital-form__input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.capital-form__btn {
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(207, 164, 52, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.capital-form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(207, 164, 52, 0.55);
}

.capital-results {
  margin-top: var(--space-xl);
  animation: fadeInUp 0.5s ease forwards;
}

.capital-results__summary {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.capital-results__summary b { color: var(--gold-600); }

.capital-results__near {
  display: block;
  margin-top: var(--space-sm);
  color: var(--text-muted);
}

.capital-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-md);
}

.cap-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(26, 92, 42, 0.15);
  border-color: var(--gold-500);
}

.cap-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--royal-jade));
}

.cap-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cap-card:hover .cap-card__media img { transform: scale(1.07); }

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--gold-500);
}

.cap-card__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
}

.cap-card__tag--ok {
  background: var(--royal-jade);
  color: #fff;
}

.cap-card__tag--no {
  background: #dc2626;
  color: #fff;
}

.cap-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.cap-card__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
}

.cap-card__specs {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cap-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-600);
  direction: ltr;
  text-align: right;
}

.cap-card__price small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
}

.cap-card__meter {
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  overflow: hidden;
  margin-top: var(--space-xs);
}

.cap-card__meter span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.cap-card__pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cap-card__remain {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--royal-jade);
  font-weight: 700;
}

.cap-card__remain b { color: var(--text-primary); }

.cap-card__short {
  margin-top: auto;
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 700;
}

.capital-empty {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--text-primary);
  padding: var(--space-lg);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease forwards;
  background: var(--bg-white);
}

.capital-empty__icon {
  font-size: 2.6rem;
  margin-bottom: var(--space-sm);
}

.capital-empty b { color: var(--gold-600); }
.capital-empty__hint { color: var(--text-muted); }

@media (max-width: 600px) {
  .capital-section { padding: var(--space-2xl) 0; }
  .capital-form {
    flex-direction: column;
  }
  .capital-form__btn { width: 100%; }
  .capital-results__grid { grid-template-columns: 1fr; }
}
