html, body {
    height: 100%
}

.footer-area {
    background: #f2f2f2 !important;
}

.bar {
    height: 40px;
    background: #f7f7f7
}

.bar-div {
    height: 40px;
    line-height: 40px;
    text-align: left;
    font-size: 14px
}

.box-height {
    min-height: 1000px
}

.box-right-height {
    height: 1200px;
    margin-bottom: 100px;
}

.goods-top-row {
    min-height: 0;
    margin-top: 40px;
}

.product-gallery-col,
.product-info-col {
    min-width: 0;
}

.carousel {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    line-height: 0;
}

.carousel .goods-main-img,
.carousel img,
.carousel .goods-main-video {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    object-fit: contain;
}

.carousel .goods-main-video {
    max-height: 420px;
    background: #000;
}

.goods-slide-video {
    position: relative;
}

.goods-video-thumb-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    pointer-events: none;
}

.goods-video-thumb-label {
    display: block;
    width: 65px;
    height: 65px;
    line-height: 65px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
}

.goods-title {
    font-size: 20px;
    line-height: 26px;
    color: #333;
}
.slider-active {
    border: 1px solid #8b6f4e
}
.goods-imgs {
    width: 100%;
    height: 70px;
    margin-top: 10px;
}

.goods-imgs img {
    width: 65px;
    height: 65px;
    margin-left: 12px;
    list-style: none;
    float: left;
    border: 2px solid transparent;
}

.money {
    height: 78px;
    margin-top: 18px;
    background: url(/static/home/default/image/money-back.png) 50%/cover no-repeat;
    color: #fff;
}

.money-wrap {
    flex: 1;
    min-width: 0;
    padding-left: 32px;
    padding-top: 5px;
    width: 300px
}

.money-wrapper del {
    margin-bottom: 10px;
    font-size: 14px;
}

.price span {
    font-weight: 700;
    font-size: 30px;
}

.sales {
    text-align: center;
    padding-top: 15px;
    position: relative;
}

.sales:before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 12px;
    left: 0;
    width: 1px;
    border-left: 1px solid hsla(0, 0%, 100%, .24)
}

.coupon-wrapper {
    background-color: #f7f7f7;
    height: 150px;
    width: 98%
}

.label {
    font-size: 12px;
    float: right;
    color: #5a5a5a;
    padding-top: 20px
}

.quan {
    height: 100%;
    padding: 15px 0;
    position: relative
}

.quan li {
    list-style: none;
    height: 24px;
    margin-top: 5px
}

.cell {
    width: 165px;
    height: 24px;
    background: url(/static/home/default/image/quan.png) 0 0/100% 100% no-repeat;
    font-size: 13px;
    color: #fff;
    line-height: 24px;
    float: left
}

.cell div {
    float: left
}

.cell-left {
    width: 65px;
    text-align: center
}

.cell-right {
    width: 100px;
    color: #8b6f4e;
    text-align: center
}

.use-time {
    font-size: 12px;
    color: #727272;
    float: left;
    margin-left: 10px;
    margin-top: 3px;
}

.take {
    font-size: 12px;
    color: #8b6f4e;
    float: right;
    position: relative;
    cursor: pointer;
    margin-top: 3px;
    border-bottom: 1px dotted #8b6f4e;
}

.attribute {
    min-height: 70px;
    width: 98%;
    font-size: 12px;
    color: #282828;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}
.attribute-warning {
    border: 1px solid #F40 !important;
}

.item {
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.item-name {
    width: 100%;
    float: none;
    text-align: left;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.item-items {
    width: 100%;
    float: none;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.item-items li {
    list-style: none;
    float: none;
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d3d3d3;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
    font-size: 12px;
}

.item-items li:hover {
    border: 1px solid #8b6f4e;
    color: #8b6f4e
}

/* 規格過多：仿 1688 固定高度 + 捲軸（雙欄） */
.item-items.item-items-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 6px 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f0f0f0;
}

.item-items.item-items-scroll::-webkit-scrollbar {
    width: 6px;
}

.item-items.item-items-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.item-items.item-items-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.item-items.item-items-scroll li {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.item.item-has-scroll .item-name .spec-scroll-hint {
    font-weight: 400;
    font-size: 11px;
    color: #999;
    margin-left: 6px;
}

.item-active {
    border: 1px solid #8b6f4e !important;
    color: #8b6f4e
}
.item-disabled {
    background-color: #f7f7f7;
    border: 1px dashed #ccc !important;
    color: #999;
}
.item-active:after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    background: url(/static/home/default/image/sys-item-selected.gif) no-repeat right bottom;
    pointer-events: none;
}

.buy-num {
    width: 98%;
    height: 38px
}

.btn-numbox {
    overflow: hidden;
    margin-top: 20px;
}

.btn-numbox li {
    float: left;
}

.btn-numbox li .number,
.kucun {
    display: inline-block;
    font-size: 12px;
    color: #5a5a5a;
    vertical-align: sub;
}

.btn-numbox .count {
    overflow: hidden;
    margin-left: 10px;
}

.btn-numbox .count .num-jian,
.input-num,
.num-jia {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 23px;
    text-align: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border: 1px solid #e6e6e6;
}

.btn-numbox .count .input-num {
    width: 58px;
    height: 28px;
    color: #333;
    border-left: 0;
    font-size: 13px;
    border-right: 0;
}

.btn-numbox li {
    list-style: none;
}

.count li {
    list-style: none;
}

.goods-btn {
    width: 158px;
    height: 50px;
    border: 1px solid #8b6f4e;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #8b6f4e;
}

.goods-btn.cart {
    background-color: #8b6f4e;
    color: #fff;
}

.goods-detail {
    min-height: 400px;
    width: 100%;
    margin-top: 70px;
}

.goods-detail .content-bar {
    width: 100%;
    height: 56px;
    background: #f7f7f7;
}

.goods-detail .content-bar div {
    color: #333;
    float: left;
    width: 100px;
    height: 56px;
    text-align: center;
    line-height: 56px;
    cursor: pointer;
}

.goods-detail .content-bar div:hover {
    color: #8b6f4e
}

.goods-detail .content-bar div:after {
    content: "";
    border-right: 1px solid #d9d9d9;
    position: relative;
    left: 15px;
}

.goods-detail .content-bar div:nth-child(3):after {
    content: "";
    border-right: none;
}

.bar-active {
    border-top: 3px solid #8b6f4e;
    color: #8b6f4e !important;
    position: relative;
    top: -3px;
}

#attributes {
    margin-bottom: 10px;
    padding: 10px;
    overflow: hidden;
}

#attributes .attributes-list {
    clear: both;
    overflow: hidden;
}

#attributes ul {
    padding: 0 15px;
}

#attributes .attributes-list li {
    display: inline;
    float: left;
    width: 206px;
    height: 24px;
    margin-right: 20px;
    overflow: hidden;
    text-indent: 5px;
    line-height: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 10px;
    color: #666;
}

.good-content {
    padding: 50px;
    width: 100%;
    min-height: 300px;
    overflow-x: auto;
    box-sizing: border-box;
}

.good-content img {
    max-width: 100% !important;
    height: auto !important;
}

.comment .comment-info {
    overflow: hidden;
    zoom: 1;
    padding: 20px 0;
}

.comment .comment-info .comment-percent {
    width: 90px;
    padding: 15px 0 0 40px;
    float: left;
}

.comment .comment-info .percent-tit {
    font-size: 12px;
    color: rgb(102, 102, 102);
    font-weight: 400;
}

.comment .comment-info .percent-con {
    line-height: 110%;
    font-size: 45px;
    color: rgb(228, 57, 60);
    font-family: arial;
}

.comment .comment-info .percent-con span {
    font-size: 23px;
}

.comment .comments-list {
    min-height: 300px;
}

.filter-list {
    overflow: hidden;
}

.tab-main {
    height: 32px;
    text-align: center;
}

.tab-main li {
    list-style: none;
    float: left;
    padding: 6px;
    width: 100px;
    border: none;
    background: #f7f7f7;
    margin-left: 10px;
    color: #282828;
    cursor: pointer;
}

.current {
    color: #fff !important;
    background: #8b6f4e !important;
}

.comment .comment-item {
    zoom: 1;
    padding: 15px;
    border-bottom: 1px solid rgb(221, 221, 221);
}

.comment .comment-item .user-column {
    width: 140px;
    float: left;
}

.comment .comment-item .user-info {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment .comment-item .user-info img {
    border-radius: 50%;
    margin-right: 5px;
}

.comment .comment-item .user-level {
    padding-top: 3px;
}

.comment .comment-item .comment-column {
    margin-left: 150px;
}

.comment .comment-item .comment-star {
    width: 78px;
    height: 14px;
    background: url("/static/home/default/image/star.png") no-repeat;
}

.comment .comment-item .star0 {
    background-position: -80px 0px;
}

.comment .comment-item .star1 {
    background-position: -64px 0px;
}

.comment .comment-item .star2 {
    background-position: -48px 0px;
}

.comment .comment-item .star3 {
    background-position: -32px 0px;
}

.comment .comment-item .star4 {
    background-position: -16px 0px;
}

.comment .comment-item .star5 {
    background-position: 0px 0px;
}

.comment .comment-item .comment-con {
    font-size: 14px;
    padding: 10px 0px;
    line-height: 180%;
    color: rgb(51, 51, 51);
}

.comment .comment-item .pic-list {
    padding-bottom: 15px;
}

.comment .comment-item .pic-list a {
    display: inline-block;
    position: relative;
}

.comment .comment-item .pic-list img {
    border: 1px solid rgb(226, 226, 226);
    padding: 1px;
    margin-right: 6px;
}

.comment .comment-message::after {
    content: ".";
    height: 0px;
    visibility: hidden;
    display: block;
    clear: both;
}

.comment .comment-item .order-info {
    float: left;
    color: rgb(153, 153, 153);
}

.comment .comment-item .comment-op {
    float: right;
}

.comment .comment-item .comment-op a {
    display: inline-block;
    margin-left: 25px;
    color: rgb(102, 102, 102);
}

.comment .comment-item .order-info span {
    margin-right: 20px;
}

.comment .comment-item .recomment-con {
    font-size: 14px;
    margin-top: 12px;
    border-top: 1px solid rgb(240, 240, 240);
}

.comment .comment-item .recomment {
    padding: 12px 0px 5px;
    color: rgb(255, 86, 28);
    line-height: 170%;
}

.comment .comment-item .comment-time {
    color: rgb(153, 153, 153);
    clear: both;
}

.box-right-height .title {
    height: 60px;
    font-size: 16px;
    line-height: 60px;
    text-align: center;
    color: #5a5a5a;
}

.title span {
    position: relative;
}

.title span:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50px;
    width: 35px;
    height: 1px;
    border-top: 1px solid #efefef;
    transform: translateY(-50%);
}

.title span:after {
    left: 100%;
    margin-left: 18px;
}

.title span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35px;
    height: 1px;
    border-top: 1px solid #efefef;
    transform: translateY(-50%);
}

.recomment-list .item {
    display: block;
    width: 170px;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.recomment-list .item .image {
    width: 170px;
    height: 170px;
    text-align: center;
}

.recomment-list .item .text .rec-money {
    font-weight: 700;
    font-size: 14px;
    color: #8b6f4e;
}

.recomment-list .item .text .rec-money span {
    font-size: 18px;
    font-weight: 700;
    color: #8b6f4e;
}

.recomment-list .item .text .rec-sales {
    font-size: 12px;
    color: #888;
}

.acea-row.row-between-wrapper {
    -o-box-align: center;
    align-items: center;
    -o-box-pack: justify;
    justify-content: space-between;
}

.acea-row {
    display: flex;
    -webkit-box-lines: multiple;
    -moz-box-lines: multiple;
    -o-box-lines: multiple;
    flex-wrap: wrap;
}

.hot-txt {
    color: #5a5a5a;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hot-txt:hover {
    color: #8b6f4e !important;
}

@-webkit-keyframes bounce-up {
    25% {
        -webkit-transform: translateX(10px);
    }
    50%,
    100% {
        -webkit-transform: translateX(0);
    }
    75% {
        -webkit-transform: translateX(-10px);
    }
}

@keyframes bounce-up {
    25% {
        transform: translateX(10px);
    }
    50%,
    100% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-10px);
    }
}

.animate-bounce-up {
    -webkit-animation: bounce-up 0.1s linear 3;
    animation: bounce-up 0.1s linear 3;
}

.more-comment {
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    display: block;
    width: 100px;
    background: #eee;
    margin-left: 45%;
}

.copy-right-area {
    background: #f2f2f2 !important;;
}

@media (max-width: 991.98px) {
    .box-height,
    .box-right-height {
        height: auto !important;
        min-height: 0;
    }

    .box-right-height {
        margin-bottom: 40px;
        margin-top: 24px;
    }

    .product-info-col {
        margin-top: 20px;
    }

    .carousel {
        max-width: 100%;
    }

    .money {
        width: 100% !important;
    }

    .money-wrap {
        width: auto;
        padding-left: 16px;
    }

    .goods-detail {
        margin-top: 32px;
    }

    .good-content {
        padding: 20px 12px;
    }

    .bar-div {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.pearl-goods-title {
    font-family: "Noto Serif TC", "Songti TC", serif;
    letter-spacing: 0.04em;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    color: #3d342c;
}
.pearl-goods-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: #7a7168;
    line-height: 1.85;
    white-space: pre-line;
}
.pearl-bucha-pc .pearl-bucha-panel {
    border: 1px solid #e8e2d9;
    margin-bottom: 10px;
    background: #fff;
}
.pearl-bucha-pc summary {
    padding: 14px 18px;
    cursor: pointer;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-weight: 600;
    list-style: none;
}
.pearl-bucha-pc summary::-webkit-details-marker { display: none; }
.pearl-bucha-body {
    padding: 0 18px 18px;
    line-height: 1.7;
    color: #555;
}
.pearl-bucha-list {
    padding-left: 0;
    list-style: none;
}
.pearl-bucha-list li {
    padding: 4px 0;
}

/* 珍珠主題價格條（覆蓋紅色 money-back，不依賴 pearl-theme 是否更新） */
.row.money.pearl-price-panel {
    height: auto;
    min-height: 0;
    margin-top: 22px;
    padding: 18px 22px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* 勿加 background-image:none，會蓋掉漸層導致淺色字在米白底上看不見 */
    background: linear-gradient(105deg, #6f5840 0%, #8b6f4e 48%, #a08968 100%) !important;
    border-radius: 6px;
    color: #faf8f5;
}

.pearl-detail-info .pearl-price-panel .money-wrap {
    padding-left: 0;
    padding-top: 0;
    width: auto;
}

.pearl-price-panel .money-wrap del {
    display: block;
    margin-bottom: 8px;
}

.pearl-price-panel .money-wrap del {
    color: rgba(250, 248, 245, 0.78);
}

.pearl-price-panel .price,
.pearl-price-panel .price span {
    color: #faf8f5;
}

.pearl-price-sales.sales {
    color: #faf8f5;
}

.pearl-price-sales.sales:before {
    border-left-color: rgba(250, 248, 245, 0.28);
}

.pearl-pc-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.pearl-pc-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #6f5840;
    background: #ede6dc;
    border: 1px solid #e8e2d9;
    border-radius: 2px;
}

.pearl-goods-crumb {
    background: #faf8f5 !important;
    border-bottom: 1px solid #e8e2d9;
}

.pearl-goods-crumb .bar-div a {
    color: #8b6f4e;
    text-decoration: none;
}

.pearl-goods-crumb .sep {
    margin: 0 8px;
    color: #b0a99f;
}

.pearl-goods-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pearl-goods-side {
    margin-top: 40px;
    border: 1px solid #e8e2d9 !important;
    background: #fff;
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .goods-btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }

    .goods-imgs img {
        width: 56px;
        height: 56px;
        margin-left: 6px;
    }

    .price span {
        font-size: 24px;
    }

    #attributes .attributes-list li {
        width: 100%;
        margin-right: 0;
    }

    .item-items.item-items-scroll {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
}