/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

html,
body {
    min-height: 80%;
    background-color: #fff;
}
.banner{
    background-color: #e5e1de;
}
.is-border {
    z-index: 1;
}
@media (min-width: 768px) {
    #main>.row,
    .shop-page-title,
    .absolute-footer,
    #main>#content>.row,#header #top-bar,#header #masthead{
        padding-left: 15px;
        padding-right: 15px;
    }
    #main>#content>.row.row-full-width{
        padding-left: 0;
        padding-right: 0;
    }
}
.woocommerce-product-gallery__image {
    aspect-ratio: 1/1;
}

.woocommerce-product-gallery__image a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
}

.woocommerce-product-gallery__image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-woocommerce_single {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.cfvsw-swatches-container[swatches-attr="attribute_pa_color"] .cfvsw-selected-swatch::after {
    /* // 打勾 symonho */
    font-family: 'fl-icons';
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.6em;
    -webkit-transition: all 200ms;
    transition: all 200ms;
    z-index: 1;

}

.add-to-cart-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-button .add_to_cart_button.added {
    display: block !important;
}

/* .add-to-cart-button
.add_to_cart_button::before{
	font-family:'fl-icons';
    margin-right: 0.5em;
    content:""
} */
.product-lightbox {
    min-height: 400px;
}

.flickity-viewport {
    height: 400px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.flickity-viewport .slide {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 850px) {
    .product-page__right .is-sticky-column:not([data-sticky-mode]) {
        top: calc(var(--flatsome-scroll-padding-top) + 0px);
        transition: top 0.6s;
    }
}


.sticky-add-to-cart__product .product-title-small {
    max-width: 380px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

table.variations .value {
    display: flex;
}

.variations .reset_variations {
    position: relative;
    margin-left: 1em;
}

.home-slider .slider-wrapper,
.home-slider .flickity-viewport {
    height: 600px;
    overflow: hidden;
}


.nav-dropdown.nav-dropdown-default>li>a,
ul.product_list_widget li+li {
    border: none !important;
}

.woocommerce-product-gallery__image a,
.pswp--zoom-allowed .pswp__img{
    cursor: url('./assets/img/cursor-zoom-in.svg'), zoom-in;
}
.pswp--zoom-allowed.pswp--zoomed-in .pswp__img{
    cursor: url('./assets/img/cursor-zoom-out.svg'), zoom-out;
}

/* 响应式Banner */
.responsive-banner {
    position: relative;
    width: 100%;
    height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 新增 ::after 伪元素实现遮罩 */
.responsive-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    z-index: 2;
}

.banner-title {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 手机端样式 */
@media (max-width: 767px) {
    /* [data-vbg]{display: none;} */
    .responsive-banner {
        height: 400px;
    }

    .banner-title {
        font-size: 2em;
    }

    .banner-subtitle {
        font-size: 1.1em;
    }
    .pull-left .copyright-footer{
        padding-top: 16px;
    }
}
.sticky-section .section-content{
   height: 100%;
}
.chead-title{
    align-items: center;
    justify-content: center;
}
.chead-title span{
    display: flex;
    align-items: center;
    padding-left: 24px;
}
.chead-title span:first-child{padding-left: 0;}
.chead-title span svg{
    width: 18px;
    height: 18px;
    display: inline;
    margin-right: 0.5em;
}


@media screen and (min-width: 850px) {
    .col:first-child .col-inner {
        margin-left: auto;
        margin-right: auto;
    }
}


.has-sticky .stuck #logo img {
    transition: max-height .5s;
    max-height: 58px !important;
}
.privacy-policy #wrapper #main #content,
.cart-container,
.my-account,.not-found,
#wrapper .woocommerce-info .message-wrapper,
.message-container.container.medium-text-center,
.blog-wrapper .row{
    max-width: 1200px!important;
}
.page-template-page-blank-title-center #main #content,
#wrapper .woocommerce-info .message-wrapper,
.not-found,
.page-wrapper{
    margin-left: auto;
    margin-right: auto;
}


.quarter .flickity-viewport{
      aspect-ratio: 4 / 1; /* 宽度:高度 = 4:1，即高度为宽度的1/4 */
        /* height: auto!important;  */
}
.cflatsome {
  font-family: "cflatsome" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cfl-arrow-left:before {
  content: "\e600";
}

.cfl-arrow-right:before {
  content: "\e601";
}

.cfl-circle:before {
  content: "\e602";
}
.footer2 img{
    object-fit: contain!important;
}
.accordion-inner{
    background-color: #fcfcfc;
}
.ux-menu.ux-menu--divider-solid .ux-menu-link:not(:last-of-type) .ux-menu-link__link{
    flex:1;
}
.ux-menu-link__link{
    flex:none;
}

/* 扁平化登出确认消息样式 */
.woocommerce-message.message-wrapper {
    background-color: #f7f7f7;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.woocommerce-message.message-wrapper+.woocommerce-message.message-wrapper{
    display:none;
}
.woocommerce-message.message-wrapper .message-container {
    max-width: 800px!important;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.woocommerce-message.message-wrapper .icon-checkmark {
    color: #4CAF50;
    font-size: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.woocommerce-message.message-wrapper a {
    color: var(--fs-color-primary)!important;
    font-weight: normal;
    border-radius: 0;
    box-sizing: border-box;
    color: currentColor;
    cursor: pointer;
    display: inline-block;
    font-size: .97em;
    font-weight: normal;
    letter-spacing: .03em;
    line-height: 2.4em;
    margin-right: 1em;
    max-width: 100%;
    min-height: 2.5em;
    padding: 0 1.2em;
    position: relative;
    text-align: center;
    text-rendering: optimizeLegibility;
    text-shadow: none;
    text-transform: uppercase;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
    vertical-align: middle;
    background-color: transparent;
    border: 2px solid var(--fs-color-primary);
    max-width: 10em;
    margin: 10px auto 0;
}

.woocommerce-message.message-wrapper a:hover {
    background-color: var(--fs-color-primary);
    border-color: var(--fs-color-primary);
    color: #fff!important;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .woocommerce-message.message-wrapper .message-container {
        padding: 0 15px;
    }
    .footer-widgets .section{padding-left: 0; padding-right: 0;}
    .footer{padding: 0;}
    .footer .col-inner{padding-top: 0!important;}
    .footer .col{padding-bottom: 0;}
    .footer .social-icons{display: none;}
}
.product-page-price{margin-bottom: 20px;}
.product_meta>span{border-top: none!important;}
.product-details-accordion a.accordion-title{padding-left: 0;}
.product-details-accordion .toggle{
    left:auto;
    right:0;
}
.product-details-accordion .accordion-title.active{
    background: none;
}
.product-details-accordion .accordion-inner{background: none;}
.product-details-accordion .accordion-item:last-child{border-bottom: 1px solid #ddd;}
.product-template-default .category-filtering{display: none;}

.social-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    color: #212121;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 产品评论区域样式 */
.product-reviews-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-reviews-section .section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #222;
    font-weight: 600;
    border-bottom: 2px solid #e5e1de;
    padding-bottom: 10px;
}

.social-login-button:hover {
    background-color: #f8f9fa;
    border-color: #c6c6c6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-login-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-login-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* 确保表单下方的社交登录按钮间距合适 */
.woocommerce-form-login .social-login-button,
.woocommerce-form-register .social-login-button {
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .social-login-button {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .google-icon {
        width: 18px;
        height: 18px;
    }
}

/* 与Flatsome主题按钮样式协调 */
.social-login-button {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

/* 社交登录容器样式 */
.social-login-container {
    width: 100%;
}
/* 评论图片上传样式 - 定制设计 */
.cr-upload-images-input {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    height: 120px;
    border: 2px dashed #d3c7b8; /* 与皮具色调协调的浅棕色虚线边框 */
    background-color: #f8f6f3; /* 浅米色背景，模拟皮革质感 */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 10px 0;
}
.cr-upload-images-input input{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.cr-upload-images-input:hover {
    border-color: #a89685; /* 悬停时边框变为深棕色 */
    background-color: #f0ebe5; /* 悬停时背景色略微变深 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cr-upload-images-input svg {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    fill: #a89685; /* 与皮具色调协调的浅棕色 */
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.cr-upload-images-input:hover svg {
    fill: #8a7766; /* 悬停时变为深棕色 */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
/* 响应式设计 - SVG图标大小适配 */
@media (max-width: 768px) {
    .cr-upload-images-input svg {
        width: 30px;
        height: 30px;
    }
}

/* 文字提示 */
.cr-upload-images-input::after {
    content: "Add photos to your review";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #7d6e5c;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

.cr-upload-images-input:hover::after {
    opacity: 1;
    color: #5a4d3e;
}

/* 隐藏实际的文件输入元素 */
.cr-upload-images-input input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cr-upload-images-input {
        max-width: 100%;
        height: 100px;
    }
    
    .cr-upload-images-input::before {
        font-size: 24px;
    }
    
    .cr-upload-images-input::after {
        font-size: 11px;
        bottom: 10px;
    }
}
/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.cr-upload-images-input:hover {
    animation: pulse 1.5s infinite;
}
.cr-upload-images-delete{min-height: auto!important;}
.comment-list li .avatar, .commentlist li .avatar{
    float: left;
}
.cr-review-avatar img{
    border-radius: 50%;
    object-fit: cover;
    width: 60px;height: 60px;
}
.woocommerce-Tabs-panel--description td:first-child, 
.woocommerce-Tabs-panel--description th:first-child{
    padding-left: 0.5em;
}
.checkout-inline-error-message{color: #f44336;}
.woocommerce-checkout .woocommerce-error.message-wrapper li[data-id]{display: none;}
/* 弹框样式 - 居中显示 */
.my-error-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    list-style: none !important;
    border: none !important;
}

/* 错误消息项样式 */
.my-error-dialog li {
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out forwards;
    color: #333333 !important;
    background-image: none !important;
    list-style: none !important;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 !important;
    padding: 24px 30px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 关闭按钮样式 */
.my-error-dialog .my-error-dialog-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #f8f8f8 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    color: #666 !important;
    text-decoration: none !important;
    border: none !important;
}

.my-error-dialog .my-error-dialog-close:hover {
    background-color: #e0e0e0 !important;
    color: #333 !important;
    transform: scale(1.1) !important;
}

/* 滑入动画 */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 滑出动画 */
@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* 应用滑出动画的类 */
.my-error-dialog.slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-error-dialog li {
        width: 95%;
        padding: 20px 24px !important;
        font-size: 15px;
    }
    
    .my-error-dialog .close {
        top: 10px !important;
        right: 12px !important;
        font-size: 14px !important;
        width: 26px !important;
        height: 26px !important;
    }
}
.woocommerce-invalid input{
    border-width: 2px!important;
}