/* Hà Phong Energy — WooCommerce Shop & taxonomy archive.
 * Layout follows the TC Energy reference: 3 products LEFT, category sidebar RIGHT.
 * Woo/Bricks keeps data, sorting, filters and pagination native.
 * Page Title is rendered by the shared Bricks section 137.
 */
.shop-archive {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #465a6a;
  background: #fff;
  font-family: "SF Pro Display", Arial, sans-serif;
}

.shop-archive .service-hero {
  width: 100%;
}

.shop-archive__body {
  width: 100%;
  max-width: none;
  padding: 100px 0 110px;
}

.shop-archive__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 30px;
  width: min(calc(100% - 56px), 1300px);
  max-width: 1300px;
  margin: 0 auto;
}

.shop-archive__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  align-items: stretch;
}

.shop-archive__intro {
  width: 100%;
  margin: 0 0 18px;
}

/* Page Title already names the Shop/term; don't repeat that title in the grid. */
.shop-archive__heading,
.shop-archive__description:empty,
.shop-archive__intro:empty {
  display: none;
}

.shop-archive__intro:not(:has(.shop-archive__description:not(:empty))) {
  display: none;
}

.shop-archive__description {
  color: #607380;
  font-size: 15px;
  line-height: 1.7;
}

.shop-archive__products {
  display: block;
  min-width: 0;
  width: 100%;
}

/* Old-site toolbar: grid/list control on left, live Woo result count,
   native Woo sort select on the right. */
.shop-archive__view-controls {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  height: 42px;
}

.shop-archive__view-button.brxe-button,
.shop-archive__view-button {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #abb4bc;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.shop-archive__view-button::before {
  display: block;
  font-family: "Font Awesome 6 Free", FontAwesome, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.shop-archive__view-grid::before { content: "\f00a"; }
.shop-archive__view-list::before { content: "\f03a"; }

.shop-archive__view-button[aria-pressed="true"],
.shop-archive__view-button:hover,
.shop-archive__view-button:focus-visible {
  color: #f99408;
  background: transparent;
}

.shop-archive__products .bricks-products-widgets.before {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100%;
  min-height: 44px;
  padding-left: 94px;
  margin: 0 0 36px;
  color: #273f4f;
}

.shop-archive__products .woocommerce-result-count {
  margin: 0;
  color: #243d51;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.shop-archive__products .woocommerce-ordering {
  display: block;
  margin: 0 0 0 auto;
}

.shop-archive__products .woocommerce-ordering select,
.shop-archive__products .woocommerce-ordering .orderby {
  width: min(300px, 100%);
  height: 43px;
  padding: 7px 30px 7px 10px;
  margin: 0;
  color: #153448;
  background-color: #fff;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  outline-offset: 3px;
  box-shadow: none;
  font: 400 16px "SF Pro Display", Arial, sans-serif;
}

/* Main Woo loop: 3 balanced cards, no white wrapper/border/button. */
.shop-archive__products ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 49px 33px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-archive__products ul.products > li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.shop-archive__products ul.products > li.product:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.shop-archive__products ul.products > li.product > .woocommerce-LoopProduct-link,
.shop-archive__products ul.products > li.product > .woocommerce-loop-product__link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.shop-archive__products ul.products > li.product img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 5 / 6;
  padding: 0;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border: 1px solid #d9e0e6;
  border-radius: 0;
  background: #f2f7ff;
  transition: filter .22s ease;
}

.shop-archive__products ul.products > li.product:hover img {
  filter: brightness(.975);
}

.shop-archive__products .hps-archive-card-brand {
  display: none;
}

.shop-archive__products ul.products .woocommerce-loop-product__title,
.shop-archive__products ul.products h2.woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  width: 100%;
  min-height: 0;
  margin: 20px 0 7px;
  padding: 0;
  overflow: hidden;
  color: #092b45;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.52;
  letter-spacing: -.012em;
  transition: color .2s ease;
}

.shop-archive__products ul.products > li.product:hover .woocommerce-loop-product__title {
  color: #006e96;
}

.shop-archive__products ul.products .price,
.shop-archive__products ul.products .hps-woo-quote-label {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  color: #f18a05;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-archive__products ul.products .price del {
  display: inline;
  margin-left: 5px;
  color: #657786;
  font-size: 13px;
  font-weight: 400;
}

.shop-archive__products ul.products .price ins {
  color: #f18a05;
  text-decoration: none;
}

/* The product image/title remain links; no separate "Xem sản phẩm" control. */
.shop-archive__products ul.products > li.product > a.button,
.shop-archive__products ul.products > li.product > .added_to_cart {
  display: none !important;
}

.shop-archive__products .hps-archive-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.shop-archive__products .hps-archive-badge {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.shop-archive__products .hps-archive-badge--new {
  background: #003e76;
}

.shop-archive__products .hps-archive-badge--sale {
  background: #ff9700;
}

/* Only render our badge once when Woo/Bricks adds another sale-flash. */
.shop-archive__products ul.products > li.product > .onsale {
  display: none;
}

/* Right sidebar: compact white category list with dotted dividers/counts. */
.shop-archive__sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.shop-archive__sidebar-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 40px 30px;
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 70px rgb(137 151 186 / 12%);
}

.shop-archive__sidebar-title {
  position: relative;
  margin: 0 0 21px;
  padding: 0 0 18px;
  color: #0d3045;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.34;
}

.shop-archive__sidebar-title::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #f58b0a;
  content: "";
}

.shop-archive__side-filters,
.shop-archive__side-filters.brxe-woocommerce-products-filter {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #193a4e;
}

.shop-archive__side-filters > li.filter-item {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

.shop-archive__side-filters > li.filter-item:first-child > .title {
  display: none;
}

.shop-archive__side-filters > li.filter-item > .title,
.shop-archive__side-filters > li.filter-item > .title h6 {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: #0f3349;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-archive__side-filters .filter.text-list,
.shop-archive__side-filters ul.text-list,
.shop-archive__side-filters ul.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.shop-archive__side-filters ul.text-list > li {
  display: block;
  padding: 0;
  margin: 0;
  border-bottom: 1px dotted #c2ced7;
}

.shop-archive__side-filters ul.text-list > li:last-child {
  border-bottom: 0;
}

.shop-archive__side-filters ul.text-list > li > a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 15px 0;
  color: #193548;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s ease;
}

.shop-archive__side-filters ul.text-list > li > a:hover,
.shop-archive__side-filters ul.text-list > li.current > a {
  color: #006e99;
}

.shop-archive__filter-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-archive__filter-count {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: auto;
  color: #667884;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.shop-archive__side-filters .filter.checkbox {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.shop-archive__side-filters .checkboxes li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 5px 0;
  color: #536879;
  font-size: 14px;
}

.shop-archive__side-filters input[type="checkbox"] {
  accent-color: #006b91;
}

.shop-archive__side-filters .reset-button {
  display: inline-flex;
  width: auto;
  color: #0c688d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.shop-archive__sidebar-contact {
  display: none;
}

/* Woo pagination remains actual query-based pagination (12/page). */
.shop-archive__products .bricks-products-widgets.after {
  justify-content: center;
  margin: 42px 0 0;
}

.shop-archive__products .woocommerce-pagination {
  display: block;
  width: 100%;
  margin: 0;
}

.shop-archive__products .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
}

.shop-archive__products .woocommerce-pagination .page-numbers li {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-archive__products .woocommerce-pagination .page-numbers a,
.shop-archive__products .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid #dbe5eb;
  border-radius: 4px;
  background: #fff;
  color: #1f4e64;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.shop-archive__products .woocommerce-pagination .page-numbers .current,
.shop-archive__products .woocommerce-pagination .page-numbers a:hover {
  color: #fff;
  background: #006b92;
  border-color: #006b92;
}

/* Interactive list view — same Woo data/links, alternative display only. */
.shop-archive.is-list-view .shop-archive__products ul.products {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: column;
  gap: 27px;
}

.shop-archive.is-list-view .shop-archive__products li.product > a.woocommerce-LoopProduct-link {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 28px;
  min-height: 240px;
}

.shop-archive.is-list-view .shop-archive__products li.product img {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 100%;
  aspect-ratio: 5 / 5;
}

.shop-archive.is-list-view .shop-archive__products li.product .woocommerce-loop-product__title,
.shop-archive.is-list-view .shop-archive__products li.product .price {
  grid-column: 2;
}

@media (max-width: 1199px) {
  .shop-archive__container {
    grid-template-columns: minmax(0, 1fr) minmax(215px, 245px);
    gap: 24px;
    width: calc(100% - 42px);
  }

  .shop-archive__products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 33px 22px;
  }

  .shop-archive__sidebar-panel {
    padding: 26px 19px;
  }

  .shop-archive__side-filters ul.text-list > li > a {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .shop-archive__body { padding: 43px 0 80px; }
  .shop-archive__container {
    display: flex;
    flex-direction: column;
    gap: 42px;
    width: calc(100% - 30px);
  }
  .shop-archive__main { order: 1; }
  .shop-archive__sidebar { order: 2; }
  .shop-archive__products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 17px;
  }
  .shop-archive__products .bricks-products-widgets.before {
    padding-left: 79px;
    gap: 7px 12px;
    margin-bottom: 22px;
  }
  .shop-archive__view-controls {
    gap: 9px;
  }
  .shop-archive__products .woocommerce-result-count {
    font-size: 12px;
  }
  .shop-archive__products .woocommerce-ordering select,
  .shop-archive__products .woocommerce-ordering .orderby {
    height: 38px;
    max-width: 180px;
    padding-left: 6px;
    font-size: 12px;
  }
  .shop-archive__products ul.products .woocommerce-loop-product__title {
    font-size: 14px;
    margin-top: 13px;
  }
  .shop-archive__products ul.products .price,
  .shop-archive__products ul.products .hps-woo-quote-label {
    font-size: 14px;
  }
  .shop-archive__sidebar-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 530px) {
  .shop-archive__view-controls {
    top: 0;
  }
  .shop-archive__products .bricks-products-widgets.before {
    padding-left: 70px;
    align-items: flex-start;
  }
  .shop-archive__products .woocommerce-ordering {
    margin-left: 0;
    width: 100%;
  }
  .shop-archive__products .woocommerce-ordering select {
    width: 100%;
    max-width: 100%;
  }
  .shop-archive__products ul.products {
    grid-template-columns: 1fr !important;
    gap: 29px;
  }
  .shop-archive__products ul.products li.product img {
    aspect-ratio: 5 / 5.4;
  }
  .shop-archive.is-list-view .shop-archive__products li.product > a.woocommerce-LoopProduct-link {
    grid-template-columns: 115px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 150px;
  }
}

/* Keep Woo pseudo-elements out of the CSS grid and taxonomy descriptions below products. */
.shop-archive__products ul.products::before,.shop-archive__products ul.products::after{display:none;content:none}
.shop-archive__products ul.products>li.product{float:none;clear:none}
.shop-archive__main .shop-archive__intro{order:3;margin:45px 0 0}
.shop-archive__products .hps-woo-quote-label{font-size:14px}
.shop-archive__products .price:not(:has(.hps-woo-quote-label)){color:#5c6972;font-size:18px}
.shop-archive__side-filters ul.text-list>li>a[aria-current="page"]{color:#f8900d;font-weight:700}
.shop-archive__side-filters .reset-button{padding:10px 15px;background:#f2f7ff;border-radius:4px}
.shop-archive__side-filters .checkboxes label{overflow-wrap:anywhere}
.shop-archive__products .woocommerce-pagination .page-numbers a,
.shop-archive__products .woocommerce-pagination .page-numbers span{width:45px;height:45px;border-radius:0}
.shop-archive__products .woocommerce-pagination .page-numbers .current,
.shop-archive__products .woocommerce-pagination .page-numbers a:hover{background:#f8900d;border-color:#f8900d}
@media(min-width:1200px){.shop-archive__products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:991px){.shop-archive__body{padding-top:60px}}
@media(max-width:767px){.shop-archive__body{padding-top:45px}.shop-archive__products .bricks-products-widgets.before{margin-bottom:24px}}
