/* Product Pages Styles */

/* Main Product Container */
.product-main {
    padding: 30px 0;
}

.product-title {
    font-size: 28px;
    color: #30b576;
    margin-bottom: 30px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* 分类导航样式 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.category-nav a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.category-nav a:hover {
    background-color: #e0e0e0;
}

.category-nav a.active {
    background-color: #30b576;
    color: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-info h3 a:hover {
    color: #30b576;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.product-parameters {
    margin-bottom: 15px;
}

.product-parameters ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.product-parameters li {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.product-parameters li span {
    font-weight: 500;
    color: #333;
}

.product-price {
    font-weight: bold;
    color: #30b576;
    font-size: 18px;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px 15px;
}

.quotation-btn, .detail-btn {
    display: block;
    text-align: center;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.quotation-btn {
    background-color: #b3e3bc;
    color: #333;
}

.quotation-btn:hover {
    background-color: #30b576;
    color: #fff;
}

.detail-btn {
    background-color: #f0f0f0;
    color: #333;
}

.detail-btn:hover {
    background-color: #ddd;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 30px;
    grid-column: 1 / -1;
}

.loading:after {
    content: "Loading...";
    color: #999;
    font-style: italic;
}

/* 错误和空状态 */
.no-products, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 5px;
    color: #666;
}

.error {
    color: #d32f2f;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .category-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .category-nav a {
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 认证部分 */
.certification-section {
    margin: 30px 0;
    text-align: center;
}

.certification-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4CAF50;
    font-weight: 500;
}

.certification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
}

.cert-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.cert-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .certification-logos {
        gap: 15px;
    }
    
    .cert-logo {
        height: 40px;
    }
}

/* 产品分类导航 */ 