* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter";
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  transition: all 0.3s ease;
}

body.light {
  background: linear-gradient(200deg, #858ea0, #4b5360);
  color: #0f172a;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap; /* مهم: اجازه نده آیتم‌ها به خط بعد برن */
    gap: 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
} 
body.light header {
  background: linear-gradient(135deg, #475569, #7f8a99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
   font-family: "Inter";
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light .logo {
 
      font-family: "Inter";
    font-size: 1.7rem;
    font-weight: 800;
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn {
  background: #334155;
  border: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.4s;
}

.theme-btn:hover {
  background-color: #2563eb;
  transform: translateY(-5px);
}

body.light .theme-btn {
  background-color: #cbd5e1;
}

body.light .theme-btn:hover {
  background-color: #475569;
}

.product-header {
  text-align: center;
  padding: 1rem 1rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

body.light .product-header {
  background: linear-gradient(135deg, #b0bed1, #475569);
}

.product-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

body.light .product-header h1 {
  color: #000000;
}

.product-header p {
  color: #94a3b8;
}

body.light .product-header p {
  color: #000000;
}

.categories-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.category-section {
  background: #1e293b;
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: 0.3s;
}

body.light .category-section {
  background: linear-gradient(135deg, #475569, #7f8a99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #3b82f6;
}

body.light .category-header {
  border-bottom: 2px solid #798fae;
}

.category-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-header h2 i {
  color: #3b82f6;
}

body.light .category-header h2 i {
  color: #aac3e3;
}

body.light .category-header h2 {
  color: #aac3e3;
}

.view-all {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all:hover {
  color: #2563eb;
  transform: translateX(-3px);
}

body.light .view-all {
  color: #252527;
}

body.light .view-all:hover {
  color: #c0cfea;
  transform: translateX(-3px);
}

/* ========== لپ‌تاپ - کارت‌های بزرگ ========== */
.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #0f172a;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #334155;
}

body.light .product-card {
  background: linear-gradient(135deg, #94a3b8, #e2e8f0);
  border-color: #4d5259;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.product-specs {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

body.light .product-specs {
  color: #0f172a;
}

.product-price {
  color: #3b82f6;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

body.light .product-price {
  color: #1e293b;
}

.buy-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.buy-btn:hover {
  background: #2563eb;
  transform: translateY(-4px);
}

body.light .buy-btn {
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #aac3e3, #636b74);
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #1e293b;
  margin-top: 2rem;
}

body.light footer {
  background-color: #8898ad;
}

.special-thanks {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  background: rgba(59, 130, 246, 0.05);
}

body.light .special-thanks {
  color: #0f172a;
  border-color: #cbd5e1;
  background: rgba(59, 130, 246, 0.03);
}

.special-thanks i {
  color: #ef4444;
  margin: 0 8px;
  animation: heartBeat 1.5s ease infinite;
}

.special-thanks p {
  display: inline-block;
  font-size: 0.95rem;
  font-style: italic;
  color: #cbd5e1;
}

body.light .special-thanks p {
  color: #151515;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.Home {
  cursor: pointer;
  border: none;
  font-size: 18px;
  bottom: 30px;
  left: 30px;
  padding: 12px 28px;
  background-color: #3b82f6;
  color: #f8fafc;
  position: fixed;
  transition: 0.3s ease;
  border-radius: 40px;
  font-weight: bold;
  z-index: 100;
}

.Home:hover {
  background-color: #2563eb;
  transform: translateY(-7px);
}

body.light .Home {
  background-color: #94a3b8;
  color: #0f172a;
}

body.light .Home:hover {
  background-color: #94a3b8;
  color: #0f172a;
}

/* ========== منوی همبرگر ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.3s;
}

body.light .menu-toggle {
  color: #1e293b;
}

.menu {
  position: fixed;
  top: 70px;
  right: -250px;
  background: #1e293b;
  backdrop-filter: blur(10px);
  flex-direction: column;
  width: 220px;
  padding: 1rem 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.3s ease;
  list-style: none;
}

body.light .menu {
  background: #94a3b8;
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
}

.menu.active {
  right: 0;
}

.menu li {
  width: 100%;
}

.menu a {
  display: block;
  padding: 12px 24px;
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.2s;
  font-weight: 500;
}

body.light .menu a {
  color: #0f172a;
}

.menu a:hover {
  background: #3b82f6;
  color: white;
  padding-left: 32px;
}

/* ========== انیمیشن ========== */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========== موبایل ========== */
@media (max-width: 768px) {
  .categories-container {
    padding: 1rem;
  }

  .products-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    padding: 1.8rem;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  .product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .product-specs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .product-price {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .buy-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .category-header h2 {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }
}