@charset "UTF-8";
/* Sintech filter sidebar — kết hợp PhongVu + HACOM + GearVN */
.sin-filter {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-size: 14px;
  margin-bottom: 16px; }

.sin-filter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #ce0303 0%, #a30000 100%);
  color: #fff; }

.sin-filter__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #fff; }

.sin-filter__clear {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s; }

.sin-filter__clear:hover {
  background: rgba(255, 255, 255, 0.32); }

.sin-filter__body {
  max-height: 60vh;
  overflow-y: auto; }

.sin-filter__group {
  border-bottom: 1px solid #f0f0f0; }

.sin-filter__group:last-child {
  border-bottom: none; }

.sin-filter__group-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border: none;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  text-align: left; }

.sin-filter__group-head:hover {
  background: #f0f0f0; }

.sin-filter__chevron {
  transition: transform .2s;
  color: #888; }

.sin-filter__group[data-open="true"] .sin-filter__chevron {
  transform: rotate(180deg); }

.sin-filter__group-body {
  padding: 8px 16px 14px;
  display: none; }

.sin-filter__group[data-open="true"] .sin-filter__group-body {
  display: block; }

.sin-filter__list {
  list-style: none;
  padding: 0;
  margin: 0; }

.sin-filter__list li {
  margin-bottom: 6px; }

.sin-filter__list li.sin-hidden {
  display: none; }

.sin-filter__list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  margin: 0;
  padding: 2px 0; }

.sin-filter__list label:hover {
  color: #ce0303; }

.sin-filter__list input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none; }

.sin-cb {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c0c0c0;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition: all .15s; }

.sin-filter__list label:hover .sin-cb {
  border-color: #ce0303; }

.sin-filter__list input:checked + .sin-cb {
  background: #ce0303;
  border-color: #ce0303; }

.sin-filter__list input:checked + .sin-cb::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg); }

.sin-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.sin-filter__more {
  background: transparent;
  border: none;
  color: #ce0303;
  font-size: 12px;
  padding: 4px 0 0;
  cursor: pointer;
  font-weight: 600; }

.sin-filter__more:hover {
  text-decoration: underline; }

/* Price slider */
.sin-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px; }

.sin-price-inputs input {
  flex: 1;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-size: 13px; }

.sin-price-inputs input:focus {
  outline: none;
  border-color: #ce0303; }

.sin-price-slider {
  position: relative;
  height: 32px;
  margin: 0 6px; }

.sin-price-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  transform: translateY(-50%); }

.sin-price-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #ce0303;
  border-radius: 2px; }

.sin-price-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none; }

.sin-price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #ce0303;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

.sin-price-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #ce0303;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto; }

.sin-price-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px; }

.sin-price-quick button {
  flex: 1 1 calc(50% - 3px);
  background: #f6f6f6;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  color: #444;
  cursor: pointer;
  transition: all .15s; }

.sin-price-quick button:hover {
  background: #ce0303;
  color: #fff;
  border-color: #ce0303; }

.sin-price-quick button.active {
  background: #ce0303;
  color: #fff;
  border-color: #ce0303; }

.sin-filter__footer {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa; }

.sin-filter__apply {
  width: 100%;
  background: #ce0303;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s; }

.sin-filter__apply:hover {
  background: #a30000; }

.sin-filter__apply:disabled {
  background: #c0c0c0;
  cursor: not-allowed; }

/* Active filter pills */
.sin-active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0; }

.sin-active-pills:empty {
  display: none; }

.sin-pill {
  background: #fef2f2;
  color: #ce0303;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 3px 10px 3px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px; }

.sin-pill button {
  background: none;
  border: none;
  color: #ce0303;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0; }

/* Layout: sidebar + main */
@media (min-width: 992px) {
  body .collection-listproduct.row > aside.col-lg-12.sin-aside {
    flex: 0 0 25%;
    max-width: 25%; }
  body .collection-listproduct.row > section.main_container.col-lg-12.sin-main {
    flex: 0 0 75%;
    max-width: 75%; }
  /* Fix body overflow để cho phép sticky child */
  html, body {
    overflow-x: clip !important;
    overflow-y: visible !important; }
  /* Sticky filter sidebar — top dùng CSS var set bởi JS theo header thực tế */
  body .collection-listproduct.row > aside.sin-aside {
    align-self: flex-start !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--sin-sticky-top, 140px) !important;
    max-height: calc(100vh - var(--sin-sticky-top, 140px) - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 5;
    margin-bottom: 104px;
    padding-bottom: 10px; }
  .sin-aside .sidebar-collection {
    max-height: none; }
  .sin-aside .sidebar-collection::-webkit-scrollbar {
    width: 4px; }
  .sin-aside .sidebar-collection::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px; }
  .sin-aside .sidebar-collection::-webkit-scrollbar-track {
    background: transparent; }
  /* Body filter không cần scroll riêng nữa */
  .sin-filter__body {
    max-height: none; } }

/* Desktop sidebar 3 cột — ẩn aside-category (swiper hàng ngang) vì nén xấu */
@media (min-width: 992px) {
  .sin-aside .section_danhmuc {
    display: none; } }

/* Ẩn nút floating filter cũ của theme (.open-filters) — tránh confict với drawer mới */
.open-filters,
#open-filters {
  display: none !important; }

/* Mobile: filter drawer trượt từ trái — wrap quanh .dqdt-sidebar (logic của theme cũ) */
@media (max-width: 991px) {
  .sin-aside {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    z-index: 2147483647;
    background: #fff;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    transition: left .25s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18); }
  /* Header thấp hơn drawer khi drawer mở */
  body.sin-filter-open header,
  body.sin-filter-open .header,
  body.sin-filter-open .header-scroll-hide {
    z-index: 1 !important; }
  .sin-aside.sin-open {
    left: 0; }
  .sin-aside .section_danhmuc {
    display: none; }
  .sin-aside .dqdt-sidebar,
  .sin-aside.sin-open .dqdt-sidebar {
    display: block !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important; }
  .sin-aside .sin-filter {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important; }
  .sin-filter {
    box-shadow: none;
    border-radius: 0;
    margin: 0; }
  .sin-filter__body {
    max-height: none; }
  body.sin-filter-open {
    overflow: hidden; }
  .sin-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483646;
    display: none; }
  .sin-filter-overlay.is-open {
    display: block; }
  .sin-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ce0303;
    color: #ce0303;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer; }
  .sin-filter__close {
    display: none !important; } }

@media (min-width: 992px) {
  .sin-filter-toggle {
    display: none; }
  .sin-filter-overlay {
    display: none !important; }
  .sin-filter__close {
    display: none; } }

/* Product card stats (HACOM style) */
.sin-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-size: 11px;
  color: #555;
  padding: 4px 8px;
  margin-top: 4px;
  border-top: 1px dashed #e8e8e8;
  border-bottom: 1px dashed #e8e8e8; }

.sin-card-stats__item {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.sin-card-stats__item strong {
  color: #ce0303;
  font-weight: 700;
  font-size: 10px;
  min-width: 28px; }
