/* ==========================================================================
   DESIGN SYSTEM & TOKENS (OKLCH Ramp, Spacing & Typography)
   ========================================================================== */
:root {
  /* Neutral Tokens in OKLCH */
  --c-bg: oklch(97% 0.005 270);
  --c-surface: oklch(100% 0 0);
  --c-surface-subtle: oklch(98.5% 0.003 270);
  --c-border: oklch(88% 0.01 270);
  --c-border-light: oklch(93% 0.006 270);
  --c-muted: oklch(60% 0.01 270);
  --c-text: oklch(18% 0.01 270);
  --c-text-light: oklch(98% 0.005 270);

  /* Accent Tokens (Forest Green) */
  --c-accent: oklch(52% 0.18 145);
  --c-accent-hover: oklch(47% 0.17 145);
  --c-accent-light: oklch(92% 0.07 145);
  --c-accent-subtle: oklch(96% 0.03 145);
  --c-accent-dark: oklch(38% 0.15 145);
  --c-accent-deep: oklch(28% 0.12 145);

  /* Semantic Tokens */
  --c-danger: oklch(55% 0.18 25);

  /* 8px Grid Spacing Tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);

  /* Layout */
  --container-max: 1200px;
  --transition-base: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

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

img, svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--c-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
}

/* Logo Area */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-surface);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-text);
}

.logo-text span {
  color: var(--c-accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background-color: var(--c-surface-subtle);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.btn-search:hover {
  background-color: var(--c-accent-light);
  color: var(--c-accent-dark);
}

@media (min-width: 1024px) {
  .btn-search {
    display: flex;
  }
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-md);
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-auth:hover {
  background-color: var(--c-accent);
  color: var(--c-surface);
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background-color: var(--c-surface-subtle);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

/* Navigation Desktop (Dynamic WP Menu) */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex !important;
    align-items: center;
  }

  .nav-desktop ul,
  .nav-desktop .nav-list,
  .nav-desktop .menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-desktop ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-desktop ul li a {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
  }

  .nav-desktop ul li a:hover,
  .nav-desktop ul li.current-menu-item a {
    color: var(--c-accent);
    font-weight: 700;
  }
}

/* Navigation Mobile (Dynamic WP Menu) */
.nav-mobile ul,
.nav-mobile .mobile-nav-list,
.nav-mobile .menu {
  list-style: none !important;
  padding: 1rem 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile ul li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 8px;
}

.nav-mobile ul li a:hover,
.nav-mobile ul li.current-menu-item a {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-accent);
}

@media (min-width: 1024px) {
  .nav-mobile,
  #nav-mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-mobile:not(.is-open) {
    display: none;
  }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  min-height: 480px;
  background: linear-gradient(135deg, var(--c-accent-dark) 0%, var(--c-accent-deep) 100%);
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  top: -150px;
  left: -150px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: var(--space-3);
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background-color: #ffffff;
  color: var(--c-accent-dark);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-base);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  background-color: var(--c-accent-light);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-md);
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCT TABS SECTION
   ========================================================================== */
.products-section {
  padding: var(--space-16) 0;
  background-color: var(--c-bg);
}

.tabs-wrapper {
  margin-bottom: var(--space-8);
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.tab-buttons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  width: 100%;
}

@media (min-width: 768px) {
  .tab-buttons-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text);
  background-color: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
}

.tab-btn:hover {
  background-color: var(--c-surface-subtle);
  color: var(--c-accent-dark);
}

.tab-btn.is-active {
  background-color: var(--c-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(32, 114, 60, 0.25);
}

.tab-btn.is-active svg {
  stroke: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent-light);
}

.product-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-subtle);
  font-size: 2.5rem;
}

.product-thumb-link {
  display: block;
  text-decoration: none;
}

.product-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: var(--c-accent);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  max-width: 68ch;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-border-light);
  padding-top: var(--space-3);
  margin-top: auto;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-link:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

/* ==========================================================================
   BLOG / EDUCATION SECTION
   ========================================================================== */
.blog-section {
  padding: var(--space-16) 0;
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}

.blog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.blog-section-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: var(--space-1);
}

.blog-section-title-group p {
  color: var(--c-muted);
  font-size: 0.95rem;
}

.btn-view-all-blog {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--c-accent);
  font-size: 0.95rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-md);
  background-color: var(--c-accent-subtle);
}

.btn-view-all-blog:hover {
  background-color: var(--c-accent-light);
  color: var(--c-accent-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
  margin: 0.5rem 0;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.blog-card-more {
  display: inline-block;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-accent);
}

.blog-card-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CONSULTATION SECTION (AJAX FORM)
   ========================================================================== */
.consult-section {
  padding: var(--space-16) 0;
}

.consult-card {
  display: grid;
  gap: 40px;
  background: linear-gradient(135deg, var(--c-accent-dark) 0%, var(--c-accent-deep) 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 56px);
}

.consult-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.consult-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.9;
}

.consult-points {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.consult-points li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #ffffff;
}

.consult-points li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #8fd6a5;
  font-weight: 800;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consult-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.95);
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
}

.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.consult-form textarea {
  resize: vertical;
}

.btn-consult-submit {
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #8fd6a5;
  color: #10331f;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-consult-submit:hover {
  opacity: 0.9;
}

.consult-status {
  font-size: 0.85rem;
  min-height: 1.4em;
  color: #c9f0d4;
}

@media (min-width: 900px) {
  .consult-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: oklch(14% 0.02 270);
  color: oklch(85% 0.01 270);
  padding-top: var(--space-16);
  border-top: 3px solid var(--c-accent);
  text-align: right;
  direction: rtl;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  align-items: start;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.3fr;
    gap: 28px;
  }
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
  text-align: right;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background-color: var(--c-accent);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: oklch(75% 0.01 270);
  margin-top: var(--space-3);
  max-width: 60ch;
  text-align: right;
  text-align-last: right;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: oklch(78% 0.01 270);
  font-size: 0.9rem;
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: oklch(78% 0.01 270);
  text-align: right;
}

.footer-contact-item svg,
.footer-contact-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: 3px;
  margin-left: 8px;
}

.footer-contact-item a[href^="tel:"],
.footer-contact-item a[href*="wa.me"],
.footer-phone-number {
  white-space: nowrap;
  direction: ltr;
  display: inline-block;
  text-align: right;
}

.footer-contact-item span:not([dir="ltr"]) {
  white-space: normal;
  word-break: normal;
}

.social-links-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-base);
}

.social-btn:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.enamad-card {
  width: 140px;
  height: 60px;
  background-color: #ffffff;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.enamad-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--c-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) 0;
  font-size: 0.85rem;
  color: oklch(65% 0.01 270);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: right;
  }
}

/* ==========================================================================
   FIXES: دکمه جستجوی خالی و فاصله دکمه‌های Hero
   ========================================================================== */

/* ۱. مخفی کردن دکمه جستجو تا زمانی که آیکون آن در قالب قرار گیرد */
.btn-search {
    display: none !important;
}

/* ۲. فاصله گرفتن دکمه‌های Hero از لبه پایین کادر */
.hero-cta-group {
    margin-bottom: var(--space-10); /* 40px فاصله از پایین */
}

.hero-section {
    padding-bottom: var(--space-16); /* فضای تنفس بیشتر در انتهای سکشن */
}

/* ==========================================================================
   CHAPAC SINGLE PRODUCT STYLES
   ========================================================================== */
.chapac-single-product-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
}

@media (min-width: 1024px) {
    .chapac-single-product-container {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-12);
    }
}

.chapac-product-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--c-text-heading);
    margin-bottom: var(--space-4);
}

.chapac-product-short-desc {
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* جدول و کارت مشخصات */
.chapac-specs-card {
    background: var(--c-surface-subtle);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.specs-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-accent-dark);
    margin-bottom: var(--space-3);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--c-border);
    padding-bottom: var(--space-2);
    font-size: 0.95rem;
}

/* باکس دای‌لاین */
.chapac-dieline-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--r-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.dieline-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--c-accent-dark);
}

.dieline-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

.btn-download-dieline {
    background: var(--c-accent);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-download-dieline:hover {
    background: var(--c-accent-dark);
}

/* دکمه‌های اقدام و تماس */
.chapac-action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .chapac-action-buttons {
        flex-direction: row;
    }
}

.btn-call-order, .btn-inquiry-order {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.btn-call-order {
    background: var(--c-accent-dark);
    color: #fff !important;
}

.btn-inquiry-order {
    background: var(--c-surface);
    border: 2px solid var(--c-accent-dark);
    color: var(--c-accent-dark) !important;
}

.chapac-product-tabs-wrapper {
    max-width: var(--container-max);
    margin: var(--space-12) auto;
    padding: 0 var(--space-4);
}

/* ==========================================================================
   FIXES: اصلاح گرید و جهت‌گیری صفحه تکی محصول (RTL)
   ========================================================================== */

.chapac-single-product-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
    direction: rtl; /* تضمین جهت راست‌چین */
}

@media (min-width: 1024px) {
    .chapac-single-product-container {
        /* ستون اول (گالری عکس) در سمت راست، ستون دوم (متن و مشخصات) در سمت چپ */
        grid-template-columns: 1fr 1.1fr; 
        gap: var(--space-12);
        align-items: start;
    }
}

/* مرتب‌سازی ستون متن و مشخصات */
.chapac-product-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chapac-product-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--c-text-heading);
    margin: 0 0 var(--space-2) 0;
}
