* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  background-color: #0f172a;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at center, #4f46e5 0%, #0f172a 45%),
    radial-gradient(circle at center, #1d4ed8 0%, transparent 50%);
  color: #e2e8f0;
  line-height: 1.6;
  
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.4)
  );
  pointer-events: none;

}


header {  
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(12px);

}

header h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px; 
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

nav a:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 36px 95px rgba(15, 23, 42, 0.42);
  border-color: rgba(59, 130, 246, 0.35);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.12);
  padding: 18px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  min-height: 64px;
  overflow: hidden;
  color: #f8fafc;
}

.price {
  display: inline-block;
  font-size: 24px;
  color: #38bdf8;
  font-weight: 800;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

button:hover {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.28);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-content {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(22px);
  max-width: 720px;
  width: 100%;
  padding: 36px;
  border-radius: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.modal-content img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.1);
  padding: 20px;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ef4444;
  color: white;
  border-radius: 14px;
  padding: 10px 14px;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.close-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 30px;
  color: #f8fafc;
}

.modal-content p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 24px 22px;
  }

  nav {
    justify-content: center;
  }

  main {
    padding: 28px 22px;
  }

  .card {
    padding: 24px 20px;
  }

  .modal-content {
    padding: 28px;
  }
}



























