
    body {
      font-family: 'Vazir', sans-serif;
      background: #f0f4ff;
      margin: 0;
      padding-top: 70px;
      scroll-behavior: smooth;
      color: #2c3e50;
    }
    a {
      text-decoration: none;
    }
    a:hover, a:focus {
      /* text-decoration: underline; */
      outline: none;
      color: white;
    }
    /* Navbar */
    nav.navbar {
      position: fixed;
      top: 0; right: 0; left: 0;
      background: transparent;
      padding: 1rem 2rem;
      transition: background-color 0.4s ease, box-shadow 0.4s ease;
      z-index: 1100;
      backdrop-filter: saturate(180%) blur(15px);
    }
    nav.navbar.scrolled {
      background: #fff;
      box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }
    nav.navbar .navbar-brand {
      font-weight: 900;
      font-size: 1.8rem;
      color: #1a237e;
      letter-spacing: 2px;
      transition: color 0.4s ease;
    }
    nav.navbar.scrolled .navbar-brand {
      color: #0d1452;
    }
    nav.navbar .navbar-nav .nav-link {
      color: #34495e;
      font-weight: 600;
      font-size: 1.1rem;
      margin: 0 12px;
      position: relative;
      transition: color 0.3s ease;
    }
    nav.navbar .navbar-nav .nav-link:hover,
    nav.navbar .navbar-nav .nav-link:focus {
      color: #1a237e;
    }
    nav.navbar .navbar-nav .nav-link::after {
      content: '';
      position: absolute;
      bottom: -6px;
      right: 0;
      width: 0;
      height: 3px;
      background: #1a237e;
      transition: width 0.3s ease;
      border-radius: 2px;
    }
    nav.navbar .navbar-nav .nav-link:hover::after,
    nav.navbar .navbar-nav .nav-link:focus::after {
      width: 100%;
    }
    /* Navbar Search */
    .navbar-search {
      position: relative;
      width: 36px;
      height: 36px;
      background: #34495e;
      border-radius: 50px;
      overflow: hidden;
      cursor: pointer;
      transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
    }
    .navbar-search.expanded {
      width: 230px;
      background: #1a237e;
      padding: 0 15px;
    }
    .navbar-search input {
      border: none;
      outline: none;
      background: transparent;
      color: white;
      width: 0;
      font-size: 1rem;
      font-weight: 600;
      padding: 0;
      transition: width 0.45s cubic-bezier(0.4,0,0.2,1), padding 0.45s cubic-bezier(0.4,0,0.2,1);
      caret-color: white;
      direction: ltr;
    }
    .navbar-search.expanded input {
      width: 100%;
      padding: 0.35rem 0.5rem;
    }
    .navbar-search svg {
      fill: white;
      width: 20px;
      height: 20px;
      pointer-events: none;
      transition: transform 0.45s ease;
    }
    .navbar-search.expanded svg {
      transform: translateX(8px);
    }

    /* Hero Section */
    .hero-section {
      background: linear-gradient(135deg, #4e73df, #224abe);
      color: white;
      text-align: center;
      padding: 6rem 1rem 5rem;
      position: relative;
      overflow: hidden;
      clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
      box-shadow: inset 0 0 80px rgba(255,255,255,0.15);
    }
    .hero-section h1 {
      font-weight: 900;
      font-size: 3.8rem;
      margin-bottom: 1rem;
      animation: fadeInDown 1s ease forwards;
      letter-spacing: 2px;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.35);
    }
    .hero-section p {
      font-size: 1.5rem;
      margin-bottom: 2.5rem;
      animation: fadeInUp 1s ease forwards;
      animation-delay: 0.5s;
      opacity: 0;
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
      text-shadow: 1px 1px 6px rgba(0,0,0,0.25);
    }
    .hero-buttons {
      display: flex;
      justify-content: center;
      gap: 20px;
      animation: pulse 2.5s infinite;
    }
    .hero-buttons button {
      background: #ff6f61;
      border: none;
      padding: 0.9rem 2.2rem;
      border-radius: 40px;
      font-size: 1.3rem;
      font-weight: 700;
      color: white;
      box-shadow: 0 6px 20px rgba(255,111,97,0.6);
      cursor: pointer;
      transition: background 0.3s ease, transform 0.3s ease;
    }
    .hero-buttons button:hover, .hero-buttons button:focus {
      background: #e55b4c;
      outline: none;
      transform: scale(1.08);
    }

    /* انیمیشن‌ها */
    @keyframes fadeInDown {
      0% { opacity: 0; transform: translateY(-50px);}
      100% { opacity: 1; transform: translateY(0);}
    }
    @keyframes fadeInUp {
      0% { opacity: 0; transform: translateY(40px);}
      100% { opacity: 1; transform: translateY(0);}
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1);}
      50% { transform: scale(1.05);}
    }

    /* محصولات */
    .products-section {
      padding: 4rem 1rem 3rem;
      max-width: 1200px;
      margin: auto;
      text-align: center;
    }
    .products-section h2 {
      font-weight: 900;
      color: #1a237e;
      margin-bottom: 2rem;
      font-size: 2rem;
      letter-spacing: 1.5px;
    }
    .products-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
    }
    .product-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgb(0 0 0 / 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-width: 280px;
      margin: auto;
    }
    .product-card:hover,
    .product-card:focus-visible {
      transform: translateY(-10px);
      box-shadow: 0 12px 35px rgb(0 0 0 / 0.15);
      outline: none;
    }
    .product-img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      background: #fff;
      padding: 15px;
    }
    .product-body {
      padding: 1rem 1.2rem 1.5rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .product-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #222;
    }
    .product-desc {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 1rem;
      flex-grow: 1;
    }
    .product-price {
      font-size: 1.1rem;
      color: #ff6f61;
      font-weight: 700;
    }

    /* سرچ پایین محصولات */
    .products-search {
      margin: 2rem auto 4rem;
      max-width: 350px;
      display: flex;
      align-items: center;
      border-radius: 50px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
      transition: box-shadow 0.3s ease;
    }
    .products-search input {
      border: none;
      padding: 0.7rem 1rem;
      flex-grow: 1;
      font-size: 1.1rem;
      font-weight: 600;
      outline: none;
      border-radius: 50px 0 0 50px;
      color: #2c3e50;
      transition: box-shadow 0.3s ease;
    }
    .products-search input:focus {
      box-shadow: 0 0 6px #1a237e;
    }
    .products-search button {
      border: none;
      background: #1a237e;
      color: white;
      padding: 0.7rem 1.2rem;
      font-weight: 700;
      cursor: pointer;
      border-radius: 0 50px 50px 0;
      transition: background 0.3s ease;
    }
    .products-search button:hover, .products-search button:focus {
      background: #12235a;
      outline: none;
    }

    /* بخش ویژگی‌ها */
    .features-section {
      background: #fff;
      padding: 3rem 1rem 4rem;
      text-align: center;
    }
    .features-section h2 {
      font-weight: 900;
      margin-bottom: 2rem;
      color: #1a237e;
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2rem;
      max-width: 1000px;
      margin: auto;
    }
    .feature-item {
      background: #f1f5ff;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.07);
      transition: background-color 0.3s ease, transform 0.3s ease;
      cursor: default;
    }
    .feature-item:hover, .feature-item:focus-visible {
      background: #d6e4ff;
      transform: translateY(-5px);
      outline: none;
    }
    .feature-icon {
      font-size: 3rem;
      color: #1a237e;
      margin-bottom: 1rem;
    }
    .feature-title {
      font-weight: 700;
      margin-bottom: 0.6rem;
      color: #222;
      font-size: 1.1rem;
    }
    .feature-desc {
      font-size: 1rem;
      color: #555;
    }

    /* بخش نظرات */
    .reviews-section {
      padding: 3rem 1rem 4rem;
      background: #f9f9f9;
      max-width: 1000px;
      margin: auto;
      text-align: center;
    }
    .reviews-section h2 {
      font-weight: 900;
      margin-bottom: 2rem;
      color: #1a237e;
    }
    .review-card {
      background: white;
      padding: 1.6rem 1.8rem;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);
      margin: 1rem auto;
      max-width: 600px;
      transition: box-shadow 0.3s ease;
    }
    .review-card:hover, .review-card:focus-visible {
      box-shadow: 0 10px 30px rgb(0 0 0 / 0.15);
      outline: none;
    }
    .review-text {
      font-style: italic;
      color: #555;
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }
    .review-author {
      font-weight: 700;
      color: #1a237e;
    }

    /* فرم تماس در فوتر */
    .footer-contact-form label {
      font-weight: 600;
      margin-bottom: 0.3rem;
      display: block;
      color: #fff;
    }
    .footer-contact-form input,
    .footer-contact-form textarea {
      width: 100%;
      border-radius: 8px;
      border: none;
      padding: 0.5rem;
      font-size: 1rem;
      margin-bottom: 1rem;
      resize: vertical;
    }
    .footer-contact-form input:focus,
    .footer-contact-form textarea:focus {
      outline: none;
      box-shadow: 0 0 5px #4e73df;
    }
    .footer-contact-form button {
      background: #ff6f61;
      border: none;
      padding: 0.6rem 1.5rem;
      border-radius: 40px;
      color: white;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    .footer-contact-form button:hover,
    .footer-contact-form button:focus {
      background: #e55b4c;
      outline: none;
    }

    /* Footer */
    footer {
      background: #1a237e;
      color: #ddd;
      padding: 3rem 1rem 2rem;
      font-size: 0.95rem;
    }
    footer a {
      color: #ccc;
      text-decoration: none;
    }
    footer a:hover, footer a:focus {
      color: #fff;
      text-decoration: underline;
      outline: none;
    }
    .footer-top {
      max-width: 1200px;
      margin: auto;
      display: flex;
      flex-wrap: wrap;
      gap: 3rem;
      justify-content: space-between;
      margin-bottom: 2rem;
    }
    .footer-info {
      flex: 1 1 250px;
      min-width: 230px;
    }
    .footer-info h4 {
      color: #ff6f61;
      margin-bottom: 1rem;
    }
    .footer-contact {
      line-height: 1.8;
    }
    .footer-social {
      display: flex;
      gap: 15px;
      margin-top: 1rem;
    }
    .footer-social a {
      display: inline-block;
      font-size: 1.3rem;
      color: #ddd;
      transition: color 0.3s ease;
    }
    .footer-social a:hover, .footer-social a:focus {
      color: #ff6f61;
      outline: none;
    }

    /* فرم ورود و ثبت‌نام (مودال) */
    .modal-header {
      border-bottom: none;
    }
    .modal-title {
      font-weight: 800;
      color: #1a237e;
      font-size: 1.4rem;
    }
    .form-control.is-invalid {
      border-color: #dc3545;
      padding-right: calc(1.5em + 0.75rem);
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 12 12'%3e%3cpath d='M6 0a6 6 0 110 12A6 6 0 016 0zm0 1.2a.9.9 0 100 1.8.9.9 0 000-1.8zm.9 6.3a.9.9 0 11-1.8 0V4.8a.9.9 0 111.8 0v3z'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right calc(0.375em + 0.1875rem) center;
      background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }
    .invalid-feedback {
      display: block;
      font-size: 0.9rem;
    }
    .btn-disabled {
      background-color: #b0b0b0 !important;
      border-color: #999 !important;
      cursor: not-allowed !important;
      box-shadow: none !important;
    }

    /* سبد خرید */
    .cart-sidebar {
      position: fixed;
      top: 0;
      bottom: 0;
      left: -350px;
      width: 350px;
      background: #fff;
      box-shadow: 4px 0 15px rgba(0,0,0,0.15);
      padding: 1.5rem;
      transition: left 0.4s ease;
      z-index: 1200;
      overflow-y: auto;
      font-size: 1rem;
    }
    .cart-sidebar.open {
      left: 0;
    }
    .cart-header {
      font-weight: 800;
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: #1a237e;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .cart-close-btn {
      cursor: pointer;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #1a237e;
    }
    .cart-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 1rem;
      border-bottom: 1px solid #eee;
      padding-bottom: 0.8rem;
    }
    .cart-item-name {
      font-weight: 600;
      color: #34495e;
    }
    .cart-item-price {
      color: #ff6f61;
      font-weight: 700;
    }
    .cart-total {
      font-weight: 800;
      font-size: 1.2rem;
      color: #1a237e;
      margin-top: 1rem;
      text-align: left;
    }
    .cart-empty {
      text-align: center;
      color: #888;
      margin-top: 3rem;
    }
    /* ریسپانسیو */
    @media (max-width: 768px) {
      .hero-section h1 {
        font-size: 2.7rem;
      }
      .hero-section p {
        font-size: 1.2rem;
      }
      .products-grid {
        flex-direction: column;
        align-items: center;
      }
      .cart-sidebar {
        width: 100%;
      }
    }


    /* بهبودهای ریسپانسیو برای ناوبری و سبد خرید */
@media (max-width: 992px) {
  /* تنظیمات منوی ناوبری در دستگاه‌های متوسط */
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    margin-bottom: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-search {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* تنظیمات برای دستگاه‌های کوچک */
  .navbar {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .hero-section h1 {
    font-size: 2.2rem !important;
  }
  
  .hero-section p {
    font-size: 1.1rem !important;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons button {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  /* بهبود سبد خرید در موبایل */
  .cart-sidebar {
    width: 90% !important;
    left: -100%;
  }
  
  .cart-sidebar.open {
    left: 0;
  }
  
  .cart-header {
    font-size: 1.2rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  /* تنظیمات برای دستگاه‌های بسیار کوچک */
  .hero-section {
    padding: 4rem 1rem 3rem !important;
  }
  
  .hero-section h1 {
    font-size: 1.8rem !important;
  }
  
  .products-section, .features-section, .reviews-section {
    padding: 3rem 1rem;
  }
  
  .product-card, .feature-item, .review-card {
    padding: 1rem;
  }
  
  .footer-contact-form input,
  .footer-contact-form textarea {
    padding: 0.75rem;
  }
}


.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  margin-right: auto; /* برای تراز به چپ در حالت RTL */
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    margin-bottom: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
}