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

    body {
      background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
      padding: 40px 20px;
      min-height: 100vh;
    }

    .section-title {
      text-align: center;
      margin-bottom: 40px;
      color: #2c3e50;
      font-size: 2.2rem;
    }

    .products-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .product-card {
      width: 280px;
      height: 380px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
    }

    .product-card:hover, .product-card:focus-within {
      transform: rotateY(180deg);
    }

    .card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .card-front {
      background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
      border: 1px solid #e0e6f0;
    }

    .card-back {
      background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      transform: rotateY(180deg);
      padding: 25px;
    }

    .card-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    .card-title {
      font-size: 1.4rem;
      color: #2c3e50;
      margin-bottom: 10px;
      cursor: pointer;
    }

    .card-back .card-title {
      color: white;
    }

    .card-price {
      font-size: 1.3rem;
      color: #e74c3c;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .card-description {
      font-size: 0.95rem;
      color: #ffffff;
      line-height: 1.6;
      margin-top: 10px;
      flex-grow: 1;
    }

    .add-to-cart-btn {
      background: #2575fc;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 50px;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.3s ease;
      margin-top: 15px;
      width: 100%;
      max-width: 200px;
    }

    .add-to-cart-btn:hover {
      background: #6a11cb;
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
    }

    .load-more-btn {
      display: block;
      margin: 50px auto 20px;
      padding: 14px 40px;
      background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      border: none;
      border-radius: 50px;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 5px 20px rgba(106, 17, 203, 0.4);
    }

    .load-more-btn:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(106, 17, 203, 0.6);
    }

    @media (max-width: 768px) {
      .products-container {
        grid-template-columns: 1fr;
        max-width: 500px;
      }

      .product-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 30px;
      }

      .section-title {
        font-size: 1.8rem;
      }
    }
.hero-slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0066cc, #6600cc);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background: linear-gradient(135deg, #0066cc 0%, #6600cc 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #0099cc 0%, #9900cc 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #00cc99 0%, #cc0099 100%);
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.slide h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.slide-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #6600cc;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slide-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: white;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: white;
}

@media (max-width: 768px) {
    .slide h2 {
        font-size: 2.5rem;
    }
    
    .slide p {
        font-size: 1.2rem;
    }
    
    .slide-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .slide-btn {
        padding: 10px 25px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a0dad, #2196f3);
    border-radius: 2px;
}

.categories-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: #6a0dad #f5f5f5;
    -webkit-overflow-scrolling: touch; /* برای اسکرول لمسی در iOS */
    scroll-behavior: smooth; /* اسکرول نرم */
}

.categories-container::-webkit-scrollbar {
    height: 8px;
}

.categories-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.categories-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #6a0dad, #2196f3);
    border-radius: 10px;
}

.category-card {
    min-width: 120px;
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    flex-shrink: 0; /* جلوگیری از کوچک شدن کارت‌ها */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
    font-size: 1.5rem;
    border: 2px solid #81c784;
}

.category-name {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
}

/* نمایش موبایل */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-card {
        min-width: 100px;
        padding: 15px 10px;
        height: 130px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}

/* برای دستگاه‌های بسیار کوچک */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .category-card {
        min-width: 90px;
        padding: 12px 8px;
        height: 120px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
}

/* افکت تغییر رنگ برای هر دسته‌بندی */
.category-card:nth-child(odd) .category-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #2196f3;
    border-color: #64b5f6;
}

.category-card:nth-child(even) .category-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #9c27b0;
    border-color: #ba68c8;
}

.category-card:nth-child(3n) .category-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff9800;
    border-color: #ffb74d;
}

.category-card:nth-child(4n) .category-icon {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    color: #8bc34a;
    border-color: #aed581;
}

.category-card:nth-child(5n) .category-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #e91e63;
    border-color: #f48fb1;
}

.category-card:nth-child(6n) .category-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
    border-color: #81c784;
}

/* اضافه کردن دکمه‌های ناوبری برای اسکرول با انگشت */
.navigation-buttons {
    display: none;
    justify-content: space-between;
    margin-top: 15px;
}

.nav-btn {
    background: linear-gradient(90deg, #6a0dad, #2196f3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

@media (max-width: 768px) {
    .navigation-buttons {
        display: flex;
    }
}