/* Carta Page Specific Styles */
.carta-page .nav-content {
  display: flex;
  align-items: center;
  position: relative;
}

.carta-page .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.carta-page .search-container {
  margin-left: auto;
}

/* Menu Section Styles */
.menu-section {
  padding: 12rem 0 2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--white);
}

.menu-category {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: -2rem -2rem 1.5rem -2rem;
  padding: 2rem;
  background-color: #f8f8f8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.category-title.collapsed {
  margin-bottom: -2rem;
  border-radius: 10px;
}

.category-title::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
  transform: rotate(-180deg);
}

.category-title.collapsed::after {
  transform: rotate(0deg);
}

.menu-items {
  display: grid;
  gap: 1.5rem;
  transition: height 0.3s ease;
  overflow: hidden;
  height: 0;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.menu-items.show {
  height: auto;
}

/* Menu Item Styles */
.menu-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.menu-item h3 .icons {
  margin-left: 0.4rem;
}

.menu-item h3 i {
  font-size: 0.8rem;
  margin-right: 0.2rem;
  color: #afafaf;
}

.item-image {
  width: 120px;
  height: auto;
  aspect-ratio: 2/3;
  border-radius: 8px;
  object-fit: cover;
}

.item-info h3 {
  margin-bottom: 0.5rem;
}

.item-description {
  color: var(--gray);
  font-size: 0.9rem;
}

.item-price {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

/* Search Styles */
.search-container {
  position: relative;
  margin-left: auto;
}

.search-container input {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  width: 200px;
}

.search-container .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-results {
  display: none;
  margin-bottom: 20px;
}

.search-results-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

.search-results-container h2 {
  font-family: 'Teachers', sans-serif;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Dietary Indicators */
.dietary-indicators {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 80px;
  justify-content: flex-end;
}

.dietary-indicators i {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 0.8rem;
  font-size: 1.1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 1.2em;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dietary-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.icon-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Important Info Section */
.important-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.allergen-warning {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-style: italic;
  color: #666;
}

.service-fee {
  margin-top: 1rem;
  /* font-weight: 600; */
  color: var(--primary-color);
  text-align: center;
}

/* Varieties */
.varieties {
  margin-top: 0.5rem;
}

.variety {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.variety-name {
  font-style: italic;
  margin-right: 0.5rem;
}

.quantity {
  color: var(--gray);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.price {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Icon Colors */
.dietary-icons .vegetarian-icon,
.dietary-indicators i.vegetarian-icon {
  color: #008000;
}

.dietary-icons .vegan-icon,
.dietary-indicators i.vegan-icon {
  color: #9933cc;
}

.dietary-icons .gluten-icon,
.dietary-indicators i.gluten-icon {
  color: #e6b800;
}

.dietary-icons .keto-icon,
.dietary-indicators i.keto-icon {
  color: #a30000;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .carta-page .nav-content {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 20px;
    gap: 1rem;
  }

  .carta-page nav.scrolled .nav-content {
    height: auto;
    padding: 0.5rem 20px;
  }

  .carta-page .search-container {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .carta-page .search-container input {
    width: 100%;
    padding: 10px 32px 10px 12px;
    font-size: 16px;
  }

  .carta-page .back-button {
    order: 1;
  }

  .carta-page .logo {
    order: 2;
    height: 4em;
    position: static;
    transform: none;
  }

  .carta-page nav.scrolled .logo {
    height: 3em;
  }

  .search-results-container {
    grid-template-columns: 1fr;
  }

  .search-results-container h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

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

  .menu-items {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .item-image {
    width: 100%;
    max-width: 50vw;
    height: auto;
    aspect-ratio: 2/3;
    margin: 0 auto;
  }

  .item-price {
    text-align: center;
  }

  .category-title {
    font-size: 1.25rem;
  }

  .variety {
    display: flex;
    flex-direction: column;
    margin: 0.8rem 0;
    gap: 0.5rem;
  }

  .variety-name {
    font-style: italic;
    margin-right: 0;
    font-weight: 500;
  }

  .price-group, .price-group-2 {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .price-group-2 {
    margin-top: 0.3rem;
  }

  .quantity, .quantity-2 {
    color: var(--gray);
    margin: 0;
  }

  .price, .price-2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 0.5rem;
  }
}

.menu-title {
  text-align: center;
  font-family: 'Teachers', sans-serif;
  font-size: 2.5rem;
  margin: 2rem 0;
  color: #333;
}

.price-group, .price-group-2 {
  display: flex;
  align-items: center;
}

.price-group-2 {
  margin-top: 0.3rem;
}

.quantity, .quantity-2 {
  color: var(--gray);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.price, .price-2 {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 0.5rem;
} 