/* =====================================================================
   Product lists (store, search, departments, sub-departments, brands): the navy banner from inc/list_banner.php
   with department shortcuts, condition tabs and Price / Sort menus (filled by initListBanner() in js/script.js),
   the "Filtered by" chips, a light bar above the products and the page numbers below them.
   ===================================================================== */

/* ---- Banner ---- */
.lb {
  position: relative;
  z-index: 30;
  padding: 26px var(--page-x, 24px) 0;
  color: #fff;
  background:
    radial-gradient(900px 260px at 88% 0%, rgba(242, 194, 48, 0.16), transparent 60%),
    linear-gradient(120deg, var(--bg-dark-soft), var(--bg-dark) 62%);
}
.lb-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, 0.62); font-size: 13.5px; }
.lb-crumbs a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.lb-crumbs a:hover { color: #fff; }
.lb-sep { font-size: 10px; opacity: 0.6; }
.lb-now { color: #fff; font-weight: 600; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.lb-title h1 { margin: 0 0 6px; color: #fff; font-size: 34px; font-weight: 900; line-height: 1.12; letter-spacing: -0.3px; }
.lb-title h1 q { quotes: '“' '”'; color: var(--accent-gold); }
.lb-title h1 small { margin-left: 10px; color: rgba(255, 255, 255, 0.6); font-size: 17px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.lb-title p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 15px; }

/* Department shortcuts */
.lb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-cats[hidden] { display: none; }
.lb-cats button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}
.lb-cats button i { color: var(--accent-gold); }
.lb-cats button span { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.lb-cats button:hover { background: rgba(255, 255, 255, 0.16); }
.lb-cats button.is-on { background: var(--accent-gold); box-shadow: none; color: var(--bg-dark); }
.lb-cats button.is-on i, .lb-cats button.is-on span { color: var(--bg-dark); }

/* Tabs + tools row */
.lb-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lb-row[hidden] { display: none; }
.lb-tabs { display: flex; gap: 28px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tabs button {
  position: relative;
  flex: none;
  padding: 14px 0 15px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.lb-tabs button sup { margin-left: 4px; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 700; }
.lb-tabs button:hover { color: #fff; }
.lb-tabs button.is-on { color: #fff; }
.lb-tabs button.is-on sup { color: var(--accent-gold); }
.lb-tabs button.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-gold); }

.lb-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.lb-dd { position: relative; }
.lb-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.lb-dd-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-dd-btn .lb-val { font-weight: 600; opacity: 0.8; }
.lb-dd-btn .lb-caret { font-size: 10px; opacity: 0.7; transition: transform 0.15s; }
.lb-dd.is-open .lb-caret { transform: rotate(180deg); }
.lb-dd-btn.is-set { background: var(--accent-gold); box-shadow: none; color: var(--bg-dark); }
.lb-dd-btn.is-set .lb-val { opacity: 1; }

.lb-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: none;
  width: 260px;
  padding: 8px;
  border: 1px solid #e6eaee;
  border-radius: 14px;
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 18px 40px rgba(14, 42, 54, 0.22);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--bg-dark) 22%, transparent);
}
.lb-dd.is-open .lb-menu { display: block; }
.lb-menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bg-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lb-menu > button:hover { background: #f1f4f7; }
.lb-menu > button.is-on { background: var(--accent-tint, #fff6d6); color: var(--accent-ink, #7a5500); font-weight: 800; }
.lb-price { padding: 10px 8px 6px; }
.lb-price b { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.lb-price b span { color: var(--accent-ink, #7a5500); }
.lb-price input[type="range"] { width: 100%; accent-color: var(--accent-line, #e0b21f); }
.lb-price-ends { display: flex; justify-content: space-between; margin-top: 2px; color: #8a97a0; font-size: 12px; }
.lb-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lb-quick button { padding: 6px 11px; border: 1px solid #e6eaee; border-radius: 999px; background: #fff; color: var(--bg-dark); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lb-quick button:hover { background: #f1f4f7; }
.lb-quick button.is-on { border-color: var(--accent-line, #e0b21f); background: var(--accent-tint, #fff6d6); color: var(--accent-ink, #7a5500); }

/* "Filtered by" chips */
.lb-active { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px var(--page-x, 24px) 0; }
.lb-active[hidden] { display: none; }
.lb-active-label { color: #6b7a83; font-size: 13px; font-weight: 600; }
.lb-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 7px 0 12px; border-radius: 999px; background: #f1f4f7; color: var(--bg-dark); font-size: 13px; font-weight: 700; }
.lb-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #dfe5ea; color: var(--bg-dark); font-size: 10px; cursor: pointer; }
.lb-chip button:hover { background: #cfd8de; }
.lb-clear-all { border: 0; background: none; color: #b42318; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---- Light bar above the products: "Showing 1–16 of 72", items per page and the page arrows ---- */
body.has-list-banner main.main-brands { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; padding-top: 16px; }
body.has-list-banner main.main-brands > * { flex: 0 0 100%; }
body.has-list-banner main.main-brands > .lb-meta,
body.has-list-banner main.main-brands > #sorting-bar { flex: 0 1 auto; }
body.has-list-banner main.main-brands > .lb-meta { flex: 1 1 auto; margin: 0; padding: 0; border: 0; }
.lb-meta .item-count { color: #6b7a83; font-size: 13.5px; font-weight: 600; }
body.has-list-banner #sorting-bar.lb-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--bg-dark);
}
body.has-list-banner #sorting-bar.lb-sorting > div:first-child { display: none; } /* the Sort menu is in the banner */
body.has-list-banner #sorting-bar .items-per-page { display: flex; align-items: center; gap: 8px; margin: 0; color: #6b7a83; font-size: 13px; font-weight: 600; }
body.has-list-banner #sorting-bar .items-per-page label { margin: 0; color: #6b7a83; }
body.has-list-banner #sorting-bar select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #e6eaee;
  border-radius: 10px;
  background-color: #fff;
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 700;
}
body.has-list-banner #sorting-bar .pagination-controls { display: flex; align-items: center; gap: 6px; margin: 0; }
body.has-list-banner #sorting-bar .pagination-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e6eaee;
  border-radius: 10px;
  background: #fff;
  color: var(--bg-dark);
  cursor: pointer;
}
body.has-list-banner #sorting-bar .pagination-arrow:disabled { opacity: 0.4; cursor: default; }
body.has-list-banner #sorting-bar .pagination-info { min-width: 0; padding: 0 4px; background: none; color: #6b7a83; font-size: 13px; font-weight: 700; }
body.has-list-banner .category-section { margin-top: 14px; }

/* Empty result */
.lb-empty { display: grid; justify-items: center; gap: 10px; padding: 46px 16px; color: #6b7a83; text-align: center; }
.lb-empty[hidden] { display: none; }
.lb-empty > i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #f1f4f7; font-size: 20px; }
.lb-empty b { color: var(--bg-dark); font-size: 16px; }
.lb-empty .lb-clear-all { padding: 9px 16px; border-radius: 999px; background: var(--bg-dark); color: #fff; }

/* ---- Page numbers under the products ---- */
body.has-list-banner .inner-section-line { display: none; }
body.has-list-banner .category-footer { justify-content: center; margin-top: 10px; }
body.has-list-banner .category-footer > .item-count { display: none; }
body.has-list-banner .pagination-circles { gap: 6px; margin-top: 4px; }
body.has-list-banner .page-circle {
  min-width: 40px;
  width: auto;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  background: #fff;
  color: #33444d;
  font-weight: 700;
}
body.has-list-banner .page-circle:hover { background: #f1f4f7; }
body.has-list-banner .page-circle.active { border-color: var(--bg-dark); background: var(--bg-dark); color: #fff; }

/* ---- Phones ---- */
@media (max-width: 786px) {
  .lb { padding-top: 18px; }
  .lb-title h1 { font-size: 26px; }
  .lb-title h1 small { display: block; margin: 6px 0 0; font-size: 14px; }
  .lb-title p { display: none; }
  .lb-head { margin-top: 10px; }
  .lb-cats { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lb-cats::-webkit-scrollbar { display: none; }
  .lb-cats button { flex: none; height: 34px; font-size: 13px; }
  .lb-row { flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; }
  .lb-tabs { gap: 20px; }
  .lb-tools { padding: 8px 0 12px; }
  .lb-dd { flex: 1; }
  .lb-dd-btn { width: 100%; justify-content: center; }
  .lb-menu { left: 0; right: auto; width: min(290px, calc(100vw - 32px)); }
  .lb-dd + .lb-dd .lb-menu { left: auto; right: 0; }
  body.has-list-banner #sorting-bar .items-per-page label { display: none; }
}

/* Phones: the product count line is hidden, so the bar uses the whole width: items per page on the left, page arrows on the right. */
@media (max-width: 786px) {
  body.has-list-banner main.main-brands > .lb-meta { display: none; }
  body.has-list-banner main.main-brands > #sorting-bar { flex: 0 0 100%; }
  body.has-list-banner #sorting-bar.lb-sorting { justify-content: space-between; width: 100%; }
  body.has-list-banner #sorting-bar .items-per-page { order: -1; margin-right: auto; }
  body.has-list-banner #sorting-bar .items-per-page { flex: 0 0 auto !important; width: auto !important; }
  body.has-list-banner #sorting-bar .items-per-page select { width: 88px !important; min-width: 0 !important; max-width: 88px !important; flex: none !important; }
  body.has-list-banner #sorting-bar .pagination-controls { margin-left: auto !important; flex: 0 0 auto !important; width: auto !important; }
}

/* Sub-department links on a parent department page (same look as the shortcut buttons; they open the sub-page). */
.lb-cats a.lb-cat-link { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 0.15s; }
.lb-cats a.lb-cat-link i { color: var(--accent-gold); }
.lb-cats a.lb-cat-link span { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.lb-cats a.lb-cat-link:hover { background: var(--accent-gold); box-shadow: none; color: var(--bg-dark); }
.lb-cats a.lb-cat-link:hover i, .lb-cats a.lb-cat-link:hover span { color: var(--bg-dark); }
@media (max-width: 786px) { .lb-cats a.lb-cat-link { height: 34px; font-size: 13px; } }

/* Items per page as a menu (light, on the white bar) instead of the browser list */
body.has-list-banner #sorting-bar .lb-perpage > label,
body.has-list-banner #sorting-bar .lb-perpage > select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
.lb-dd.is-light .lb-dd-btn { height: 36px; padding: 0 12px; background: #fff; box-shadow: inset 0 0 0 1px #e6eaee; color: var(--bg-dark); font-size: 13px; }
.lb-dd.is-light .lb-dd-btn:hover { background: #f6f8fa; }
.lb-dd.is-light .lb-dd-btn .lb-val { opacity: 1; }
.lb-dd.is-light.is-open .lb-dd-btn { box-shadow: inset 0 0 0 1px var(--accent-line, #e0b21f), 0 0 0 3px rgba(242, 194, 48, 0.25); }
.lb-dd.is-light .lb-menu { width: 180px; z-index: 60; }
.lb-menu > button i.fa-check { display: none; color: var(--accent-ink, #b7860b); font-size: 12px; }
.lb-menu > button.is-on i.fa-check { display: inline-block; }
@media (max-width: 786px) {
  body.has-list-banner #sorting-bar .lb-perpage .lb-dd { flex: none; }
  body.has-list-banner #sorting-bar .lb-perpage .lb-dd-btn { width: auto; }
  .lb-dd.is-light .lb-menu { left: 0; right: auto; }
}
