* {
    font-family: arial, "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", Helvetica, sans-serif !important;
}

.sf-u-font_gothicMB {
    font-weight: 900;
}

#siteName a {
    line-height: 2;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: #000;
}

h2,
h4,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

.card__container {
    position: relative;
    height: 100%;
    aspect-ratio: 272 / 313;
    /* min-width: 272px;
    min-height: 313px; */
    margin: 4px;
    perspective: 1000px;
}

.card__container_2 {
    position: relative;
    height: 100%;
    aspect-ratio: 272 / 400;
    /* min-width: 272px;
    min-height: 400px; */
    margin: 4px;
    perspective: 1000px;
}

.active {
    transform: translateZ(0px) rotateY(180deg) !important;
}

.active::after {
    display: none;
}

.card__container .card {
    margin-top: 4px;
}

.card__container .card.active {
    margin-top: 0px;
}

.card {
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    -moz-backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: translateZ(-80px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    border-radius: 0rem;
}

.card::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* border-radius: 5px; */
    /* box-shadow: 0 14px 50px -4px rgba(0, 0, 0, 0.15); */
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1.4);
}

.card:hover {
    transform: translateZ(-60px);
}

.card:hover::after {
    opacity: 1;
}

.card .side {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    /* border-radius: 5px; */
    /* background-color: transparent; */
}

.card .card__front {
    z-index: 2;
}

.card__front .card__header span {
    margin-right: 10px;
}

.card .card__back {
    transform: rotateY(180deg);
    background-color: #FBF4D7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card__back {
    position: relative;
    text-align: center;
}

.card .card__back .card__back__title {
    width: 100%;
}

.card__back .card__back__subtitle {
    margin: 8px 0;
    width: 68%;
}

.card__back .card__back__product-name {
    width: 100%;
    padding: 4px 0;
    color: #000;
    font-size: 24px;
    line-height: 1.5em;
    font-weight: 900;
    border-top: 3px solid #8A2432;
    border-bottom: 3px solid #8A2432;
    margin-bottom: 30px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

.card .card__back .card__info {
    align-items: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.card__back .btn {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    width: 100%;
    padding: 6px 0;
    background-color: #3C3C43;
    color: #fff !important;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
}

@media only screen and (max-width: 992px) {
    .card .card__back .card__info {
        width: 60%;
    }

    .card__back .card__back__product-name {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .card__back .btn {
        padding: 4px 0;
    }
}

@media only screen and (max-width: 768px) {
    .card .card__back .card__info {
        width: 50%;
    }

    .card__back .card__back__product-name {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .s__cards {
        margin: 0 2%;
    }
}

@media only screen and (max-width: 480px) {
    .card .card__back .card__info {
        width: 60%;
    }

    .card__back .card__back__product-name {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .card__back .btn {
        padding: 4px 0;
    }
}

.col-6 {
    padding: 0;
}

.card__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.card_info {
    background-color: #FBF4D7;
}

.card__header {
    height: 55px;
    background-color: #FBF4D7;
    display: flex;
    justify-content: left;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    padding-left: 10px;
    padding-right: 10px;
    color: #000;
}

@media only screen and (max-width: 480px) {
    .card__header {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 14px;
    }
}

.muji_color {
    color: #7F0019;
}

.muji_FBF4D7 {
    background-color: #FBF4D7;
}


/*----- Swiper -----*/
.swiper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-left: 0;
    /* padding-bottom: 30px; */
    line-height: 100%;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    height: calc(100% - 30px);
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    position: absolute;
    bottom: 0px;
}

.swiper-pagination-bullet-active {
    background: #3C3C43;
    border: 2px solid #fff;
    position: relative;
}

.swiper-pagination-bullet-active::after {
    content: '';
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 12px;
    background: #3C3C43;
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ------------- */

.popup {
    display: none;
}


/* 其他版型css */

.directions_wrapper {
    width: 750px;
    margin: 0 auto;
    padding: 0;
}

.directions_txt {
    font-size: 20px;
    line-height: 180%;
    font-weight: 400;
    text-align: center;
}

.directions_width {
    width: 375px;
    height: 375px;
}

.enlarge-on-hover {
    /* 初始大小 */
    width: 100％;
    /* height: 50px; */
    font-size: 16px;

    cursor: pointer;
    transition: transform 0.3s;
    /* 使用 transition 屬性使變化更平滑 */
}

/* 滑鼠懸停時的效果 */
.enlarge-on-hover:hover {
    transform: scale(1.15);
    /* 放大 15% */
}



.notice_txt {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #3C3C43;
}


.detail__products a {
    opacity: 1;
    color: #3C3C43;
    /* 初始透明度 */
    transition: opacity 0.3s ease;
    /* 添加過渡效果 */
}

.detail__products a:hover {
    opacity: 0.8;
    /* 滑鼠懸停時的透明度 */
}


.btn_20 {
    width: 100%;
}


@media (max-width: 768px) {

    .directions_wrapper {
        width: 100%;
    }

    .directions_width {
        width: 230px;
        height: 230px;
    }

    .directions_txt {
        font-size: 16px;
    }

    .btn_20 {
        width: 90%;
    }



}

.swiper.swiper_style_2 {
    aspect-ratio: 500 / 604;
}

.preview-txt {
    font-size: 12px;
    color: #7F0019;
    display: block;

}