.custom-option-inline label{
    font-size: 18px;
    font-family: Nunito Sans;
    font-weight: bold;
    line-height: 24px;
    color: #303030;
    margin: 12px 0;
    display: inline-block;
}
.custom-option-inline{}
.custom-option-label .required{
    color: red;
    margin-right: 6px;
}
.custom-option-content input{
    width: 100%;
    height: 50px;
    border: 1px solid #387821;
    border-radius: 6px;
    font-size: 14px;
    font-family: Nunito Sans;
    font-weight: 400;
    line-height: 19px;
    color: #303030;
    line-height: 48px;
    padding: 0 34px 0 12px;
}
.custom-option-content input.error{
    border-color: red;
}
.custom-option-content textarea{
    width: 100%;
    height: 100px;
    border: 1px solid #387821;
    border-radius: 6px;
    font-size: 14px;
    font-family: Nunito Sans;
    font-weight: 400;
    color: #303030;
    padding:10px 12px;
}
.custom-option-content.select-icon{
    position: relative;
}
.custom-option-content{
    position: relative;
}

.custom-option-content.select-icon:after{
    position: absolute;
    content: '';
    top: 21px;
    right: 14px;
    width: 15px;
    height: 9px;
    display: inline-block;
    background: url("/assets/images/madian/product/icon_down1@2x.png");
    background-size: 15px 9px;

}
.custom-option-content.open:after{
    transform: rotate(180deg);
}
.custom-option-select-expand{
    cursor: pointer;
    margin-top: 3px;
    background: rgba(255, 255, 255, 0.39);
    border: 1px solid #387821;
    border-radius: 6px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.custom-option-select-expand>p{
    background: rgba(255, 255, 255, 0.39);
    line-height: 21px;
    padding: 8px 11px;
    font-size: 14px;
    font-family: Nunito Sans;
    font-weight: 400;
    color: #303030;
}
.custom-option-select-expand>p:hover{
    background: rgba(214, 238, 205, 0.39);
}
#custom_component{
    margin-bottom: 20px;
}
.custom-option-image{
    width: calc(100% - 90px);
    height: 60px;
    background-color: rgba(249, 249, 249, 0.39);
    border: 1px dashed #D5D5D5;
    border-radius: 6px;
    text-align: center;
    margin: 0;
    /*background: url("");*/
}
.custom-option-image .add-image-text{
    position: relative;
    font-size: 12px;
    font-family: Nunito Sans;
    font-weight: 400;
    line-height: 60px;
    color: #387821;
    padding-left: 40px;
    display: flex;
}
.custom-option-image .add-image-text:before{
   position: absolute;
    width: 32px;
    height: 26px;
    content: '';
    display: inline-block;
    top: 18px;
    left: -12px;
    background:url("/assets/images/madian/product/unload_img@2x.png") no-repeat;
    background-size: 32px 26px;
}

.custom-option-image-input~img{
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin: 0;
}
.custom-option-content .upload-img-box{
    display: flex;
    justify-content: space-between;
}
.table-striped{
    margin: 0;
    width: 100%;
}
.cartBox-num-sec, .cartBox-num-add {
    line-height: 26px !important;
}
.product-summary *{
    font-size: 14px;
}
.error-tip{
    font-size: 12px;
    font-family: Nunito Sans;
    font-weight: 400;
    line-height: 16px;
    color: #FF0000;
    margin-top: 6px;
}
.select-icon input{
    cursor: pointer;
}
.input-tip{
    position: absolute;
    top:0;
    transform: translateY(calc(-100% - 8px)) translateX(-50%);
    left: 50%;
    z-index: 3;
    background: #000;
    border-radius: 4px;
    line-height: 16px;
    font-size: 12px;
    font-family: Nunito Sans-Regular, Nunito Sans;
    font-weight: 400;
    color: #FFFFFF;
    padding: 10px 13px;
    max-width: 100%;
    min-width: 80%;
    min-width: fit-content;
    min-width: -moz-fit-content;
}
.input-tip:after{
    position: absolute;
    content: '';
    display: inline-block;
    box-sizing: border-box;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 0;
    border:6px solid transparent;
    border-top-color: #000;

}
.text-info-container{
    position: absolute;
    right: 12px;
    top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-info-container .input-text__tip{
    margin: 0;
}

.product-value__text .price-info{
    min-width: auto;
}



.product-value__text .price-info .attr__price {
    font-size: 11px;
    font-weight: 500;
    color: #387821;
    margin: 0;
}

.product-value__text .text-info-container {
    position: absolute;
    right: 12px;
    top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 32px;
}
.product-attr-title-text{margin-right: 0;}
.product-value__text{width: 100%;position: relative;}
.product-value__text .attr-text{
    padding: 12px 100px 12px 12px;
}

[v-cloak]{background-color: #f9f9f9;color: #f9f9f9!important; }
[v-cloak] *{background-color: #f9f9f9;color: #f9f9f9!important; }
.timeliness-show[v-cloak] i{display: none!important; }
.timeliness-show[v-cloak]{border-bottom-color: transparent!important; }
:root {
    --swiper-theme-color: #fff!important;
}
.cartBox-num{
    margin: 0px 0 20px 0;
}
   .product-right-main .share-block-pc{top: 42px;}

@media only screen and (max-width:767px) {

}
@media only screen and (max-width:991px) {

.custom-option-image{
    width: calc(100% - 80px);
}
.product-summary{
    display: none;
}
.product_summary_mobile{
    display: block;
}
}
@media screen and (max-width: 991px) and (min-width: 768px){
    .countdown-block {
        padding: 0 0px 0 10px;
        max-width: 374px;
    }
}

@media only screen and (min-width:992px) {
    .product-right-main .share-block-pc{top: 42px;}
    .custom-option-image{
        width: calc(100% - 80px);
    }
    .product-summary{
        display: block;
    }
    .product_summary_mobile{
        display: none;
    }
}
.productInfo:before{display: none}
.productInfo-item{width: 100%}
.productInfo-itemL{width:160px;white-space: pre-wrap; word-break: break-word;}
.productInfo-itemR{width: calc(100% - 160px);white-space: pre-wrap; word-break: break-word;}
@media only screen and (max-width:768px) {
    .productInfo-itemL{width:100px}
    .productInfo-itemR{width: calc(100% - 100px);}
}
   /* 从 product_cakelust.css 集成的样式 */
   .variant_selection {
    margin-bottom: 15px;
}

.variant_selection__title {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-attr-title {
    width: auto;
    text-align: left;
    font-size: 18px;
    color: #303030;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.product-attr-info {
    color: #999;
    margin: 0;
}

.product-value {
    display: flex;
    flex-wrap: wrap;
}
.label-item{
    margin: 0;
}

.label-item.is-image-item {
    display: flex;
    align-items: stretch;
}


.label-item-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.label-item input {
    clip: rect(0,0,0,0);
    position: absolute;
    width: 1px;
    height: 1px;
    top: 0;
}

.label-item-text {
    display: flex;
    padding: 4px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #d2d2d2;
    padding: 8px 10px;
    cursor: pointer;
    color: #303030;
    width: 100%;
    border-radius: 6px;
    flex-direction: row;
    align-items: center;
}
.is-image-item .label-item-text{
    flex-direction: column;
}
.is-image-item .attr-value{
    margin-top: 6px;
}

.label-item-text:hover {
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
}

.selected .label-item-text {
    border: 2px solid #387821;
    box-shadow: 0 6px 12px rgba(56, 120, 33, 0.13);
    position: relative;
    padding: 7px 9px;
}
.selected .label-item-text:after,.dropdown-option.has-image.selected:after {
    display: block;
    width: 14px;
    height: 13px;
    background: url(../images/madian/ico-attr-select.svg) no-repeat center;
    background-size: 100% auto;
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
}

.error-message {
    color: #cf1322;
    font-size: 13px;
    margin: 5px 0 0 0;
    animation: shake 0.5s ease-in-out;
}

.input-text.error, .attr-text.error {
    border-color: #cf1322 !important;
    box-shadow: 0 0 0 2px rgba(207,19,34,0.2);
}

.add-to-cart2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart2.loading {
    position: relative;
}

.add-to-cart2.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 下拉样式 */
.select-style-attribute {
    margin-bottom: 15px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    width: 100%;
    height: 50px;
    border: 1px solid #387821;
    border-radius: 6px;
    font-size: 14px;
    font-family: Nunito Sans;
    font-weight: 400;
    line-height: 19px;
    color: #303030;
    line-height: 48px;
    padding: 0 34px 0 12px;
}
.dropdown-option.selected {
    background: rgba(214, 238, 205, 0.39);
    color: #387821;
    font-weight: 500;
}

.dropdown-display:hover {
    border-color: #387821;
}

.dropdown-open .dropdown-display {
    box-shadow: 0 0 8px rgb(56 120 33 / 20%);
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 46px;
}


.dropdown-option:hover {
    background-color: #f8f9fa;
}


.image-preview {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

.custom-option-image-img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-preview-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
}


.custom-option-select-expand p:hover {
    background-color: #f8f9fa;
}

.custom-option-select-expand p.selected {
    color: #387821;
    font-weight: 500;
    background: rgba(214, 238, 205, 0.39);
}


.default-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}


.custom-option-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}


.custom-option-select.error,
input[type="text"].error {
    border-color: #dc3545;
}

.error-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.upload-img-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.custom-option-image {
    width: calc(100% - 90px);
    height: 60px;
    background-color: rgba(249, 249, 249, 0.39);
    border: 1px dashed #D5D5D5;
    border-radius: 6px;
    text-align: center;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-option-image:hover {
    border-color: #387821;
    background-color: rgba(56, 120, 33, 0.05);
}

.custom-option-image.error {
    border-color: #cf1322;
    background-color: rgba(207, 19, 34, 0.05);
}

.custom-option-image-input {
    position: absolute;
    height: 60px !important;
    margin-top: 0;
    opacity: 0;
    width: calc(100% - 90px) !important;
    cursor: pointer;
    z-index: 2;
    top: 0;
}

.uploaded-image-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    /* overflow: hidden; */
    border: 1px solid #d5d5d5;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.image-actions {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 4px;
}

.remove-image-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.remove-image-btn:hover {
    background-color: rgba(207, 19, 34, 0.8);
}

.price-info {
    display: flex;
    align-items: center;
    min-width: 80px;
}

.price-info .attr__price {
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;

}
.product-attr-title-container{
    display: flex;
    width: 100%;
}
.variant_selection__selected_text{
    margin: 0;
    line-height: 22px;
}
.select-style-attribute{margin-bottom:15px}
.custom-dropdown{position:relative;width:100%}
.dropdown-display{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;border:1px solid #CBCBCB;background:white;cursor:pointer;transition:all 0.3s ease;min-height:46px}
.dropdown-display:hover{border-color:#387821}
.dropdown-arrow{font-size:12px;color:#666;transition:transform 0.3s ease;margin-left:8px}
.dropdown-open .dropdown-arrow{transform:rotate(180deg)}
.dropdown-options{scrollbar-width:none;-ms-overflow-style:none;position:absolute;
    /* top:100%; */
    top: calc(100% + 3px);    border-radius: 6px;
    left:0;right:0;background:white;border:1px solid #ddd;border-top:none;overflow-y:auto;z-index:1000;box-shadow:0 4px 12px rgba(0,0,0,0.15);max-height:300px}
.dropdown-options::-webkit-scrollbar{display:none}

.dropdown-option.has-image.selected{border:2px solid #387821;background-color:transparent;position: relative;}
.dropdown-option .option-icon{margin-bottom:4px}
.dropdown-option .option-icon img{width:100%;height:auto;object-fit:contain;aspect-ratio: 1/1;}
.selected-option .option-text{color:#303030;font-weight: 700;font-size: 16px;margin: 0;line-height: 1.2;}
.dropdown-option .option-text{font-size:16px;
    font-weight:400;line-height:1.2;white-space:pre-wrap;word-break:break-word;margin: 0;}
.dropdown-option .option-price{margin-left:3px;font-size:16px;font-weight:400}
.has-image.dropdown-option .option-text{font-size:14px;font-weight:400;margin-top: 4px;}
.has-image.dropdown-option .option-price{font-size:12px;color:#666;font-weight:400;width: 100%;}
.has-images.label-item-container,
.dropdown-options.has-images{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));}
.klarna-container{margin: 6px 0 0 0 !important;}
.attr-value,.attr__price{line-height: 1.2;}
.product-attr-title .required{color: #c02e22;}
@media only screen and (max-width: 991px) {
    .custom-option-image-input {
        width: calc(100% - 80px) !important;
    }
    
    .custom-option-image {
        width: calc(100% - 80px);
    }
    
    .price-info {
        min-width: 70px;
    }
    .product-sale-block{
        flex-direction: column;
    }
    .common-countdown{
        margin: 12px 0 0;
    }
    .product-custom{
        margin-top: 15px;
    }
    .product-sale-block .countdown-block{
        margin-bottom: 0;
    }
}

@media only screen and (min-width: 992px) {
    .custom-option-image-input {
        width: calc(100% - 80px) !important;
    }
    
    .custom-option-image {
        width: calc(100% - 80px);
    }
    
}


 /* 从 product_cakelust.css 集成的下拉样式 */
 .select-style-attribute {
    margin-bottom: 15px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #387821;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    color: #303030;
}

.dropdown-display:hover {
    border-color: #387821;
    box-shadow: 0 2px 8px rgba(56, 120, 33, 0.15);
}

.dropdown-open .dropdown-display {
    border-color: #387821;
    box-shadow: 0 2px 8px rgba(56, 120, 33, 0.2);
}

.selected-option {
    display: flex;
    align-items: center;
    flex: 1;
}

.selected-option img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 12px;
}
.option-icon{
    margin: 0;
} 


.dropdown-arrow {
    width: 15px;
    height: 9px;
    transition: transform 0.3s ease;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow svg {
    width: 15px;
    height: 9px;
}

.custom-arrow-icon {
    width: 15px;
    height: 9px;
    background: url("/assets/images/madian/product/icon_down1@2x.png") no-repeat;
    background-size: 15px 9px;
    display: inline-block;
}

.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options::-webkit-scrollbar {
    display: none;
}

.dropdown-options.has-images {
    background: white;
    border: 1px solid transparent;
    border-top: none;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 450px;
    padding: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}




.dropdown-option:hover {
    background: rgba(214, 238, 205, 0.39);
}

.dropdown-option.has-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 60px;
    justify-content: flex-start;
    border: 2px solid #d2d2d2;
    border-radius: 4px;
}


.dropdown-option .option-icon {
    margin-bottom: 4px;
}

.dropdown-option .option-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1/1;
}


.has-image.dropdown-option .option-text {
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
}
@media screen and (min-width: 992px) and (max-width: 1024px) {
    .gallery-thumbs .swiper-slide{
        max-width: 66px;
        margin: 0;
    }

}



/* 响应式网格布局 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .dropdown-options.has-images {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    }
}

@media screen and (min-width: 500px) and (max-width: 768px) {
    .dropdown-options.has-images {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .dropdown-options.has-images {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        padding: 6px;
    }
    
    .dropdown-option.has-image.selected {
        border: 2px solid #387821;
    }
    
    .dropdown-option .selected-option img {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-option .option-text {
        font-size: 14px;
    }
    
    .dropdown-option.has-image {
        border: 1px solid #d2d2d2;
    }
    
    .selected-option .option-text {
        font-size: 14px;
    }
    
    .dropdown-option .option-price {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .dropdown-option .selected-option img {
        width: 24px;
        height: 24px;
    }
}