/* Menu Page Styles */
:root {
  --coffee-brown: #8b4513;
  --light-coffee: #d2b48c;
  --clean-white: #ffffff;
  --accent-blue: #4a90e2;
  --coffee-dark: #3c2414;
  --coffee-medium: #6f4e37;
  --success-green: #28a745;
  --warning-orange: #fd7e14;
  --danger-red: #dc3545;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
}

/* Hero Section */
.menu-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../../../assets/images/menu_header.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--clean-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(139, 69, 19, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Bellefair', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Menu Section */
.menu-section {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Menu Categories */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  background-color: var(--clean-white);
  border: 2px solid var(--coffee-medium);
  border-radius: 30px;
  color: var(--coffee-dark);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: var(--coffee-medium);
  color: var(--clean-white);
}

.category-btn.active {
  background-color: var(--coffee-dark);
  color: var(--clean-white);
  border-color: var(--coffee-dark);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Product Cards */
.product-card {
  background-color: var(--clean-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(139, 69, 19, 0.15);
  background-color: #fcf8f5; /* Light coffee background on hover */
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--coffee-medium);
  color: var(--clean-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-family: 'Bellefair', serif;
  font-size: 1.5rem;
  color: var(--coffee-dark);
  margin-bottom: 0.5rem;
}

.product-description {
  font-family: 'Barlow', sans-serif;
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.product-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coffee-medium);
}

.order-btn {
  padding: 0.5rem 1rem;
  background-color: var(--coffee-dark);
  color: var(--clean-white);
  border: none;
  border-radius: 5px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-btn:hover {
  background-color: var(--coffee-medium);
  transform: translateY(-2px);
}

/* Product Card Hover States */
.product-card[data-category='coffee']:hover {
  background-color: rgba(111, 78, 55, 0.1); /* Coffee color tint */
}

.product-card[data-category='milktea']:hover {
  background-color: rgba(106, 90, 205, 0.1); /* Purple tint for milk tea */
}

.product-card[data-category='special']:hover {
  background-color: rgba(255, 165, 0, 0.1); /* Orange tint for specials */
}

/* Responsive Design */
@media (max-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-section {
    padding: 3rem 0;
  }

  .menu-categories {
    margin-bottom: 2rem;
  }

  .category-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1.5rem;
  }

  .menu-section {
    padding: 2rem 0;
  }

  .menu-categories {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .product-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .order-btn {
    width: 100%;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: var(--clean-white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--coffee-dark);
}

.modal h2 {
  font-family: 'Bellefair', serif;
  color: var(--coffee-dark);
  margin-bottom: 0.5rem;
}

.modal p {
  font-family: 'Barlow', sans-serif;
  color: #666;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  color: var(--coffee-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Barlow', sans-serif;
}

.messenger-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem;
  background-color: #0084ff; /* Facebook Messenger blue */
  color: var(--clean-white);
  border: none;
  border-radius: 5px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
  margin-top: 1rem;
}

.messenger-submit-btn:hover {
  background-color: #0077e5;
}
