/* style.css - ShopHub (simple version) */

:root {
  --brand: #8b5cf6;
  --brand-hover: #7c3aed;
  --accent: #f59e0b;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-section: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

html { scroll-behavior: smooth; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-menu a:hover { color: var(--brand); }

/* Hamburger Icon */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.menu-icon span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.35s ease;
}

.menu-icon.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-icon.active span:nth-child(2) { opacity: 0; }
.menu-icon.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  background: radial-gradient(circle at 50% 70%, rgba(139, 92, 246, 0.15), transparent 60%), var(--bg);
}

.hero-content { max-width: 700px; text-align: center; }
.hero-content h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 18px; }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 28px; }

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-primary:hover,
.btn-outline:hover { transform: translateY(-3px); }
.btn-outline:hover { background: rgba(139, 92, 246, 0.2); }

/* ---------- Hero Image ---------- */
.hero-image {
  width: 600px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.hero-image img { width: 100%; display: block; }

/* ---------- Sections ---------- */
.section {
  padding: 85px 20px 70px;
  background: var(--bg-section);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 2.15rem;
  text-align: center;
  margin-bottom: 26px;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: var(--brand);
}

.product-image {
  width: 100%;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
}

.product-card h3 { margin: 16px 0 6px; }
.product-price { color: var(--accent); font-weight: 700; margin-bottom: 14px; }

.product-card .btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta p { color: var(--text-muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  padding: 36px 0 24px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* ===================== */
/* Responsive — Mobile  */
/* ===================== */
@media (max-width: 768px) {
  .nav-container { padding: 0 16px; }
  .nav-logo h2 { font-size: 1.25rem; }

  /* show hamburger */
  .menu-icon { display: flex; }

  /* mobile dropdown menu */
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-menu.active { max-height: 400px; }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .nav-menu a {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
  }

  .hero { padding: 60px 16px 55px; }
  .hero-content h1 { font-size: 1.95rem; }
  .hero-content p { font-size: 1rem; }
  .hero-image { max-width: 350px; }

  .section { padding: 70px 16px 55px; }
  .section h2 { font-size: 1.95rem; }
}
