:root {
  --bg: #0b0b0c;
  --accent: #0078ff;
  --accent2: #00a2ff;
  --radius: 10px;
  --max-width: 1100px;
  --ease: cubic-bezier(.2,.9,.3,1);
  --glass: rgba(255,255,255,0.03);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: #fff;
}

/* === NAVBAR === */
.topbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  width: 100%;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}


.nav-logo {
  width: 28px;
  height: 28px;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* === HERO === */
.hero {
  position: relative;
  height: 360px;
  background: url("/assets/banner.png") center/cover no-repeat;
  margin-top: 48px; /* offset for fixed navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 36px;
  margin: 0 0 12px;
  text-shadow: 0 6px 25px rgba(0,0,0,0.8);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: none;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 0 18px rgba(0, 136, 255, 0.3);
}

.btn.secondary {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: white;
  min-width: 140px;
}

.btn:hover {
  transform: scale(1.05);
}

/* === MAIN === */
.main {
  max-width: var(--max-width);
  margin: 50px auto;
  padding: 0 20px;
}

.featured h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 28px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;            /* allow wrapping on small screens */
  justify-content: center;    /* center the whole row */
  gap: 24px;                  /* spacing between cards */
  margin-top: 18px;
}

.product-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
  overflow: hidden;
  text-align: center;
  /* control the card width in the flex layout */
  flex: 0 1 320px;           /* do not grow, can shrink, base width 320px */
  max-width: 320px;
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #111; /* optional: fill background */
  display: block;
}


.product-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  opacity: 0.9;
}

.product-info {
  padding: 14px;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  z-index: 99;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .product-card {
    flex: 1 1 100%;
    max-width: none;
  }
  .product-image img {
    height: 180px;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .product-card {
    flex: 0 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}