/* ===== page products-productlist (compiled from Vue SCSS) ===== */
@charset "UTF-8";
.mx-auto {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Header & Filters*/
.list-header {
  border-bottom: 1px solid #d9e5e0;
}
.list-header .active-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.list-header .active-filters .filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.list-header .active-filters .filter-tags .filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: #eaf6f2;
  color: #0b6b5a;
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 13px;
}
.list-header .active-filters .filter-tags .filter-tag .remove-btn {
  margin-left: 6px;
  color: #0b6b5a;
  opacity: 0.6;
  font-size: 12px;
  cursor: pointer;
}
.list-header .active-filters .filter-tags .filter-tag .remove-btn:hover {
  opacity: 1;
}
.list-header .active-filters .filter-tags .clear-all-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.list-header .active-filters .filter-tags .clear-all-btn:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 80px 0;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px dashed #d9e5e0;
  margin-top: 24px;
}
.empty-state .btn-primary {
  transition: all 160ms ease;
}
.empty-state .btn-primary:hover {
  border-color: #0b6b5a;
  opacity: 0.8;
}

/* Product Card Style Override if needed*/
/* Layout*/
.page-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mobile-filter-bar {
  display: block;
  margin-bottom: 48px; /* 增加与下方模块的间距*/
  text-align: center; /* 让内部的按钮居中显示*/
}
.mobile-filter-bar .btn {
  display: inline-flex; /* 改为 inline-flex 配合 text-align: center 居中，不再强制 100% 宽度*/
  align-items: center;
  justify-content: center;
  padding: 12px 48px; /* 适当增加按钮内边距使其更好看*/
}
.mobile-filter-bar .btn .icon {
  display: inline-flex;
  align-items: center;
  margin-right: 12px; /* 确保图标与右侧文字之间的间距生效*/
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar {
  width: 100%;
  background-color: #ffffff;
  /* 移动端抽屉样式 (左侧滑出)*/
}
.sidebar .filter-header-mobile {
  display: none;
}
.sidebar .filter-footer-mobile {
  display: none;
}
.sidebar .filter-widget {
  background-color: #f7faf9;
  padding: 24px;
}
.sidebar .filter-widget .widget-title {
  font-size: 16px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9e5e0;
}
.sidebar .filter-widget .filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .filter-widget .filter-list li {
  padding: 8px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #1e2b27;
  border-radius: 4px;
  transition: all 160ms ease;
}
.sidebar .filter-widget .filter-list li:hover {
  background-color: #eaf6f2;
  color: #0b6b5a;
}
.sidebar .filter-widget .filter-list li.active {
  background-color: #0b6b5a;
  color: #ffffff;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* Reverted from utilities.scss */
.mb-8 {
  margin-bottom: 80px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mb-4 {
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: #66736e;
}

.text-sm {
  font-size: 14px;
}

.mr-2 {
  margin-right: 12px;
}

.text-primary {
  color: #0b6b5a;
}

.mb-3 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 16px;
}

.opacity-50 {
  opacity: 0.5;
}

.bg-light {
  background-color: #f7faf9;
}

.mt-2 {
  margin-top: 12px;
}

.mt-5 {
  margin-top: 32px;
}

.py-5 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.py-6 {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Reverted responsive */
@media (min-width: 768px) {
  .list-header .active-filters {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 768px) {
  .page-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}
@media (min-width: 768px) {
  .mobile-filter-bar {
    display: none;
  }
}
@media (min-width: 768px) {
  .filter-overlay {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .sidebar {
    width: 240px;
    flex-shrink: 0;
  }
}
@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    z-index: 1000;
    transition: left 240ms ease;
    display: flex;
    flex-direction: column;
  }
  .sidebar.is-mobile-open {
    left: 0;
  }
}
@media (max-width: 767px) {
  .sidebar .filter-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #d9e5e0;
  }
  .sidebar .filter-header-mobile h3 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
  }
  .sidebar .filter-header-mobile .close-btn {
    font-size: 20px;
    color: #66736e;
    background: none;
    border: none;
    cursor: pointer;
  }
}
@media (max-width: 767px) {
  .sidebar .filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }
}
@media (max-width: 767px) {
  .sidebar .filter-footer-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #d9e5e0;
  }
  .sidebar .filter-footer-mobile .btn {
    flex: 1; /* 让按钮撑满整个可用空间*/
    padding: 16px 24px; /* 增加上下内边距，使按钮变大（更高）*/
    font-size: 16px; /* 稍微增大字号*/
  }
}