/*
Theme Name: 	   MiniCart
Text Domain: 	   minicart
Template: 		   shopire
Version:            1.0.77
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/minicart-free/
Description:        MiniCart is a fast, clean, lightweight theme. MiniCart 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! MiniCart Pro demo https://demos.wpfable.com/premium/minicart/
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.
*/

:root {
    --wf-main-rgb: 19, 115, 245;
    --wf-secondary-color: #0A214F;
}

body {
    background-color: #f6f7fb;
}

body #content {
    background-color: transparent;
}

/* Header--three */

.wf_navbar-list-right .wf_navbar-search-form {
    width: 100%;
}

.header--three {
    background-color: #fff;
}

.header--three .wf_header-topbar {
    background-color: #f6f7fb;
}

.header--three .wf_mobilenav,
.header--three .wf_header-topbar {
    border-bottom: 1px solid rgba(189, 189, 189, 0.4);
}

.header--three .wf_navbar-wrapper {
    border-top: 1px solid rgba(189, 189, 189, 0.4);
}

.header--three .wf_navbar-menu {
    min-height: 6rem;
    padding-left: 1.6rem;
    justify-content: space-between;
}

.header--three button.wf_navbar-sidebar-toggle,
.header--three .wf_navbar-info-contact .contact__list i {
    width: 4.8rem;
    height: 4.8rem;
    line-height: 4.8rem;
    padding: 1.3rem;
    background-color: rgba(189, 189, 189, 0.2);
    outline: none;
}

.header--three button.wf_navbar-sidebar-toggle .lines {
    transform: translateY(-1px);
}

.header--three .wf_navbar-list-right>li:not(:last-child) {
    margin-right: 1.8rem;
}

.header--three .wf_navbar-compare-item .wf_compare_btn,
.header--three .wf_navbar-favourite-item .wf_favourite_btn,
.header--three .wf_navbar-user-item .wf_user_btn,
.header--three .wf_navbar-cart-item .wf_navbar-cart-icon {
    width: 2rem;
    height: 2rem;
    outline: none;
    line-height: 1.3;
    font-size: 1.8rem;
}

.header--three .wf_navbar-compare-item .wf_compare_btn:after,
.header--three .wf_navbar-favourite-item .wf_favourite_btn:after,
.header--three .wf_navbar-user-item .wf_user_btn:after,
.header--three .wf_navbar-cart-item .wf_navbar-cart-icon:after,
.header--three .wf_navbar-search-item button.wf_navbar-search-toggle:after {
    display: none;
}

.header--three .header-search-form .header-search-button:focus {
    outline: 1px solid #fff;
    outline-offset: -3px;
}

.header--three .wf_navbar-compare-item .wf_compare_btn:focus,
.header--three .wf_navbar-favourite-item .wf_favourite_btn:focus,
.header--three .wf_navbar-user-item .wf_user_btn:focus,
.header--three .wf_navbar-cart-item .wf_navbar-cart-icon:focus {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.header--three .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .shopire-wcwl-items-count ,
.header--three .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .shopire-wcwl-items-count ,
.header--three .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .cart_count {
    top: -12px;
    right: -10px;
    width: 2.1rem;
    height: 2.1rem;
    line-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header--three .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li>a {
    color: var(--wf-secondary-color);
}

.header--three .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu li.active>a,
.header--three .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li.focus>a,
.header--three .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li:hover>a {
    color: var(--wf-main-color);
}

.header--three .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .wf_navbar-cart-item:after,
.header--three .wf_navbar-nav .wf_navbar-mainmenu>li:after {
    content: "";
    display: block;
    width: 100%;
    height: 1.7rem;
    position: absolute;
}

.header--three .wf_mobilenav .wf_navbar-cart-item a .cart_count {
    top: -11px;
    right: -9px;
}

.header--three .header-search-form {
    background-color: transparent;
    padding-right: 0;
}

.header--three .header-search-form .header-search-select-wrapper {
    float: left;
    border-radius: 5rem 0rem 0rem 5rem;
    overflow: hidden;
    border-right:none;
}

.header--three .header-search-form input.header-search-input {
    float: right;
    border-radius: 0rem 5rem 5rem 0rem;
	background:#fff;
	padding-right:38px;
}

.header--three .header-search-form input.header-search-input:focus {
    border: none;
    outline-offset: -2px;
    outline: 1px solid;
}

.header--three .header-search-form .header-search-button {
    width: 3.8rem;
    height: 3.8rem;
    top: 2px;
    right: 3px;
    border-radius: 5rem;
}

.header--three .header-search-form .wf_search-field {
    border-radius: 5rem;
}

.header--three .header-search-form .search-wrapper svg {
    left: 88%;
}

@media (min-width: 62em) {
    .header--three .wf_header-widget .widget:not(:last-child):after {
        height: 2.5rem;
        margin-top: 0.4rem;
        background: rgba(189, 189, 189, 0.4);
    }
}

/* Slider Nine / Banner */

.wf-flex-row-reverse {
    flex-direction: row-reverse;
}

.wf_slider_banner {
    margin-top: 2.4rem;
}

.wf_slider_banner .last {
    display: none;
}

.wf_slider_banner .wf_owl_carousel,
.wf_slider_banner .wf_slider-item,
.wf_slider_banner .wf_slider-innercell,
.wf_slider_banner .wf_slider-item>img {
    max-height: 51rem;
    min-height: 51rem;
}

.wf_slider_banner .wf_slider-content {
    padding: 1.2rem;
    margin-bottom: 3rem;
}

.wf_slider_banner .wf_slider-content .title {
    font-size: 3.8rem;
}

.wf_slider_banner .wf_slider-content .subtitle {
    color: #fff;
    font-size: 1.8rem;
}

.banner-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 2.4rem;
}

.wf_slider--nine {
    overflow: visible;
}

.wf_slider--nine .owl-theme.owl-carousel .owl-dots {
    --wf-main-color: #fff;
}

.wf_slider--nine .banner-wrapper .banner-wrapper-item,
.wf_slider--nine .wf_owl_carousel {
    border-radius: 8px;
    overflow: hidden;
}

.wf_slider--nine .banner-wrapper {
    grid-template-columns: auto;
    height: 100%;
}

.wf_slider--nine .product-categories .product-categories-btn {
    padding: 0;
    color: var(--wf-secondary-color);
    background: transparent;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.wf_slider--nine .product-categories .product-categories-btn::after {
    top: 33%;
    right: 0;
    border-color: currentColor;
}

.wf_slider--nine .product-categories {
    z-index: 2;
}

.wf_slider--nine .product-categories.active {
    background-color: #fff;
    border: 1px solid rgba(189, 189, 189, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .05);
    padding: 30px;
}

.wf_slider--nine .product-categories .wf_navbar-nav {
    position: relative;
    top: 0;
}

.wf_slider--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu .dropdown-menu:before {
    display: none;
}

.wf_slider--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li a {
    color: var(--wf-secondary-color);
    padding: 12px 0;
    line-height: 1.4;
    border-bottom-color: rgba(189, 189, 189, 0.3);
}

.wf_slider--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li:first-child a {
    padding-top: 0;
}

.wf_slider--nine .product-categories .product-categories-more-btn {
    padding: 0;
    margin-top: 12px;
    background: transparent;
    color: var(--wf-secondary-color);
}

.wf_slider--nine .product-categories .product-categories-more-btn i {
    font-size: 1.6rem;
    min-width: 1.6rem;
    min-height: 1.6rem;
    vertical-align: -1px;
}

.banner-wrapper .banner-wrapper-item .wf-image,
.banner-wrapper .banner-wrapper-item .wf-image a,
.banner-wrapper .banner-wrapper-item .wf-image img {
    height: 100%;
}

.banner-wrapper .banner-wrapper-item .wf-image img {
    object-fit: cover;
}

.banner-wrapper .banner-wrapper-item,
.wf-image {
    position: relative;
    overflow: hidden;
}

.banner-wrapper .banner-wrapper-item .wf-image a,
.banner-wrapper .banner-wrapper-item .wf-image img {
    width: 100%;
    display: inline-block;
}

.effect_1 .wf-image img {
    backface-visibility: hidden;
    filter: alpha(opacity = 100);
    transition: opacity 1s ease 0s, transform 1s ease 0s;
}

.effect_1:focus-within .wf-image img,
.effect_1:hover .wf-image img {
    filter: alpha(opacity = 80);
    transform: scale3d(1.1, 1.1, 1);
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    transform: translateY(0);
    width: 100%;
    display: flex;
    text-align: left;
    justify-content: flex-start;
}

.banner-wrapper .banner-wrapper-item:nth-child(3) .banner-wrapper-inner {
    text-align: center;
    justify-content: center;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info {
    padding: 2.6rem 2.4rem 0;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .subtitle {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .title {
    font-size: 2.2rem;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 2.4rem;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .title a {
    color: #fff;
    text-decoration: none;
}

/* Product Category Two */

.wf_product_category_two .product-category .category-inner {
    margin-bottom: 20px;
    background: #0A214F0A;
    border-radius: 20px;
    padding: 45px 40px;
}

.wf_product_category_two .product-category .category-inner .category-link:after {
    content: "\f061";
    font-family: fontawesome;
    position: absolute;
    top: calc(100% - 2.4rem);
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wf-main-color);
    color: #fff;
    transform: translateX(-50%) scale(0);
    font-weight: 400;
    font-size: calc(14px + 1px);
    line-height: 40px;
    transition: all .3s ease;
}

.wf_product_category_two .product-category .category-inner .category-link:focus:after,
.wf_product_category_two .product-category .category-inner .category-link:hover:after {
    transform: translateX(-50%) scale(1);
}

.wp-block-archives-list a {
    text-decoration: none;
}

.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;
}
/* ============================
 * 手机端优化：商品列表 + Shop 标题
 * ============================ */
@media (max-width: 768px) {

    /* ===== 商品列表改 2 列 ===== */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border-radius: 10px !important;
        padding: 8px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
        box-sizing: border-box !important;
    }

    /* 商品图片 */
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        display: block !important;
    }

    /* 商品标题 */
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 6px 0 4px !important;
        text-align: center !important;
        min-height: 34px !important;
        overflow: hidden !important;
    }

    /* 价格 */
    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
        text-align: center !important;
        margin: 2px 0 6px !important;
        color: #0066cc !important;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 12px !important;
        color: #999 !important;
    }

    /* 加入购物车按钮 */
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        display: block !important;
        width: 100% !important;
        margin: 4px 0 0 !important;
        padding: 8px 0 !important;
        font-size: 12px !important;
        text-align: center !important;
        line-height: 1 !important;
        border-radius: 6px !important;
        background: #0066cc !important;
        color: #fff !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        overflow: hidden !important;
    }

    .woocommerce ul.products li.product .button:hover,
    .woocommerce ul.products li.product .add_to_cart_button:hover {
        background: #0055aa !important;
    }

    /* 隐藏商品卡片里乱七八糟的图标（wishlist / compare / 循环箭头） */
    .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
    .woocommerce ul.products li.product .compare,
    .woocommerce ul.products li.product .add_to_wishlist,
    .woocommerce ul.products li.product .woosw-btn,
    .woocommerce ul.products li.product .woosc-btn,
    .woocommerce ul.products li.product .tinv-wishlist,
    .woocommerce ul.products li.product .yith-wcqv-button {
        display: none !important;
    }

    /* ===== Shop 标题区缩小 ===== */
    /* 主标题（Shop） */
    body.woocommerce-shop .page-title,
    body.post-type-archive-product .page-title,
    body.woocommerce-page .entry-title,
    body.woocommerce-shop h1.entry-title {
        font-size: 26px !important;
        margin: 8px 0 4px !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* 面包屑 "主页 — Shop" */
    body.woocommerce-shop .breadcrumb,
    body.woocommerce-shop nav.woocommerce-breadcrumb,
    body.woocommerce-page nav.woocommerce-breadcrumb {
        font-size: 12px !important;
        margin: 0 0 6px !important;
        text-align: center !important;
        opacity: .7 !important;
    }

    /* Shop 大区块（大灰底） */
    body.woocommerce-shop .woocommerce-products-header,
    body.post-type-archive-product .woocommerce-products-header {
        padding: 6px 0 !important;
        margin: 0 0 8px !important;
        min-height: auto !important;
    }

    /* 上方 banner（图里那个 15% OFF 的横条）如果太大，也压缩 */
    body.woocommerce-shop .woocommerce-products-header img,
    body.post-type-archive-product .woocommerce-products-header img {
        max-height: 90px !important;
        object-fit: cover !important;
    }

    /* 商品计数 / 排序下拉 */
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        font-size: 12px !important;
        margin: 4px 12px !important;
    }

    /* 底部导航预留空间，避免遮挡商品 */
    body.woocommerce-shop {
        padding-bottom: 80px !important;
    }
}

/* ============================
 * 平板 3 列优化（可选）
 * ============================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        gap: 14px !important;
    }
}