/* 二级导航 - 机械工业风格 */
.product-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(145deg, #1e2b38 0%, #2c3e50 100%);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.product-categorie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.5), transparent);
}

.product-categorie .category-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
}

.product-categorie .category-link:hover,
.product-categorie .category-link:active,
.product-categorie .category-link:focus {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    color: #ffffff !important;
    pointer-events: auto;
}

.product-categorie .category-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    z-index: -1;
    border-radius: 7px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-categorie .category-link:hover::before {
    opacity: 1;
}

.product-categorie .category-link::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) rotate(-45deg);
    transition: all 0.3s ease;
}

.product-categorie .category-link:hover::after {
    right: 8px;
    border-color: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-categorie {
        padding: 15px;
        gap: 8px;
    }
    
    .product-categorie .category-link {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-categorie {
        padding: 10px;
        gap: 6px;
    }
    
    .product-categorie .category-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 产品列表容器 */
.product-list-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb .container ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    color: #6c757d;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003d82;
}

/* 产品列表主容器 */
.product-list {
    padding: 20px 0;
}

/* 产品过滤和排序 */
.woocommerce-ordering {
    margin-bottom: 30px;
}

.woocommerce-ordering select {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-ordering select:hover {
    border-color: #adb5bd;
}

/* 产品网格布局 */
.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 改为5列显示 */
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .products.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* 产品卡片样式 - 修复点击问题 */
.product {
    position: static !important;
	background-color:#FFF;
	border-radius:10px;
}

.product a {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.product::before, .product::after {
    pointer-events: none !important;
}

/* 原产品卡片样式
.product {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

.product:hover::after {
    opacity: 1;
}

/* 产品链接基础样式 */
.woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 确保产品链接可点击 */
.woocommerce-loop-product__link {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* 确保链接可点击 */
.read-more-link {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
.woocommerce-loop-product__link {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* 产品图片容器样式 */
.woocommerce-loop-product__link .attachment-woocommerce_thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
   
}

/* 产品图片 */
.product img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.product:hover img {
    transform: scale(1.05);
}

.woocommerce-loop-product__title {
    font-size: 16px;
    color: #2c3e50;
    margin: 15px 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product:hover .woocommerce-loop-product__title {
    color: #3498db;
}

/* 按钮样式 */
.button.product_type_simple {
    display: block;
    width: fit-content;
    margin: 15px auto;
    padding: 10px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.button.product_type_simple:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 分页导航 */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination .page-numbers li {
    display: inline-block;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers span.current {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: transparent;
}

/* 工业风格装饰元素 */
.product::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, transparent 48%, rgba(52, 152, 219, 0.1) 50%);
    border-top-right-radius: 12px;
}