/* ---------------------------------------------------  Global Reset and Base Styles  --------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;   /* Ensures padding/border don’t affect width */
}

body {
  font-family: 'Poppins', sans-serif;   /* Clean, modern font */
  background-color: #f5f5f5;   /* Light gray background */
  color: #333;   /* Default text color */
  line-height: 1.5;   /* Better readability */
}

/* ---------------------------------------------------  Header & Navigation  --------------------------------------------------- */
.header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);   /* Soft shadow */
  position: sticky;   /* Stays visible on scroll */
  top: 0;
  z-index: 1000;   /* Keeps header above content */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
}

.brand {
  font-size: 28px;
  font-weight: 600;
  color: #e23744;   /* Highlight color */
}


/* Search Bar */
.searching {
  width: 350px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

/* Auth Buttons (Login/Signup) */
.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}
.btn:hover {
  color: #e23744;   /* Highlight on hover */
}

/* ---------------------------------------------------  Main Menu  --------------------------------------------------- */
.menu {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 15px 0;
  background: #fff;
}

.menu-item {
  text-align: center;
  cursor: pointer;
  color: #6a666d;
  font-weight: 500;
}
.menu-item:hover {
  color: #e23744;
}

/* Circular Category Images */
.circle-img {
  height: 70px;
  width: 70px;
  border-radius: 50%;     /* Makes it circular */
  margin-bottom: 8px;
  object-fit: cover;
}


/* ---------------------------------------------------  Collections Section  --------------------------------------------------- */
.collections {
  padding: 40px 50px;
  background: #edf9fe;    /* Light blue background */
}

.collections h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.collections p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #555;
}

/* Collection Grid Layout */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Collection Cards */
.collection-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}
.collection-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.collection-card:hover img {
  transform: scale(1.05);    /* Zoom effect */
}

/* Overlay Text on Cards */
.collection-card .overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: #fff;
}
.collection-card .overlay p {
  font-weight: 600;
}
.collection-card .overlay span {
  font-size: 14px;
}

/* ---------------------------------------------------  Restaurant Cards Section  --------------------------------------------------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  padding: 40px 20px;
}

/* Single Restaurant Card */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 300px;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: scale(1.03);
}

/* Card Image */
.image {
  position: relative;
}
.image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Discount/Offer Tag */
.off {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------------------------------------------------  Card Information Section  --------------------------------------------------- */
.info {
  padding: 15px;
}

/* Title & Rating Row */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.restaurant-name {
  font-weight: 600;
  font-size: 16px;
}
.rating {
  background: #1c871c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 13px;
}

/* Restaurant Details */
.details, .location {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}
.price, .distance {
  font-weight: 500;
}

/* ---------------------------------------------------  Responsive Design  --------------------------------------------------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .searching {
    width: 100%;
  }
  .menu {
    gap: 20px;
  }
}

