/* =========================
   GLOBAL STYLE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
  background: white;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;   /* ✅ for small screens */
}

header .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #007bff;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #4da6ff;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 1rem;
}
.search-bar button {
  padding: 12px 20px;
  border: none;
  background: #4da6ff;
  color: #fff;
  font-size: 1rem;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #1a75ff;
} 
/* Nav Links */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #007bff;
}

/* =========================
   PRODUCT SECTION
========================= */
.hero2 {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Product Image */
.card img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.card img:hover {
  transform: scale(1.08);
  cursor: zoom-in;
}

/* Product Info */
.product-details h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.price {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 15px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-left: 10px;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.features {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333;
}

.features li {
  margin-bottom: 8px;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.add-cart-btn, .buy-btn {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.add-cart-btn {
  background: #f4f4f9;
  color: #333;
  border: 1px solid #ddd;
}
.add-cart-btn:hover {
  background: #e2e2e2;
  transform: translateY(-2px);
}

.buy-btn {
  background: #007bff;
  color: white;
}
.buy-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

footer:hover {
  transform: scale(1.02);
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: 20px;
}


/* Mobile: only show logo + hamburger */
@media (max-width: 768px) {
  nav,
  .search-bar {
    display: none !important;   /* hide nav + search */
  }

  header {
    justify-content: space-between;
  }

  .logo {
    font-size: 1.3rem;  /* keep logo readable */
  }

  .menu-toggle {
    display: block;     /* show hamburger */
  }
}