/* ✅ 整体背景为白色 */
section[data-module="elf_menu-section"] {
  position: relative;
  background-image: url('https://www.manjoe.com.my/wp-content/uploads/2025/07/font-type-sample-1-01.jpg');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 350px auto; /* 缩小图像避免太大 */
  background-attachment: scroll;
  background-blend-mode: normal;
}

/* ✅ 分类按钮区域 */
section[data-module="elf_menu-section"] .menu-tab-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* ✅ 水平居中 */
  gap: 12px;
  margin-bottom: 30px;
  font-family: 'Noto Sans Tamil UI', sans-serif;
}
section[data-module="elf_menu-section"] .menu-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
section[data-module="elf_menu-section"] .menu-tab-btn {
  padding: 8px 16px;
  border: 1px solid #43A5A6;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
}
section[data-module="elf_menu-section"] .menu-tab-btn.active {
  background: #43A5A6;
  color: #fff;
}

section[data-module="elf_menu-section"] .menu-item-list {
  list-style: none;      /* ✅ 去掉黑点 */
  padding: 0;            /* ✅ 去掉左边缩进 */
  margin: 0;
}

/* Tab 按钮样式 */
section[data-module="elf_menu-section"] .menu-tab-btn {
  font-size: 25px;
  padding: 8px 20px;                   /* ✅ 控制上下左右间距 */
  border: 2px solid #43A5A6;
  background-color: white;
  color: #E7382F;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;                 /* ✅ 防止自动换行 */
}

section[data-module="elf_menu-section"] .menu-tab-btn.active {
  background-color: #43A5A6;
  color: #fff;
}

/* 内容卡片网格区块 */
section[data-module="elf_menu-section"] .menu-item-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 每行 4 列 */
  gap: 25px;
  padding: 20px;
  background-color: #fff;
  list-style: none;
  margin: 0;
  padding-left: 0;
  margin: 0 5%;
}

/* 单个卡片背景 */
section[data-module="elf_menu-section"] .menu-item-card {
  background: url('https://www.manjoe.com.my/wp-content/uploads/2025/07/freepik__interior-of-a-restaurant-with-a-round-wooden-table__92903-2.jpg') center center / cover no-repeat;
  padding: 15px;
  border-radius: 12px;
  font-family: 'Noto Sans Tamil UI', sans-serif;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  position: relative;
  text-align: center;
}
section[data-module="elf_menu-section"] .menu-thumbnail {
  height: auto;
}
/* 缩略图区域 */
section[data-module="elf_menu-section"] .menu-item-card.has-thumbnail .menu-thumbnail {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
}

section[data-module="elf_menu-section"] .menu-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Food ID 位置 */
section[data-module="elf_menu-section"] .menu-food-id {
  position: absolute;
  left: 0;
  top: 61%;
  transform: translateY(-50%);
  background: #fff;
  color: #E7382F;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 20px;
  border-radius: 0 20px 0 0;
  white-space: nowrap;
}

/* 标题、描述、价格样式 */
section[data-module="elf_menu-section"] .menu-title {
  font-weight: normal;
  color: #000;
  margin-bottom: 5px;
  margin-top: 10px;
  font-family: 'Noto Sans Tamil', sans-serif;
}

section[data-module="elf_menu-section"] .menu-desc {
  color: #000;
  font-weight: normal;
  font-size: 18px;
  font-family: 'Kiwi Maru', sans-serif;
  margin-bottom: 8px;
}

section[data-module="elf_menu-section"] .menu-price {
  color: #E7382F;
}
@media (max-width: 1420px) {
  section[data-module="elf_menu-section"] .menu-food-id {
      top: 56%; /* 示例：位置微调 */
  }
}

/* 平板设备：2 列 */
@media (max-width: 1023px) {
  section[data-module="elf_menu-section"] .menu-item-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机设备：1 列 */
@media (max-width: 800px) {
	section[data-module="elf_menu-section"]{
		background-image:none;
	}
  section[data-module="elf_menu-section"] .menu-tab-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
    padding: 12px;
  }

  section[data-module="elf_menu-section"] .menu-tab-row {
    display: contents; /* ✅ 不影响结构但保留分组输出 */
  }

  section[data-module="elf_menu-section"] .menu-tab-btn {
    font-size: 18px;
    padding: 6px 10px;
    flex: 0 1 auto;
    white-space: nowrap;
  }
	  section[data-module="elf_menu-section"] .menu-tab-content .menu-item-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  section[data-module="elf_menu-section"] .menu-item-card {
    width: 100%;
  }
	
}

