/* =============================
   Global Reset & Base
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* =============================
   Header Layout
============================= */
.header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

/* -----------------------------
   Top Header Row
----------------------------- */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2d7d46; /* Green shade */
  cursor: pointer;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 600px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.search-bar input:focus {
  border-color: #2d7d46;
  box-shadow: 0 0 4px rgba(45, 125, 70, 0.3);
}

/* Delivery */
.delivery {
  font-size: 0.9rem;
  text-align: right;
  color: #444;
}

.delivery .location {
  font-weight: bold;
  color: #2d7d46;
  cursor: pointer;
}

/* Login Button */
.login-btn button {
  padding: 8px 16px;
  background-color: #2d7d46;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn button:hover {
  background-color: #25663a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* -----------------------------
   Navigation Bar
----------------------------- */
.nav-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  border-top: 1px solid #eaeaea;
}

.nav-bar button {
  padding: 8px 14px;
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Hover / Focus styles for flat-modern buttons */
.nav-bar button:hover {
  background-color: #e4e4e4;
  border-color: #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Special styling for Cart button */
.nav-bar button:last-child {
  background-color: #2d7d46;
  color: #fff;
  border: none;
}

.nav-bar button:last-child:hover {
  background-color: #25663a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-bar {
    width: 100%;
  }

  .nav-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
}
