/* 重置與基礎設定 */
.lifeListBox {
  background: #fff;
  padding-top: 50px;
}

.lifeListBox .pageContent {
  max-width: 1600px;
  margin: 0 auto;
}

/* ========== 頁首區 ========== */
.lifeListBox .pageTopBox {
  text-align: center;
  margin-bottom: 60px;
}

.lifeListBox .pageTitleBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* .lifeListBox .pageTitle {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 4px;
  margin: 0;
}

.lifeListBox .en {
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: #666;
  font-weight: 400;
  text-transform: uppercase;
} */

.lifeListBox .titleLine {
  width: 240px;
  height: 2px;
  background: #333;
  margin-top: 10px;
}

/* ========== 篩選列 ========== */
.lifeListBox .filterSection {
  text-align: center;
  margin-bottom: 80px;
}

.lifeListBox .filterGroup {
  display: inline-flex;
  align-items: flex-end;
  gap: 50px;
  justify-content: center;
}

.lifeListBox .filterItem {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  min-width: 200px;
}

.lifeListBox .filterSelect {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #333;
  padding-right: 30px;
  width: 100%;
  cursor: pointer;
  outline: none;
  letter-spacing: 1px;
}

.lifeListBox .filterSelect option {
  background: #fff;
  color: #333;
}

.lifeListBox .selectArrow {
  position: absolute;
  right: 5px;
  font-size: 0.75rem;
  color: #333;
  pointer-events: none;
}

.lifeListBox .searchBox {
  min-width: 280px;
}

.lifeListBox .searchInput {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #333;
  width: 100%;
  padding-right: 60px; /* Increased padding for two icons */
  outline: none;
  letter-spacing: 1px;
}

.lifeListBox .searchInput::placeholder {
  color: #999;
  letter-spacing: 2px;
}

.lifeListBox .searchIcon {
  position: absolute;
  right: 5px;
  font-size: 1.125rem;
  color: #333;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.lifeListBox .clear-search-btn {
  display: none; /* Hidden by default */
  position: absolute;
  right: 35px; /* Position it left of the search icon */
  top: 30%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

/* ========== 商家展示區 ========== */
.lifeListBox .storeGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px 100px;
  margin-bottom: 80px;
  justify-items: center;
}

.lifeListBox .storeCard {
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 280px;
}

.lifeListBox .storeCard:hover {
  transform: translateY(-10px);
}

.lifeListBox .storeCard a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.lifeListBox .storeLogo {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
}

.lifeListBox .storeLogo img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lifeListBox .storeCard:hover .storeLogo img {
  transform: scale(1.05);
}

.lifeListBox .storeName {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
  line-height: 1.5;
}

/* ========== 響應式設計 ========== */


/* 筆電 */
@media screen and (max-width: 1399px) {

}


/* 平板（3欄） */
@media screen and (max-width: 1200px) {
  /* .lifeListBox .pageTitle {
    font-size: 3rem;
  }
  
  .lifeListBox .en {
    font-size: 1.25rem;
  } */
  
  .lifeListBox .storeGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 60px;
  }
  
  .lifeListBox .filterGroup {
    gap: 40px;
  }
}

/* 小平板 */
@media screen and (max-width: 900px) {
  .lifeListBox {
    padding: 60px 0 80px;
  }
  
  .lifeListBox .pageContent {
    padding: 0 30px;
  }
  
  .lifeListBox .pageTopBox {
    margin-bottom: 60px;
  }
  
  .lifeListBox .filterSection {
    margin-bottom: 70px;
  }
  
  .lifeListBox .filterGroup {
    gap: 40px;
  }
  
  .lifeListBox .storeGrid {
    gap: 60px 50px;
  }
}

/* 手機版（2欄） */
@media screen and (max-width: 767px) {
  .lifeListBox {
    padding: 40px 0 60px;
  }
  
  .lifeListBox .pageContent {
    padding: 0 20px;
  }
  
  /* .lifeListBox .pageTitle {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .lifeListBox .en {
    font-size: 1rem;
    letter-spacing: 4px;
  } */
  
  .lifeListBox .titleLine {
    width: 160px;
  }
  
  .lifeListBox .pageTopBox {
    margin-bottom: 40px;
  }
  
  .lifeListBox .filterSection {
    margin-bottom: 50px;
  }
  
  .lifeListBox .filterGroup {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }
  
  .lifeListBox .filterItem {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .lifeListBox .searchBox {
    min-width: auto;
  }
  
  .lifeListBox .storeGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
  }
  
  .lifeListBox .storeCard {
    max-width: 100%;
  }
  
  .lifeListBox .storeLogo {
    height: 160px;
    margin-bottom: 16px;
  }
  
  .lifeListBox .storeLogo img {
    max-height: 160px;
  }
  
  .lifeListBox .storeName {
    font-size: 0.875rem;
  }
}

/* 極小手機 */
@media screen and (max-width: 480px) {
  /* .lifeListBox .pageTitle {
    font-size: 1.75rem;
  } */
  
  .lifeListBox .storeGrid {
    gap: 40px 20px;
  }
  
  .lifeListBox .storeLogo {
    height: 120px;
  }
  
  .lifeListBox .storeLogo img {
    max-height: 120px;
  }
}

/* ========== No Results ========== */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results p {
  font-size: 1.1rem;
  color: #666;
}

.no-results p + p {
  color: #888;
  margin-top: 10px;
}

@media screen and (max-width: 767px) {
  .lifeListBox .pageTopBox {
    display: flex; /* 覆寫 style.css 中的 display: none; */
  }
}