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

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.header {
  width: 100%;
  max-width: 100vw;
}

.sidebar-menu {
  max-width: 100vw;
}

/* فونت‌ها */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
/* پس‌زمینه شیشه‌ای */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.5s ease;
}

/* کانتینر اصلی لودینگ */
.loading-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 300px;
}

/* انیمیشن حلقه‌های اصلی */
.out_container {
  position: relative;
  font-size: 1.5vw;
  perspective: 10em;
  transform-style: preserve-3d;
  width: 10em;
  height: 10em;
  margin: 0 auto 2rem auto;
}

.ring {
  position: absolute;
  transform-style: preserve-3d;
  animation: ringmove 1s infinite linear;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ring:nth-child(1) {
  border: solid 1em hsl(240deg, 100%, 50%);
  margin-top: -3em;
}

.ring:nth-child(2) {
  border: solid 1em hsl(220deg, 100%, 70%);
  margin-top: 3em;
  animation-delay: -0.5s;
}

@keyframes ringmove {
  0% { transform: rotateX(90deg) rotateZ(0deg) rotateX(30deg) }
  100% { transform: rotateX(90deg) rotateZ(360deg) rotateX(30deg) }
}

/* متن لودینگ */
.loading-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* انیمیشن نقاط */
.dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* نوار پیشرفت */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* درصد پیشرفت */
.progress-percent {
  font-size: 1.2rem;
  font-weight: bold;
  color: #667eea;
  margin-top: 1rem;
}

/* انیمیشن محو شدن */
.loading-overlay.fade-out {
  opacity: 0;
  transform: scale(0.8);
}

/* حالت موبایل */
@media (max-width: 768px) {
  .out_container {
    font-size: 3vw;
    width: 8em;
    height: 8em;
  }
  
  .loading-container {
    padding: 2rem 1.5rem;
    min-width: 280px;
  }
  
  .loading-text {
    font-size: 1.2rem;
  }
  }
/* هدر تیره */
.header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* لوگو برای هدر تیره */
.logo h1 {
  font-family: 'Rubik', 'Vazirmatn', Arial, sans-serif;
  color: #fff;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #ecf0f1, #bdc3c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* دکمه همبرگر منو */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  transition: all 0.3s ease;
  padding: 5px;
}

.menu-toggle:hover {
  transform: scale(1.1);
}


/* دکمه همبرگر برای هدر تیره */
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ecf0f1;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* انیمیشن تبدیل به ضربدر */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: #c0392b;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: #c0392b;
}

/* منوی کشویی */
.sidebar-menu {
  position: fixed;
  top: 70px;
  right: calc(-100vw / 3);
  width: calc(100vw / 3);
  height: calc(100vh - 70px);
  background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.sidebar-menu.active {
  right: 0;
}

/* پوشش تیره پس‌زمینه */
.menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: -1;
  backdrop-filter: blur(5px);
}

.sidebar-menu.active .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* محتوای منو */
.menu-content {
  padding: 20px 0;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  transform: translateX(50px);
  opacity: 0;
}

.menu-item:hover {
  background: linear-gradient(90deg, #2980b9, #1f618d);
  transform: translateX(-5px);
  box-shadow: inset 5px 0 0 #fff;
}

.menu-link {
  display: block;
  padding: 20px 30px;
  color: #ecf0f1;
  text-decoration: none;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-link:hover {
  color: #fff;
  padding-right: 40px;
  font-weight: 600;
}

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

.menu-link:hover::before {
  right: 100%;
}

/* نقطه‌های تزئینی */
.menu-link::after {
  content: '◀';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  color: #2980b9;
  font-size: 12px;
}

.menu-link:hover::after {
  opacity: 1;
  left: 30px;
}

/* انیمیشن ورود */
body.menu-open {
  overflow: hidden;
}

/* افکت‌های اضافی */
.menu-item.animate {
  transform: translateX(0);
  opacity: 1;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .sidebar-menu {
    width: 60vw;
    right: -60vw;
  }
  
  .logo h1 {
    font-size: 24px;
  }
  
  .menu-link {
    font-size: 15px;
    padding: 18px 25px;
  }
}

@media (max-width: 480px) {
  .sidebar-menu {
    width: 60vw;
    right: -60vw;
  }
  
  .container {
    padding: 0 15px;
  }
}


.fullscreen-slider {
  position: relative;
  width: 100vw;
  height: 60vh;
  overflow: hidden;
}

.fullscreen-slider .slide {
  width: 100vw;
  height: 60vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.fullscreen-slider .slide.active {
  opacity: 1;
  z-index: 1;
}


@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}


section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  margin-bottom: 1.5rem;
  color: #222;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
}

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

/* 🌟 بخش فرم نظرات */
.comments-section {
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 1rem;
  margin: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.comments-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#commentForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#commentForm input, #commentForm textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

#commentForm button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#commentForm button:hover {
  background-color: #0056b3;
}

.success-msg {
  color: green;
  font-weight: bold;
}

.comments-display {
  margin-top: 2rem;
}

.comment-card {
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #eee;
  box-shadow: 0 0 5px rgba(0,0,0,0.03);
}


/* فوتر حرفه‌ای */
.footer {
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
  color: #ecf0f1;
  font-family: 'Vazirmatn', Arial, sans-serif;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9, #1abc9c, #16a085);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* محتوای اصلی فوتر */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

/* بخش‌های فوتر */
.footer-section {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

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

/* عناوین فوتر */
.footer-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

/* توضیحات */
.footer-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #bdc3c7;
  margin-bottom: 25px;
  text-align: justify;
}

/* شبکه‌های اجتماعی */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  transform: scale(1.2);
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* رنگ‌های مخصوص هر شبکه */
.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.telegram {
  background: linear-gradient(135deg, #0088cc, #229ED9);
}

.social-link.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-link.rubika {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.social-link.eitaa {
  background: linear-gradient(135deg, #ff8c00, #ff7700);
}

.social-link.linkedin {
  background: linear-gradient(135deg, #0077b5, #00669c);
}

/* استایل تصاویر لوگو */
.social-link img {
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

/* لینک‌های فوتر */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  position: relative;
  padding-right: 20px;
}

.footer-links li::before {
  content: '◀';
  position: absolute;
  right: 0;
  top: 2px;
  color: #3498db;
  font-size: 10px;
  transition: all 0.3s ease;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #3498db;
  transform: translateX(-5px);
}

.footer-links li:hover::before {
  color: #5dade2;
  transform: translateX(-3px);
}

/* اطلاعات تماس */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  padding-right: 10px;
  border-bottom-color: #3498db;
}

.contact-icon {
  font-size: 18px;
  width: 25px;
  text-align: center;
  color: #3498db;
}

.contact-item span {
  color: #bdc3c7;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-item:hover span {
  color: #ecf0f1;
}


/* خط جداکننده */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #34495e, transparent);
  margin: 0 20px;
}


/* دکمه تماس شناور - قوی‌ترین حالت */
.floating-contact {
    position: fixed !important;
    left: 20px !important;
    bottom: 80px !important;
    z-index: 9999 !important;
    animation: float 3s ease-in-out infinite !important;
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contact-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
    text-decoration: none !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    outline: none !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contact-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6) !important;
    background: linear-gradient(135deg, #128C7E, #25D366) !important;
}

.contact-btn svg {
    width: 24px !important;
    height: 24px !important;
    animation: ring 2s infinite !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)) !important;
}

.contact-btn:hover svg {
    animation: ring 0.6s infinite !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) !important;
}

/* Tooltip */
.tooltip {
    position: absolute !important;
    left: 70px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.contact-btn:hover .tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

/* انیمیشن شناور */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-12px) translateX(6px);
    }
    66% {
        transform: translateY(-8px) translateX(-4px);
    }
}

/* انیمیشن زنگ تلفن */
@keyframes ring {
    0%, 10% { transform: rotate(0deg); }
    15% { transform: rotate(18deg); }
    25% { transform: rotate(-18deg); }
    35% { transform: rotate(12deg); }
    45% { transform: rotate(-12deg); }
    55% { transform: rotate(8deg); }
    65% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

/* تنظیمات موبایل */
@media (max-width: 768px) {
    .floating-contact {
        left: 15px !important;
        bottom: 70px !important;
    }
    
    .contact-btn {
        width: 55px !important;
        height: 55px !important;
    }
    
    .contact-btn svg {
        width: 22px !important;
        height: 22px !important;
    }

    .tooltip {
        left: 65px !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

/* اصلاح کلی */
body, html {
    overflow-x: visible !important;
    position: relative !important;
}
/* پایین فوتر */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 25px 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #95a5a6;
  font-size: 14px;
  margin: 0;
}

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

.bottom-link {
  color: #95a5a6;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1px;
  background: #3498db;
  transition: width 0.3s ease;
}

.bottom-link:hover {
  color: #3498db;
}

.bottom-link:hover::after {
  width: 100%;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 40px 15px 30px;
    gap: 30px;
  }
  
  .footer-title {
    font-size: 20px;
  }
  
  .footer-desc {
    font-size: 14px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 30px 10px 20px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .contact-item {
    font-size: 13px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
  }
}
