/* Trang danh sách sản phẩm / danh mục: banner, bộ lọc bên trái, thanh công cụ, lưới hoặc danh sách, phân trang. */
.listing-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 170px; margin-bottom: 20px; padding: 26px 30px; overflow: hidden; border-radius: 14px; background: linear-gradient(115deg, #111d25 0%, #1b2c35 55%, #263d46 100%); color: #fff; }
.listing-banner::before { content: ""; position: absolute; top: 0; bottom: 0; left: 58%; width: 120px; background: linear-gradient(110deg, transparent 0 30%, #f65d18 30% 46%, transparent 46% 58%, #f65d1866 58% 66%, transparent 66%); transform: skewX(-18deg); pointer-events: none; }
.listing-banner-text { position: relative; z-index: 1; min-width: 0; max-width: 62%; }
.listing-banner h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 850; letter-spacing: -.02em; text-transform: uppercase; }
.listing-banner p { margin: 0 0 14px; color: #d3dde0; font-size: 15px; }
.listing-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.listing-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #ffffff33; border-radius: 16px; background: #ffffff14; color: #fff; font-size: 13px; font-weight: 600; }
.listing-chips a:hover { border-color: var(--orange); background: var(--orange); }
.listing-chips small { color: #ffb07a; font-size: 11px; }
.listing-chips a:hover small { color: #fff; }
.listing-banner-image { position: relative; z-index: 1; flex: none; width: 210px; height: 140px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px #0006; }
.listing-banner-image img { width: 100%; height: 100%; object-fit: contain; }

/* Cột trái: danh mục + bộ lọc + hỗ trợ */
.listing-side { display: flex; flex-direction: column; gap: 14px; }
.listing-side .cat-sidebar { position: static; }
.filter-box { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group > summary { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-weight: 800; text-transform: uppercase; cursor: pointer; list-style: none; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: "▾"; color: #9aa3a9; transition: transform .15s; }
.filter-group:not([open]) > summary::after { transform: rotate(-90deg); }
.filter-option { display: flex; align-items: center; gap: 9px; padding: 5px 16px; font-size: 13.5px; cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--orange); }
.filter-option span { flex: 1; }
.filter-option small { color: #9aa3a9; }
.filter-option.is-empty { opacity: .5; }
.filter-range { display: flex; align-items: center; gap: 6px; padding: 8px 16px 14px; }
.filter-range input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #d9dde0; border-radius: 6px; font: inherit; font-size: 13px; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.filter-actions .button { flex: 1; justify-content: center; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.filter-actions a { color: var(--muted); font-size: 13px; text-decoration: underline; }
.filter-help { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 16px; border: 1px solid #ffd6bd; border-radius: 10px; background: #fff7f1; }
.filter-help strong { display: block; color: #c2410c; font-size: 13.5px; text-transform: uppercase; }
.filter-hotline { display: block; color: #e03d0a; font-size: 20px; font-weight: 800; }
.filter-help small { display: block; color: var(--muted); font-size: 12px; }
.filter-help .button { grid-column: 1 / -1; justify-content: center; }

/* Thanh công cụ */
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.listing-count h2 { margin: 0; font-size: 22px; font-weight: 850; text-transform: uppercase; }
.listing-count p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.listing-sort, .pager-size { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.listing-sort select, .pager-size select { height: 40px; padding: 0 10px; border: 1px solid #d9dde0; border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; color: var(--dark); }
.listing-view { display: flex; overflow: hidden; border: 1px solid #d9dde0; border-radius: 8px; }
.listing-view a { display: grid; place-items: center; width: 40px; height: 38px; color: #6b7680; font-size: 18px; }
.listing-view a.is-active { background: var(--orange); color: #fff; }
.listing-filter-toggle { display: none; height: 40px; padding: 0 14px; border: 1px solid #d9dde0; border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.active-filters a { display: inline-block; padding: 5px 12px; border-radius: 16px; background: #fff1e6; color: #c2410c; font-size: 13px; font-weight: 650; }
.active-filters a:hover { background: #ffe1cc; }

/* Dạng danh sách */
.store-products.is-list { grid-template-columns: 1fr; gap: 12px; }
.is-list .store-product { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; grid-template-rows: auto 1fr; align-items: start; column-gap: 18px; padding: 10px; }
.is-list .store-product > a { display: contents; }
.is-list .store-product-image { grid-row: 1 / 3; margin: 0; }
.is-list .store-product h3 { margin: 6px 0 4px; min-height: 0; font-size: 16px; -webkit-line-clamp: 2; }
.is-list .store-product-summary { display: block; grid-column: 2; margin: 0; color: var(--muted); font-size: 13.5px; }
.is-list .store-product > span { grid-column: 3; grid-row: 1; padding: 6px 0 0; font-size: 18px; text-align: right; }
.is-list .store-product-actions { grid-column: 3; grid-row: 2; align-self: end; padding: 0; }

/* Phân trang */
.listing-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager-pages a, .pager-pages span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #d9dde0; border-radius: 8px; background: #fff; color: var(--dark); font-size: 14px; font-weight: 650; }
.pager-pages a:hover { border-color: var(--orange); color: var(--orange); }
.pager-pages .is-current { border-color: var(--orange); background: var(--orange); color: #fff; }
.pager-pages .pager-gap { border: 0; background: none; }
.listing-about { margin-top: 30px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.listing-about h2 { margin: 0 0 10px; font-size: 18px; }

@media (max-width: 900px) {
  .listing-filter-toggle { display: inline-block; }
  .listing-side { display: none; }
  .listing-side.is-open { display: flex; }
  .listing-side .cat-sidebar-box { display: none; }
  .listing-banner-text { max-width: none; }
  .listing-banner::before, .listing-banner-image { display: none; }
}
@media (max-width: 760px) {
  .listing-banner { min-height: 0; padding: 20px; border-radius: 12px; }
  .listing-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .listing-chips a { white-space: nowrap; }
  .is-list .store-product { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; }
  .is-list .store-product-image { grid-row: 1 / 4; }
  .is-list .store-product > span, .is-list .store-product-actions { grid-column: 2; grid-row: auto; text-align: left; }
  .is-list .store-product-summary { display: none; }
  .listing-toolbar { align-items: stretch; }
  .listing-controls { width: 100%; }
  .listing-sort { flex: 1; }
  .listing-sort label { display: none; }
  .listing-sort select { width: 100%; }
}
