/* assets/home.css
   Hero + Featured Products
   Tuned for glass header compatibility
*/

/* ------------------------------
   HERO SECTION
------------------------------ */

.hero-section {
  width: 100%;
  height: 62vh;
  min-height: 420px;
  background: center / cover no-repeat var(--hero-url);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2,6,23,0.52),
    rgba(2,6,23,0.24)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 920px;

  /* Visual spacing against glass header */
  padding: 32px 28px 28px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 10px 32px rgba(0,0,0,0.6);
  animation: fadeUp .9s both;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.92);
  animation: fadeUp .9s .12s both;
}

/* Hero button */
.hero-shop-btn {
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;

  /* FIX: solid readable color */
  color: #0b1220;

  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(2,6,23,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-shop-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(2,6,23,0.35);
}

/* ------------------------------
   FEATURED SECTION
------------------------------ */

.section-title {
  margin: 36px 0 6px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
}

/* Featured product grid */
#featured-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Featured product card */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Product image */
.product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 10px;
}

/* Title + price */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price {
  font-weight: 700;
  margin-bottom: 14px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 6px;
}

/* Discount badge (safe override) */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.8rem;
}

/* Add-to-cart button */
.add-btn {
  margin-top: auto;
  background: #000;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}

.add-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 880px) {
  .hero-content h1 { font-size: 28px; }
  .product-image { height: 180px; }
}
