﻿:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --text: #111827;
  --muted: #5b6472;
  --line: #dce2ea;
  --accent: #0b79f7;
  --accent-hover: #055ec2;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% -20%, #dde8f8 0%, #f4f6f8 45%), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.35rem 0.8rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.hero {
  background: linear-gradient(130deg, #ffffff, #ecf3fb);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 3rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #0e5cae;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.hero p {
  color: var(--muted);
  max-width: 65ch;
}

.category,
.details {
  margin-top: 2.2rem;
}

.category h2,
.details h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  grid-template-areas:
    "image title cta"
    "image description cta";
  align-items: center;
  column-gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.product-card h3 {
  grid-area: title;
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.product-card p {
  grid-area: description;
  margin: 0;
  color: var(--muted);
  min-height: 0;
}

.product-card img {
  grid-area: image;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  margin-top: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-buy {
  background: var(--accent);
  color: #fff;
}

.btn-buy {
  grid-area: cta;
  margin-top: 0;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-buy:hover {
  background: var(--accent-hover);
}

.details {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.detail-card h3 {
  margin-top: 0;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
}

@media (max-width: 1000px) {
  .product-card {
    grid-template-columns: 110px 1fr auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 1.4rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "title"
      "description"
      "cta";
    row-gap: 0.65rem;
  }

  .btn-buy {
    justify-self: start;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }
}
