/* ========================================== */
/* بهزادکتاب - طراحی مدرن حرفه‌ای */
/* ========================================== */

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: Tahoma, 'Segoe UI', sans-serif; 
}

:root {
  /* رنگ اصلی - طلایی بهزادکتاب */
  --primary: #F5C518;
  --primary-dark: #D4A80F;
  --primary-light: #FFE066;
  --primary-glow: rgba(245, 197, 24, 0.35);
  
  /* مشکی نرم */
  --dark: #141414;
  --dark-soft: #1F1F1F;
  --dark-lighter: #2A2A2A;
  
  /* خاکستری‌ها */
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-500: #71717A;
  --gray-700: #3F3F46;
  
  /* رنگ‌های حالتی */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --accent-red: #E53935;
  
  /* گوشه‌ها */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* سایه‌ها */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 30px rgba(245, 197, 24, 0.4);
}

html { scroll-behavior: smooth; }

body { 
  background: #F8F8F9; 
  color: var(--dark); 
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.container { 
  max-width: 1320px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

/* ========================================== */
/* =============== TOP BAR ================== */
/* ========================================== */
.top-bar { 
  background: linear-gradient(90deg, #141414 0%, #2A2A2A 100%);
  color: #fff;
  font-size: 13px; 
  padding: 10px 0; 
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.15));
}

.top-bar-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 10px; 
  max-width: 1320px; 
  margin: 0 auto; 
  padding: 0 24px;
  position: relative;
}

.top-bar-inner > span {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-links { 
  display: flex;
  gap: 24px;
}

.top-links a { 
  color: #B0B0B0; 
  text-decoration: none; 
  transition: 0.3s; 
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.top-links a:hover { 
  color: var(--primary); 
}

/* ========================================== */
/* ============== MAIN HEADER =============== */
/* ========================================== */
.main-header { 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; 
  top: 0; 
  z-index: 100; 
  border-bottom: 1px solid var(--gray-200);
  transition: 0.3s;
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 24px; 
  gap: 24px; 
  flex-wrap: wrap; 
  max-width: 1320px; 
  margin: 0 auto; 
}

/* ===== لوگو ===== */
.logo-box { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  cursor: pointer; 
  flex-shrink: 0;
  transition: 0.3s;
}

.logo-box:hover .logo-image {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.logo-image { 
  width: 56px; 
  height: 56px; 
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid var(--primary);
  transition: 0.3s;
}

.logo-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text h1 { 
  font-size: 20px; 
  color: var(--dark); 
  font-weight: 900; 
  line-height: 1.1; 
  margin: 0;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-text h1 span {
  color: var(--dark);
  background: var(--primary);
  padding: 2px 8px 3px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 4px;
}

.logo-text small { 
  color: var(--gray-500); 
  font-size: 11px; 
  font-weight: 500;
  margin-top: 2px;
}

/* ===== جستجو ===== */
.search-box { 
  flex: 1; 
  min-width: 250px; 
  max-width: 560px; 
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  transition: 0.3s;
}

.search-box:focus-within { 
  background: #FFF;
  border-color: var(--primary); 
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-box i { 
  color: var(--gray-500); 
  font-size: 15px;
  transition: 0.3s;
}

.search-box:focus-within i {
  color: var(--primary-dark);
}

.search-box input { 
  flex: 1; 
  border: none; 
  background: transparent; 
  outline: none; 
  font-family: inherit; 
  font-size: 14px; 
  color: var(--dark);
  font-weight: 500;
}

.search-box input::placeholder {
  color: var(--gray-500);
}

/* ===== دکمه‌های هدر ===== */
.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  flex-shrink: 0;
}

.action-btn { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 11px 18px; 
  border: 2px solid var(--gray-200);
  border-radius: 999px; 
  text-decoration: none; 
  color: var(--dark); 
  font-size: 13px; 
  font-weight: 700; 
  transition: 0.3s; 
  background: #FFF;
  white-space: nowrap;
}

.action-btn:hover { 
  border-color: var(--primary); 
  background: var(--primary); 
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.action-btn i { 
  font-size: 15px; 
}

.cart-btn {
  background: var(--dark);
  color: #FFF;
  border-color: var(--dark);
  position: relative;
}

.cart-btn:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

.badge { 
  background: var(--accent-red);
  color: #FFF; 
  border-radius: 999px;
  padding: 2px 8px; 
  font-size: 11px; 
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.cart-btn .badge {
  background: var(--primary);
  color: var(--dark);
}

/* ========================================== */
/* ============== MAIN NAV ================== */
/* ========================================== */
.main-nav { 
  background: #FFF;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.nav-inner { 
  padding: 0 24px; 
  max-width: 1320px; 
  margin: 0 auto; 
}

.nav-menu { 
  list-style: none; 
  display: flex; 
  gap: 4px; 
  overflow-x: auto; 
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu li { 
  display: inline-block; 
}

.nav-menu li a { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 16px 18px; 
  text-decoration: none; 
  color: var(--gray-700); 
  font-size: 13.5px; 
  font-weight: 700; 
  white-space: nowrap; 
  position: relative;
  transition: 0.3s;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active { 
  color: var(--dark);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after { 
  width: 60%;
}

.nav-menu li a.active i,
.nav-menu li a:hover i {
  color: var(--primary-dark);
}

/* ========================================== */
/* ================= HERO =================== */
/* ========================================== */
.hero-section { 
  padding: 40px 0 30px;
}

.hero-banner { 
  background: linear-gradient(135deg, #0F0F0F 0%, #1F1F1F 100%);
  border-radius: 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  overflow: hidden; 
  position: relative;
  min-height: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.hero-banner::before { 
  content: ''; 
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* بخش متن (سمت راست) */
.hero-content { 
  padding: 60px 50px;
  z-index: 1; 
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.15);
  color: #F5C518;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 197, 24, 0.3);
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #F5C518;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px #F5C518;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-content h2 { 
  font-size: 44px; 
  margin-bottom: 16px; 
  font-weight: 900; 
  color: #FFF; 
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-content h2 .highlight {
  color: #F5C518;
  position: relative;
  display: inline-block;
}

.hero-content h2 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 0;
  width: 100%;
  height: 8px;
  background: rgba(245, 197, 24, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.hero-content p { 
  font-size: 16px; 
  margin-bottom: 36px; 
  color: #B0B0B0;
  font-weight: 500;
  line-height: 1.8;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn { 
  display: inline-flex; 
  align-items: center;
  gap: 10px;
  background: #F5C518;
  color: #0F0F0F;
  padding: 16px 34px; 
  border-radius: 999px;
  text-decoration: none; 
  font-weight: 800; 
  font-size: 15px;
  transition: 0.3s;
  box-shadow: 0 15px 40px rgba(245, 197, 24, 0.4);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.6s;
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(245, 197, 24, 0.5);
}

.hero-btn:hover::before {
  right: 100%;
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #FFF;
  padding: 16px 30px;
  border: 2px solid #333;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
  font-family: inherit;
}

.hero-btn-outline:hover {
  border-color: #F5C518;
  color: #F5C518;
  transform: translateY(-4px);
}

/* ========================================== */
/* 🔥 بخش عکس سمت چپ */
/* ========================================== */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(circle at center, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 30px;
  filter: drop-shadow(0 30px 60px rgba(245, 197, 24, 0.4));
  position: relative;
  z-index: 2;
}

/* دایره‌های تزئینی پشت عکس */
.hero-image-wrapper::before,
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  border: 2px dashed rgba(245, 197, 24, 0.4);
  border-radius: 50%;
  z-index: 1;
}

.hero-image-wrapper::before {
  width: 110%;
  height: 110%;
  top: -5%;
  right: -5%;
  animation: spin 25s linear infinite;
}

.hero-image-wrapper::after {
  width: 90%;
  height: 90%;
  top: 5%;
  right: 5%;
  animation: spin 18s linear infinite reverse;
}

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

/* دایره زرد درخشان پشت عکس */
.hero-image-wrapper .glow-circle {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* ========================================== */
/* ============== RESPONSIVE ================ */
/* ========================================== */
@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content h2 { font-size: 34px; }
  .hero-visual {
    min-height: 300px;
    padding: 20px;
  }
  .hero-image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 700px) {
  .hero-content { padding: 40px 24px; }
  .hero-content h2 { font-size: 26px; }
  .hero-content p { font-size: 14px; }
  .hero-btn, .hero-btn-outline { 
    padding: 14px 24px; 
    font-size: 13px; 
  }
  .hero-actions { 
    flex-direction: column; 
  }
  .hero-visual {
    min-height: 250px;
    padding: 20px 20px 30px;
  }
  .hero-image-wrapper {
    max-width: 220px;
  }
}
/* ========================================== */
/* =============== FEATURES ================= */
/* ========================================== */
.features-section { 
  padding: 0 0 40px;
}

.features-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 16px; 
}

.feature-card { 
  background: #FFF;
  padding: 22px;
  border-radius: var(--radius);
  display: flex; 
  align-items: center; 
  gap: 16px; 
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

.feature-card:hover { 
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(245, 197, 24, 0.2);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 15px var(--primary-glow);
  transition: 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
  transform: rotate(-8deg) scale(1.1);
}

.feature-card i { 
  font-size: 22px; 
  color: var(--dark);
}

.feature-card h4 { 
  font-size: 14px; 
  margin-bottom: 2px; 
  color: var(--dark);
  font-weight: 800;
}

.feature-card p { 
  font-size: 12px; 
  color: var(--gray-500); 
  margin: 0;
  font-weight: 500;
}

/* ========================================== */
/* =============== SECTIONS ================= */
/* ========================================== */
.categories-section, 
.products-section { 
  padding: 40px 0;
}

.section-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-head h2 { 
  font-size: 26px; 
  color: var(--dark); 
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.section-head h2::before {
  content: '';
  width: 6px;
  height: 32px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
}

/* ========================================== */
/* ============== CATEGORIES ================ */
/* ========================================== */
.categories-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 16px; 
}

.category-card { 
  background: #FFF; 
  padding: 28px 18px; 
  border-radius: var(--radius-lg);
  text-align: center; 
  cursor: pointer; 
  transition: 0.35s;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: right;
  transition: 0.4s;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover { 
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(245, 197, 24, 0.25);
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s;
}

.category-card:hover .category-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: rotate(-10deg) scale(1.05);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.category-card i { 
  font-size: 28px; 
  color: var(--gray-700);
  transition: 0.35s;
}

.category-card:hover i {
  color: var(--dark);
}

.category-card span { 
  font-weight: 800; 
  font-size: 14px; 
  color: var(--dark);
  transition: 0.3s;
  display: block;
}

/* ========================================== */
/* =============== PRODUCTS ================= */
/* ========================================== */
.products-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 22px; 
}

.product-card { 
  background: #FFF; 
  border-radius: var(--radius-lg);
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: 0.35s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  pointer-events: none;
  transition: 0.35s;
}

.product-card:hover { 
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.product-card:hover::after {
  border-color: var(--primary);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  background: var(--gray-100);
  transition: 0.5s;
}

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

.product-body { 
  padding: 18px; 
  flex: 1; 
  display: flex; 
  flex-direction: column;
}

.product-body .cat { 
  font-size: 11px; 
  color: var(--dark);
  background: var(--primary);
  padding: 4px 12px; 
  border-radius: 999px; 
  align-self: flex-start; 
  margin-bottom: 10px; 
  font-weight: 800;
  letter-spacing: 0.3px;
}

.product-body h3 { 
  font-size: 15px; 
  margin-bottom: 8px; 
  font-weight: 800; 
  line-height: 1.4; 
  min-height: 44px; 
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-body .desc { 
  color: var(--gray-500); 
  font-size: 12.5px; 
  margin-bottom: 14px; 
  min-height: 34px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-body .price { 
  color: var(--dark);
  font-weight: 900; 
  font-size: 18px; 
  margin-top: auto; 
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--gray-200);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-body .price::after {
  content: 'تومان';
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

.btn-add { 
  background: var(--dark);
  color: var(--primary); 
  border: 2px solid var(--dark);
  padding: 12px; 
  border-radius: 999px;
  cursor: pointer; 
  font-weight: 800; 
  font-family: inherit; 
  font-size: 13.5px; 
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add:hover { 
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-add:disabled { 
  background: var(--gray-300);
  color: var(--gray-500);
  border-color: var(--gray-300);
  cursor: not-allowed; 
}

.product-count { 
  color: var(--gray-500);
  font-size: 13px; 
  font-weight: 700;
  background: var(--gray-100);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ========================================== */
/* ============ CART (سبد خرید) ============= */
/* ========================================== */
.cart-item { 
  display: flex; 
  gap: 18px; 
  background: #FFF; 
  padding: 18px; 
  border-radius: var(--radius);
  margin-bottom: 14px; 
  align-items: center; 
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap; 
  border: 1px solid var(--gray-200);
  transition: 0.3s;
}

.cart-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(245, 197, 24, 0.15);
}

.cart-item img { 
  width: 90px; 
  height: 90px; 
  object-fit: cover; 
  border-radius: var(--radius-sm); 
  background: var(--gray-100);
}

.cart-item-info { 
  flex: 1; 
  min-width: 180px; 
}

.cart-item-info h4 { 
  margin-bottom: 6px; 
  font-size: 15px; 
  font-weight: 800;
  color: var(--dark);
}

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

.qty-controls { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 4px;
}

.qty-controls button { 
  width: 34px; 
  height: 34px; 
  border-radius: 50%; 
  border: none;
  background: #FFF; 
  cursor: pointer; 
  font-weight: 800; 
  font-size: 16px; 
  transition: 0.2s; 
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-controls button:hover { 
  background: var(--primary); 
}

.qty-controls span {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.btn-remove { 
  background: #FEE2E2;
  color: var(--danger); 
  border: none; 
  padding: 10px 14px; 
  border-radius: var(--radius-sm);
  cursor: pointer; 
  font-size: 14px; 
  transition: 0.2s;
}

.btn-remove:hover { 
  background: var(--danger);
  color: #FFF;
}

.cart-summary { 
  background: #FFF; 
  padding: 28px; 
  border-radius: var(--radius-lg);
  margin-top: 24px; 
  box-shadow: var(--shadow);
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 20px;
  border: 2px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.cart-summary .total { 
  font-size: 26px; 
  font-weight: 900; 
  color: var(--dark);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-summary .total::after {
  content: 'تومان';
  font-size: 14px;
  color: var(--gray-500);
}

/* ========================================== */
/* ================ BUTTONS ================= */
/* ========================================== */
.btn { 
  padding: 13px 26px; 
  border-radius: 999px;
  border: none; 
  cursor: pointer; 
  font-weight: 800; 
  font-size: 14px; 
  font-family: inherit; 
  transition: 0.3s; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
}

.btn-primary { 
  background: var(--primary);
  color: var(--dark);
  border: 2px solid var(--primary);
}

.btn-primary:hover { 
  background: var(--dark);
  color: var(--primary);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-danger { 
  background: var(--danger);
  color: #FFF; 
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-outline { 
  background: #FFF;
  color: var(--dark);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover { 
  border-color: var(--primary);
  background: var(--primary);
}

/* ========================================== */
/* ================= MODAL ================== */
/* ========================================== */
.modal { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(20, 20, 20, 0.7);
  z-index: 1000; 
  justify-content: center; 
  align-items: center; 
  padding: 20px; 
  overflow-y: auto; 
  backdrop-filter: blur(8px);
}

.modal.open { 
  display: flex; 
}

.modal-box { 
  background: #FFF; 
  border-radius: var(--radius-lg);
  padding: 32px; 
  max-width: 540px; 
  width: 100%; 
  max-height: 90vh; 
  overflow-y: auto; 
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes slideDown { 
  from { 
    transform: translateY(-30px) scale(0.95);
    opacity: 0; 
  } 
  to { 
    transform: translateY(0) scale(1);
    opacity: 1; 
  } 
}

.modal-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 24px; 
}

.modal-head h2 {
  color: var(--dark);
  font-weight: 900;
  font-size: 20px;
}

.modal-head button { 
  background: var(--gray-100);
  border: none; 
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px; 
  cursor: pointer; 
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.modal-head button:hover {
  background: var(--danger);
  color: #FFF;
}

/* ========================================== */
/* ================= FORM =================== */
/* ========================================== */
.form-group { 
  margin-bottom: 18px; 
}

.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 800; 
  font-size: 13px; 
  color: var(--dark);
}

.form-group input, 
.form-group select, 
.form-group textarea { 
  width: 100%; 
  padding: 13px 18px; 
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none; 
  font-family: inherit; 
  font-size: 14px; 
  background: var(--gray-50);
  transition: 0.3s; 
  color: var(--dark);
  font-weight: 500;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus { 
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 14px; 
}

/* ========================================== */
/* ================= FOOTER ================= */
/* ========================================== */
.main-footer { 
  background: var(--dark);
  color: #B0B0B0; 
  margin-top: 80px; 
  padding: 60px 0 0; 
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  gap: 40px; 
  padding-bottom: 40px; 
  max-width: 1320px; 
  margin: 0 auto; 
  padding-left: 24px; 
  padding-right: 24px;
  position: relative;
}

.footer-col h3, 
.footer-col h4 { 
  color: var(--primary);
  margin-bottom: 18px; 
  font-size: 16px; 
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after,
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.footer-col p { 
  font-size: 13.5px; 
  line-height: 1.9;
  color: #B0B0B0;
}

.footer-col a { 
  display: block; 
  color: #B0B0B0;
  text-decoration: none; 
  margin-bottom: 10px; 
  font-size: 13.5px; 
  transition: 0.3s;
  position: relative;
  padding-right: 0;
}

.footer-col a:hover { 
  color: var(--primary);
  padding-right: 8px;
}

.footer-col a::before {
  content: '←';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: 0.3s;
  color: var(--primary);
}

.footer-col a:hover::before {
  opacity: 1;
  right: -12px;
}

.socials { 
  display: flex; 
  gap: 10px; 
}

.socials a { 
  width: 42px; 
  height: 42px; 
  background: var(--dark-lighter);
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0; 
  transition: 0.3s; 
  color: var(--primary);
}

.socials a::before { display: none; }

.socials a:hover { 
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-4px);
}

.footer-bottom { 
  border-top: 1px solid var(--dark-lighter);
  padding: 24px;
  text-align: center; 
  font-size: 13px;
  color: #808080;
  max-width: 1320px;
  margin: 0 auto;
}

/* ========================================== */
/* ================= TOAST ================== */
/* ========================================== */
.toast { 
  position: fixed; 
  bottom: 30px; 
  left: 30px; 
  background: var(--dark);
  color: var(--primary);
  padding: 16px 24px; 
  border-radius: 999px;
  transform: translateY(200%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000; 
  font-weight: 800; 
  font-size: 14px; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show { 
  transform: translateY(0); 
}

.toast.success { 
  background: var(--success);
  color: #FFF;
}

.toast.error { 
  background: var(--danger);
  color: #FFF;
}

/* ========================================== */
/* ============== RESPONSIVE ================ */
/* ========================================== */
@media (max-width: 1024px) {
  .hero-content h2 { font-size: 32px; }
  .hero-image { font-size: 150px; }
}

@media (max-width: 900px) {
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .hero-banner {
    padding: 40px 30px;
  }
  .hero-content h2 { font-size: 28px; }
}

@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 12px 16px; gap: 12px; }
  .search-box { 
    min-width: 100%; 
    order: 3; 
  }
  .logo-box { order: 1; }
  .header-actions { order: 2; }
  .action-btn span:not(.badge) { display: none; }
  .action-btn { padding: 10px 14px; }
  .hero-content h2 { font-size: 22px; }
  .hero-banner { 
    padding: 30px 20px;
    min-height: auto;
  }
  .hero-image { display: none; }
  .footer-grid { 
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-row { grid-template-columns: 1fr; }
  .top-bar-inner { 
    justify-content: center; 
    text-align: center; 
    font-size: 11px;
    padding: 0 16px;
  }
  .top-links a { margin: 0; font-size: 11px; }
  .top-links { gap: 14px; }
  .nav-menu li a { padding: 14px 12px; font-size: 12.5px; }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .product-card img { height: 160px; }
  .section-head h2 { font-size: 20px; }
  .section-head h2::before { height: 24px; width: 4px; }
}
/* ========================================== */
/* 🌙 دارک مود - Dark Mode */
/* ========================================== */

/* دکمه تغییر تم */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #E5E5E5;
  background: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  border-color: #F5C518;
  background: #FFF9DB;
  transform: rotate(15deg) scale(1.05);
}

.theme-toggle i {
  font-size: 17px;
  position: absolute;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle .moon-icon {
  color: #0F0F0F;
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

.theme-toggle .sun-icon {
  color: #F5C518;
  transform: translateY(40px) rotate(90deg);
  opacity: 0;
}

/* حالت تاریک */
[data-theme="dark"] .theme-toggle {
  background: #2A2A2A;
  border-color: #3A3A3A;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #3A3A3A;
  border-color: #F5C518;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  transform: translateY(-40px) rotate(-90deg);
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

/* ========================================== */
/* ============ متغیرهای دارک مود ============ */
/* ========================================== */

[data-theme="dark"] {
  --dark-bg: #0A0A0A;
  --dark-bg-2: #141414;
  --dark-bg-3: #1E1E1E;
  --dark-bg-4: #2A2A2A;
  --dark-border: #2E2E2E;
  --dark-text: #E5E5E5;
  --dark-text-muted: #909090;
}

/* پس‌زمینه اصلی */
[data-theme="dark"] body {
  background: #0A0A0A;
  color: #E5E5E5;
}

/* ========= نوار بالا ========= */
[data-theme="dark"] .top-bar {
  background: #000;
  border-bottom-color: #F5C518;
}

/* ========= هدر ========= */
[data-theme="dark"] .main-header {
  background: #141414;
  border-bottom-color: #F5C518;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

[data-theme="dark"] .search-box {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

[data-theme="dark"] .search-box input {
  color: #E5E5E5;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #6B6B6B;
}

[data-theme="dark"] .search-box:focus-within {
  background: #2A2A2A;
  border-color: #F5C518;
}

[data-theme="dark"] .action-btn {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: #E5E5E5;
}

[data-theme="dark"] .action-btn:hover {
  background: #F5C518;
  color: #0F0F0F;
  border-color: #F5C518;
}

/* ========= منوی ناوبری ========= */
[data-theme="dark"] .main-nav {
  background: #141414;
}

[data-theme="dark"] .nav-menu li a {
  color: #B0B0B0;
}

[data-theme="dark"] .nav-menu li a:hover,
[data-theme="dark"] .nav-menu li a.active {
  color: #F5C518;
}

/* ========= Hero ========= */
[data-theme="dark"] .hero-banner {
  background: linear-gradient(135deg, #000 0%, #1A1A1A 100%);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .hero-content p {
  color: #909090;
}

[data-theme="dark"] .hero-btn-outline {
  color: #FFF;
  border-color: #3A3A3A;
}

/* ========= کارت‌های ویژگی ========= */
[data-theme="dark"] .feature-card {
  background: #141414;
  border-color: #2E2E2E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .feature-card h4 {
  color: #E5E5E5;
}

[data-theme="dark"] .feature-card p {
  color: #909090;
}

[data-theme="dark"] .feature-icon-wrapper {
  background: #2A2A2A;
}

/* ========= دسته‌بندی‌ها ========= */
[data-theme="dark"] .category-card {
  background: #141414;
  border-color: #2E2E2E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .category-card span {
  color: #E5E5E5;
}

[data-theme="dark"] .category-icon-wrapper {
  background: linear-gradient(135deg, #2A2A2A, #1E1E1E);
}

[data-theme="dark"] .category-card i {
  color: #F5C518;
}

/* ========= محصولات ========= */
[data-theme="dark"] .product-card {
  background: #141414;
  border-color: #2E2E2E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .product-card img {
  background: #1E1E1E;
}

[data-theme="dark"] .product-body h3 {
  color: #E5E5E5;
}

[data-theme="dark"] .product-body .desc {
  color: #909090;
}

[data-theme="dark"] .product-body .price {
  color: #FFF;
  border-top-color: #2E2E2E;
}

[data-theme="dark"] .product-body .price::after {
  color: #909090;
}

[data-theme="dark"] .product-count {
  color: #0F0F0F;
}

/* ========= سبد خرید ========= */
[data-theme="dark"] .cart-item {
  background: #141414;
  border-color: #2E2E2E;
}

[data-theme="dark"] .cart-item-info h4 {
  color: #E5E5E5;
}

[data-theme="dark"] .cart-item-info .price {
  color: #F5C518;
}

[data-theme="dark"] .qty-controls {
  background: #2A2A2A;
}

[data-theme="dark"] .qty-controls button {
  background: #1E1E1E;
  color: #E5E5E5;
}

[data-theme="dark"] .cart-summary {
  background: #141414;
  border-color: #2E2E2E;
}

[data-theme="dark"] .cart-summary .total {
  color: #FFF;
}

/* ========= فرم‌ها و مودال‌ها ========= */
[data-theme="dark"] .modal-box {
  background: #141414;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}

[data-theme="dark"] .modal-head h2 {
  color: #FFF;
}

[data-theme="dark"] .modal-head button {
  background: #2A2A2A;
  color: #909090;
}

[data-theme="dark"] .form-group label {
  color: #E5E5E5;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: #E5E5E5;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #2A2A2A;
  border-color: #F5C518;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #6B6B6B;
}

/* ========= دکمه‌ها ========= */
[data-theme="dark"] .btn-outline {
  background: #1E1E1E;
  color: #E5E5E5;
  border-color: #2E2E2E;
}

[data-theme="dark"] .btn-outline:hover {
  background: #F5C518;
  color: #0F0F0F;
  border-color: #F5C518;
}

/* ========= Empty State ========= */
[data-theme="dark"] .empty-state {
  background: #141414;
  color: #909090;
}

[data-theme="dark"] .empty-state h3 {
  color: #E5E5E5;
}

/* ========= فوتر ========= */
[data-theme="dark"] .main-footer {
  background: #000;
}

[data-theme="dark"] .footer-cta {
  background: linear-gradient(135deg, #F5C518 0%, #D4A80F 100%);
}

/* ========= صفحه پیگیری ========= */
[data-theme="dark"] .search-form-box {
  background: #141414;
  border-color: #2E2E2E;
}

[data-theme="dark"] .search-tabs {
  background: #1E1E1E;
}

[data-theme="dark"] .search-tab {
  color: #909090;
}

[data-theme="dark"] .search-tab.active {
  background: #F5C518;
  color: #0F0F0F;
}

[data-theme="dark"] .search-input-group input {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: #E5E5E5;
}

[data-theme="dark"] .search-input-group input:focus {
  background: #2A2A2A;
}

[data-theme="dark"] .order-card {
  background: #141414;
  border-color: #2E2E2E;
}

[data-theme="dark"] .order-card-body {
  background: #141414;
}

[data-theme="dark"] .info-section-title {
  color: #E5E5E5;
  border-bottom-color: #2E2E2E;
}

[data-theme="dark"] .info-item {
  background: #1E1E1E;
}

[data-theme="dark"] .info-item-value {
  color: #E5E5E5;
}

[data-theme="dark"] .order-item-row {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

[data-theme="dark"] .order-item-name {
  color: #E5E5E5;
}

[data-theme="dark"] .order-item-price {
  color: #E5E5E5;
}

[data-theme="dark"] .timeline::before {
  background: #2E2E2E;
}

[data-theme="dark"] .timeline-icon {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: #6B6B6B;
}

[data-theme="dark"] .timeline-label {
  color: #6B6B6B;
}

[data-theme="dark"] .help-box {
  background: #2A1F0A;
  border-color: #78350F;
}

[data-theme="dark"] .help-box p {
  color: #FCD34D;
}

[data-theme="dark"] .help-box strong {
  color: #F5C518;
}

/* ========= پنل ادمین ========= */
[data-theme="dark"] .main-content {
  background: #0A0A0A;
}

[data-theme="dark"] .stat-card {
  background: #141414;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

[data-theme="dark"] .stat-card h3 {
  color: #FFF;
}

[data-theme="dark"] .stat-card p {
  color: #909090;
}

[data-theme="dark"] .table-wrap {
  background: #141414;
}

[data-theme="dark"] .data-table th {
  background: #1E1E1E;
  color: #F5C518;
}

[data-theme="dark"] .data-table td {
  color: #E5E5E5;
  border-bottom-color: #2A2A2A;
}

[data-theme="dark"] .data-table tr:hover {
  background: #1E1E1E;
}

[data-theme="dark"] .filters-bar {
  background: #141414;
}

[data-theme="dark"] .filters-bar input,
[data-theme="dark"] .filters-bar select {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: #E5E5E5;
}

[data-theme="dark"] h1 {
  color: #FFF;
}

[data-theme="dark"] .info-block {
  background: #1E1E1E;
}

[data-theme="dark"] .info-block h4 {
  color: #E5E5E5;
}

[data-theme="dark"] .info-line .value {
  color: #E5E5E5;
}

[data-theme="dark"] .mini-item {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

[data-theme="dark"] .mini-item-name {
  color: #E5E5E5;
}

/* ========= انیمیشن تغییر تم ========= */
body, .main-header, .main-nav, .feature-card, .category-card, .product-card,
.cart-item, .cart-summary, .modal-box, .stat-card, .data-table th, .data-table td,
.info-block, .info-item, .order-card, .order-item-row, .search-form-box {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========= Scrollbar توی دارک مود ========= */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1E1E1E;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #F5C518;
  border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #D4A80F;
}
/* ========================================== */
/* ============ 🎯 RESPONSIVE =============== */
/* ========================================== */

/* تبلت (تا 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .logo-image {
    width: 45px;
    height: 45px;
  }
  
  .logo-text h1 {
    font-size: 16px;
  }
  
  .logo-text small {
    font-size: 10px;
  }
  
  .search-box {
    min-width: 200px;
    padding: 10px 16px;
  }
  
  .action-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .hero-content h2 {
    font-size: 28px;
  }
  
  .hero-image {
    max-width: 280px;
  }
  
  .product-card img {
    height: 180px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
}

/* موبایل بزرگ (تا 768px) */
@media (max-width: 768px) {
  /* ===== هدر ===== */
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .logo-box {
    gap: 8px;
  }
  
  .logo-image {
    width: 40px;
    height: 40px;
  }
  
  .logo-text h1 {
    font-size: 15px;
  }
  
  .logo-text h1 span {
    padding: 1px 6px;
    font-size: 14px;
  }
  
  .logo-text small {
    font-size: 9px;
  }
  
  /* جستجو */
  .search-box {
    min-width: 100%;
    order: 3;
    padding: 10px 14px;
    margin-top: 4px;
  }
  
  .search-box input {
    font-size: 13px;
  }
  
  /* دکمه‌های هدر */
  .header-actions {
    order: 2;
    gap: 6px;
  }
  
  .action-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .action-btn span:not(.badge) {
    display: none;
  }
  
  .action-btn i {
    font-size: 14px;
  }
  
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
  
  .theme-toggle i {
    font-size: 14px;
  }
  
  /* ===== منوی ناوبری ===== */
  .nav-inner {
    padding: 0 12px;
  }
  
  .nav-menu li a {
    padding: 12px 12px;
    font-size: 12px;
    gap: 4px;
  }
  
  /* ===== بنر Hero ===== */
  .hero-section {
    padding: 16px 0 12px;
  }
  
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    min-height: auto;
    border-radius: 20px;
  }
  
  .hero-content {
    padding: 0;
    text-align: center;
  }
  
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }
  
  .hero-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-btn,
  .hero-btn-outline {
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  
  /* عکس Hero */
  .hero-visual {
    order: -1;
    min-height: auto;
    padding: 16px;
  }
  
  .hero-image-wrapper {
    max-width: 180px;
    margin: 0 auto;
  }
  
  /* ===== کارت‌های ویژگی ===== */
  .features-section {
    padding: 12px 0 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .feature-card {
    padding: 12px;
    gap: 10px;
  }
  
  .feature-icon-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .feature-card i {
    font-size: 16px;
  }
  
  .feature-card h4 {
    font-size: 12px;
  }
  
  .feature-card p {
    font-size: 10px;
  }
  
  /* ===== بخش‌ها ===== */
  .categories-section,
  .products-section {
    padding: 20px 0;
  }
  
  .section-head {
    margin-bottom: 16px;
  }
  
  .section-title {
    gap: 10px;
  }
  
  .section-title-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  
  .section-head h2 {
    font-size: 17px;
  }
  
  .section-head h2 small {
    font-size: 11px;
  }
  
  /* ===== دسته‌بندی‌ها ===== */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .category-card {
    padding: 14px 8px;
    border-radius: 14px;
  }
  
  .category-icon-wrapper {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }
  
  .category-card i {
    font-size: 18px;
  }
  
  .category-card span {
    font-size: 11px;
  }
  
  /* ===== محصولات ===== */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-card {
    border-radius: 14px;
  }
  
  .product-card img {
    height: 140px;
  }
  
  .product-body {
    padding: 10px;
  }
  
  .product-body .cat {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }
  
  .product-body h3 {
    font-size: 12px;
    min-height: 34px;
    margin-bottom: 4px;
  }
  
  .product-body .desc {
    font-size: 10.5px;
    min-height: 26px;
    margin-bottom: 8px;
    display: none; /* مخفی کردن توضیحات در موبایل */
  }
  
  .product-body .price {
    font-size: 14px;
    padding-top: 8px;
    margin-bottom: 8px;
  }
  
  .product-body .price::after {
    font-size: 10px;
  }
  
  .btn-add {
    padding: 8px 10px;
    font-size: 11px;
    gap: 4px;
  }
  
  /* ===== فوتر ===== */
  .footer-cta {
    padding: 24px 20px;
  }
  
  .footer-cta h3 {
    font-size: 16px;
  }
  
  .footer-cta p {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .footer-cta-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 16px 20px;
  }
  
  .footer-col h3,
  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .footer-col p,
  .footer-col a {
    font-size: 12px;
  }
  
  .footer-bottom {
    padding: 18px 16px;
    font-size: 11px;
  }
  
  /* ===== Toast ===== */
  .toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    text-align: center;
    font-size: 12px;
    padding: 12px 18px;
  }
  
  /* ===== Top Bar ===== */
  .top-bar {
    font-size: 11px;
    padding: 6px 0;
  }
  
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    gap: 4px;
  }
  
  .top-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .top-links a {
    margin: 0;
    font-size: 10px;
  }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
  .logo-text small {
    display: none;
  }
  
  .hero-content h2 {
    font-size: 20px;
  }
  
  .hero-badge {
    font-size: 10px;
    padding: 5px 12px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .product-card img {
    height: 120px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  
  .feature-icon-wrapper {
    margin: 0 auto;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cart-item img {
    width: 100%;
    height: 140px;
  }
  
  .qty-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cart-summary .total {
    font-size: 20px;
    text-align: center;
  }
}
/* ========================================== */
/* 🔥 اصلاح منوی ناوبری و overflow در موبایل */
/* ========================================== */

/* جلوگیری از overflow افقی در کل صفحه */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* اصلاح ساختار کلی برای موبایل */
@media (max-width: 768px) {
  
  /* ===== منوی ناوبری ===== */
  .main-nav {
    overflow: hidden;
  }
  
  .nav-inner {
    padding: 0 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .nav-inner::-webkit-scrollbar {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
    min-width: max-content;
    flex-wrap: nowrap;
  }
  
  .nav-menu li {
    flex-shrink: 0;
  }
  
  .nav-menu li a {
    padding: 12px 10px;
    font-size: 11.5px;
    gap: 4px;
    white-space: nowrap;
  }
  
  .nav-menu li a i {
    font-size: 11px;
  }
  
  /* ===== هدر ===== */
  .main-header {
    overflow: hidden;
  }
  
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* لوگو */
  .logo-box {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  
  .logo-image {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  
  .logo-text {
    min-width: 0;
    overflow: hidden;
  }
  
  .logo-text h1 {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .logo-text h1 span {
    padding: 1px 5px;
    font-size: 13px;
  }
  
  .logo-text small {
    display: none;
  }
  
  /* دکمه‌های هدر */
  .header-actions {
    order: 2;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .action-btn {
    padding: 7px 9px;
    font-size: 11px;
    border-radius: 10px;
  }
  
  .action-btn span:not(.badge) {
    display: none;
  }
  
  .action-btn i {
    font-size: 13px;
  }
  
  .badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  
  .theme-toggle i {
    font-size: 13px;
  }
  
  /* جستجو */
  .search-box {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 9px 14px;
    box-sizing: border-box;
    margin-top: 2px;
  }
  
  .search-box input {
    font-size: 12.5px;
    min-width: 0;
  }
  
  .search-box i {
    font-size: 13px;
  }
  
  /* ===== بخش Hero ===== */
  .hero-section {
    overflow: hidden;
  }
  
  .hero-banner {
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .hero-banner::before,
  .hero-banner::after {
    display: none;
  }
  
  .hero-content h2 {
    word-wrap: break-word;
  }
  
  .hero-visual {
    padding: 10px;
    overflow: hidden;
  }
  
  .hero-image-wrapper::before,
  .hero-image-wrapper::after {
    display: none; /* حذف دایره‌های تزئینی در موبایل */
  }
}

/* موبایل کوچیک */
@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 13px;
  }
  
  .logo-text h1 span {
    font-size: 12px;
    padding: 1px 4px;
  }
  
  .nav-menu li a {
    padding: 10px 8px;
    font-size: 11px;
  }
  
  .nav-menu li a i {
    font-size: 10px;
  }
  
  .action-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .action-btn i {
    font-size: 12px;
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  
  .theme-toggle i {
    font-size: 12px;
  }
}