@charset "UTF-8";
/* 全局容器 */
.ct-shop-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  padding: 30px 0;
  background: #fafafa;
}
.ct-shop-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 800px;
}

/* 面包屑 */
.ct-shop-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 100px;
  padding-left: 8%;
}
.ct-shop-breadcrumb a {
  color: #333;
  text-decoration: none;
}
.ct-shop-breadcrumb span {
  margin: 0 6px;
}

/* 主布局 - 核心：固定左侧宽度+溢出滚动，解决布局抖动 */
.ct-shop-row {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* 关键：左右永远顶部对齐，高度变化不影响 */
  align-content: flex-start; /* 兜底：确保flex容器不重排 */
}
.ct-shop-sidebar {
  width: 300px;
  flex-shrink: 0; /* 固定宽度，不压缩 */
  flex-grow: 0; /* 禁止宽度扩展 */
  height: auto;
  min-height: 950px;
  max-height: calc(100vh - 100px); /* 可选：限制高度，超出滚动 */
  /*overflow-y: auto; !* 内容过多时滚动，不改变整体布局 *!*/
  margin-top: 85px;
  background: #ffffff;
  padding: 40px 30px;
  box-sizing: border-box; /* 关键：padding不增加宽度/高度，避免布局偏移 */
}
.ct-shop-main {
  flex: 1;
}

/* 筛选组 - 统一样式 */
.ct-shop-filter-group {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.ct-shop-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.ct-shop-filter-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.ct-shop-filter-toggle {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
}
.ct-shop-filter-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-shop-filter-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ct-shop-filter-hidden {
  display: none;
}
.ct-shop-filter-more {
  background: none;
  border: none;
  color: #333;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
}

/* 尺码按钮 */
.ct-shop-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ct-shop-size-btn {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.ct-shop-size-btn.active {
  background: #c42026;
  color: #fff;
  border-color: #c42026;
}

/* 颜色圆点 */
.ct-shop-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ddd;
}

/* 顶部栏 */
.ct-shop-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.ct-shop-count {
  font-size: 14px;
  color: #666;
}
.ct-shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
/* 排序下拉 */
.ct-shop-sort-dropdown {
  position: relative;
}
.ct-shop-sort-trigger {
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ct-shop-sort-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.ct-shop-sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 200px;
  display: none;
  z-index: 10;
}
.ct-shop-sort-options button {
  width: 100%;
  text-align: left;
  padding: 8px 15px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.ct-shop-sort-options button:hover {
  background: #f5f5f5;
}
.ct-shop-sort-options button.active {
  background: #f0f0f0;
  font-weight: bold;
  color: #333;
}
.ct-shop-sort-dropdown.active .ct-shop-sort-options {
  display: block;
}
.ct-shop-sort-dropdown.active .ct-shop-sort-arrow {
  transform: rotate(180deg);
}

/* 标题 */
.ct-shop-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* 产品网格 */
.ct-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.ct-shop-product {
  text-align: center;
}
.ct-shop-product a{
  color: #333;
  text-decoration: none;
}

.ct-shop-size-grid a{
  color: #333;
  text-decoration: none;
}

.ct-shop-product-img {
  margin-bottom: 15px;
}
.ct-shop-product:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

ct-shop-product:active {
  transform: translateY(0);
}
.ct-shop-product-placeholder {
  width: 100%;
  height: 380px;
  border-radius: 4px;
}
.ct-shop-product-name {
  font-size: 15px;
  margin-bottom: 12px;
}
.ct-shop-product-colors {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ct-shop-product-colors .ct-shop-color-dot {
  cursor: pointer;
  border: 2px solid #ccc;
}
.ct-shop-product-colors .ct-shop-color-dot.active {
  border-color: #333;
}
.ct-shop-product-price {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.ct-shop-product-link {
  font-size: 13px;
  color: #333;
  text-decoration: underline;
}

/* 折叠筛选组（所有筛选组通用） */
.ct-shop-filter-collapsible.collapsed {
  display: none;
}

/* 响应式 */
@media (max-width: 1200px) {
  .ct-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .ct-shop-row {
    flex-direction: column;
  }
  .ct-shop-sidebar {
    width: 100%;
    max-height: none;
    margin-bottom: 20px;
  }
  .ct-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ct-shop-title {
    font-size: 24px;
  }
}

/* 分页组件样式 */
.ct-shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  padding-bottom: 40px;
  flex-wrap: wrap; /* 响应式换行 */
}

.ct-shop-pagination-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ct-shop-pagination-btn:disabled {
  color: #999;
  cursor: not-allowed;
  background: #f9f9f9;
  border-color: #eee;
}

.ct-shop-pagination-btn:not(:disabled):hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.ct-shop-pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ct-shop-pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ct-shop-pagination-number.active {
  background: #c42026;
  color: #ffffff;
  border-color: #c42026;
}

.ct-shop-pagination-number:hover:not(.active) {
  background: #f5f5f5;
  border-color: #ccc;
}

.ct-shop-pagination-ellipsis {
  font-size: 14px;
  color: #666;
  padding: 0 4px;
}

/* 响应式适配 */
@media (max-width: 600px) {
  .ct-shop-pagination {
    gap: 8px;
    margin-top: 40px;
  }

  .ct-shop-pagination-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  .ct-shop-pagination-number {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .ct-shop-breadcrumb{
    margin-bottom: 10px;
  }
  .ct-shop-sidebar{
    margin-top:20px;
  }
}