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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f3f4f6;
  color: #333;
}

/* ===== 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: #4da6ff;
}

header .search-bar {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

header .search-bar input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
}

header .search-bar button {
  padding: 8px 15px;
  border: none;
  background: #4da6ff;
  color: #fff;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s;
}

header .search-bar button:hover {
  background: #1a75ff;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

nav a {
  color: black;
  text-decoration: none;
  margin-left: 20px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #4da6ff;
}


/* ===== Title ===== */
h1 {
  color: #222;
  font-size: 2rem;
  text-align: center;
  margin: 25px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #4da6ff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1a75ff;
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 5%;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Cart Page ===== */
.cart {
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #444;
}

.item-info p {
  font-size: 0.9rem;
  color: #666;
}

.item-info .price {
  font-size: 0.95rem;
  font-weight: bold;
  color: #111;
}

.item-total {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c5282;
}

.cart-summary {
  text-align: right;
  margin-top: 20px;
}

.cart-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.cart-summary span {
  color: #2c5282;
}

/* ===== Checkout Page ===== */
.checkout {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.checkout h2 {
  margin-bottom: 15px;
  color: #444;
}

.order-list {
  margin-bottom: 20px;
}

.order-list ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.order-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.checkout label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.checkout input,
.checkout textarea,
.checkout select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

/* 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;
} 
/* ===== 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 */
  }
}