* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f8fb;
  color: #1f2937;
}

a { text-decoration: none; }

.container {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  padding: 28px 0 52px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.logo span { color: #93c5fd; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 22px;
  color: #dbeafe;
  max-width: 650px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-points {
  padding-left: 18px;
  margin: 0;
  color: #eff6ff;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #0f172a;
}

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

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.24);
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-head p {
  margin: 0;
  color: #6b7280;
}

.filters {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 22px;
}

.filters input, .filters select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: white;
  font-size: 0.98rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #eef2ff;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.badge {
  display: inline-block;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
  flex: 1;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-buy {
  background: #1d4ed8;
  color: white;
  flex: 1;
}

.btn-buy:hover { background: #1e40af; }

.btn-light {
  background: #eff6ff;
  color: #1d4ed8;
}

.about {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  line-height: 1.7;
  color: #475569;
}

footer {
  padding: 28px 0 40px;
  color: #6b7280;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 28px;
  background: white;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

@media (max-width: 900px) {
  .hero,
  .filters,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-card { order: -1; }
}

@media (max-width: 620px) {
  header { padding-bottom: 38px; }
  .container { width: min(100% - 20px, 1150px); }
  .card img { height: 210px; }
  .topbar { margin-bottom: 24px; }
}
