/*
Theme Name: 	   UniShelf Mall
Text Domain: 	   eshopkit
Template: 		   shopire
Version:            1.0.0
Tested up to:       7.1
Requires at least:  4.7
Requires PHP:       5.6
Author:             UniShelf Mall
Author URI:         https://unishelfmall.com
Description:        UniShelf Mall 自有主题（fork of eShopKit，父主题 shopire）。面向东南亚市场的儿童玩具车 + 日用品独立站：简洁、绚丽吸睛、移动端优先。基于 GPLv3 许可。
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: 100, 42, 251;
    --wf-secondary-color: #18273a;
}

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

/* Header--Nine */

.header--nine .wf_header-topbar {
    color: #fff;
    background-color: var(--wf-main-color);
}

.header--nine .wf_header-topbar .widget.widget_nav_menu a,
.header--nine .wf_header-topbar .widget.widget_none a,
.header--nine .wf_header-topbar .widget.widget_none .widget-title {
    color: inherit;
}

.header--nine .wf_header-topbar .widget.widget_nav_menu a:focus,
.header--nine .wf_header-topbar .widget.widget_nav_menu a:hover {
    text-decoration: underline;
}

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

.header--nine .wf_navbar-wrapper,
.header--nine .wf_navbar-wrapper.is--sticky.on {
    background-color: var(--wf-secondary-color);
}

.header--nine .wf_navbar-menu {
    min-height: 6rem;
    justify-content: space-between;
}

.header--nine .product-categories .product-categories-btn {
    border-radius: 50px;
    padding: 1.2rem 1.4rem;
}

.header--nine .product-categories .wf_navbar-nav {
    top: calc(100% + 9px);
}

.header--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li:first-child>a {
    border-radius: 12px 12px 0 0;
}

.header--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu:has(:not(.product-categories-more-btn))>li:last-child>a,
.header--nine .product-categories .wf_navbar-nav .product-categories-more-btn {
    border-radius: 0 0 12px 12px;
}

.menu__active-one .header--nine .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li>a::before {
    display: none;
}

.header--nine .wf_navbar-menu .wf_navbar-nav {
    text-align: start;
}

.header--nine .wf_navbar-info-contact .contact__list i {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 3rem;
    color: var(--wf-secondary-color);
    background: transparent;
    outline: none;
}

.header--nine button.wf_navbar-sidebar-toggle {
    width: 4rem;
    height: 4rem;
}

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

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

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

.header--nine .wf_navbar-menu .wf_navbar-compare-item .wf_compare_btn,
.header--nine .wf_navbar-menu .wf_navbar-favourite-item .wf_favourite_btn,
.header--nine .wf_navbar-menu .wf_navbar-user-item .wf_user_btn,
.header--nine .wf_navbar-menu .wf_navbar-cart-item .wf_navbar-cart-icon {
    color: #fff;
}

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

.header--nine .header-search-form .header-search-button:focus {
    outline: 1px solid currentColor;
    outline-offset: -3px;
}

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

.header--nine .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .shopire-wcwl-items-count,
.header--nine .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .shopire-wcwl-items-count,
.header--nine .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--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li>a {
    margin: 0 1.6rem;
}

.header--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li:first-child>a {
    margin-left: 0;
}

.header--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li>a {
    color: #fff;
}

.header--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li.active>a,
.header--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li.focus>a,
.header--nine .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu>li:hover>a {
    color: #fff;
}

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

.header--nine .wf_navbar-nav .wf_navbar-mainmenu .dropdown-menu .menu-item-has-children:hover>a:after,
.header--nine .wf_navbar-nav .wf_navbar-mainmenu .menu-item-has-children:hover>a:after,
.header--nine .wf_navbar-nav .wf_navbar-mainmenu .dropdown-menu .menu-item-has-children.focus>a:after,
.header--nine .wf_navbar-nav .wf_navbar-mainmenu .menu-item-has-children.focus>a:after,
.header--nine .wf_navbar-nav .wf_navbar-mainmenu .dropdown-menu .menu-item-has-children.active>a:after,
.header--nine .wf_navbar-nav .wf_navbar-mainmenu .menu-item-has-children.active>a:after {
    border-color: currentColor;
}

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

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

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

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

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

.header--eight .header-search-form .header-search-select {
    border-right: none;
    min-height: 4rem;
    height: 4rem;
}

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

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

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

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

/* One */

.menu__active-one .wf_navbar-nav .wf_navbar-mainmenu>li>a::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: -2px;
    height: 0.2rem;
    width: 0;
    background: #fff;
    transition: all linear 0.3s;
}

.menu__active-one .wf_navbar-nav .wf_navbar-mainmenu>li.active>a::before,
.menu__active-one .wf_navbar-nav .wf_navbar-mainmenu>li.focus>a::before,
.menu__active-one .wf_navbar-nav .wf_navbar-mainmenu>li:hover>a::before {
    width: 1.6rem;
}

/* 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--thirteen {
    overflow: visible;
}

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

.wf_slider--thirteen .owl-theme.owl-carousel .owl-dots .owl-dot span {
    border-radius: 50%;
}

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

.wf_slider--thirteen .banner-wrapper {
    grid-template-columns: auto;
}

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

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

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

.wf_slider--thirteen .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--thirteen .product-categories .wf_navbar-nav {
    position: relative;
    top: 0;
}

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

.wf_slider--thirteen .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--thirteen .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li:first-child a {
    padding-top: 0;
}

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

.wf_slider--thirteen .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;
}

@media (min-width: 48em) {
    .wf_slider_banner .wf_slider-content {
        padding: 1.2rem 2.8rem;
    }
}

.wf_slider--thirteen .banner-wrapper .banner-wrapper-item .wf-image img {
    height: 24.32rem;
}

/* Information */

.wf_information .widget.widget_contact {
    padding: 20px;
    background-color: rgba(189, 189, 189, 0.15);
    margin-top: 0;
    border-radius: 1rem;
    border: 1px solid rgba(189, 189, 189, 0.4);
    transition: 0.3s all;
}

.wf_information .wf-row > div .widget.widget_contact:hover,
.wf_information .wf-row > div .widget.widget_contact:focus-within {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0px 6px 26px 2px rgba(55, 54, 54, .1);
}

.wf_information .widget.widget_contact .contact__list {
    margin-top: 0;
}

.wf_information .widget.widget_contact i {
    width: 5rem;
    height: 5rem;
    font-size: 4rem;
    position: relative;
    margin-right: 2rem;
    color: var(--wf-secondary-color);
    transition: 0.3s all;
}

.wf_information .widget.widget_contact:hover i,
.wf_information .widget.widget_contact:focus-within i {
    color: var(--wf-main-color);
}

.wf_information .widget.widget_contact .contact__body .title {
    font-size: 1.8rem;
}

.wf_information .widget.widget_contact .contact__body .description {
    font-size: 1.4rem;
}

/* Grid Products */

.wc-block-grid__products .wc-block-components-product-button__button {
    border-radius: 0;
    text-decoration: none;
}

/* Woo style */

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    top: 1.2em;
}

.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-woocommerce-customer-account.has-background {
    padding: 1rem;
}

.wp-block-woocommerce-customer-account a:focus {
    text-decoration: underline !important;
}

.wp-block-search.wp-block-search__button-only .wp-block-search__button {
    background-color: var(--wf-main-color);
}

table.wc-block-cart-items .wc-block-cart-items__header th {
    color: var(--wf-secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.wp-block-details summary {
    font-weight: 600;
}

/* ==========================================================================
   UniShelf Mall — 品牌定制层（fork 追加，勿删上方 eShopKit 原样式）
   主题色：活力橙 + 深海蓝 + 柠檬黄（儿童玩具 / 促销氛围）
   字体：Baloo 2（标题，圆润可爱）+ Nunito（正文）
   ========================================================================== */
:root {
    /* 主色：活力橙（覆盖 eShopKit 默认紫色） */
    --wf-main-rgb: 255, 107, 53;
    /* 辅助色：深海蓝（导航/页脚） */
    --wf-secondary-color: #1d2b4a;
    /* 品牌扩展色 */
    --unishelf-accent: #ffc93c;          /* 柠檬黄：促销/徽章 */
    --unishelf-accent-2: #00a8e8;        /* 湖蓝：分类/链接点缀 */
    --unishelf-font-heading: 'Baloo 2', system-ui, sans-serif;
    --unishelf-font-body: 'Nunito', system-ui, sans-serif;
}

/* 字体应用 */
body,
button,
input,
select,
optgroup,
textarea {
    font-family: var(--unishelf-font-body);
}

h1, h2, h3, h4, h5, h6,
.wf_slider-content .title,
.wf_section_heading .title,
.product-single h3,
.wf_footer .widget-title,
.wf_mobilenav-mainmenu-wrap h5.title {
    font-family: var(--unishelf-font-heading);
    letter-spacing: 0.2px;
}

/* 顶部公告条：渐变横幅，移动端可滚动文字 */
.header--nine .wf_header-topbar {
    background: linear-gradient(90deg, #ff6b35 0%, #ff9a3d 100%);
    font-size: 1.35rem;
}

/* 导航栏（深海蓝） */
.header--nine .wf_navbar-wrapper,
.header--nine .wf_navbar-wrapper.is--sticky.on {
    background-color: var(--wf-secondary-color);
}

/* 主菜单链接：圆润 + 悬停亮色 */
.header--nine .wf_navbar-mainmenu > li > a {
    font-weight: 700;
    font-size: 1.5rem;
}

.header--nine .wf_navbar-mainmenu > li > a:hover,
.header--nine .wf_navbar-mainmenu > li > a:focus {
    color: var(--unishelf-accent);
}

/* Flash Sale / 主按钮：圆角胶囊 + 渐变 */
.wf-btn-primary,
.wf_header .wf-btn.wf-btn-primary,
.wf_navbar-button-item .wf-btn-primary {
    border-radius: 50px;
    background: linear-gradient(90deg, #ff6b35 0%, #ffc93c 100%);
    border: none;
    color: #1d2b4a;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-btn-primary:hover,
.wf-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.45);
    color: #1d2b4a;
}

/* 商品卡：圆角 + 悬停浮起（吸睛但不花哨） */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(29, 43, 74, 0.12);
}

.woocommerce ul.products li.product .onsale,
.wc-block-grid__product-onsale {
    background: #ff4757;
    border-radius: 50px;
    font-weight: 800;
    padding: 0.4rem 1rem;
}

/* 价格：主色突出 */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.wc-block-grid__product-price {
    color: #ff6b35;
    font-weight: 800;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
    color: #9aa5b5;
    font-weight: 400;
}

/* 加入购物车按钮 */
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: 50px;
    font-weight: 700;
}

/* 面包屑 */
.wf_breadcrumb {
    background-color: #f7f4ef;
}

/* 移动端优化 */
@media (max-width: 991.98px) {
    /* 移动端头部 logo 居中 + 汉堡按钮加大 */
    .wf_mobilenav-mainmenu-toggle {
        width: 4.2rem;
        height: 4.2rem;
    }

    /* 移动端公告条文字收缩 */
    .header--nine .wf_header-topbar .contact__list h6.title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 92vw;
    }

    /* 移动端底部菜单图标放大（触控友好） */
    .wf_mobile_footer_menu a {
        font-size: 1.2rem;
    }

    /* 商品卡两列布局间距 */
    .woocommerce ul.products li.product {
        margin-bottom: 1.6rem;
    }
}

/* 小屏：确保触控目标 ≥ 44px */
@media (max-width: 575.98px) {
    .wf_mobilenav-toggles .wf_navbar-list-right a,
    .wf_mobilenav-toggles .wf_navbar-list-right button {
        min-height: 4.4rem;
        min-width: 4.4rem;
    }
}

/* 页脚版权行 */
.wf_footer-copyright {
    font-size: 1.3rem;
}