/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --primary-color: #411900; /* Dark Coffee Brown */
  --secondary-color: #9b3b00; /* Medium Brown */
  --accent-color: #ebb855; /* Golden Yellow */
  --light-accent: #f8f4ee; /* Light Cream */
  --dark-color: #1a1a1a; /* Dark */
  --white: #ffffff;
  --gray: #666666;
  --success: #28a745;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f8f4ee;
  color: var(--dark-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

/* ============================================
   Navigation
   ============================================ */
header {
  background-color: var(--primary-color);
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu li {
  display: inline-block;
  margin-right: 0;
}

.nav-menu a {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 3px;
}

.nav-menu a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.nav-menu .btn-order {
  background-color: var(--accent-color);
  color: var(--dark-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
}

.nav-menu .btn-order:hover {
  background-color: var(--white);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("photo/background3.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
}

.hero-content {
  color: var(--white);
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.location {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--dark-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  border: 2px solid var(--white);
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark-color);
}

/* ============================================
   Featured Menu Section
   ============================================ */
.featured-menu {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 28px;
  margin-bottom: 40px;
  text-align: center;
}

.menu-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-item {
  text-align: center;
  width: 200px;
  transition: transform 0.3s;
  cursor: pointer;
}

.menu-item:hover {
  transform: scale(1.1);
}

.menu-img-box {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.menu-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item p {
  margin-top: 15px;
  font-weight: bold;
  font-size: 16px;
  color: var(--dark-color);
}

/* ============================================
   Bestsellers Section
   ============================================ */
.bestsellers-section {
  background-color: #faf9f6;
  color: var(--dark-color);
  padding: 60px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 28px;
}

.view-all {
  color: var(--dark-color);
  font-weight: bold;
  transition: var(--transition);
}

.view-all:hover {
  color: var(--accent-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card {
  background-color: var(--accent-color);
  border-radius: 12px;
  padding: 15px;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.img-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.img-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.product-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.product-details .description {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 15px;
  height: 35px;
  overflow: hidden;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: bold;
  font-size: 18px;
}

.add-btn {
  background-color: var(--dark-color);
  color: var(--white);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.add-btn:hover {
  background-color: var(--primary-color);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  color: var(--white);
}

.about-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.about-content .lead {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature i {
  font-size: 24px;
  color: var(--accent-color);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-section p {
  margin-bottom: 10px;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* ============================================
   Cart Notification
   ============================================ */
.cart-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--success);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateX(400px);
  transition: var(--transition);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-notification.show {
  transform: translateX(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 755px) {
  /* Hide desktop menu, show hamburger */
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    height: 100vh;
    justify-content: center;
    transition: 0.3s;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 20px 0;
  }

  .nav-menu a {
    font-size: 24px;
  }

  /* Hero */
  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  /* About Section */
  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    flex: none;
    width: 100%;
  }

  /* Menu Items */
  .menu-container {
    flex-direction: column;
    align-items: center;
  }

  .menu-item {
    width: 100%;
    max-width: 300px;
  }

  .menu-img-box {
    width: 100%;
    height: auto;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
