/* Base Styles */
:root {
  --primary: #6d4c41; /* Warm brown */
  --secondary: #d7ccc8; /* Light warm gray */
  --accent: #8d6e63; /* Medium brown */
  --text: #3d2c2e; /* Dark brown */
  --light: #f5e1c0; /* Very light warm gray */
  --price-color: #a1887f; /* Light brown for prices */
  --title-color: #795548; /* Medium brown for titles */
}

body {
  font-family: "Vazir", sans-serif;
  direction: rtl;
  background-color: #fcf3dc; /* Light gray background */
  color: var(--text);
  line-height: 1.6;
}

header {
  background-color: var(--primary);
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 30px; /* Slightly rounded */
}
button {
  padding: 12px 24px; /* Bigger & modern */
  border-radius: 8px; /* Slightly rounded */
  background: #5e412f; /* Coffee brown */
  color: white;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}
button:hover {
  background: #a37b64; /* Light mocha on hover */
}

a {
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #d4a373; /* Warm gold */
}

/*  Smooth Scroll Animations (Fade-In) */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Search Bar Fix for Mobile */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container input {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  font-family: "Vazir", sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  text-align: right;
}

.search-container i {
  margin-right: 10px;
  margin-left: 1rem;
  color: #8d6e63;
}

.menu {
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  background: #faf3e0;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* Adds space between items */
}
/* ==================== */
/* NAVIGATION STYLES */
/* ==================== */

.menu-nav {
  background-color: var(--primary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 40px; /* Slightly rounded */
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a i {
  font-size: 0.9em;
}

/* Active State */
.nav-links a.active {
  background-color: var(--light);
  color: var(--primary);
  font-weight: bold;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--primary);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  margin: 0 auto;
  font-family: "Vazir", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.mobile-menu-btn.active {
  background: var(--light);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-menu-btn.active i {
  transform: rotate(90deg);
}

/* ==================== */
/* MOBILE STYLES (768px and below) */
/* ==================== */
@media (max-width: 768px) {
  .menu-nav {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.3s forwards;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Staggered animation delays */
  .nav-links li:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    animation-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .nav-links a {
    border-radius: 0;
    padding: 15px 20px;
    justify-content: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Centered Category Titles */
.category-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--title-color);
  margin: 40px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.category-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--title-color),
    transparent
  );
}

.category-description {
  text-align: center;
  color: #8d6e63;
  margin-bottom: 20px;
}

/* Text-only Items */
.text-item {
  display: flex;
  justify-content: center;
  padding: 15px;
  margin: 15px auto;
  max-width: 80%;
  border-bottom: 1px dashed var(--secondary);
  border-radius: 15px; /* Slightly rounded */
  transition: all 0.3s ease;
  background-color: #f5e1c0; /* Very light warm gray */
}

.text-item:hover {
  background-color: rgba(215, 204, 200, 0.3); /* Light warm gray */
}

.item-name {
  font-weight: bold;
  color: var(--title-color);
}

.item-price {
  color: var(--price-color);
  font-weight: bold;
}

/* Product Styles */
.product {
  display: flex;
  margin-bottom: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: var(--light); /* Unified light background */
  border: 1px solid #d7ccc8; /* Light border */
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  flex: 1;
  min-width: 150px;
  max-width: 150px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 2;
  padding: 15px;
  text-align: right;
}

.product-info h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--title-color);
}

.product-info p {
  font-size: 1.1rem;
  color: var(--price-color);
  font-weight: bold;
}

/* Remove individual product background colors */
.product.teaService,
.product.espreso,
.product.damnoosh,
.product.mojito,
.product.sib,
.product.sibVip {
  background-color: var(--light); /* Unified light background */
}

/* Footer Styles */
footer {
  background-color: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info {
  text-align: right;
  flex: 2;
  min-width: 300px;
}

.social-links {
  flex: 1;
  min-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-number {
  color: #fafafa; /* رنگ قهوه‌ای متوسط هماهنگ با طرح */
  text-decoration: none; /* حذف زیرخط */
  margin-right: 5px;
  font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product {
    flex-direction: column;
  }

  .product-image {
    max-width: 100%;
    height: 200px;
  }

  .text-item {
    max-width: 95%;
  }

  .footer-content {
    flex-direction: column;
  }

  .contact-info {
    text-align: center;
    margin-bottom: 20px;
  }
}
