/*属性重置*/
.card-style {
    margin: 0 0.5rem 0.5rem;
}

.content {
    margin: 0.5rem;
}

/*前端分页*/
.pagination .page-link {
    padding: 1px 10px !important;
}

/*重置swal2-styled弹窗样式*/
.swal2-container .swal2-title {
    font-size: 18px !important;
}

.swal2-container .swal2-confirm,
.swal2-container .swal2-deny,
.swal2-container .swal2-cancel {
    font-size: 12px !important;
    padding: 8px 16px !important;
    border: 0 !important;
    border-radius: 6px !important;
}

.swal2-container .swal2-confirm {
    background-color: #AA8E69 !important;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    width: 20em;
}

div:where(.swal2-container) button:where(.swal2-styled) {
    padding: 0.3em 1em;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    font-size: .8em;
}

div:where(.swal2-container) .swal2-html-container {
    font-size: 15px !important;
}

/*首页*/
.home-nav-box {
    text-align: center
}

.home-nav-box i {
    /*min-height: 50px;*/
    display: block
}

.home-nav-box img {
    /*width: 90%;*/
    height: 40px;
}

.home-nav-box p {
    font-size: 11px;
    color: #333;
}

#home-slider-a .splide__slide img {
    vertical-align: bottom;
    height: 210px;
    width: 100%;
    object-fit: cover;
}

#home-slider-a .splide__pagination {
    bottom: 1.5em;
}

/*会员中心*/
.top-bg-user {
    /*background: linear-gradient(180deg, #c30d23 50%, #ff991b 100%);*/
    background: url(https://qianlvyou-1301322594.cos.ap-chengdu.myqcloud.com/images/20250715/32680d4b385eb49fbda291ecf6aeb24d.png) left 0 / 100% no-repeat rgb(246, 246, 246);
    /*background: linear-gradient(180deg, #c30d23 50%, #FFF 100%);*/
    top: -45px;
    width: 100%;
    height: 319px;
    position: absolute;
    left: -20px;
    right: -20px;
    margin: auto;
    z-index: 0;
    border-radius: 10%;
}

.avatar-style {
    margin-bottom: -25px;
    top: 20px;
    position: relative;
    z-index: 1;
}

#user-order-item .row .col a {
    position: relative;
    display: block
}

#user-order-item .row .col a em {
    font-style: normal;
    z-index: 5;
    top: -15px;
    position: absolute;
    margin-left: 3px;
    color: #FFF !important;
    width: 18px;
    text-align: center;
    line-height: 18px;
    padding: 0px;
    padding-left: 0px !important;
    border-radius: 18px;
    margin-top: 7px;
    font-size: 11px;
}

/*底部菜单手动高亮*/
#footer-bar a.active {
    color: #aa8e69
}


/*小组件*/
.buy-btn {
    background-color: rgb(218 34 26) !important;
    padding: 0 10px;
    border-radius: 100px;
}


/*商品详情页*/
#page .single-left-back {
    background-color: #000 !important;
    border-radius: 2.13333vw;
    color: #fff;
    font-size: 4vw;
    height: 8.53333vw;
    line-height: 8.53333vw;
    opacity: .4;
    text-align: center;
    width: 8.53333vw;
    left: 10px;
    top: 10px;
}

.single-content img {
    margin: 0 auto;
    width: 100%;
    height: auto;
    font-size: 0;
}

.single-content figure {
    margin: 0
}

#footer-buy-btn {
    padding: 0 15px 0 0;
    /*margin-left: 15px;*/
}

#footer-buy-btn .btnbug {
    text-align: center;
    float: left;
    overflow: hidden;
    line-height: 38px;
    color: #FFF;
    font-size: 14px;
    top: 12px;
    padding: 0;
    position: relative;
    flex: 1 1 auto;
}

#footer-buy-btn .a {
    background-image: linear-gradient(90deg, #ffbc17, #ff9500);
    border-radius: 13.33333vw 0 0 13.33333vw;
    width: 50%;
    display: inline-block;
}

#footer-buy-btn .b {
    background-image: linear-gradient(90deg, #ff7b02, #ff5f00);
    border-radius: 0 13.33333vw 13.33333vw 0;
    width: 50%;
    display: inline-block;
}

#footer-buy-btn .c {
    background-image: linear-gradient(90deg, #dc3545, #dc3545);
}

/*
  标题风格
*/
.title-style-single {
    border-top: 1px solid #cbcbcb;
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

.title-style-single span {
    background: #f2f2f7;
    position: relative;
    top: -14px;
    padding: 0 20px;
}

/* 容器最大显示两行文字 超出部分省略号展示 */
.text-truncate-1 {
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.text-truncate-2 {
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.text-truncate-3 {
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/*购物车*/
.cart_list_style .stepper {
    right: 15px
}

/*保证列表图片始终是正方形*/
#goods-list .title {
    min-height: 44px;
}

#goods-list img,
.img-1b1 {
    width: 100%; /* 响应式宽度 */
    aspect-ratio: 1 / 1; /* 保持1:1宽高比 */
    object-fit: cover; /* 图片填充方式，保持比例并裁剪 */
    object-position: center; /* 图片居中显示 */
}

.goods_list_nav a {
    display: block;
    line-height: 45px;
    width: 45px;
    background: #da221a;
    margin: 0 auto;
}

.goods_list_nav a i {
    color: #FFF;
}


/*首页橱窗*/
.showcase {
    position: relative;
    overflow: hidden
}

.showcas .title {
}

.showcase-body {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-image: linear-gradient(360deg, rgb(255 255 255) 60%, rgb(245 217 214) 100%);
    border: 2px solid #FFF;
}



/*手动触发分享*/
.share-img {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.share-img::after {
    content: "";
    background-color: #000;
    position: absolute;
    width: 100%;
    display: block;
    height: 100%;
    top: 0;
    opacity: 0.7;
    z-index: -1;
}


/*ajax表单提交显示提交中*/
div:where(.swal2-container) div:where(.swal2-loader) {
    border-color: #dc3545 rgba(0, 0, 0, 0) #dc3545 rgba(0, 0, 0, 0) !important;
}


/*食安好物*/
#menu-api-buy .disabled {
    display: block !important;
}

/* 商品详情弹出层样式 */
.product-detail-content img {
    max-width: 100%;
    height: auto;
}

.product-detail-content p {
    margin-bottom: 0;
    padding: 0;
    /*line-height: 1.6;*/
}

/* 图片预览样式 */
.product-images img:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* SKU卡片样式 */
.sku-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sku-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

/* 属性标签样式 */
.badge.bg-light {
    color: #495057 !important;
    border: 1px solid #dee2e6;
}

/* SKU选择样式优化 */
.sku-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
}

.sku-option:hover {
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.sku-option.selected {
    background-color: #fff2f2;
    border: 1px solid #ffbcbc!important;
}

/*.sku-option.selected::after {*/
/*    content: '✓';*/
/*    position: absolute;*/
/*    top: 8px;*/
/*    right: 8px;*/
/*    color: #007bff;*/
/*    font-weight: bold;*/
/*    font-size: 14px;*/
/*}*/

.sku-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.sku-price-highlight {
    color: #dc3545;
    font-size: 18px !important;
    font-weight: bold;
}
