/* brand-products.css - 品牌商品列表页面专有样式 */
/* 网格/卡片/排序/切换按钮 等样式全部复用搜索结果页（base.css / sort-filter.css） */

/* ==================== 商品详情页 - 品牌链接（标题上方） ==================== */
.product-brand-link {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.product-brand-link:hover {
  color: var(--sub);
}

.product-brand-link:active {
  opacity: 0.7;
}

/* ==================== 品牌商品列表页 - 品牌头部 ==================== */
.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 24px;
}

.brand-header-logo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: contain;
  background: #f4f4f4;
  padding: 8px;
}

.brand-header-info {
  flex: 1;
}

.brand-header-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.brand-header-translated {
  font-size: 16px;
  color: var(--sub);
  margin: 0 0 8px 0;
}

.brand-header-stats {
  font-size: 14px;
  color: var(--muted);
}

/* ==================== 错误/空状态 ==================== */
.brand-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  text-align: center;
}

.brand-error-icon {
  width: 64px;
  height: 64px;
  color: #e74c3c;
}

.brand-error-message {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.brand-error-retry {
  padding: 10px 24px;
  font-size: 14px;
  color: white;
  background: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-error-retry:hover {
  opacity: 0.8;
}

.brand-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  text-align: center;
}

.brand-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--muted);
}

.brand-empty-message {
  font-size: 16px;
  color: var(--sub);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .brand-header-logo {
    width: 64px;
    height: 64px;
  }

  .brand-header-name {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
  }

  .brand-header-logo {
    width: 56px;
    height: 56px;
  }

  .brand-header-name {
    font-size: 20px;
  }

  .brand-header-translated {
    font-size: 14px;
  }

  /* 商品详情页 - 品牌链接移动端 */
  .product-brand-link {
    font-size: 12px;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .brand-header-name {
    font-size: 18px;
  }

  .brand-header-stats {
    font-size: 13px;
  }
}
