/*
Theme Name: Minimal Woo
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 极简 WooCommerce 主题骨架，空白开发用
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: minimal-woo
*/

@font-face {
    font-family: 'Urbanist';
    src: url('assets/fonts/Urbanist-SemiBold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('assets/fonts/Urbanist-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html,
body {
    overflow: visible
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    color: #000000;
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    border: 0;
    vertical-align: baseline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
}

ul {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
}

p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.common {
    width: 85%;
    margin: auto;
    padding: 0;
    box-sizing: border-box;
}

del {
    color: #999999;
    text-decoration: line-through;
    font-size: 14px;
}

ins {
    color: #000;
    text-decoration: none;
}

/* 所有产品列表显示颜色 */
.color-dots .dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 5px 8px 5px 0;
}

@media (max-width: 768px) {
    .common {
        width: auto;
    }
}

/*===========================header导航==============================*/
/* header 默认透明 */
#site-header {
    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
}

body:not(.home) #site-header {
    position: relative;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body:not(.home) #site-header img {
    filter: invert(1);
}

/* 吸顶滚动 */
#site-header.header-scrolled {
    position: fixed;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#site-header.header-scrolled img {
    filter: invert(1);
}

/* 内部 flex 布局 */
.common-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.common-main .common-mobile-menu{
    width: 68px;
    height: 26px;
    line-height: 26px;
    cursor: pointer;
}
.common-main .common-mobile-menu img{
    width: 26px;
}
@media (min-width: 1024px) {
    .common-main .common-mobile-menu{
        display: none;
    }
}

/*Logo*/
.common-main .logoImage a {
    display: block;
    width: 230px;
}

/* 菜单 */
.common-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.common-menu ul li {
    margin-left: 30px;
    cursor: pointer;
}

.common-menu ul li:hover {}

.common-right {
    display: flex;
    align-items: center;
}

/* 搜索 / 用户 / 购物车 */
.common-right>div {
    display: inline-block;
    margin-left: 20px;
}

.common-right>.common-user,
.common-right>.common-cart {
    width: 26px;
    height: 26px;
    line-height: 26px;
}
.common-right>div.common-search {
    display: none;
}
.common-right>.common-search input {
    width: 211px;
    height: 36px;
    border-radius: 20px;
    border: 1px solid #FFFFFF;
}
.common-right>.common-cart{
    position: relative;
}
.common-right>.common-cart .cart-count{
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    line-height: 15px;
    border-radius: 50%;
    background-color: #f00;
    color: #fff;
    font-size: 10px;
    text-align: center;
}
@media (max-width: 1024px) {
    #site-header{
        padding: 17px 15px;
        box-sizing: border-box;
    }
    .common-menu {
        display: none;
    }

    .common-right>div.common-search {
        display: none;
    }
    .common-right>.common-user, .common-right>.common-cart{
        margin-left: 8px;
    }
    .common-main .logoImage a {
        height: 18px;
        line-height: 18px;
    }
}

/* Footer */
#site-footer {
    background-color: #f2f2f2;
    padding: 30px 0 15px;
}

#site-footer .footer-menu {
    display: flex;
}

#site-footer .footer-menu-item {
    width: 23%;
}

#site-footer .footer-menu-item:last-child {
    width: 31%;
}

#site-footer .footer-menu-item h4 {
    font-size: 12px;
    margin: 0 0 16px;
}

#site-footer .footer-menu-item .foot-label {
    font-size: 12px;
    font-weight: 600;
}

#site-footer .footer-menu-item .foot-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

#site-footer .footer-menu-item li a {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

#site-footer .footer-menu-item li a:hover {
    text-decoration: underline;
}

/* 表单 */
#site-footer .footer-menu-item form {
    margin-bottom: 16px;
}

#site-footer .footer-menu-item input#email {
    padding: 6px 8px;
    border: 1px solid #000;
    width: 280px;
}

#site-footer .footer-menu-item button {
    padding: 6px 8px;
    color: #fff;
    background-color: #000;
    border: 1px solid #000;
    cursor: pointer;
}

/* 社交icon */
#site-footer .footer-menu-item .social a {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-right: 8px;
}

#site-footer .footer-menu-item .social h4 {
    margin-bottom: 8px;
}

#site-footer .footer-menu-item .social a:last-child {
    margin-right: 0;
}

#site-footer .footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    font-size: 12px;
    color: #333;
}

#site-footer .footer-social .payList {
    width: 402px;
}

/* Footer======================END */
@media (max-width: 768px) {
    #site-footer {
        padding: 20px 15px;
    }

    #site-footer .footer-menu {
        flex-direction: column;
    }

    #site-footer .footer-menu-item,
    #site-footer .footer-menu-item:last-child {
        width: 100%;
        order: 2;
        border-bottom: 1px solid #E0E0E0;
    }

    #site-footer .footer-menu-item:last-child {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
    }

    #site-footer .footer-menu-item form {
        width: 100%;
    }

    #site-footer .footer-menu-item h4 {
        font-size: 16px;
        text-align: center;
    }

    #site-footer .footer-menu-item .social h4 {
        display: none;
    }

    #site-footer .footer-menu-item input#email {
        width: 65%;
    }

    #site-footer .footer-menu-item button {
        width: 25%;
    }

    /* 1. 隐藏 checkbox，但保留点击功能 */
    #site-footer .footer-menu-item .foot-toggle {
        display: none;
    }

    /* 2. label 当标题，手指可点 */
    #site-footer .footer-menu-item .foot-label {
        display: block;
        font-size: 14px;
        padding: 16px 20px 16px 0;
        cursor: pointer;
        position: relative;
    }

    /* 小三角 */
    #site-footer .foot-label::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        border: 4px solid transparent;
        border-top: 6px solid #666;
        transition: transform .3s;
    }

    /* 3. 关键：默认收起（取代原来的 display:flex） */
    #site-footer .footer-menu-item .foot-panel {
        display: flex;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        margin: 0;
        padding: 0;
    }

    /* 4. 展开状态 */
    #site-footer .foot-toggle:checked+.foot-label::after {
        transform: translateY(-50%) rotate(180deg);
    }

    #site-footer .footer-menu-item .foot-panel li {
        padding-left: 10px;
    }

    #site-footer .foot-toggle:checked~.foot-panel {
        max-height: 500px;
        /* 比实际内容略大即可 */
    }

    /* 底部支付列表 */
    #site-footer .footer-social {
        flex-direction: column;
    }

    #site-footer .footer-social .payList {
        width: 100%;
    }

    #site-footer .footer-social .social {
        text-align: center;
        font-weight: 400;
        font-size: 11px;
        color: #333;
    }


}

/* 桌面端恢复原有布局 */
@media (min-width: 769px) {
    #site-footer .foot-toggle {
        display: none;
    }

    #site-footer .footer-menu-item .foot-panel {
        max-height: none !important;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}



/*=============== collection系列 Start ==================*/
.collection-container {
    max-width: 1222px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* 头部区 */
.collection-header {
    display: flex;
    justify-content: space-between;
    padding: 5% 10% 0%;
}

.collection-title {
    font-size: 55px;
    font-weight: 100;
    text-transform: uppercase;
    line-height: 1em;
    color: #060E69;
}

.fw-100 {
    display: inline-block;
    font-family: "Urbanist", Sans-serif;
}

.collection-desc {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 200;
    padding: 0 16% 0 8%;
}

/* 图片区 */
.collection-image {
    margin-top: 10px;
}


/* 分割线区 */
.collection-divider {
    display: flex;
    align-items: center;
    gap: 50px;
    overflow: hidden;
    padding: 25px 2% 25px 16%;
    will-change: transform;
    line-height: 1;
}

.divider-text {
    color: #060E69;
    font-size: 35px;
    font-weight: 200;
    text-transform: uppercase;
    white-space: nowrap;
}

.collection-divider::after {
    flex: 1;
    content: "";
    height: 1px;
    border-top: 1px solid #060E69;
}

/* 产品区 */
.collection-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.collection-product {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.collection-product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
}

.collection-product-image img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-label {
    position: absolute;
    top: 15px;
    left: 12px;

    min-width: 44px;
    text-align: center;

    background-color: #fff;
    border: 1px solid #333;
    padding: 3px 0;
    border-radius: 4px;

    font-size: 12px;
    box-sizing: border-box;
}

.collection-product-color {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    padding: 5px 0;
    flex-wrap: nowrap; 
}

.collection-product-info {
    padding: 15px 20px;
}

.switch-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-sizing: border-box;
}

.switch-color[style*="#ffffff"],
.switch-color[style*="#FFFFFF"],
.switch-color[style*="255,255,255"],
.switch-color[style*="252,251,244"] {
    border: 1px solid #00000026;
}


.collection-product-title {
    display: block;
    overflow: hidden;
    max-height: 18px;
    margin-bottom: 5px;

    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
    transition: all 0.25s ease;

}

.collection-product-title:hover {
    color: rgb(51 51 51 / 65%);
}

.collection-product-price del {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.collection-product-price {
    font-size: 14px;
}


/* 买家秀区 */
.populated-header {
    text-align: center;
    margin-bottom: 8px;
}

.populated-subtitle {
    font-size: 22px;
    color: #060E69;
    margin-bottom: 10px;
}

.populated-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.populated-aftertitle {
    font-size: 14px;
    line-height: 1.6;
}

.images-gallery {
    column-count: 3;
    column-gap: 6px;
}

.image-gallery-item {
    display: block;
    line-height: 0;
    break-inside: avoid;
    margin-bottom: 6px;
}

.color-more {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0; 
}

/* 服务区 */
.usp-strip {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #FCF8F8;
    margin-top: 40px;
    margin-bottom: 40px;
}

.usp-strip-inner {
    display: flex;
    width: min(1222px, 100vw);
    margin: 0 auto;
    padding: 30px 15px;
}

.usp-strip-item {
    flex: 1;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.usp-icon {
    width: 60px;
    margin-right: 20px;
}

.info-title,
.info-desc {
    color: #060E69;
}

.info-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
}

/* 购物轻松区 */
.shopping-ease {
    text-align: center;
    font-size: 43px;
    margin: 60px 0 70px;
}

.shopping-title-active {
    position: relative;
    color: #AEBCB9;
}

.shopping-title-active svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    transform: translate(-50%, -50%);
    overflow: visible; 
}

.shopping-title-active svg path {
    stroke: red;
    stroke-width: 9;
    fill: none;
    opacity: 1;
    stroke-dasharray: 1500 1500;
    animation: draw 10s ease infinite;
}

@keyframes draw {
    0%, 50.1%, 100% {
        stroke-dashoffset: 1500;
    }
    8%, 50% {
        stroke-dashoffset: 0;
    }
}

/* 定制面料区 */
.custom-fabric {
    display: flex;
    margin-top: 105px;
}

.custom-content,
.custom-img {
    flex: 1;
}

.custom-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.custom-title {
    font-size: 65px;
    font-weight: 400;
    line-height: 75px;
}

.custom-desc {
    max-width: 480px;
    font-size: 14px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.customize-btn {
    width: 150px;
    padding: 12px 20px;
    box-sizing: border-box;

    font-size: 13px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    background-color: #212121;
}

/* 移动端适配 */
@media (max-width: 460px) {
    .product-label {
        min-width: 40px;
    }
}

@media (max-width: 767px) {
    .collection-container {
        max-width: none;
        margin: 0;
        box-sizing: border-box;
    }

    /* 头部区 */
    .collection-header {
        flex-direction: column;
        padding: 50px 5% 0 5%;
    }

    .collection-title {
        font-size: 40px;
    }

    .collection-desc {
        padding: 0;
        margin-top: 30px;
    }

    /* 分割线区 */
    .collection-divider {
        padding: 25px 5%;
        gap: 15px;
    }

    .collection-image {
        width: auto;
        padding: 0 10px;
        line-height: 0;
    }

    .collection-image-inner {
        padding: 0;
    }

    .divider-text {
        font-size: 25px;
    }

    /* 产品区 */
    .collection-products {
        gap: 10px;
        padding: 0 10px;
    }

    .collection-product {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: 0;
    }

    .collection-product-color {
        overflow: hidden;
        flex-wrap: wrap; 
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    .collection-product-color .switch-color:nth-child(n+7) {
        display: none;
    }

    .collection-product-color .switch-color:nth-child(5) {
        position: relative;
    }

    .collection-product-color .switch-color:nth-child(5)::after {
        content: "";
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 8px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #ccc;
        color: #fff;
    }

    .collection-product-color .switch-color:nth-child(6):last-child::after {
        display: none;
    }

    .color-more {
        width: 100%;      
    }

    .collection-product-info {
        padding: 10px;
    }

    .collection-product-oprice {
        font-size: 11px;
    }

    .collection-product-title {
        max-height: 15px;
        line-height: 15px;
        margin-bottom: 5px;
    }

    .collection-product-title,
    .collection-product-price {
        font-size: 12px;
    }

    .product-label {
        font-size: 10px;
    }

    /* 买家秀区 */
    .collection-populated {
        padding: 0 10px;
    }

    .populated-subtitle {
        font-size: 16px;
    }

    .populated-title {
        font-size: 28px;
    }

    .images-gallery {
        column-count: 1;
        column-gap: 0;
    }

    /* 服务区 */
    .usp-strip-inner {
        width: auto;
        flex-direction: column;
        gap: 60px;
    }

    .info-desc {
        font-size: 12px;
    }

    /* 定制面料区 */
    .custom-fabric {
        flex-direction: column;
    }

    .custom-title {
        font-size: 42px;
        line-height: 52px;
    }

    .custom-desc {
        font-size: 12px;
    }

    .customize-btn {
        margin-bottom: 20px;
    }
}
/*=============== collection系列 End ==================*/