/* Products page and shared product card. */

.products-page {
  padding: 24px 0 72px;
}

.products-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.products-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.products-breadcrumb a:hover {
  color: var(--bs-primary);
}

.products-breadcrumb i {
  color: var(--text-muted);
  font-size: 9px;
}

.products-breadcrumb span {
  color: var(--bs-primary);
}

.products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-inline-start: 24px;
  border-inline-start: 5px solid var(--bs-secondary);
  scroll-margin-top: 240px;
}

.products-heading h1 {
  margin: 0;
  color: var(--acg-navy);
  font-size: 24px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.products-filter-toggle {
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1px solid var(--bs-primary);
  border-radius: 50rem;
  background: #fff;
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Filter panel */
.filter-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5.27px #0000000a, 0 0 37px #0000000d;
  overflow: hidden;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--bs-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.filter-panel-header button {
  border: 0;
  background: none;
  color: var(--bs-primary);
  font-size: 18px;
}

.filter-offers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 4px;
  font-size: 16px;
}

.filter-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0;
}

.filter-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.filter-switch-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #C3D0DA;
  border-radius: 26px;
  background: var(--border-light);
  transition: background 0.25s;
}

.filter-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #00000040;
  transition: transform 0.25s;
}

.filter-switch input:checked + .filter-switch-slider {
  border-color: var(--acg-blue);
  background: var(--acg-blue);
}

.filter-switch input:checked + .filter-switch-slider::before {
  transform: translateX(24px);
}

.filter-switch input:focus-visible + .filter-switch-slider {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.filter-acc-item + .filter-acc-item {
  border-top: 1px solid var(--border-light);
}

.filter-acc-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px 16px 20px;
  border: 0;
  background: #fff;
  color: var(--bs-primary);
  font-size: 18px;
  font-weight: 500;
  text-align: start;
}

.filter-acc-button span {
  padding-inline-start: 7px;
  border-inline-start: 3px solid var(--acg-blue);
  line-height: 1.3;
}

.filter-acc-button i {
  color: var(--text-primary);
  font-size: 13px;
}

.filter-acc-body {
  padding: 0 16px 14px;
}

.filter-search,
.filter-select {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 8px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--acg-bg);
  font-size: 14px;
}

.filter-search:focus {
  border-color: var(--bs-primary);
  outline: 0;
}

.filter-options {
  max-height: 240px;
  overflow-y: auto;
}

.filter-options .form-check {
  margin-bottom: 5px;
}

.filter-options .form-check-label {
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.filter-options .form-check-input:checked {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary);
}

.filter-empty,
.filter-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.filter-footer {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

.filter-apply,
.filter-reset {
  padding: 9px 22px;
  border: 1px solid var(--bs-primary);
  border-radius: 50rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.filter-apply {
  background: var(--bs-primary);
  color: #fff;
}

.filter-apply:hover {
  background: var(--bs-primary-hover);
}

.filter-reset {
  flex: 1;
  background: #fff;
  color: var(--bs-primary);
}

.filter-reset:hover {
  background: var(--bs-primary);
  color: #fff;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1055;
  border: 0;
  background: #00000080;
}

@media (max-width: 991.98px) {
  .filter-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1060;
    width: min(320px, 88vw);
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }

  .filter-panel.is-open {
    transform: none;
    visibility: visible;
  }
}

/* Product card */
.products-grid .cardMain,
.products-scroll-track .cardMain {
  padding: 8px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 5.27px #0000000a, 0 0 37px #0000000d;
}

.products-grid .cardMain {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
}

.cardMain-header {
  height: 200px;
}

.cardMain-header img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.cardMain-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon-action {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--acg-blue-light);
  font-size: 15px;
}

.card-icon-action.fav { top: 4px; right: 4px; }
.card-icon-action.compare { top: 44px; right: 4px; }
.card-icon-action.quote { top: 84px; right: 4px; }

.card-icon-action.is-active {
  background: var(--acg-blue);
  color: #fff;
}

.stars-rating-line .fa-star {
  color: var(--border-light);
}

.stars-rating-line .fa-star.is-filled {
  color: var(--bs-warning);
}

.product-cat-name {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.product-item-title {
  height: auto;
  min-height: 2.7em;
  margin-bottom: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
}

.current-price {
  font-size: 14px;
  font-weight: 600;
}

.specs-rotator {
  border: 0;
}

.btn-card-buy {
  padding: 10px;
  border-radius: 1rem;
  font-size: 14px;
  font-weight: 600;
}

.btn-card-buy.is-added {
  background: var(--acg-navy);
  box-shadow: none;
}

.btn-card-buy.is-added:hover {
  background: var(--acg-navy-dark);
}

.products-empty {
  padding: 56px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 5.27px #0000000a, 0 0 37px #0000000d;
  text-align: center;
}

.products-empty i {
  color: var(--text-muted);
  font-size: 40px;
}

.products-empty h2 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.products-empty p {
  color: var(--text-muted);
  font-size: 14px;
}

.products-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.products-pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
}

.products-pagination button:hover:not(:disabled) {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.products-pagination button.is-active {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}

.products-pagination button:disabled {
  opacity: 0.45;
}

.products-pagination-gap {
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .cardMain-header {
    height: 150px;
  }

  .card-icon-action {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .card-icon-action.compare { top: 36px; }
  .card-icon-action.quote { top: 68px; }

  .btn-card-buy {
    padding: 8px 4px;
    font-size: 12px;
  }
}

/* Home page */
.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bs-primary);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.home-hero img.is-active {
  opacity: 1;
}

.home-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.home-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50rem;
  background: #ffffffa6;
  transition: width 0.3s;
}

.home-hero-dots button.is-active {
  width: 24px;
  background: #fff;
}

.home-brand-logo {
  max-width: 110px;
  max-height: 50px;
  object-fit: contain;
}

.section-view-all {
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.products-scroll-track .brand-box-card {
  flex-shrink: 0;
}

/* Mobile bottom navigation cart badge */
.fab-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--acg-red-strong);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* Mobile bottom navigation */
.bottom-nav-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 75px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  filter: drop-shadow(0 -5px 15px #00000014);
}

.nav-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item-btn.active {
  color: var(--bs-primary);
}

.nav-icon {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.fab-container {
  position: relative;
  z-index: 3;
  width: 70px;
  height: 70px;
  margin-top: -35px;
}

.fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 12px solid #fff;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
}

.nav-icon-fab {
  font-size: 1.25rem;
}

@media (max-width: 767.98px) {
  .theApp-main {
    padding-bottom: 75px;
  }
}

/* Inner pages */
.h1-like { margin: 0; color: var(--acg-navy); font-size: 24px; font-weight: 600; }

.listing-card, .content-panel, .contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5.27px #0000000a, 0 0 37px #0000000d;
}

.listing-card { display: flex; flex-direction: column; height: 100%; padding: 16px; }
.listing-thumb { display: flex; justify-content: center; height: 140px; margin-bottom: 14px; }
.listing-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.listing-card h3 { margin: 0 0 10px; overflow: hidden; color: #000; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.listing-card p { margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.listing-card p i { margin-inline-end: 8px; }
.listing-card .listing-time { min-height: 21px; color: var(--text-muted); }
.listing-private { align-self: flex-start; padding: 3px 9px; border: 1px solid var(--text-subtle); border-radius: 50rem; color: var(--text-muted); font-size: 13px; }
.listing-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.listing-actions a { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; }
.listing-chat { background: var(--bs-primary-subtle); color: var(--bs-primary); }
.listing-call { background: var(--bs-primary); color: #fff; }
.listing-call:hover { background: var(--bs-primary-hover); color: #fff; }

.content-panel { height: 100%; padding: 28px; }
.panel-title { margin: 18px 0; font-size: 18px; font-weight: 600; }
.panel-title span, .panel-heading-center { color: var(--bs-primary); }
.panel-heading-center { font-size: 20px; font-weight: 600; text-align: center; }
.panel-muted { color: var(--text-muted); }
.benefit-list { margin: 0; padding: 0; list-style: none; color: var(--text-muted); }
.benefit-list li { margin-bottom: 14px; }
.benefit-list i { margin-inline-end: 12px; color: var(--bs-primary); font-size: 12px; }
.video-frame { overflow: hidden; border-radius: 10px; }

.inquiry-form .form-label { font-size: 14px; font-weight: 500; }
.inquiry-form .form-control, .inquiry-form .form-select { border: 1px solid var(--border-light); background-color: var(--acg-bg); padding-block: 10px; }
.inquiry-form .form-check-label { color: var(--text-muted); font-size: 13px; }
.inquiry-submit { display: block; min-width: 140px; margin: 24px 0 0 auto; }

.contact-card { display: flex; align-items: center; gap: 20px; height: 100%; padding: 24px; }
.contact-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.contact-card p, .contact-card a { margin: 0; color: #000; overflow-wrap: anywhere; text-decoration: none; }
.contact-card .waranty-circle-icon { flex-shrink: 0; }

.about-text { color: var(--text-muted); font-size: 17px; line-height: 1.6; }

.blog-card { display: block; height: 100%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 2px 5.27px #0000000a, 0 0 37px #0000000d; color: inherit; text-decoration: none; }
.blog-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.blog-card div { padding: 16px; }
.blog-card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.blog-card span { color: var(--text-muted); font-size: 14px; }
.blog-post-image { display: block; width: 100%; max-height: 420px; border-radius: 10px; object-fit: cover; }
.blog-post-body { overflow-wrap: anywhere; line-height: 1.8; }
.blog-post-body img { max-width: 100%; height: auto; }

.how-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 220px; }
.how-center { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 170px; height: 170px; border: 3px dashed var(--bs-primary); border-radius: 50%; color: var(--bs-primary); font-size: 60px; transform: translate(-50%, -50%); }
.how-step { display: flex; grid-column: 1; align-items: center; justify-content: space-between; min-height: 130px; border-radius: 65px; background: var(--bs-primary); color: #fff; }
.how-step.is-right { flex-direction: row-reverse; grid-column: 2; }
.how-text { flex: 1; padding: 12px 28px; }
.how-text i { font-size: 26px; }
.how-text p { margin: 8px 0 0; font-weight: 500; line-height: 1.5; }
.how-number { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; justify-content: center; width: 130px; height: 130px; border: 6px solid #fff; border-radius: 50%; background: var(--acg-navy); line-height: 1; }
.how-number strong { font-size: 40px; }

@media (max-width: 991.98px) {
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-center { display: none; }
  .how-step, .how-step.is-right { flex-direction: row; grid-column: 1; grid-row: auto !important; }
  .how-number { width: 96px; height: 96px; }
  .how-number strong { font-size: 28px; }
}
