/* Sticky Header */
.zhongyong-header{
    width: 100%;
    transition: all 0.3s ease;
    z-index: 9999;
    top: 0;
    position: absolute;
    background-color: transparent;
}

/* Sticky Class */
.zhongyong-header.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.company-profile-sec-about .elementor-widget-text-editor table th, .company-profile-sec-about .elementor-widget-text-editor table td {
    padding: 5px;
}

.company-profile-sec-about .elementor-widget-text-editor table th {
    font-weight: 700;
}
ul.products li.product img {
    height: auto;
}
.product .product-top {
    padding-top: 100%;
}
.woocommerce-shop .unita-products-grid .unita-products {
    --grid-column-gap: 20px !important;
    --grid-row-gap: 20px !important;
}
.get-quote-btn {
    background-color: #2271b1 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.get-quote-btn:hover {
    background-color: #135e96 !important;
    color: #ffffff !important;
}
ul.products li.product h3 a, ul.products li.product .woocommerce-loop-product__title a {
    color: #555;
    font-size: 14px;
    text-align: left;
    -webkit-line-clamp: 2;
    font-weight: 500;
    line-height: 20px;
}
.widget.woocommerce .widget-content ul li a,
.product_list_widget .woocommerce-loop-product__title{
    font-size: 16px;
    font-size: 1rem;
}
	.woocommerce ul.products li.product .button {
		text-transform: unset;
}
.woocommerce ul.products li.product {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.woocommerce ul.products li.product {
    padding: 10px;
}
.single .post h4 {
    font-size: 18px;
}

.single .post h3 {
    font-size: 22px;
}
.entry-title {
    font-size: 2rem;
}
/* ================================
   Product Category Sidebar
================================ */

.product-sidebar {
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 20px;
}

/* Reset list */
.product-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 每一项 */
.cat-item {
    border-bottom: 1px dashed #ddd;
}

/* -------------------------------
   一行结构：左文字 + 右按钮
-------------------------------- */
.cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

/* 分类文字 */
.cat-link {
    flex: 1;
    font-size: 16px;
    color: #222;
    text-decoration: none;
}

.cat-link:hover {
    color: #00BFFF;
}

/* ================================
   ✅ 关键修复：只高亮当前这一行
   （不影响子分类）
================================ */
.cat-item.active > .cat-row {
    background: #18a84a;
}

.cat-item.active > .cat-row .cat-link {
    color: #fff;
}

/* -------------------------------
   右侧折叠按钮
-------------------------------- */
.cat-toggle {
    width: 32px;
    height: 32px;
    margin-left: 12px;
    background: #f2f2f2;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.cat-toggle::before {
    content: "˄";
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 32px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

.cat-toggle:hover {
    background: #00BFFF;
}

.cat-toggle:hover::before {
    color: #fff;
}

/* -------------------------------
   子分类区域
-------------------------------- */
.cat-children {
    display: block;           /* 默认展开 */
    background: #fafafa;
    padding-left: 16px;
}

/* 折叠状态 */
.cat-item.closed > .cat-children {
    display: none;
}

.cat-item.closed .cat-toggle::before {
    content: "˅";
}

/* -------------------------------
   子分类字体稍小一点（层级更清楚）
-------------------------------- */
.cat-children .cat-link {
    font-size: 14px;
    font-weight: 400;
}
/* Category css end */

.search article.article-default .entry-title {
    font-size: 16px;
    line-height: 22px;
}
.search .post-content {
    padding-top: 0px;
}
.search #secondary .widget.widget_recent_entries .recent-posts-info .entry-title {
    font-size: 16px;
}
.search article.article-default {
    padding-bottom: 0;
}
/* Responsive css */

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
			gap: 20px;
    }
	.woocommerce ul.products li.product img {
    border-radius: 0px;
}
.get-quote-btn {
    padding: 5px 15px !important;
    font-size: 12px;
}
	.woocommerce ul.products li.product .button {
    margin-top: 0px;
}
	ul.products li.product h3, ul.products li.product .woocommerce-loop-product__title{
		font-size: 0.75rem;
		-webkit-line-clamp: 2;
	}
	.product-caption {
    padding: 10px 0 0;
}
	ul.products li.product h3 a, ul.products li.product .woocommerce-loop-product__title a {
    font-size: 12px;
}
}