.theme-category {
  font-family: "Noto Sans TC", system-ui, sans-serif;
   margin-bottom: 40px;
}

/* ---------- 標題與描述 ---------- */
.theme-title {
  font-weight: 600;
  margin: 0;
  font-size: 24px;
  color: var(--color-primary, #2a2a2a);
}
.theme-desc {
  color: var(--text-muted, #666);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- 排序與顯示選單 ---------- */
.theme-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 15px;
}
.theme-toolbar label {
  font-weight: 500;
  font-size: 14px;
  margin-right: 6px;
  color: var(--text-default, #333);
}
.theme-toolbar select {
  border: 1px solid color-mix(in srgb, var(--color-primary, #333), transparent 80%);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  background: var(--bg-default, #fff);
  color: var(--text-default, #222);
  transition: border-color 0.2s ease;
}
.theme-toolbar select:focus {
  border-color: var(--color-accent, #b48f6d);
  outline: none;
}

/* ---------- 商品格線 ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

/* ---------- 商品卡片 ---------- */
.theme-card {
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  background: var(--bg-card, #fff);
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* ---------- 圖片與 hover 效果 ---------- */
.theme-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;              /* 避免外框 */
}
.theme-img img {
  display: block;
  width: 100%;               /* 寬度完全貼齊卡片 */
  height: 100%;
  object-fit: cover;         /* 填滿容器不留白 */
  border: none;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}
.theme-card:hover .theme-img img {
  transform: scale(1.04);
}

/* ---------- 灰色橫條購物車 ---------- */
.theme-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background: rgba(40, 40, 40, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}
.theme-card:hover .theme-hover {
  opacity: 1;
  transform: translateY(0);
}
.theme-hover button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.theme-hover button:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 商品文字與價格 ---------- */
.theme-info {
  padding: 0 10px 18px;
}
.theme-name {
  font-size: 16px;
  color: var(--text-default, #222);
  font-weight: 500;
  line-height: 1.2;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.theme-name a {
  color: inherit;
  text-decoration: none;
}
.theme-name a:hover {
  color: var(--color-accent, #b48f6d);
}
.theme-price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
}
.theme-price .old {
  color: #aaa;
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 6px;
}
.theme-price .special {
  color: var(--color-accent, #c25050);
  font-style: italic;
  font-weight: 600;
}

/* ---------- 分頁 ---------- */
.theme-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  font-size: 15px;
  color: var(--text-muted, #666);
}

/* ---------- 響應式 ---------- */
@media (max-width: 768px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .theme-title {
    font-size: 20px;
  }
  .theme-name {
    font-size: 13px;
  }
}


/* =========================================================
   FutureHost / AWA — Category Sidebar (穩定乾淨版)
   ========================================================= */

/* 清除 Bootstrap 預設 */
.list-group,
.list-group-item {
  all: unset;
  display: block;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  box-sizing: border-box;
}

.list-group {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  margin-top: 18px;
}

/* ---------- 標題 ---------- */
.list-group-header {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary, #b48f6d);
  text-align: center;
  margin-bottom: 6px;
}
.list-group-divider {
  width: 90%;
  height: 3px;
  background: var(--color-primary, #b48f6d);
  margin: 15px auto 12px;
}

/* ---------- 項目 ---------- */
.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
  font-size: 15px;
  padding: 6px 0;
  text-decoration: none;
  border: none !important;
  background: transparent !important;
  transition: color 0.2s ease;
}

/* ---------- 名稱 / 數量 ---------- */
.list-group-item .name {
  flex: 1;
  text-align: left;
}
.list-group-item .count {
  color: #999;
  font-size: 13px;
  min-width: 24px;
  text-align: right;
}

/* ---------- Hover / Active ---------- */
.list-group-item:hover .name {
  cursor: pointer;
  color: var(--color-secondary, #b48f6d);
}
.list-group-item.active .name {
  color: var(--color-primary, #2a2a2a);
  font-weight: 600;
}
.list-group-item.active .count {
  color: var(--color-primary, #b48f6d);
}

/* ---------- 子分類 ---------- */
.list-group-item.child .name {
  padding-left: 14px;
  font-size: 14px;
  color: #666;
}

/* ---------- 響應式 ---------- */
@media (max-width: 768px) {
  .list-group-item {
    font-size: 14px;
  }
}
