/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* 全局变量：搜索框与订阅表单的圆角 */
:root {
    --search-form-radius: 20px;
}

.site-copyright {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #777777;
}

.site-copyright a {
    color: inherit;
    text-decoration: none;
}

.site-copyright a:hover {
    color: #E94359;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .site-copyright {
        font-size: 13px;
    }
}

.scrollToTop {
    border-radius: 4px !important;
}

.searchform.wd-style-with-bg-2 input.s,
.searchform.wd-style-with-bg-2 .searchsubmit,
.mc4wp-form input[type="email"],
.mc4wp-form input[type="submit"] {
    border-radius: var(--search-form-radius) !important;
}

/* 首页分类栏：放不下时单行横向滚动，避免折行压住内容 */
@media (min-width: 1025px) {
    .whb-header-bottom .whb-header-bottom-inner > .whb-col-left {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .whb-header-bottom .bn-cat-scroll-wrap {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        align-self: stretch;
    }

    .whb-header-bottom .wd-header-secondary-nav {
        display: flex;
        align-items: center;
        min-width: 0;
        max-width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .whb-header-bottom .wd-header-secondary-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .whb-header-bottom .wd-nav.wd-nav-secondary {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        width: max-content;
        min-width: max-content;
        max-width: none;
    }

    .whb-header-bottom .wd-nav.wd-nav-secondary > li {
        flex: 0 0 auto;
    }

    .whb-header-bottom .wd-nav.wd-nav-secondary > li > a {
        white-space: nowrap;
    }

    .whb-header-bottom .bn-nav-scroll-btn {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 4;
        display: none;
        align-items: center;
        justify-content: center;
        width: 36px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgb(225, 74, 92);
        color: #fff;
        box-shadow: none;
        cursor: pointer;
    }

    .whb-header-bottom .bn-nav-scroll-btn.is-prev {
        left: 0;
        justify-content: flex-start;
        padding-left: 2px;
        background: linear-gradient(to right, rgb(225, 74, 92) 55%, rgba(225, 74, 92, 0));
    }

    .whb-header-bottom .bn-nav-scroll-btn.is-next {
        right: 0;
        justify-content: flex-end;
        padding-right: 2px;
        background: linear-gradient(to left, rgb(225, 74, 92) 55%, rgba(225, 74, 92, 0));
    }

    .whb-header-bottom .whb-col-left.can-scroll-left .bn-nav-scroll-btn.is-prev,
    .whb-header-bottom .whb-col-left.can-scroll-right .bn-nav-scroll-btn.is-next {
        display: flex;
    }

    .whb-header-bottom .bn-nav-scroll-btn svg {
        display: block;
        width: 18px;
        height: 16px;
    }

    .whb-header-bottom .bn-nav-scroll-btn.is-prev svg {
        transform: rotate(180deg);
    }

    .whb-header-bottom .wd-nav-secondary > li > .wd-dropdown-menu {
        position: fixed !important;
        top: var(--bn-catbar-bottom, 0px) !important;
        margin-top: 0 !important;
        z-index: 400;
    }

    .whb-header-bottom .wd-nav-secondary > li > .wd-dropdown-menu.wd-design-full-width {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Product cards keep a square image, whatever the file size is. */
.wd-product:not(.wd-hover-small) .product-image-link {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.wd-product:not(.wd-hover-small) .product-image-link > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.wd-product:not(.wd-hover-small) .hover-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.satety-payments .wd-carousel-wrap {
	gap: 10px;
}

.satety-payments .wd-carousel-wrap .wd-gallery-item {
	border: 1px solid #e1e1e1;
	border-radius: 4px;
}
