


/* 调整云标签 */
.my-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 标签间距 */
}

.my-tag-cloud .my-tag {
    font-size: 14px !important;
    color: #333 !important;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s;
}

.my-tag-cloud .my-tag:hover {
    color: #fff !important;
    background-color: #DD183B !important;
    border-color: #DD183B;
}

/* 调整底部小工具三个元素的上下间距 */
.footer-widget-area .widget {
    margin-bottom: 10px; /* 调整为你想要的间距，比如 10px */
}

/* 如果希望 Slogan 和联系信息间距更小 */
.footer-widget-area #block-16 {
    margin-top: 5px;   /* Slogan 上方间距 */
    margin-bottom: 5px; /* Slogan 下方间距 */
}

.footer-widget-area #text-4 {
    margin-top: 5px;    /* 联系信息上方间距 */
    margin-bottom: 0;   /* 最下方不用额外间距 */
}



.product-cat-bg {
    background-size: cover !important;
    background-position: center !important;
}

 /* 产品分类页链接下划线 */
.product-category-link a {
    text-decoration: underline;
}

/* 默认产品卡片SKU显示 */
.fm-product-sku {
    font-size: 13px;
    color: #999999;
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
    margin-left: 17px;
}

/* 产品页short description段落距离 */
/* Short Description - bullets 段落间距控制 */
.woocommerce-product-details__short-description ul {
    margin: 0;
    padding-left: 18px; /* 保持 bullets 对齐 */
}

.woocommerce-product-details__short-description li {
    margin-bottom: 6px;   /* ← 你真正想要的段落距离 */
}

.woocommerce-product-details__short-description li p {
    margin: 0;            /* ← 关键：清掉 p 的默认段距 */
}

/* mega menu divider */
.mega-sub-divider {
    width: 100%;
    height: 2px;
    background-color: #d7d4d7;
    margin: 4px 0;
}

 /* 产品分类页链接下划线 */
::selection {
  background-color: #bbd6fb;  /* 选中背景色 */
  color: #ffffff;             /* 选中文字颜色 */
}

::-moz-selection {
  background-color: #bbd6fb;
  color: #ffffff;
}

/* 首页产品分类子分类列表整体样式 */
.product-subcategories {
    list-style: none;        /* 去掉 bullets 小圆点 */
    margin: 0;
    padding-left: 15px;      /* 左侧留 15px 空白 */
}

/* 每一项列表 */
.product-subcategories li {
    margin: 0;
    padding: 0;
}

/* 三级子分类链接样式 */
.product-subcategories li a {
    text-decoration: none;   /* 去掉下划线 */
    display: inline-block;
}

/* 可选：鼠标悬停时也不显示下划线 */
.product-subcategories li a:hover {
    text-decoration: none;
}

/* Hide WooCommerce product image zoom icon */
.woocommerce-product-gallery__trigger{
    opacity:0!important;
    visibility:hidden!important;
}

/* 文章搜索结果页 */

/* Simple Blog Search Results */
.fm-simple-blog-results {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.fm-simple-blog-summary {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.fm-simple-blog-list {
    width: 100%;
    border-top: 1px solid #e5e5e5;
}

.fm-simple-blog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.fm-simple-blog-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
}

.fm-simple-blog-title:hover {
    color: #ec0707;
}

.fm-simple-blog-title strong {
    font-weight: 700;
    color: #ec0707;
}

.fm-simple-blog-date {
    flex: 0 0 auto;
    color: #777;
    font-size: 14px;
    white-space: nowrap;
}

.fm-simple-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.fm-simple-blog-pagination a,
.fm-simple-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.fm-simple-blog-pagination a {
    color: #333;
}

.fm-simple-blog-pagination a:hover,
.fm-simple-blog-pagination .current {
    color: #fff;
    background: #ec0707;
    border-color: #ec0707;
}

.fm-simple-blog-empty,
.fm-simple-blog-no-results {
    padding: 20px 0;
    color: #666;
}

@media (max-width: 767px) {
    .fm-simple-blog-row {
        align-items: flex-start;
        gap: 12px;
    }

    .fm-simple-blog-title {
        font-size: 15px;
    }

    .fm-simple-blog-date {
        font-size: 12px;
    }
}

/* 文章搜索结果页新增搜索框 */

/* Search again form on Blog Search Results */
.fm-blog-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.fm-blog-search-heading {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
}

.fm-blog-search-again {
    display: flex;
    flex: 0 1 420px;
    gap: 8px;
    margin: 0;
}

.fm-blog-search-again input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.fm-blog-search-again button {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    background: #ec0707;
    color: #fff;
    cursor: pointer;
}

.fm-blog-search-again button:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .fm-blog-search-header {
        align-items: stretch;
        flex-direction: column;
    }

    .fm-blog-search-heading {
        font-size: 22px;
    }

    .fm-blog-search-again {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* 定制产品搜索 */

/* Product search results layout */
.fm-product-search-results {
    width: 100%;
}

.fm-product-search-header {
    margin-bottom: 0px;
}

.fm-product-search-heading {
    margin-bottom: 16px;
}

.fm-product-search-again {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

.fm-product-search-again input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
}

.fm-product-search-again button {
    background-color: #ec0707;
    color: #ffffff;
    border-color: #ec0707;
}

.fm-product-search-again button:hover {
    background-color: rgba(236, 7, 7, 0.85);
    color: #ffffff;
    border-color: #ec0707;
}

.fm-product-search-summary {
    margin-bottom: 24px;
}

/* Four columns, with up to 20 products per page */

/* Product search: compact 4-column layout */
.fm-product-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 28px;
    width: 100%;
    align-items: start;
}

/* Each Elementor Loop Item occupies one grid cell */
.fm-product-search-grid > .fm-product-search-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Prevent Elementor's Loop Item wrapper from expanding */
.fm-product-search-grid .e-loop-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

/* Make the card's main container fill its grid cell */
.fm-product-search-grid .e-loop-item > .e-con {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

/* Keep product images within the card */
.fm-product-search-grid .elementor-widget-theme-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
    .fm-product-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fm-product-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 20px;
    }
}

.fm-product-search-item {
    min-width: 0;
}

.fm-product-search-item img {
    max-width: 100%;
    height: auto;
}

.fm-product-search-item strong {
    font-weight: 700;
}

.fm-product-search-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.fm-product-search-pagination a,
.fm-product-search-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.fm-product-search-pagination .current {
    font-weight: 700;
    background: #f2f2f2;
}

@media (max-width: 1024px) {
    .fm-product-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fm-product-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .fm-product-search-again {
        gap: 6px;
    }

    .fm-product-search-again button {
        padding: 10px 14px;
    }
}

/* 解决调用产品卡片列间距太大问题 */
/* Fix product card padding in custom product search results */
.fm-product-search-grid .fm-product-search-item > .e-loop-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep the card's inner container within the grid column */
.fm-product-search-grid .fm-product-search-item > .e-loop-item > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 1. 清除自定义结果网格的行间距 */
.fm-product-search-grid {
    row-gap: 0 !important;
    grid-row-gap: 0 !important;
}

/* 2. 清除每个结果包装层的额外空间 */
.fm-product-search-grid > .fm-product-search-item {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* 3. 取消产品卡片内部的 300px 最小高度 */
.fm-product-search-grid .elementor-element-82edc8a {
    --min-height: 0px !important;
    min-height: 0 !important;
    height: auto !important;
}

/* 4. 去掉型号下方额外的 15px 间距 */
.fm-product-search-grid .elementor-element-470db34 {
    margin-bottom: 0 !important;
}
