/* Product List Page - beihua-reagents design */
#product-list {
    padding-bottom: 80px;
    background: #fff;
}
#product-list .sec-head {
    text-align: center;
    margin-bottom: 40px;
}
#product-list .sec-head .sec-label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
#product-list .sec-head .sec-label i {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: #1e50a2;
    margin-right: 8px;
}
#product-list .sec-head h2 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
#product-list .sec-head p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
/* Filter tabs */
.product-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.product-filter a {
    display: inline-block;
    padding: 8px 24px;
    font-size: 15px;
    color: #666;
    background: #f5f5f5;
    border-radius: 24px;
    transition: all 0.3s ease;
}
.product-filter a:hover,
.product-filter a.is-active {
    color: #fff;
    background: #1e50a2;
}
/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: #1e50a2;
    box-shadow: 0 8px 24px rgba(30, 80, 162, 0.12);
    transform: translateY(-4px);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 16px 20px 8px;
    flex: 1;
}
.product-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-body .product-sn {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}
.product-card-body .product-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px 20px;
    font-size: 14px;
    color: #1e50a2;
}
.product-card-btn .dots {
    display: inline-flex;
    gap: 3px;
}
.product-card-btn .dots i {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1e50a2;
}
.product-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 16px;
}
/* Pagination */
.pages {
    text-align: center;
    margin-top: 40px;
}
.pages a,
.pages span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pages a:hover,
.pages .current {
    color: #fff;
    background: #1e50a2;
    border-color: #1e50a2;
}
/* Product Detail Page */
#product-detail {
    padding-bottom: 80px;
    background: #fff;
}
.detail-wrap {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}
.detail-gallery {
    flex: 0 0 50%;
}
.detail-gallery .gallery-top {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.detail-gallery .gallery-top .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f9f9f9;
}
.gallery-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumbs-wrap .swiper-container {
    flex: 1;
}
.gallery-thumbs .swiper-slide {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.gallery-thumbs .swiper-slide-thumb-active {
    border-color: #1e50a2;
}
.gallery-thumbs .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f9f9f9;
}
.gallery-thumbs-wrap .swiper-button-prev,
.gallery-thumbs-wrap .swiper-button-next {
    position: static;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
}
.gallery-thumbs-wrap .swiper-button-prev::after,
.gallery-thumbs-wrap .swiper-button-next::after {
    font-size: 12px;
    color: #666;
}
.detail-info {
    flex: 1;
    padding-top: 10px;
}
.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}
.detail-sn {
    font-size: 15px;
    color: #999;
    margin-bottom: 20px;
}
.detail-sn span {
    color: #333;
    font-weight: 500;
}
.detail-remark {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    padding: 16px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 24px;
}
.detail-actions {
    display: flex;
    gap: 16px;
}
.detail-actions .btn-primary {
    display: inline-block;
    padding: 10px 32px;
    background: #1e50a2;
    color: #fff;
    border-radius: 24px;
    font-size: 15px;
    transition: opacity 0.3s;
}
.detail-actions .btn-primary:hover {
    opacity: 0.9;
}
.detail-actions .btn-outline {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #1e50a2;
    color: #1e50a2;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.3s;
}
.detail-actions .btn-outline:hover {
    background: #1e50a2;
    color: #fff;
}
.detail-content {
    margin-bottom: 40px;
}
.detail-content-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-content-head h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.detail-content-head .line {
    flex: 1;
    height: 1px;
    background: #eee;
}
.detail-html {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.detail-html img {
    max-width: 100%;
    height: auto;
}
.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}
.detail-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}
.detail-nav a:hover {
    color: #1e50a2;
}
.detail-nav .next {
    margin-left: auto;
}
.related-products {
    margin-top: 10px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    #product-list .sec-head h2,
    #product-detail .detail-title {
        font-size: 22px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card-body {
        padding: 12px 14px 6px;
    }
    .product-card-body h3 {
        font-size: 14px;
    }
    .product-card-btn {
        padding: 8px 14px 14px;
        font-size: 13px;
    }
    .product-filter {
        gap: 8px;
    }
    .product-filter a {
        padding: 6px 16px;
        font-size: 13px;
    }
    .detail-wrap {
        flex-direction: column;
        gap: 24px;
    }
    .detail-gallery {
        flex: none;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions a {
        text-align: center;
    }
    .detail-nav {
        flex-direction: column;
        gap: 12px;
    }
    .detail-nav .next {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .product-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
