/*
Theme Name: 	   Shopire
Text Domain: 	   shopire
Version:            1.0.91
Tested up to:       7.1
Requires at least:  4.7
Requires PHP:       5.6
Author:             WPFable
Author URI:         https://wpfable.com/
Theme URI:          https://wpfable.com/themes/shopire-free/
Description:        Shopire is a fast, clean, lightweight theme. Shopire is customizable and modern-looking free responsive WooCommerce WordPress theme for e-commerce stores like clothing, fashion, electronics, ebooks, dress store, sports shop, marketplace, multivendor, equipments or online products. Theme is compatible with Elementor, WPML, Polylang, Yoast SEO, WooCommerce, Contact Form 7, Jetpack and other popular plugins. The theme is SEO friendly, WPML and RTL ready. Looking for a WooCommerce theme? Look no further! Shopire Pro demo https://demos.wpfable.com/premium/shopire/
Tags:               one-column, two-columns ,right-sidebar, flexible-header, custom-background, custom-header, custom-menu, editor-style, featured-images, footer-widgets, post-formats, theme-options, threaded-comments, translation-ready, full-width-template, custom-logo, blog, e-commerce, portfolio
License: GPLv3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
 */

html, body {
  overflow-x: hidden;
}
 
.iconbox:hover a {
    color: #fff;
}

.iconbox a {
    text-decoration: none;
	color: var(--wf-secondary-color);
}

.wp-block-details summary {
    font-weight: 600;
    padding: 10px;
}

.wp-block-latest-comments__comment a {
    text-decoration: none;
}

.wp-block-verse {
    padding: 10px;
}

.wp-block-archives-list a {
    text-decoration: none;
}

/* Woo / Custom CSS */

.header--two .wf_mobilenav.is--sticky {
    background-color: var(--wf-secondary-color);
}

.header--two + #content > .wf_slider_banner {
    margin-top: 0;
    padding-top: 2.4rem;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    top: 50%;
}

.woocommerce-Address-title h2 {
    font-size: 2.4rem;
}

.has-background.wp-block-read-more, 
.has-background.post-navigation-link-next,
.has-background.post-navigation-link-previous {
    padding: 0.25em 1.375em;
}

.wp-block-woocommerce-customer-account a .wc-block-customer-account__account-icon {
    height: 2rem !important;
    width: 2rem !important;
}

.wp-block-avatar img {
    border-radius: 50%;
}

.wp-block-avatar:hover img {
    -webkit-transform: scale(1.07);
    transform: scale(1.07);
}

.post-navigation-link-next a,
.post-navigation-link-previous a {
    text-decoration: none;
}

.wp-block-woocommerce-single-product .wp-block-post-title a {
    text-decoration: none;
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover, 
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:focus {
    color: #fff;
}

.wp-block-page-list {
    list-style: none;
    padding: 0;
}

.wc-block-grid__products .wc-block-components-product-button__button {
    border-radius: 0;
    text-decoration: none;
}

.wp-block-page-list a {
    color: var(--wf-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.wc-block-components-product-title a.wc-block-components-product-name:hover, 
.wc-block-components-product-title a.wc-block-components-product-name:focus {
    color: var(--wf-main-color);
}

.wp-block-page-list a:hover,
.wp-block-page-list a:focus {
    color: var(--wf-main-color);
}

.wp-block-list {
    padding: 0;
}

.wc-block-components-product-name {
    color: var(--wf-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.wp-block-list.has-background {
    padding: 1.25em 2.375em;
}

.wp-block-details.has-background {
    padding: 1.25em 2.375em;
}

.wp-block-verse.has-background {
    padding: 1.25em 2.375em;
}

.wp-block-preformatted.has-background {
    padding: 1em;
}

.wp-block-archives {
    list-style: none;
    padding: 0;
}

.wp-block-archives-list a {
    font-weight: 600;
    color: var(--wf-secondary-color);
}

.wp-block-archives-list a:hover, 
.wp-block-archives-list a:focus {
    color: var(--wf-main-color);
}

.wp-block-page-list.has-background {
    padding: 1rem;
}

a.wp-block-button__link:hover, 
a.wp-block-button__link:focus {
    color: #fff;
    text-decoration: none;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
    color: var(--wf-main-color);
}

.wp-block-latest-comments {
    padding-left: 0;
}

.wp-block-latest-comments li a:not(:hover, :focus) {
    color: var(--wf-secondary-color);
}

.wp-block-latest-comments li a {
    text-decoration:none;
}

.wf_footer ul.product_list_widget li .woocommerce-Price-amount {
    color: var(--wf-main-color);
}

.wf_footer ul.product_list_widget li {
    border-bottom: none;
}

.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button) {
    background-color: var(--wf-secondary-color);
}

.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button):hover,
.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button):focus {
        background-color: var(--wf-secondary-color) !important;
}

.wf_footer .widget_shopping_cart a.checkout:hover, 
.wf_footer .widget_shopping_cart a.checkout:focus {
        background-color: var(--wf-main-color) !important;
}

.wf_footer .widget_shopping_cart span.amount {
    color: var(--wf-main-color);
}

.wf_footer .widget_shopping_cart li img {
   object-fit: contain !important;
   padding-right: 10px;
}

.wc-block-mini-cart__footer .wc-block-components-button {
    text-decoration: none;
}

.wf_footer .widget .wc-block-cart-link {
    color:#fff;
    background: var(--wf-main-color);
}

.wf_footer .widget .wc-block-cart-link:hover, 
.wf_footer .widget .wc-block-cart-link:focus {
    text-decoration: none;
}

.woocommerce-account .woocommerce-Address-title h2 {
    font-size: 4rem;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
    border-color: inherit;
    background: transparent
}

.wp-block-categories-list.has-background {
    padding: 1rem;
}

.wp-block-latest-comments.has-background {
    padding: 1rem;
}

.wp-block-file a {
    text-decoration: none;
}

.wp-block-file.has-background {
    padding: 1rem;
}

.woocommerce .summary .product_meta>span a {
    text-decoration: none;
}

table.wc-block-cart-items .wc-block-cart-items__header th {
    color: var(--wf-secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.wc-block-components-sidebar-layout.wc-block-cart .wc-block-cart__totals-title {
    font-weight: 700;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label, 
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 600;
}

.wp-block-woocommerce-customer-account.has-background {
    padding: 1rem;
}

.wp-block-woocommerce-customer-account a:focus {
    text-decoration: underline !important;
}

.wc-block-customer-account__link {
    text-decoration: none;
}

.wc-block-mini-cart__footer .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
    font-size: 1.2rem !important;
}

.woocommerce ul.products li.product .product-single h3 a:focus {
    color: var(--wf-main-color);
}

.wp-block-list li a:not(:hover):not(:focus) {
    text-decoration: none;
}

.wp-block-search.wp-block-search__button-only .wp-block-search__button {
    background-color: var(--wf-main-color);
}

.wp-block-accordion-heading.has-background .wp-block-accordion-heading__toggle {
    padding: 1rem;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}
/* ============================
 * 手机端商品列表优化（强力版）
 * ============================ */
@media (max-width: 768px) {

    ul.products,
    ul.products.columns-1,
    ul.products.columns-2,
    ul.products.columns-3,
    ul.products.columns-4,
    ul.products.columns-5,
    ul.products.columns-6 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        list-style: none !important;
        clear: both !important;
    }

    ul.products::before,
    ul.products::after {
        display: none !important;
    }

    ul.products li.product,
    ul.products li.product.first,
    ul.products li.product.last {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 8px !important;
        float: none !important;
        clear: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border-radius: 10px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,.08) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    ul.products li.product .product {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
    }

    ul.products li.product .product-single {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 图片区 */
    ul.products li.product .product-img {
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    ul.products li.product .product-img img {
        width: 100% !important;
        height: 140px !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    /* 内容区 */
    ul.products li.product .product-content-outer {
        width: 100% !important;
        padding: 0 !important;
    }

    ul.products li.product .product-content {
        padding: 6px 4px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 标题 */
    ul.products li.product h2,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 4px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        min-height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        width: 100% !important;
    }

    /* 价格 */
    ul.products li.product .price {
        font-size: 14px !important;
        text-align: center !important;
        margin: 4px 0 !important;
        display: block !important;
        color: #0066cc !important;
        line-height: 1.2 !important;
    }

    ul.products li.product .price del {
        font-size: 12px !important;
        color: #999 !important;
        display: inline !important;
    }

    ul.products li.product .price ins {
        color: #0066cc !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    /* 按钮 */
    ul.products li.product .button,
    ul.products li.product a.button,
    ul.products li.product .add_to_cart_button,
    ul.products li.product .product_type_simple {
        display: block !important;
        width: 100% !important;
        margin: 6px 0 0 !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        text-align: center !important;
        line-height: 1.2 !important;
        border-radius: 6px !important;
        background: #0066cc !important;
        color: #fff !important;
        white-space: normal !important;
        word-break: break-word !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        height: auto !important;
        min-height: 34px !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    /* 隐藏多余的按钮和图标 */
    ul.products li.product .quickview-trigger,
    ul.products li.product a.quickview-trigger,
    ul.products li.product .yith-wcwl-add-to-wishlist,
    ul.products li.product .add_to_wishlist,
    ul.products li.product .woosw-btn,
    ul.products li.product .woosc-btn,
    ul.products li.product .tinv-wishlist,
    ul.products li.product .compare,
    ul.products li.product .yith-wcqv-button {
        display: none !important;
    }

    /* Sale 角标 */
    ul.products li.product .onsale {
        top: 6px !important;
        left: 6px !important;
        right: auto !important;
        font-size: 11px !important;
        padding: 2px 8px !important;
        min-height: auto !important;
        line-height: 1.2 !important;
    }

    /* Shop 标题压缩 */
    body.woocommerce-shop .page-title,
    body.woocommerce-shop h1.entry-title,
    body.post-type-archive-product .page-title {
        font-size: 22px !important;
        margin: 6px 0 4px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    body.woocommerce-shop .woocommerce-products-header,
    body.post-type-archive-product .woocommerce-products-header {
        padding: 4px 0 !important;
        margin: 0 0 8px !important;
        min-height: auto !important;
    }

    body.woocommerce-shop nav.woocommerce-breadcrumb {
        font-size: 12px !important;
        margin: 0 0 6px !important;
        opacity: .7 !important;
        text-align: center !important;
    }

    body.woocommerce-shop .woocommerce-products-header img {
        max-height: 80px !important;
        object-fit: cover !important;
    }

    /* 底部留空间 */
    body.woocommerce-shop {
        padding-bottom: 90px !important;
    }
}