.product-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}
.products-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-container ul li {
    margin-bottom: 0.75rem;
}

/* Multi-level Sidebar Navigation */
.sidebar-nav-container {
    display: flex;
    gap: 0;
    position: relative;
}

.sidebar-main-nav {
    width: 100%;
    padding-right: 0;
}

.sidebar-main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-main-nav li {
    position: relative;
    margin-bottom: 0;
}

.sidebar-main-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-main-nav li a:hover,
.sidebar-main-nav li a.active {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
}

.sidebar-main-nav li a.has-children::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.sidebar-main-nav li.expanded > a.has-children::after {
    transform: rotate(90deg);
}

/* Third level navigation */
.sidebar-sub-nav {
    position: relative;
    left: 0;
    width: auto;
    min-width: 220px;
    max-width: 400px;
    background: var(--bg-white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    overflow-y: auto;
    max-height: 400px;
}

.sidebar-main-nav li.expanded .sidebar-sub-nav {
    opacity: 1;
    visibility: visible;
}

.sidebar-sub-nav h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-sub-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul .sidebar-sub-nav li {
    margin-bottom: 0.1rem;
}

.sidebar-sub-nav li a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease;
	word-break: break-word;
}

.sidebar-sub-nav li a:hover {
    background: rgba(0, 168, 107, 0.05);
    color: var(--primary-color);
}

/* Featured Categories */
.featured-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-categories li {
    margin-bottom: 0.1rem;
}

.featured-categories li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.featured-categories li a:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
}

.featured-icon {
    font-size: 1.25rem;
}

/* Price Range */
.price-range {
    margin-bottom: 1rem;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
}

.price-inputs span {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.price-range button {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.price-range button:hover {
    background: rgba(0, 168, 107, 0.2);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
}

.filter-tag.active {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Products Grid */
.products-main {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.products-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.products-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 0.75rem 1rem;
    background: rgba(0, 168, 107, 0.1);
    border: none;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: rgba(0, 168, 107, 0.2);
}

/* Sidebar Toggle (Hidden on Desktop) */
.sidebar-toggle {
    display: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
	  padding:1.5rem;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    display: block;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-badge.hot {
    background: #FF6B6B;
}

.product-badge.new {
    background: #4ECDC4;
}

.product-info {
    padding: 1rem 0 0;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card .product-name {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 0rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-align: left;
    min-height: 3rem;
}

.product-specs {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-specs span {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Product Price and MOQ */
.product-info .product-moq {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0rem;
    text-align: left;
}

.product-moq span {
    color: var(--primary-color);
    font-weight: 600;
}

.product-price-range {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-price-range .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.product-price-range .range {
    font-size: 0.9rem;
    color: #E74C3C;
}

/* Inquiry Button */
.inquiry-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.inquiry-btn:hover {
    background: rgba(0, 168, 107, 0.2);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 168, 107, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 168, 107, 0.2);
}
/* 分页容器基础样式保留 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 统一宽高 + 弹性居中，让箭头和数字盒子尺寸完全一致 */
.pagination .page-numbers li > a,
.pagination .page-numbers li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;    /* 固定宽度 */
    height: 44px;   /* 固定高度，和padding等效，强制正方形 */
    padding: 0;     /* 取消上下左右内边距，避免尺寸偏差 */
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination .page-numbers li > a:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 168, 107, 0.2);
}

.pagination .page-numbers .current {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 168, 107, 0.2);
    cursor: default;
}

/* 上一页禁用透明 */
.pagination .prev.page-numbers {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 省略号居中样式 */
.pagination .page-numbers li > span.dots {
    border: none;
    background: transparent;
    cursor: default;
}
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.05) 0%, rgba(0, 168, 107, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.contact-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .products-container {
        flex-direction: column;
        padding: 1rem;
        box-sizing: border-box;
    }

    .sidebar {
        width: 100%;
        box-sizing: border-box;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .products-container {
        padding: 0.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        z-index: 1000;
        padding: 1rem;
        padding-top: 60px;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
        z-index: 1002;
    }

    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 70px;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-color);
        color: var(--text-light);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 168, 107, 0.3);
    }

    .sidebar.active + .sidebar-toggle {
        z-index: 998;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        padding-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .products-header {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

    .products-title h1 {
        font-size: 1.25rem;
    }

    .search-bar {
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    .products-grid {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        gap: 0.5rem;
    }

    .product-card {
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0rem ;
        background-color: #FFFFFF;
    }

    .product-image {
        width: 100%;
        box-sizing: border-box;
        background:none;
    }

    .product-image img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .product-info {
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card .product-name {
        font-size: 0.9rem;
    }
    .product-card .product-price-range{
        gap:unset;
    }
    .product-card .label{
        font-size: 0.7rem;
    }
    .product-card .range{
        font-size: 0.7rem;
    }
    .product-card .product-moq{
        font-size: 0.7rem;
    }
    .contact-section {
        padding: 1rem;
        box-sizing: border-box;
    }

    .sidebar-section {
        padding: 1rem;
        box-sizing: border-box;
    }

    .sidebar-section:not(:last-child) {
        margin-bottom: 1rem;
    }

    .product-count {
        font-size: 0.875rem;
    }

    .pagination {
        flex-wrap: wrap;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .pagination button {
        flex-shrink: 0;
    }
}

/* Page Header */
.page-header {
    width: 100%;
    overflow: hidden;
    padding-top: 70px;
}

.header-banner {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-banner {
        height: 150px;
        object-fit: cover;
    }
}