:root {
    --font-size: 12px;
}

.wps {
    overflow: hidden;
}

.has-html5video .fancybox__content {
    height: 90% !important;
}

.form-search {
    max-width: 450px;
    margin: 20px auto 5px auto;
}

/*         .form-search .fa{ font-size:16px; } */
.form-search .form-control {
    height: 40px;
}

.form-search .btn {
    width: 40px;
    height: 40px;
}

.form-search .btn.btn-info {
    border: 1px #ccc solid;
}

.form-search .btn.btn-warning {
    border: 1px #ccc solid;
}

.feeds {
    padding-top: 0px;
}

.feed.view_1 {
    padding: 0px;
}

.feed.view_1 .panel {
    margin-bottom: 10px;
}

.feed.view_1 .panel.panel-default {
    border: 0px;
}

.feed.view_1 .panel .photo {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    cursor: pointer;
}

.feed.view_1 .panel .photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*             border-radius: 16px 16px 0px 0px; */
    object-fit: cover;
}

.feed.view_1 .panel .photo video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*             border-radius: 16px 16px 0px 0px; */
    object-fit: cover;
}

.feed.view_1 .panel .photo .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 32px;
    background: #00000050;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    text-indent: 3px;
    z-index: 1;
}

.feed.view_1 .panel .facebook-app-link {
    position: absolute;
    width: 36px;
    height: 36px;
    right: 75px;
    top: 6px;
    font-size: 36px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    z-index: 10;
}

.feed.view_1 .panel .dom-share {
    position: absolute;
    width: 36px;
    height: 36px;
    right: 46px;
    top: 6px;
    font-size: 36px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    z-index: 10;
}

.feed.view_1 .panel .dom-like-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    left: 12px;
    bottom: 30px;
    font-size: 3672px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    transition: 1s;
    cursor: pointer;
    z-index: 10;
}

.feed.view_1 .panel .dom-like-btn {
    float: left;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 40px;
    text-align: center;
    white-space: nowrap;
}

.feed.view_1 .panel .dom-like-btn.fa {
    font-size: 40px;
}

.feed.view_1 .panel .dom-like-btn.fa-heart {
    color: #fd0000;
}

.feed.view_1 .panel .panel-body {
    padding: 10px;
    font-weight: bold;
}

.feed.view_1 .panel-body .title {
    height: 64px;
    line-height: 32px;
    font-size: 28px;
    margin: 5px 0px;
    color: #333;
    overflow: hidden;
}

.feed.view_1 .panel-body .title.sub {
    width: 70%;
}

.feed.view_1 .panel-body .title.rule {
    height: 160px;
    font-size: 40px;
    text-align: center;
    line-height: 80px;
    align-items: center;
    display: flex;
}

.feed.view_1 .panel-body .duedate {
    width: 70%;
    height: 36px;
    line-height: 36px;
    font-size: 24px;
    text-align: left;
    color: #fe970a;
    white-space: nowrap;
}

.feed.view_1 .panel-body .score_label {
    position: absolute;
    top: 7px;
    right: 10px;
    --color: #f7d00e;
    color: var(--color);
    display: flex;
    align-items: center;
    border: var(--color) 2px solid;
    border-radius: 2px;
    gap: 2px;
    padding: 0px 3px;
}

.feed.view_1 .panel-body .flex {
    position: relative;
    width: 100%;
    display: flex;
}

.feed.view_1 .panel-body .flex .info {
    float: left;
    width: 100%;
}

.feed.view_1 .panel-body .comment {
    position: relative;
    width: 100%;
    display: flex;
    /* align-items: flex-start; */
}

.feed.view_1 .panel-body .comment_price {
    float: left;
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 32px;
    color: #fd0000;
    text-align: center;
    padding-left: 50px;
    white-space: nowrap;
    flex: 1;
}

.feed.view_1 .panel-body .comment_price .qty {
    font-size: 40px;
    line-height: 40px;
}

.feed.view_1 .panel-body .comment_count {
    float: left;
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    text-align: center;
    white-space: nowrap;
    padding: 5px 0px 0px 0px;
    flex: 1;
}

.feed.view_1 .panel-body .comment_count .qty {
    font-size: 36px;
    line-height: 40px;
}

.feed.view_1 .panel-body .comment_buy {
    width: 134px;
    height: 70px;
    line-height: 70px;
    font-size: 34px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.feed.view_1 .panel-body .comment_buy .buy-btn {
    background: #e04b4a;
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}

.feed.view_1 .panel-body .comment_buy .close-btn {
    background: #aaa;
    border-radius: 10px;
    padding: 16px 16px;
    color: #fff;
}

.feed.view_2 {
    padding: 5px;
}

.feed.view_2 .panel {
    border-radius: 8px;
    margin-bottom: 5px;
}

.feed.view_2 .panel.panel-default {
    border: 0px;
}

.feed.view_2 .panel .photo {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    cursor: pointer;
}

.feed.view_2 .panel .photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0px 0px;
    object-fit: cover;
}

.feed.view_2 .panel .photo .card {
    position: absolute;
    bottom: 5px;
    left: -5px;
    width: auto;
    height: 26px;
    font-size: 10px;
    line-height: 26px;
    background: #d61f34;
    color: #fff;
    padding: 1px 8px 0px 8px;
    z-index: 10;
}

.feed.view_2 .panel .photo .card:after {
    position: absolute;
    top: 26px;
    left: 0px;
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-top: 5px solid #920a24;
}

.feed.view_2 .panel .photo .card .price {
    font-size: 20px;
}

.feed.view_2 .panel .photo video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0px 0px;
    object-fit: cover;
}

.feed.view_2 .panel .photo .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    background: #00000050;
    color: #fff;
    border-radius: 25px;
    text-align: center;
    text-indent: 3px;
    z-index: 1;
}

.feed.view_2 .panel .facebook-app-link {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 56px;
    top: 5px;
    font-size: 20px;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    z-index: 10;
}

.feed.view_2 .panel .dom-share {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 25px;
    top: 5px;
    font-size: 20px;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    z-index: 10;
}

.feed.view_2 .panel .dom-like-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    left: 6px;
    bottom: 6px;
    font-size: 36px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    transition: 1s;
    cursor: pointer;
    z-index: 10;
}

.feed.view_2 .panel .dom-like-btn {
    float: left;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
}

.feed.view_2 .panel .dom-like-btn.fa {
    font-size: 20px;
}

.feed.view_2 .panel .dom-like-btn.fa-heart {
    color: #fd0000;
}

.feed.view_2 .panel .panel-body {
    padding: 10px;
    font-weight: bold;
}

.feed.view_2 .panel-body .title {
    height: 32px;
    line-height: 16px;
    font-size: 14px;
    margin: 3px 0px;
    color: #333;
    overflow: hidden;
}

.feed.view_2 .panel-body .title.rule {
    height: 76px;
    font-size: 18px;
    text-align: center;
    line-height: 26px;
    align-items: center;
    display: flex;
}

.feed.view_2 .panel-body .duedate {
    height: 14px;
    line-height: 14px;
    font-size: 12px;
    text-align: left;
    color: #fe970a;
    white-space: nowrap;
}

.feed.view_2 .panel-body .score_label {
    position: absolute;
    top: 5px;
    right: 10px;
    --color: #f7d00e;
    color: var(--color);
    display: flex;
    align-items: center;
    border: var(--color) 2px solid;
    border-radius: 2px;
    gap: 2px;
    padding: 0px 3px;
}

.feed.view_2 .panel-body .comment {
    position: relative;
    width: 100%;
    display: flex;
    /* align-items: flex-start; */
}

.feed.view_2 .panel-body .comment_price {
    float: left;
    width: 100%;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    color: #fd0000;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.feed.view_2 .panel-body .comment_price .qty {
    font-size: 20px;
    line-height: 20px;
}

.feed.view_2 .panel-body .comment_count {
    float: left;
    width: 100%;
    height: 25px;
    line-height: 30px;
    padding: 5px 0px 0px 25px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.feed.view_2 .panel-body .comment_count .qty {
    font-size: 18px;
    line-height: 20px;
}

.feed.view_2 .panel-body .comment_buy {
    float: left;
    width: 52px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.feed.view_2 .panel-body .comment_buy .buy-btn {
    background: #e04b4a;
    border-radius: 5px;
    padding: 8px;
    color: #fff;
}

.feed.view_2 .panel-body .comment_buy .close-btn {
    background: #aaa;
    border-radius: 5px;
    padding: 8px 8px;
    color: #fff;
}

#contextMenu {
    position: absolute;
    bottom: 0px;
    max-width: 500px;
    width: 100%;
    background-color: #fafafa;
    padding: 0px;
    border-radius: 20px 20px 0px 0px;
    list-style: none;
    display: none;
}

#contextMenu li {
    height: 50px;
    color: #4d7bcb;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-radius: 15px;
    background: #eee;
    margin: 5px;
    font-weight: bold;
    cursor: pointer;
}

#contextMenu li a {
    display: block;
}

@media only screen and (max-width: 320px) {
    .feed.view_2 .panel .photo .card {
        height: 22px;
        font-size: 8px;
        line-height: 22px;
    }

    .feed.view_2 .panel .photo .card .price {
        font-size: 16px;
    }

    .feed.view_2 .panel-body .title.rule {
        height: 100px;
    }

    .feed.view_2 .panel-body .comment {
        display: block;
    }

    .feed.view_2 .panel-body .comment_buy {
        width: 100%;
    }

    .feed.view_2 .panel-body .comment_count {
        width: 70%;
    }
}

.tabs {
    padding-top: 5px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 2px solid #ddd;
    position: fixed;
    z-index: 999;
    margin-top: 0;
    font-size: 24px;
    justify-content: center;
    background-color: #f8f8f8;
}

.tab {
    flex: 0 0 auto;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    color:#000;
}

.tab.active {
    color: #d62132;
    border-bottom: solid 2px #d62132;
}

.tab-content {
    display: none;
    padding: 5px;
    overflow-y: auto;
    padding-top: 54px;
}

.tab-content.active {
    display: block;
}

.indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #d62132;
    transition: left 0.3s ease, width 0.3s ease;
}

.card-slider-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.top_card {
    /* 要改寬度改我就好 */
    --height: 300px;
    height: var(--height);
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

.top_card .photo {
    height: calc(var(--height) * 0.8);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.top_card .panel-body {
    height: calc(var(--height) * 0.2);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top_card .photo img {
    height: calc(var(--height) * 0.8);
    object-fit: contain;
}

.top_card > .panel-default {
    border-radius: 8px;
    overflow: hidden;
}

.tabs {
    margin-bottom: 10px;
}

.product {
    width: 100%;
    float: left;
    position: relative;
    background-color: #ffffff;
    padding: 6px;
    margin-bottom: 2px;
    --height_ratio: 35%;
    /* 高度/寬度 */
}

.product-left {
    width: var(--height_ratio);
    float: left;
    position: relative;
}

.product-right {
    width: calc(100% - var(--height_ratio));
    padding-bottom: calc(var(--height_ratio) + 18px);
    float: left;
    position: relative;
}

.product-right-container {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0px 9px;
    display: flex;
    flex-direction: column;
}

.product-discount {
    color: #cf5353;
    font-size: 12px;
}

.product-title {
    color: #555555;
    font-size: 20px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.2;
}

.product-promotion-title {
    color: #d72030;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-weight: 900;
}

.product-detail {
    width: 100%;
    flex-grow: 1;
    float: left;
    display: flex;
    align-items: center;
    align-items: flex-end;
}

.product-data {
    width: 55%;
    float: left;
}

.product-action {
    width: 45%;
    float: left;
    text-align: center;
}

.product-price {
    height: 32px;
    font-size: 18px;
    color: #d62132;
}

.product-sales_volume {
    font-size: 12px;
    color: #333;
}

.product-buy {
    background-color: #d62132;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.product-buy:hover {
    color: #fff;
}

.spu_img_container {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.owl-stage-outer {
    padding-bottom: 18px;
}

.owl-dots {
    margin-top: 0 !important;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}
/* 快速到貨輪播 */
.spu_img_container .owl-theme .owl-dots .owl-dot span {
    width: 5px;
    height: 5px;
    margin: 2px 2px;
}

.spu_img_container .owl-theme .owl-dots .owl-dot.active span {
    background: #d62132;
}

.trash-can {
    display: none;
}

.owl-item {
    position: relative;
}

.item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}

.owl-carousel .owl-item img {
    border-radius: 3px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* banner輪播調整 */
.banners {
    max-width: 1080px;
    margin: auto;
}

.banners .owl-item {
    aspect-ratio: 2 / 1;
}

.banners .owl-carousel .owl-dots {
    bottom: 25px;
    display: flex;
    gap: 10px;
}

.banners .owl-carousel .owl-dot span {
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: block;
}

.banners .owl-stage-outer {
    padding-bottom: 10px;
}

.banners .owl-carousel .item {
    align-items: normal;
}

.dollar_sign {
    font-size: 16px;
    padding: 1px;
    font-weight: 700;
}

.dollar {
    font-size: 26px;
    color: #d62130;
    font-weight: 700;
}

.item_name_tag::before {
    content: var(--content);
    font-size: 11px;
    background-color: #d62132;
    border-radius: 15%;
    width: 2em;
    display: inline-flex;
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    /*    padding:1px;*/
    margin: 0px 0px 3px 0px;
}

#goods_spu_page {
    max-width: 600px;
    margin: 0px auto;
    height: auto;
}

.goods_spu_page_main {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.change_publish {
    right: 0;
    top: 0;
    position: absolute;
    padding: 6px 14px;
}

.alert-tip {
    background-color: #fff1e0;
    font-size: 18px;
    color: #ff0000;
}

.goods_first_class {
    display: flex;
    background-color: #fff;
}

.goods_first_class_main_area {
    width: 90%;
    overflow-x: auto;
    display: flex;
    gap: 3px;
    padding: 12px 5px;
    font-size: 18px;
    justify-content: space-between;
}

.goods_first_class_control_area {
    width: 10%;
    position: relative;
}

.main_area_option {
    padding: 3px 12px;
    background-color: #fff;
    border-radius: 5px;
    color: #000;
    white-space: nowrap;
}

.main_area_option.active {
    background-color: #000;
    color: #fff;
}

.chevron_sign {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.goods_first_class_float {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: 2;
    width: calc(100% + 10px);
    height: calc(100% + 5px);
    transform: translate(-50%, 0);
}

.first_class_lists {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.first_class_lists_control_area {
    display: flex;
    font-size: 16px;
    padding: 10px 10px;
}

.first_class_lists_main_area {
    display: flex;
    --gap: 8px;
    gap: var(--gap);
    padding: 12px 12px;
    font-size: 18px;
    flex-wrap: wrap;
}

.float_main_area_option {
    padding: 6px 12px;
    white-space: nowrap;
    border-radius: 20px;
    color: #000;
    background-color: #dddddd;
    width: calc((100% - (var(--gap) * 2)) / 3);
    /* display: flex;
    justify-content: center; */
    font-size: 15px;

    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
}

.float_main_area_option.active {
    color: #fff;
    background-color: #d62132;
}

.backdrop {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.goods_second_wrapper {
    overflow: hidden;
    transition: height 0.3s ease;
}
.goods_second_class {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.goods_second_class_main_area {
    display: flex;
    flex-wrap: wrap;
    max-height: calc(41px * 3);
    overflow-y: auto;
}

.goods_second_class_main_area.full {
    height: auto;
}

.goods_second_class_control_area {
    text-align: center;
    color: #d62132;
    padding: 5px 0;
}

.goods_second_class_option {
    border: #aaa 2px solid;
    color: #000;
    border-radius: 3px;
    margin: 5px calc(10% / 6);
    padding: 3px 0;
    width: 30%;
    text-align: center;
    font-size: 14px;
}

.goods_second_class_option.active {
    border: #d62132 2px solid;
    color: #d62132;
}

.goods_content_area {
    overflow-y: auto;
    position: relative;
    flex-grow: 1;
    height: 0px;
}

.loading_sign {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 30%;
    background-color: white;
    box-shadow: 0 2px 10px 2px #999;
    z-index: 3;
}

.loading_circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: conic-gradient(white 60deg, #666 60deg);
    animation: loading_circle 1.5s infinite linear;
}

.circle_mask {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: white;
}

@keyframes loading_circle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
