/* AMANI — category listing page */
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; }

/* ---- Header ---- */
.sitehead { background: var(--blue-dark); color: #fff; }
.sitehead-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.logo { color: #fff; font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.logo b { color: var(--orange-light); font-weight: 700; }
.logo-imgwrap { width: 40px; height: 40px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.logo-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catnav { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; -ms-overflow-style: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  color: #cfe4ea; text-decoration: none; padding: 8px 12px; font-size: 14px;
  border-radius: var(--radius); white-space: nowrap; transition: background .15s, color .15s;
}
.catnav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.catnav a.is-active { background: #fff; color: var(--blue-dark); font-weight: 500; }
.sitehead-cart {
  position: relative; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.sitehead-cart:hover { background: rgba(255,255,255,.22); }
.sitehead-cart .cart-badge { position: absolute; top: 4px; right: 4px; }
.sitehead-signin {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; flex: 0 0 auto;
}
.sitehead-signin:hover { background: rgba(255,255,255,.12); }

/* ---- Breadcrumb ---- */
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 14px 20px 0; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Page ---- */
.page { max-width: 1280px; margin: 0 auto; padding: 16px 20px 48px; }
.page-title { font-size: 28px; margin: 8px 0 4px; }
.page-count { color: var(--gray); font-size: 14px; margin: 0 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }

.card {
  border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s; height: 100%;
}
.card:hover { box-shadow: var(--shadow-card); }
.card-img { aspect-ratio: 1 / 1; background: var(--gray-2); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 14px; line-height: 1.35; margin: 0; min-height: 38px; }
.card-meta { color: var(--gray); font-size: 12px; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; flex-wrap: wrap; }
.card-price { font-weight: 700; font-size: 16px; }
.card-price span { font-weight: 400; color: var(--gray); font-size: 12px; }

/* ---- 款式组：同一系列的多个 SKU 合并成一张卡 ---- */
.card-img { position: relative; }
.series-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; letter-spacing: .2px;
}
.card-variants { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vsw {
  width: 32px; height: 32px; padding: 0; border: 1.5px solid var(--gray-line); border-radius: 6px;
  background: #fff; cursor: pointer; overflow: hidden; flex: none; transition: border-color .15s;
}
.vsw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsw:hover { border-color: var(--blue); }
.vsw.is-active { border-color: var(--blue-dark); }
.vsw-more { font-size: 11px; color: var(--gray); margin-left: 2px; }
.add-btn {
  background: var(--blue-dark); color: #fff; border: 0; padding: 8px 16px;
  border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: 13px; transition: background .15s;
}
.add-btn:hover { background: var(--blue-dark-2); }
.add-btn.is-added { background: #2e7d32; }

.empty { text-align: center; padding: 70px 20px; color: var(--gray); }
.empty h2 { color: var(--text); margin-bottom: 8px; }
.empty .cta {
  display: inline-block; margin-top: 18px; background: var(--orange); color: #fff;
  padding: 11px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 500;
}
.empty .cta:hover { background: #b93c00; }

/* ---- Footer ---- */
.sitefoot { background: var(--blue-dark-2); color: #cfe4ea; padding: 24px 20px; margin-top: 40px; }
.sitefoot-inner { max-width: 1280px; margin: 0 auto; font-size: 13px; }
.sitefoot a { color: #fff; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--blue-dark); color: #fff; padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 9999; max-width: 90vw; box-shadow: var(--shadow-card);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 页脚导航 */
.sitefoot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.sitefoot-links a { color: #fff; opacity: .85; text-decoration: none; font-size: 13px; }
.sitefoot-links a:hover { opacity: 1; text-decoration: underline; }
