/* ----------------------------
   General Reset & Base Styles
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  background-color: bisque;
  color: #333;
  line-height: 1.6;
}

/* ----------------------------
   Header Section
----------------------------- */
header {
  background-color: #ff914d;
  color: #fff;
  padding: 15px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.location {
  font-size: 0.95rem;
  margin-left: 30px;
}

.search-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-input {
  width: 60%;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  outline: none;
  font-size: 1rem;
}

.user-actions {
  font-size: 1.5rem;
  position: relative;
}

.cart-count {
  font-size: 0.9rem;
  color: #fff;
  background: #e63946;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -5px;
  right: -10px;
}

/* ----------------------------
   Hero Section
----------------------------- */
.hero {
  background: url("https://curlytales.com/wp-content/uploads/2022/08/pexels-photo-9266190.jpg")
    center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #ff914d;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background-color: #e46b2c;
}

/* ----------------------------
   Section Titles
----------------------------- */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin: 50px 0 30px;
}

/* ----------------------------
   Categories Section
----------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 40px 40px;
}

.category-card,
.categories-card {
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover,
.categories-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-card img,
.categories-card img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

/* ----------------------------
   Restaurant Section
----------------------------- */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 40px 40px;
}

.restaurant-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.restaurant-card:hover {
  transform: translateY(-5px);
}

.restaurant-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.restaurant-info {
  padding: 15px;
}

.restaurant-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.restaurant-cuisine {
  font-size: 0.95rem;
  color: #777;
  margin: 5px 0;
}

.restaurant-details {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 500;
}

/* ----------------------------
   Menu Section
----------------------------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 0 40px 40px;
}

.menu-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: scale(1.03);
}

.menu-image img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.menu-info {
  padding: 15px;
}

.menu-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.menu-description {
  font-size: 0.9rem;
  color: #666;
  margin: 8px 0;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-price {
  font-weight: bold;
  color: #333;
}

.add-button {
  background-color: #ff914d;
  color: white;
  padding: 5px 15px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.add-button:hover {
  background-color: #e46b2c;
}

/* ----------------------------
   Offers Section
----------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 0 40px 50px;
}

.offer-card {
  background-color: #fff8f0;
  border-left: 5px solid #ff914d;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.offer-image img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.offer-title {
  font-weight: 700;
  color: #ff914d;
  font-size: 1.2rem;
}

.offer-description {
  color: #555;
  margin: 8px 0;
}

.offer-code {
  font-weight: bold;
  color: #e63946;
}

/* ----------------------------
   Footer Section
----------------------------- */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
}

/* Footer Section */
.footer {
  background-color: #1e1e2f;
  color: #f5f5f5;
  padding: 50px 0 20px;
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
  color: #ccc;
}

.footer .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: #ff914d;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-section ul li:hover {
  color: #ff914d;
}

.footer-button {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.footer-button p {
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-section h3 {
    margin-top: 20px;
  }
}
