/* =========================
   GLOBAL RESET & BOX MODEL
   ========================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fffaf2;
  color: #3a2a1a;
}

html {
  scroll-behavior: smooth;
}

section {
  padding: 60px 8%;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fffaf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8%;
  border-bottom: 1px solid #e5d8b0;
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
}

.nav-links a {
  margin-left: 24px;
  text-decoration: none;
  color: #3a2a1a;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: #2e7d32;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #2e7d32;
}

/* =========================
   HERO
   ========================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-size: cover;
}

.hero-content {
  max-width: 50%;
}

.hero-product img {
  width: 180px;
  margin: 10px;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 32px;
}

/* =========================
   BUTTON
   ========================= */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
}

/* =========================
   ABOUT & BENEFITS
   ========================= */
.about,
.benefits {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* =========================
   ICONS
   ========================= */
.icons {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.icons img {
  width: 60px;
}

/* =========================
   ORDER SECTION
   ========================= */
.order {
  text-align: center;
  background: #f5e4b7;
}

.order-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 30px;
  flex-wrap: wrap;
}

.qr-img {
  width: clamp(120px, 18vw, 220px);
}

/* =========================
   CONTACT
   ========================= */
.contact {
  text-align: center;
}

/* =========================
   PRODUCTS PAGE
   ========================= */
.products-section {
  padding: 60px 8%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #f7e7c4;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* SAVE BADGE */
.save-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #1f5f3b;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* PRODUCT IMAGE */
.product-card img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-size {
  font-size: 14px;
  color: #555;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0;
}

/* PRICE */
.price {
  font-size: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.new-price {
  color: #7a5a00;
  font-weight: 700;
}

/* PRICE + BUY BUTTON */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.buy-btn {
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.buy-btn:hover {
  background: #256428;
}

/* =========================
   BACKGROUNDS
   ========================= */
.about-page {
  background-image:
    linear-gradient(rgba(255,250,242,0.88), rgba(255,250,242,0.88)),
    url("../images/backgrounds/about-bg.jpg");
  background-size: cover;
  background-position: center;
}

.contact-page {
  background-image:
    linear-gradient(rgba(255,250,242,0.9), rgba(255,250,242,0.9)),
    url("../images/backgrounds/contact-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* =====================================================
   IMPORTANT FIX: CONTACT PAGE LAYOUT (VERTICAL CONTENT)
   -----------------------------------------------------
   Reason:
   - .contact-page was using display:flex (row by default)
   - That caused contact info to appear horizontally
   Fix:
   - Force column direction only for contact page
   - Does NOT affect gamew, products, about, or hero
   ===================================================== */
.about-page,
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-page {
  flex-direction: column;     /* 🔥 MAIN FIX */
  align-items: flex-start;    /* Left aligned text */
  text-align: left;           /* Clean vertical reading */
  gap: 14px;                  /* Vertical spacing */
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  section {
    padding: 30px 5%;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-product img {
    width: 140px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .about,
  .benefits {
    flex-direction: column;
  }

  .icons {
    flex-wrap: wrap;
    gap: 20px;
  }

  .icons div {
    width: 45%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: auto;
    display: block;
  }
}

/* BUY BUTTON – MOBILE FINAL FIX */
@media (max-width: 600px) {

  .product-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .buy-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 26px;
  }
}
