/* 产品列表页样式 */
.products-page {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    min-height: 100vh;
    background: #f5f5f5;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb span {
    color: #333;
}

/* 产品布局：max-width 居中 + 左右留白 */
.products-layout {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* 左侧分类：外层 slot 含「菜单宽度 + 滚动条沟」，滚动在 scroll 层，条在白块外侧右侧 */
.category-sidebar-slot {
	position: sticky;
	top: 0;
	align-self: flex-start;
	flex-shrink: 0;
	z-index: 2;
	width: calc(200px + 14px);
	max-height: calc(100vh - var(--site-header-h, 65px));
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.category-sidebar-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	width: 100%;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

/* 与原 .category-sidebar 一致的滚动条：默认不占宽，悬停沟槽上出现窄滑块 */
.category-sidebar-scroll::-webkit-scrollbar {
	width: 0;
}
.category-sidebar-scroll:hover::-webkit-scrollbar {
	width: 12px;
}
.category-sidebar-scroll:hover::-webkit-scrollbar-track-piece {
	border-radius: 6px;
}
.category-sidebar-scroll:hover::-webkit-scrollbar-thumb:vertical {
	background-color: #ccc;
	border-radius: 5px;
	width: 6px;
	outline: 2px solid #fff;
	outline-offset: -2px;
	border: 2px solid #fff;
}

.category-sidebar-panel {
	display: block;
	width: 200px;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
	overflow: visible;
	margin: 0;
	padding: 0;
}

.category-tree {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.category-group {
    border-bottom: 1px solid #eee;
}

.category-group:last-child {
    border-bottom: none;
}

.category-group h3 {
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    color: #333;
    background: #f8f9fa;
}
.category-group h3.active {
    color: #1d4ed8;
    background: #eff6ff;
}

.category-group.active-group {
    background: #f8faff;
}
.category-tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree li {
    position: relative;
}

.category-tree a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tree a:hover {
    color: #1d4ed8;
    background: #f8f9fa;
}

.category-tree a.active {
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 600;
}

/* 与下方分组标题 h3（印刷品等）同行高：统一 padding / 字号 / 字重 */
.category-tree .all-products-group > a {
	display: block;
	padding: 15px 20px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	box-sizing: border-box;
	color: #333;
}

.category-tree .has-sub {
    padding-right: 30px;
}

.category-tree .has-sub::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
}

.sub-category {
    display: none;
    background: #f8f9fa;
}

.sub-category a {
    padding-left: 40px;
}

.category-tree li:hover .sub-category {
    display: block;
}

/* 筛选栏 */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sort-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s ease;
}

.sort-item:hover,
.sort-item.active {
    color: #e53935;
    font-weight: 600;
}

.filter-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: #666;
    margin-right: 15px;
    min-width: 50px;
}

.filter-group a {
    color: #666;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-group a:hover,
.filter-group a.active {
    color: #1d4ed8;
    background: #eff6ff;
}

.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
}
/* ＜1024：列表/详情左侧分类统一为窄菜单 */
@media (max-width: 1023px) {
.products-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.category-sidebar-slot {
    display: flex;
    flex-direction: column;
	align-items: stretch;
    flex: 0 0 calc(80px + 8px);
    width: calc(80px + 8px);
    min-width: calc(80px + 8px);
    max-width: calc(80px + 8px);
	position: sticky;
	top: 0;
	z-index: 2;
    max-height: calc(100vh - var(--site-header-h, 65px));
}
.category-sidebar-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
}
.category-sidebar-panel {
	width: 80px;
	min-width: 80px;
	border-radius: 0;
	box-shadow: none;
}

.category-tree {
    border-radius: 0;
    box-shadow: none;
}

.category-group h3 {
    padding: 10px 6px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tree a {
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.category-tree .all-products-group > a {
	padding: 10px 6px;
	font-size: 12px;
	line-height: 1.35;
}

.products-content {
    flex: 1;
    margin: 0;
    padding: 0 10px 0 0;
}

.product-detail-layout .product-detail-center-column {
    padding: 0 10px 0 0;
    margin: 0;
}
}

/* 分页条 —— 桌面 & 手机统一 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination .page-btn,
.pagination .page-num {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s;
}
.pagination .page-btn:hover,
.pagination .page-num:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.pagination .page-num.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.pagination .page-btn.disabled {
    background: #f9f9f9;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}
.pagination .page-nums { display: inline-flex; gap: 6px; }
.pagination .page-dots {
    padding: 0 6px;
    color: #999;
    font-size: 13px;
}
.pagination .page-total {
    margin-left: 12px;
    color: #999;
    font-size: 12px;
}

/* ≤768：手机列表卡片等 */
@media (max-width: 768px) {
.sort-bar {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
}

/* 手机端隐藏左侧分类侧栏，顶部分类横滑 */
.category-sidebar-slot { display: none !important; }
.products-content { padding: 0 !important; }
.products-layout { padding: 0 10px; gap: 0; }
main { padding: 12px 0; }

/* 搜索框手机端 */
.product-list > form {
    display: flex;
    margin-bottom: 10px;
}
.product-list > form input[type=text] {
    flex: 1;
    min-width: 0;
    width: auto !important;
}
.product-list > form button { flex-shrink: 0; }

.product-card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #f0f0f0;
}

.mobile-card-title {
    display: block;
    order: 2;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
    padding: 8px 8px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.product-card a {
    order: 1;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

.product-info {
    order: 3;
    padding: 2px 8px 8px;
    min-width: 0;
}

.product-info h3 { display: none; }
.product-info .description { display: none !important; }

.product-info .price {
    display: block;
    margin-top: 2px;
    font-size: 15px;
}

.product-info .price .start-text,
.product-info .price .old-price {
    font-size: 11px;
}

/* 手机端价格+标签行 */
.product-info > div[style*="display:flex"] {
    flex-wrap: wrap;
}
.product-info span[style*="font-size:11px"] {
    font-size: 10px !important;
    padding: 1px 6px !important;
}

/* 手机端分页：简化只保留上一页/下一页 */
.pagination {
    gap: 6px;
    margin-top: 16px;
}
.pagination .page-nums { display: none; }
.pagination .page-total { display: none; }
.pagination .page-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
}
}

/* ≤480：详情隐藏侧栏 */
@media (max-width: 480px) {
.product-detail-layout .category-sidebar-slot {
	display: none !important;
}
.product-detail-layout .product-detail-center-column {
	flex: 1;
	min-width: 0;
}
}

@media (max-width: 375px) {
.filter-bar {
    grid-template-columns: repeat(1, 1fr);
}
.filter-group {
    align-items: flex-start;
    flex-direction: column;
}
.filter-group select {
    width: 100%;
}
}
/* 产品分类导航 */
.product-categories {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
/* 右侧产品列表 */
.products-content {
    flex: 1;
}
/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mobile-card-title {
    display: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f9f9f9;
}
.product-title {
    text-align: center;
    line-height: 30px;
    overflow: hidden;
    white-space: nowrap;
}
.product-info {
    padding: 14px 16px 16px;
}

.product-info h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 1.4;
    font-weight: 600;
}

.product-info .description {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-info .price {
    font-size: 20px;
    color: #ff4d4f;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.product-info .price .start-text {
    margin-left: 2px;
    font-size: 14px;
    font-weight: normal;
}

.product-info .price .old-price {
    margin-left: 8px;
    font-size: 14px;
    color: #999;
    font-weight: normal;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.product-meta .rating {
    color: #ffd700;
}

.btn-consult {
    display: block;
    width: 100%;
    padding: 10px;
    background: #1d4ed8;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-consult:hover {
    background: #1e40af;
}
/* 响应式样式 - 产品网格 */
@media (max-width: 1024px) {
.product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
}

/* 产品列表网格：须在 1024 规则之后，否则会被四列覆盖 */
@media (max-width: 768px) {
.product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}
}
@media (max-width: 480px) {
.product-grid {
	grid-template-columns: 1fr;
}
}
/* 产品详情页：左栏 | 中间主轴（桌面：详情+推荐横向；较窄：详情上、推荐下纵向） */
.product-detail-layout {
	align-items: flex-start;
}

.product-detail-center-column {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	box-sizing: border-box;
}

@media (min-width: 1181px) {
.product-detail-center-column {
	flex-direction: row;
	align-items: flex-start;
}
}

main {
    background: #f5f5f5;
    padding: 20px 0;
}

@media (max-width: 1024px) {
.products-layout {
    padding: 0 12px;
    gap: 10px;
}
}

@media (max-width: 768px) {
.products-layout {
    padding: 0 8px;
    gap: 8px;
}
}
.product-detail-container {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	box-sizing: border-box;
}

@media (max-width: 1180px) {
.product-detail-layout .product-detail-container {
	flex: none;
	width: 100%;
}
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e4393c;
}

.product-detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-detail-img {
    flex: 0 0 400px;
}

.product-detail-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}
/* ========== 放大镜效果 ========== */
.product-detail-img {
    position: relative;
    cursor: zoom-in;
}
.product-detail-img .zoom-lens {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: rgba(29, 78, 216, 0.15);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: none;
    pointer-events: none;
    border-radius: 2px;
    z-index: 5;
}
.zoom-result {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    width: 360px;
    height: 360px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 10;
    overflow: hidden;
}
.zoom-result img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    border-radius: 0;
}
@media (max-width: 768px) {
    .product-detail-img { cursor: default; }
    .zoom-lens, .zoom-result { display: none !important; }
}
.product-detail-gallery {
    flex: 0 0 400px;
}
.product-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.product-detail-thumbs::-webkit-scrollbar { height: 4px; }
.product-detail-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.product-detail-thumbs .thumb-item {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #f3f4f6;
}
.product-detail-thumbs .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.product-detail-thumbs .thumb-item:hover { border-color: #1d4ed8; }
.product-detail-thumbs .thumb-item.active {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}
@media (max-width: 1024px) {
.product-detail-gallery { flex: none; }
.product-detail-thumbs .thumb-item { flex-basis: 56px; width: 56px; height: 56px; }
}

.product-detail-info {
    flex: 1;
}

.product-detail-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-detail-meta {
    margin-bottom: 30px;
}

.product-detail-price {
    font-size: 28px;
    color: #e4393c;
    font-weight: bold;
    margin-right: 20px;
}

.product-detail-sales {
    font-size: 14px;
    color: #999;
}

.btn-consult {
    display: inline-block;
    background: #e4393c;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-consult:hover {
    background: #c1272d;
}


/* 产品详情页图片风格卡片复刻样式 */
.product-info-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: bold;
  color: #222;
  display: flex;
  align-items: center;
}
.product-info-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.product-info-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 7px;
  line-height: 21px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  border-radius: 0;
  box-sizing: border-box;
}
.product-info-tag-rec {
  background: #e53935;
}
.product-info-tag-new {
  background: #1565c0;
}
.product-info-tag-post {
  background: #2e7d32;
}
.product-info-tag-self {
  background: #6a1b9a;
}
.product-info-tag-fast {
  background: #ef6c00;
}
.product-info-title .bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #b71c1c;
  margin-right: 10px;
  border-radius: 2px;
}
/* 详情配置区：标签在上、控件在下（规格 / 颜色 / 价格 / 收货省市 / 数量统一） */
.product-detail-field {
  margin-bottom: 16px;
  font-size: 16px;
}
.product-detail-field-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-detail-field-body {
  min-width: 0;
}
.product-detail-field-body--options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.product-detail-field .option {
  display: inline-block;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  padding: 4px 18px;
  color: #333;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: border 0.2s, background 0.2s;
}
.product-detail-field .option.selected,
.product-detail-field .option:hover {
  border: 2px solid #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}
.product-detail-field .price {
  color: #e4393c;
  font-size: 28px;
  font-weight: bold;
}
.product-detail-field--qty {
  flex: 1;
  margin-bottom: 0;
}
.product-info-brief{
  color:#666;
  margin-bottom: 18px;
  font-size: 14px;
}
.product-info-cons,
.product-info-quote-actions {
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.product-info-quote-actions {
  flex-wrap: wrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.product-shipping-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.product-shipping-selects select {
  flex: 1 1 100px;
  min-width: 0;
  padding: 8px 30px 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23999' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.product-shipping-selects select:hover {
  border-color: #9ca3af;
}
.product-shipping-selects select:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
@media (min-width: 769px) {
  .product-shipping-selects { flex-wrap: nowrap; }
  .product-shipping-selects select { flex: 1 1 0; min-width: 0; }
}
.product-quote-result {
  margin-top: 16px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}
.product-quote-result[hidden] {
  display: none;
}
.product-quote-result-inner {
  padding: 14px 16px 16px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  color: #1b5e20;
  font-size: 15px;
  line-height: 1.65;
}
.product-quote-result-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0d4715;
}
.product-quote-line {
  margin: 0 0 6px;
}
.product-quote-total {
  margin: 10px 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #0d4715;
}
.quote-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.quote-copy-btn:hover {
  background: #1e40af;
}
.quote-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 38px;
  border: none;
  background: #f5f6fa;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover {
  background: #eceff5;
}
.qty-input {
  width: 60px;
  height: 38px;
  border: none;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  text-align: center;
  font-size: 18px;
  color: #333;
  background: #fff;
  outline: none;
  box-shadow: none;
}
.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 26px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.quote-btn:hover {
  background: #1e40af;
}
.product-info-detail-bar {
  background: #bdbdbd;
  color: #333;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 3px 3px 0 0;
  margin-top: 10px;
}

.product-info-detail-content {
  background: #fafafa;
  padding: 20px 18px;
  border-radius: 0 0 4px 4px;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 8px;
}

.product-detail-desc-section {
  background: #fff;
  margin: 30px 0 0 0;
  padding: 0 0 32px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-detail-desc-section .product-info-detail-bar {
  background: #bdbdbd;
  color: #333;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 3px 3px 0 0;
  margin-top: 0;
}
.product-detail-desc-section .product-info-detail-content {
  background: #fafafa;
  padding: 20px 18px;
  border-radius: 0 0 4px 4px;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 8px;
}

/* 详情页右侧推荐栏 */
.product-detail-recommend-slot {
	position: sticky;
	top: 0;
	align-self: flex-start;
	flex-shrink: 0;
	z-index: 1;
	width: calc(240px + 12px);
	max-height: calc(100vh - var(--site-header-h, 65px));
	box-sizing: border-box;
}

.product-detail-recommend-scroll {
	max-height: calc(100vh - var(--site-header-h, 65px));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.product-detail-recommend-scroll::-webkit-scrollbar {
	width: 0;
}
.product-detail-recommend-scroll:hover::-webkit-scrollbar {
	width: 12px;
}
.product-detail-recommend-scroll:hover::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 5px;
}

.product-detail-recommend-panel {
	width: 240px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.product-detail-recommend-title {
	margin: 0;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	line-height: 1.35;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}

/* ========== 店铺信息卡片（详情页右侧） ========== */
.shop-card-detail {
	padding: 14px;
	box-sizing: border-box;
}
.shop-card-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	padding: 8px;
	margin: -8px;
	border-radius: 6px;
	transition: background-color .2s ease;
}
.shop-card-link:hover {
	background: #f3f6ff;
}
.shop-card-logo {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.shop-card-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.shop-card-logo i {
	font-size: 20px;
	color: #9ca3af;
}
.shop-card-meta {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}
.shop-card-name {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.shop-card-contact {
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
}
.shop-card-contact i {
	margin-right: 2px;
	color: #9ca3af;
}
.shop-card-go {
	flex: 0 0 auto;
	font-size: 12px;
	color: #2563eb;
	white-space: nowrap;
}
.shop-card-go i {
	margin-left: 2px;
	font-size: 10px;
}
.shop-card-desc {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e5e7eb;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.6;
}

/* ========== 关注按钮行 ========== */
.shop-card-follow-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
}
.shop-follow-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border: 1px solid #2563eb;
	border-radius: 4px;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all .2s;
	line-height: 1.4;
}
.shop-follow-btn:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}
.shop-follow-btn i {
	font-size: 11px;
}
/* 已关注态（灰色边框 + 空心文字） */
.shop-follow-btn.shop-follow-on {
	background: #fff;
	color: #6b7280;
	border-color: #e5e7eb;
}
.shop-follow-btn.shop-follow-on:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	color: #374151;
}
/* 自己店铺态（橙黄色系） */
.shop-follow-btn.shop-follow-own {
	background: #fff7ed;
	color: #c2410c;
	border-color: #fed7aa;
}
.shop-follow-btn.shop-follow-own:hover {
	background: #ffedd5;
}
/* 未登录态 */
.shop-follow-btn.shop-follow-login {
	background: #f3f4f6;
	color: #6b7280;
	border-color: #e5e7eb;
}
.shop-follow-btn.shop-follow-login:hover {
	background: #e5e7eb;
}
.shop-follow-count {
	font-size: 11px;
	color: #9ca3af;
	white-space: nowrap;
}

/* 推荐列表：桌面侧栏为纵向紧凑横排缩略图；≤1180 与产品列表同源卡片网格 */
.product-detail-recommend-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 10px;
	list-style: none;
	box-sizing: border-box;
}

@media (min-width: 1181px) {
.product-detail-recommend-list .product-detail-recommend-card.product-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	margin: 0;
	background: transparent;
	border-radius: 6px;
	box-shadow: none;
	overflow: visible;
	transition: background-color 0.2s ease;
}

.product-detail-recommend-list .product-detail-recommend-card.product-card:hover {
	transform: none;
	box-shadow: none;
	background: #f3f6ff;
}

.product-detail-rec-cover {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f5f5;
}

.product-detail-rec-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-detail-rec-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-detail-recommend-list .product-title {
	line-height: 1.35;
	text-align: left;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: normal;
	padding: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.product-detail-rec-price {
	font-size: 13px;
	font-weight: 600;
	color: #e4393c;
	line-height: 1.25;
	text-align: left;
}
}

/* 非桌面：推荐栏在中间栏内、位于详情下方；卡片式网格（与列表页一致语义） */
@media (max-width: 1180px) {
.product-detail-recommend-slot {
	position: static;
	align-self: stretch;
	flex: none;
	width: 100%;
	max-width: none;
	max-height: none;
	box-sizing: border-box;
}

.product-detail-recommend-scroll {
	max-height: none;
	overflow-y: visible;
}

.product-detail-recommend-panel {
	width: 100%;
	max-width: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	box-sizing: border-box;
}

.product-detail-recommend-title {
	border-radius: 0;
	margin-bottom: 0;
	box-shadow: none;
}

.product-detail-recommend-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
	gap: 10px;
	padding: 12px;
	margin: 0;
}

.product-detail-recommend-list .product-detail-recommend-card.product-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: nowrap;
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-width: 0;
}

.product-detail-recommend-list .product-detail-recommend-card.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-detail-rec-cover {
	display: block;
	order: 1;
	flex: none;
	width: 100%;
	margin: 0;
	border-radius: 0;
	overflow: hidden;
	background: #f8f9fa;
}

.product-detail-rec-cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.product-detail-rec-body {
	order: 2;
	display: block;
	flex: none;
	width: 100%;
	padding: 10px 10px 12px;
	box-sizing: border-box;
	background: #fff;
	min-width: 0;
}

.product-detail-recommend-list .product-title {
	display: block;
	text-align: center;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 0 6px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	box-sizing: border-box;
	min-width: 0;
}

.product-detail-rec-price {
	display: block;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #ff6b6b;
}

@media (max-width: 768px) {
.product-detail-recommend-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.product-detail-recommend-list .product-detail-recommend-card.product-card {
	border-radius: 6px;
	box-shadow: none;
	border: 1px solid #f0f0f0;
}

.product-detail-recommend-list .product-detail-recommend-card.product-card:hover {
	transform: none;
	box-shadow: none;
	border-color: #e8e8e8;
	background: #fafafa;
}
}

@media (max-width: 480px) {
.product-detail-recommend-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
}

@media (max-width: 1024px) {
.product-detail-card {
    display: block;
}
.product-info-cons,
.product-info-quote-actions {
  width:100%;
  flex-wrap: wrap;
}
}