/** 通用 */
html {
    scroll-behavior: smooth;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

h4 {
    font-size: 2.5rem;
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    /* font-weight: bold; */
    unicode-bidi: isolate;
}

.alert {
    margin-top: 10rem;
}

/** /通用 */

/** nav */
.topbar {
    position: fixed;
    top: 0;
}

.topbar .navbar-default {
    background: rgb(255, 255, 255);
}

.topbar .navbar-default ul li a {
    border: none;
}

.navbar-header .navbar-toggle {
    color: #000;
    font-size: 24px;
    background: none;
}

.navbar-header .navbar-toggle {
    color: #000;
    font-size: 24px;
    background: none;
}

.navbar-toggle:hover {
    background: none;
}

.loginbar-box ul {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 16px;
}

/** /nav */

/** breadcrumbs */
.breadcrumbs {
    margin-top: 10rem;
}

.alert:not(:empty)~.breadcrumbs {
    /* alert 區塊有內容時，將 breadcrumbs 區塊的 margin 設定為 0 */
    margin-top: 0;
}

/** /breadcrumbs */

/** 首頁 carousel custom */
.owl-carousel-outer-layer {
    padding-top: 10rem;
}

.owl-carousel-box {
    /* padding: 45px 40px 0 40px; */
    position: relative;
}

/* .owl-carousel-box .main-swiper-nav-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 379px;
    height: 428px;
    z-index: 50;
} */

.owl-carousel-box .roundImgBox {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 300px;
    height: 300px;
    z-index: 99;
    display: block;
    background-image: url("../img/bg/round3.png");
    background-size: cover;
}

@media screen and (max-width: 1400px) {
    .owl-carousel-box .roundImgBox {
        top: -10px;
        right: -10px;
        width: 280px;
        height: 280px;
    }
}

@media screen and (max-width: 1200px) {
    .owl-carousel-box .roundImgBox {
        top: -8px;
        right: -8px;
        width: 240px;
        height: 240px;
    }
}

@media screen and (max-width: 992px) {
    .owl-carousel-box .roundImgBox {
        display: none;
    }
}

.owl-carousel-box .carousel-btn {
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    /* border-radius: 50%; */
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.owl-carousel-btn-box {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 1000;
}

.owl-carousel-btn-box>.carousel-btn.right {
    background-image: url('../img/icons/arrow_R.svg');
    float: none;
}

.owl-carousel-btn-box>.carousel-btn.left {
    background-image: url('../img/icons/arrow_L.svg');
    margin-right: 1rem;
}

.owl-item {
    padding: 0px;
}

.owl-carousel .owl-item .img-responsive {
    object-fit: cover;
}


/*** RWD 輪播顯示圖片切換 */
.owl-item .img-mobile {
    display: none !important;
}

/*** /RWD 輪播顯示圖片切換 */

/** /首頁 carousel custom */

/* 首頁 owl carousel套件，設定or覆蓋樣式 */
.owl-stage-outer {
    height: 600px;
    /* border-radius: 99rem; */
}

.owl-stage-outer * {
    height: 100%;
}

/* /首頁 owl carousel套件，設定or覆蓋樣式 */

/** 首頁 我們堅持 */
.swiperPaginationBox {
    padding: 30px 0;
    margin-bottom: 10px;
}

.blockTitleBox .blockTitle.gold {
    color: #D2AD4B;
}

.blockTitleBox .blockTitle {
    font-size: 35px;
    font-family: HGPMinchoE;
}

/* .blockPSpacing {
    padding-top: 20px;
	padding-bottom: 100px;
} */
.blockTitleBox {
    margin-top: 20px;
}

.blockTitleBox .blockTitleBgBox .blockTitleBg {
    color: rgba(112, 112, 112, 0.0901960784);
    font-size: 150px;
    font-family: Sitka;
    margin-top: -60px;
}

.blockTitleBgHtml {
    font-size: 115px !important;
    margin-top: -40px !important;
}

.dutyBox {
    padding: 30px 40px;
    border-right: 2px solid #D1AD4B;
    min-height: 500px;
}

.dutyBox:last-child {
    border-right: none;
}

@media screen and (max-width: 992px) {
    .dutyBox:nth-child(even) {
        border-right: none;
    }
}

@media screen and (max-width: 768px) {
    .dutyBox {
        padding: 60px 40px;
        min-height: -moz-fit-content;
        min-height: fit-content;
        border-right: none;
        border-bottom: 1px solid #D1AD4B;
    }
}

.dutyBox .dutyBoxbg {
    width: 171px;
    height: 134px;
    aspect-ratio: 171/134;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.dutyBox .dutyBoxbg.dutyBoxbg01 {
    background-image: url("../img/iconBg/dutyBoxbg01.png");
}

.dutyBox .dutyBoxbg.dutyBoxbg02 {
    background-image: url("../img/iconBg/dutyBoxbg02.png");
}

.dutyBox .dutyBoxbg.dutyBoxbg03 {
    background-image: url("../img/iconBg/dutyBoxbg03.png");
}

.dutyBox .dutyBoxbg.dutyBoxbg04 {
    background-image: url("../img/iconBg/dutyBoxbg04.png");
}

.dutyBox .dutyBoxTitle {
    font-size: 24px;
    color: #A06400;
    font-family: HGPMinchoE;
    margin-bottom: 0px;
}

.dutyBox .dutyBoxContent {
    line-height: 30px;
    margin-top: 50px;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/** /首頁 我們堅持 */

/** 首頁 證書區塊 */
.blockMSpacing {
    margin-top: 60px;
}

.sgsBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sgsBox .sgsBoxTitle {
    width: -moz-fit-content;
    width: fit-content;
    background: #F8F8F8;
    padding: 10px 20px;
    border-radius: 99rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sgsBox .sgsBoxTitle .triangle-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #DD8C06;
}

.sgsBox .sgsBoxTitle .sgsTitle {
    font-size: 16px;
    color: #A06400;
    font-family: HGPMinchoE;
    margin-bottom: 0px;
    margin-left: 10px;
    margin-right: 10px;
}

.sgsBox .sgsBoxTitle .triangle-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #DD8C06;
}

/** /首頁 證書區塊 */

/** 首頁 歷史沿革 區塊 */
.blockMSpacingXL {
    margin-top: 100px;
}

.secSwiper .swiper-wrapper {
    margin-bottom: 60px;
}

.secSwiper .swiper-scrollbar {
    margin-top: 50px;
}

.timelineBox {
    width: 100%;
    height: 100%;
    background: antiquewhite;
    aspect-ratio: 1 / 1;
    border-radius: 99rem;
}

.timelineBox .timelineImgBox {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 99rem;
}

.timelineBox .timelineImgBox .timelineImg {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timelineBox {
    width: 100%;
    height: 100%;
    background: antiquewhite;
    aspect-ratio: 1/1;
    border-radius: 99rem;

}

.timelineBox .timelineImgBox {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 99rem;
}

.timelineBox .timelineImgBox .timelineImg {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.timelineBox .timelineTextBox {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 99rem;
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .timelineBox .timelineTextBox {
        padding: 30px 20px 20px;
    }
}

.timelineBox .timelineTextBox::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 20%;
    background: #ffffff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timelineBox .timelineTextBox .year {
    font-size: 20px;
    color: #ffffff;
    background: #A06400;
    width: -moz-fit-content;
    width: fit-content;
    padding: 8px 20px;
    border-radius: 99rem;
    font-family: HGPMinchoE;
    margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
    .timelineBox .timelineTextBox .year {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

.timelineBox .timelineTextBox .text {
    font-size: 16px;
    line-height: 32px;
    color: #653F00;
}

@media screen and (max-width: 768px) {
    .timelineBox .timelineTextBox .text {
        font-size: 12px;
    }
}

.secSwiper .swiper-scrollbar-drag {
    background: #A06400;
}

/** /首頁 歷史沿革 區塊 */

/** 首頁 關於卡吉 */
.blockPSpacing {
    padding-top: 60px;
}

.blockTitleBox {
    margin-top: 20px;
}

.blockTitleBox .blockTitle.orange {
    color: #E8380C;
}

.blockTitleBox .blockTitle {
    font-size: 35px;
    font-family: HGPMinchoE;
}

.blockLine-wrappe {
    display: flex;
    justify-content: center;
}

.blockLine {
    width: 2px;
    height: 80px;
    background: #E8380C;
    margin: 25px auto;
}

.containerText {
    max-width: 800px;
    margin: 0 auto;
}

.blockLineText {
    font-size: 60px;
    color: #E8380C;
    font-family: HGPMinchoE;
}

/** /首頁 關於卡吉 */

/** 首頁 商品區塊 */
.productBigBlock {
    margin-bottom: 60px;
}

.productBigBlock>div:first-child {
    padding: 0 15px;
}

.productBlockTitle {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.productBlockTitle h1 {
    font-size: 20px;
    color: #850000;
    font-weight: 600;
    margin: 0;
}

.productBlockTitle p {
    line-height: 1;
    margin-bottom: 0;
    margin-left: 10px;
    border-left: 1px solid #850000;
    font-weight: 600;
    padding-left: 10px;
}

.productBox {
    text-decoration: none;
    display: block;
    /* margin-bottom: 30px; */
}

.productBox .productImgBox {
    width: 100%;
    height: auto;
    /* aspect-ratio: 16 / 9; */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.productBox .productImgBox .img-responsive {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.productBox .productImgBox .productTag {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 65px;
    height: 65px;
    background: #E8380C;
    color: #ffffff;
    padding: 10px;
    border-radius: 99rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.productBox .productImgBox .productTag .productTagText {
    font-size: 14px;
    margin: 0px;
}

.productBox .productTitle {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #553500;
}

.productBox .productContent {
    font-size: 16px;
    color: #553500;
    line-height: 24px;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 30px;
}

.btnKG {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #E8380C;
    color: #E8380C;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    margin: 4px auto;
    cursor: pointer;
    border-radius: 99rem;
}

.btnKG i {
    font-size: 16px;
    margin-right: 5px;
}

.btnKG p {
    margin-bottom: 0;
}

.productBox:hover .btnKG {
    background-color: #E8380C;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* 调整过渡时间 */
}

/** /首頁 商品區塊 */

/** 首頁 footer區塊 */
.footerBg {
    background-color: #ffffff;
    background-image: url("../img/bg/bgFooter.png");
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 40px;
    position: relative;
}

.footerBg::after {
    content: "";
    position: absolute;
    top: -200px;
    left: 0;
    width: 100%;
    height: 200px;
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
    z-index: -1000;


}

.footerBg .row {
    display: flex;
    flex-wrap: wrap;
}

.contactBox {
    background: rgba(255, 255, 255, 0.3725490196);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #E8380C;
    padding: 15px 20px;
    border-radius: 20px;
    height: 100%;
}

.mapBox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mapBox .map {
    margin-right: 20px;
}

.mapBox .mapText {
    margin-top: 20px;
    color: #E8380C;
}

.mapBox .mapText h4 {
    margin: 0 0 20px;
    font-weight: bold;
}

.addfriendBox {
    display: flex;
    justify-content: flex-start;
    align-items: start;
}

.addfriendBox .addfriend {
    margin-right: 40px;
}

.addfriendBox .addfriend .addfriendImg {
    width: 100%;
    height: 100%;
    max-height: 200px;
    -o-object-fit: contain;
    object-fit: contain;
}

.addfriendBox .addfriendText {
    margin-top: 20px;
}

.addfriendBox .addfriendText h4 {
    margin: 0 0 20px;
    font-weight: bold;
}

.addfriendBox .addfriendText p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.btnKG:hover {
    background-color: #E8380C;
    color: #ffffff;
}

.footer {
    margin-top: 120px;
    padding: 20px 0;
}

.footer .footerLogo {
    margin-bottom: 30px;
}

.footer .footerLogo .footerLogoImg {
    max-width: 120px;
    display: block;
}

.footerInfoBox {
    margin: 20px auto;
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    .footerInfoBox {
        flex-direction: column;
        align-items: center;
    }
}

.footerInfo p {
    color: #c3996b;
    font-size: 16px;
    margin-right: 12px;
}

.footerInfo p:last-child {
    margin-right: 0;
}

.footerInfo {
    margin-right: 20px;
    position: relative;
}

.footerInfo::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #c3996b;
}

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

    .footerInfo {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .footerInfo::after {
        display: none;
    }
}

.footerLink a {
    font-size: 16px;
    margin-right: 10px;
}

.footer .footerSocial .socialItem {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.footer .footerSocial .socialItem .socialItemImgBox {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.footer .footerSocial .socialItem .socialItemImgBox:hover .socialItemImgH {
    opacity: 1;
    transition: 0.5s;
}

.footer .footerSocial .socialItem .socialItemImgBox .socialItemImg {
    display: block;
}

.footer .footerSocial .socialItem:last-child {
    margin-right: 0;
}

.footer .footerSocial .socialItem .socialItemImgBox .socialItemImgH {
    opacity: 0;
    transition: 0.5s;
}

.footer .footerSocial .socialItem .socialItemImgBox .socialItemImg,
.footer .footerSocial .socialItem .socialItemImgBox .socialItemImgH {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}


.copyRight {
    padding: 8px 0 20px;
}

.copyRight .elementorBox {
    display: block;
    text-decoration: none;
}

.copyRight .elementorBox .elementorText {
    font-size: 15px;
    color: #717171;
}

/** /首頁 footer區塊 */

/** RWD 設定 */
@media (max-width: 992px) {
    .owl-carousel-outer-layer {
        padding-top: 10rem;
    }

    /*** RWD 輪播顯示圖片切換 */
    .owl-carousel .owl-item img {
        display: block;
    }

    .owl-carousel .owl-item .img-responsive {
        display: none;
    }

    .owl-item .img-pc {
        display: none;
    }

    .owl-item .img-mobile {
        display: block !important;
    }

    /*** /RWD 輪播顯示圖片切換 */


    .sgsBox {
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .footerBg .row>div {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .owl-carousel-outer-layer {
        /* max-width: 540px; */
        margin: auto;
    }

    .owl-carousel-box .main-swiper-nav-box {
        display: none;
    }

    .owl-stage-outer {
        height: 400px;
        /* border-radius: 50%; */
    }

    .blockTitleBox .blockTitleBgBox {
        margin-top: -30px;
    }

    .blockTitleBox .blockTitleBgBox .blockTitleBg {
        font-size: 40px;
        margin-top: 0;
    }

    .blockTitleBox .blockTitle {
        font-size: 24px;
        line-height: 1.2;
    }

    .blockPSpacing {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .timelineBox .timelineTextBox {
        padding: 30px 20px 20px;
    }

    .timelineBox .timelineTextBox .year {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .timelineBox .timelineTextBox .text {
        font-size: 12px;
    }

    .blockLineText {
        font-size: 40px;
    }

    .mapBox {
        flex-direction: column;
    }

    .mapBox .mapText h4,
    .addfriendBox .addfriendText h4 {
        font-size: calc(1.75rem + .3vw);
    }

    .mapBox .mapText p,
    .addfriendBox .addfriendText p {
        font-size: calc(1.275rem + .3vw);
    }
}

@media (max-width: 576px) {
    .owl-stage-outer {
        height: 250px;
    }

    .owl-carousel-btn-box {
        padding-left: 1rem;
    }

    .blockTitleBox .blockTitle {
        font-family: HGPMinchoE;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.2;
    }
}

/* @media (max-width: 576px) {
    .owl-stage-outer {
        height: 350px;
    }
}

@media (max-width: 400px) {
    .owl-stage-outer {
        height: 310px;
    }
} */

/** /RWD 設定 */

@media (min-width: 576px) {

    .container-sm,
    .container {
        max-width: 540px;
    }
}


@media (min-width: 768px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {

    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1320px;
    }
}


/** /Flex */

.bs5row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) / -2);
    margin-left: calc(var(--bs-gutter-x) / -2);
}

.bs5row>* {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-top: var(--bs-gutter-y);
}

.bs5col {
    flex: 1 0 0%;
}

.bs5row-cols-auto>* {
    flex: 0 0 auto;
    width: auto;
}

.bs5row-cols-1>* {
    flex: 0 0 auto;
    width: 100%;
}

.bs5row-cols-2>* {
    flex: 0 0 auto;
    width: 50%;
}

.bs5row-cols-3>* {
    flex: 0 0 auto;
    width: 33.3333333333%;
}

.bs5row-cols-4>* {
    flex: 0 0 auto;
    width: 25%;
}

.bs5row-cols-5>* {
    flex: 0 0 auto;
    width: 20%;
}

.bs5row-cols-6>* {
    flex: 0 0 auto;
    width: 16.6666666667%;
}

.bs5col-auto {
    flex: 0 0 auto;
    width: auto;
}

.bs5col-1 {
    flex: 0 0 auto;
    width: 8.3333333333%;
}

.bs5col-2 {
    flex: 0 0 auto;
    width: 16.6666666667%;
}

.bs5col-3 {
    flex: 0 0 auto;
    width: 25%;
}

.bs5col-4 {
    flex: 0 0 auto;
    width: 33.3333333333%;
}

.bs5col-5 {
    flex: 0 0 auto;
    width: 41.6666666667%;
}

.bs5col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.bs5col-7 {
    flex: 0 0 auto;
    width: 58.3333333333%;
}

.bs5col-8 {
    flex: 0 0 auto;
    width: 66.6666666667%;
}

.bs5col-9 {
    flex: 0 0 auto;
    width: 75%;
}

.bs5col-10 {
    flex: 0 0 auto;
    width: 83.3333333333%;
}

.bs5col-11 {
    flex: 0 0 auto;
    width: 91.6666666667%;
}

.bs5col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .bs5col-sm {
        flex: 1 0 0%;
    }

    .bs5row-cols-sm-auto>* {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5row-cols-sm-1>* {
        flex: 0 0 auto;
        width: 100%;
    }

    .bs5row-cols-sm-2>* {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5row-cols-sm-3>* {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5row-cols-sm-4>* {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5row-cols-sm-5>* {
        flex: 0 0 auto;
        width: 20%;
    }

    .bs5row-cols-sm-6>* {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-sm-auto {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5col-sm-1 {
        flex: 0 0 auto;
        width: 8.3333333333%;
    }

    .bs5col-sm-2 {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-sm-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5col-sm-4 {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5col-sm-5 {
        flex: 0 0 auto;
        width: 41.6666666667%;
    }

    .bs5col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5col-sm-7 {
        flex: 0 0 auto;
        width: 58.3333333333%;
    }

    .bs5col-sm-8 {
        flex: 0 0 auto;
        width: 66.6666666667%;
    }

    .bs5col-sm-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .bs5col-sm-10 {
        flex: 0 0 auto;
        width: 83.3333333333%;
    }

    .bs5col-sm-11 {
        flex: 0 0 auto;
        width: 91.6666666667%;
    }

    .bs5col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .bs5col-md {
        flex: 1 0 0%;
    }

    .bs5row-cols-md-auto>* {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5row-cols-md-1>* {
        flex: 0 0 auto;
        width: 100%;
    }

    .bs5row-cols-md-2>* {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5row-cols-md-3>* {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5row-cols-md-4>* {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5row-cols-md-5>* {
        flex: 0 0 auto;
        width: 20%;
    }

    .bs5row-cols-md-6>* {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-md-auto {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5col-md-1 {
        flex: 0 0 auto;
        width: 8.3333333333%;
    }

    .bs5col-md-2 {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5col-md-4 {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5col-md-5 {
        flex: 0 0 auto;
        width: 41.6666666667%;
    }

    .bs5col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5col-md-7 {
        flex: 0 0 auto;
        width: 58.3333333333%;
    }

    .bs5col-md-8 {
        flex: 0 0 auto;
        width: 66.6666666667%;
    }

    .bs5col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .bs5col-md-10 {
        flex: 0 0 auto;
        width: 83.3333333333%;
    }

    .bs5col-md-11 {
        flex: 0 0 auto;
        width: 91.6666666667%;
    }

    .bs5col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }

}

@media (min-width: 992px) {
    .bs5col-lg {
        flex: 1 0 0%;
    }

    .bs5row-cols-lg-auto>* {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5row-cols-lg-1>* {
        flex: 0 0 auto;
        width: 100%;
    }

    .bs5row-cols-lg-2>* {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5row-cols-lg-3>* {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5row-cols-lg-4>* {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5row-cols-lg-5>* {
        flex: 0 0 auto;
        width: 20%;
    }

    .bs5row-cols-lg-6>* {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-lg-auto {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5col-lg-1 {
        flex: 0 0 auto;
        width: 8.3333333333%;
    }

    .bs5col-lg-2 {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5col-lg-4 {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5col-lg-5 {
        flex: 0 0 auto;
        width: 41.6666666667%;
    }

    .bs5col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5col-lg-7 {
        flex: 0 0 auto;
        width: 58.3333333333%;
    }

    .bs5col-lg-8 {
        flex: 0 0 auto;
        width: 66.6666666667%;
    }

    .bs5col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .bs5col-lg-10 {
        flex: 0 0 auto;
        width: 83.3333333333%;
    }

    .bs5col-lg-11 {
        flex: 0 0 auto;
        width: 91.6666666667%;
    }

    .bs5col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

}

@media (min-width: 1200px) {
    .bs5col-xl {
        flex: 1 0 0%;
    }

    .bs5row-cols-xl-auto>* {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5row-cols-xl-1>* {
        flex: 0 0 auto;
        width: 100%;
    }

    .bs5row-cols-xl-2>* {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5row-cols-xl-3>* {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5row-cols-xl-4>* {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5row-cols-xl-5>* {
        flex: 0 0 auto;
        width: 20%;
    }

    .bs5row-cols-xl-6>* {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-xl-auto {
        flex: 0 0 auto;
        width: auto;
    }

    .bs5col-xl-1 {
        flex: 0 0 auto;
        width: 8.3333333333%;
    }

    .bs5col-xl-2 {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .bs5col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .bs5col-xl-4 {
        flex: 0 0 auto;
        width: 33.3333333333%;
    }

    .bs5col-xl-5 {
        flex: 0 0 auto;
        width: 41.6666666667%;
    }

    .bs5col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .bs5col-xl-7 {
        flex: 0 0 auto;
        width: 58.3333333333%;
    }

    .bs5col-xl-8 {
        flex: 0 0 auto;
        width: 66.6666666667%;
    }

    .bs5col-xl-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .bs5col-xl-10 {
        flex: 0 0 auto;
        width: 83.3333333333%;
    }

    .bs5col-xl-11 {
        flex: 0 0 auto;
        width: 91.6666666667%;
    }

    .bs5col-xl-12 {
        flex: 0 0 auto;
        width: 100%;
    }

}


/* 給html編輯器用class */

.textInnerHtml {
    font-size: 16px;
    line-height: 32px;
    color: #8c5600;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.titleInnerHtml {
    font-size: 20px;
    font-family: HGPMinchoE;
    color: #653F00;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pInnerHtml {
    font-size: 16px;
    color: #653F00;
    display: flex;
    line-height: 32px;
}

.subtitleInnerHtml {
    margin-left: 35px;
    margin-right: 5px;
    font-weight: bold;
    display: block;
    min-width: 96px;
    text-align: left;
}

.subtitleFitInnerHtml {
    margin-left: 35px;
    margin-right: 5px;
    font-weight: bold;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    text-align: left;
}

.subtitleSpaceInnerHtml {
    margin-left: 35px;
    display: block;
}

.hrInnerHtml {
    background-color: rgb(156, 156, 156);
}

.ulInnerHtml {
    margin-left: 35px;
    color: #8c5600;
    line-height: 32px;
}

.pFormInnerHtml {
    margin: 30px 35px;
    padding: 20px 20px;
    line-height: 32px;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(140, 86, 0, 0.3725490196);
    color: #8c5600;
}

.highlightInnerHtml {
    font-weight: bold;
    display: contents;
    color: #8c5600;
}


/* 商品內頁css */

.productInner {
    min-height: 80vh;
}

.page-header {
    font-size: 32px;
    font-family: HGPMinchoE;
    color: #653F00;
    font-weight: 600;
    margin-top: 20px !important;
    padding-bottom: 20px;
    margin-bottom: 12px;
}

.product-detail-box {
    background: #ffffff;
    height: 100%;
    min-height: 40vw;
    border-radius: 20px;
    padding: 30px 30px;
    margin-bottom: 30px;
    box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
}

.box-item {
    margin-bottom: 30px !important;
}


.product-detail-box .btn-success {
    color: #fff;
    background-color: #E8380C;
    border-color: #E8380C;
    border-radius: 99rem;
    padding: 12px 30px;
}

.product-detail-box .btn-success:hover {
    color: #fff;
    background-color: #850000;
    border-color: #850000;
}

.productInner .list-group {
    padding: 12px 0;
}

.productInner .list-group-item.active {
    background: #703434;
    color: #ffffff;
}

.productInner .list-group-item.active:hover {
    background: #582828;
    color: #ffffff;
}

.productInner .list-group-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 5px 20px;
    margin-bottom: 12px;
}

.productInner .list-group-item:hover {
    background: #c3996b;
}

.productInner .list-group-item:hover a {
    color: #ffffff;
}

.page-header h3 {
    font-size: 32px;
    font-family: HGPMinchoE;
    color: #653F00;
    font-weight: 600;
}

.ship-mode {
    /* font-size: 18px; */
    /* font-weight: bold; */
    color: #850000;
    /* border: 1px solid rgb(0, 0, 0); */
    /* border-radius: 5px; */
    display: inline-block;
    /* padding: 0px 5px 0 5px; */
}


/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px 15px 0;
}

.logo {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
    background-color: white;
    border-radius: 50%;
    padding: 10px;
}

.logo:hover {
    transform: rotate(10deg);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li {
    border-right: 1px solid #c8a27d;
    padding-right: 30px;
}

.main-nav ul li:last-child {
    border-right: none;
}

.main-nav a {
    font-size: 18px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c8a27d;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #c8a27d;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease;
}

.hero:hover .hero-image {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-control {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-control:hover {
    background-color: #fff;
}

/* News Section */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 5px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 500;
    color: #aeaeae;
}

.section-title::before,
.section-title::after {
    content: '•';
    color: #c8a27d;
    font-size: 72px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 350px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #c8a27d;
    border: 2px solid #c8a27d;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-align: center;
}

.view-more-btn:hover {
    background-color: #c8a27d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 162, 125, 0.3);
}

/* Menu Section */
.menu-section {
    padding: 50px 0;
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.menu-title-container {
    background-image: url('https://images.unsplash.com/photo-1551610290-e153ec567dd8?q=80&w=1926&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.menu-title-container h2 {
    color: #fff;
}

.menu-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: #c8a27d;
    transform: translateX(-50%);
}

.menu-title {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.menu-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.menu-item {
    text-align: center;
}

.menu-item-image {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 5px;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.menu-price {
    color: #c8a27d;
    font-weight: 600;
}

/* Category Section */
.category-section {
    padding: 30px 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #c8a27d;
}

/* Footer */
footer {
    background-color: #f0f0f0;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-container {
    display: flex;
    gap: 50px;
}

.footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    min-width: 435px;
}

.footer-title span {
    font-size: 22px;
    font-weight: 600;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.footer-title span {
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

/* .footer-title::before,
.footer-title::after {
    content: '';
    height: 1px;
    background-color: #ddd;
    flex: 1;
} */

/* .footer-title::before {
    margin-right: 15px;
} */

/* .footer-title::after {
    margin-left: 15px;
} */

.footer-contact {
    margin-bottom: 20px;
    min-width: 435px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.contact-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-hours {
    margin-bottom: 30px;
}

.hours-text {
    font-size: 14px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 5%;
    right: 2%;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #c8a27d;
}

.section-subtitle {
    letter-spacing: 5px;
    font-size: 18px;
    color: #aeaeae;
}

.about-us-content-container {
    margin-top: 50px;
}

.about-us-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.about-us-image {
    flex-grow: 1;
    flex-basis: 50%;
}
.about-us-image img{
    aspect-ratio: 1/1;
    object-fit: cover;
}

.about-us-text {
    flex-grow: 1;
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-us-text ul{
    padding-inline-start:20px;
}
.about-us-text li{
    list-style: disc;
    margin: 10px 0;
}

.about-us-text p {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-container {
        grid-template-columns: 1fr;
    }

    .menu-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav ul {
        gap: 20px;
    }

    .main-nav ul li {
        padding-right: 20px;
    }

    .about-us-text p {
        width: 100%;
    }

    .topbar {
        background: #fff;
    }

    .header .navbar-nav {
        display: flex;
        flex-direction: column;
    }

    .header .navbar-collapse.collapse.in {
        margin-left: -15px;
        margin-right: -15px;
        background: #fff;
        overflow-y: visible !important;
    }

    .header .navbar-nav>li {
        background: #fff;
        text-align: center;
    }

    .dropdown>a:after {
        display: none;
    }

    .owl-carousel-btn-box {
        display: none;
    }

    .header .navbar-nav {
        margin: 0;
    }

    .navbar-nav .open .dropdown-menu>li>a {
        color: #c3996b;
        font-size: 14px;
        padding: 10px 15px 10px;
    }

    .header .navbar-nav>li>a {
        padding-top: 15px !important;
        padding-bottom: 25px !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 0;
    }

    .logo {
        width: 70px;
        height: 70px;
        padding: 0;
        margin-left: 10px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1000;
        position: relative;
        right: 5%;
    }

    .hero {
        height: 400px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .social-icons {
        flex-direction: column;
    }

    .footer-container {
        gap: 20px;
        flex-direction: column;
        margin: 20px;
    }

    .footer-logo-container {
        justify-content: center;
    }

    .main-nav ul li {
        border-right: none;
        margin: 20px;
    }

    .footer-title {
        font-size: 16px;
        min-width: auto;
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-title span {
        display: block;
        margin-bottom: 5px;
    }

    .footer-contact {
        min-width: 100%;
    }

    .menu-title-container {
        height: 200px;
    }

    .about-us-content {
        flex-direction: column;
    }

    .about-us-content.content-reverse {
        flex-direction: column-reverse;
        margin-top: 50px;
    }

    .section-title::before,
    .section-title::after {
        font-size: 48px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .hero {
        height: 300px;
    }

    .hero-control {
        width: 30px;
        height: 30px;
    }

    .menu-title {
        font-size: 20px;
    }

    .footer-title {
        font-size: 16px;
        text-align: left;
        gap: 10px;
    }

    /* .footer-title::before,
    .footer-title::after {
        width: 80px;
        margin: 5px 0;
    } */

    .footer-title span {
        padding: 0 5px;
        line-height: 1.4;
    }

    .contact-item {
        gap: 5px;
    }

    .contact-icon {
        margin-right: 0;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* 新增：header 左右區塊對齊設計 */
.topbar>.container,
.loginbar-box {
    max-width: 100%;
    width: 100%;
}

.loginbar-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.loginbar.pull-left {
    display: flex;
    align-items: center;
}

.loginbar.pull-left>a {
    margin-right: 24px;
}

/* 右側選單：移除原 gap，由 li padding + 分隔線 */
.loginbar.pull-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.loginbar.pull-right .homenavbox ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* 統一左右 padding 24px，文字大小 18px */
.loginbar.pull-right .homenavbox ul>li,
.loginbar.pull-left .homenavbox ul>li {
    padding: 0 24px;
    position: relative;
    font-size: 18px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* 僅在第一層右側選單項目間顯示分隔線並置中 */
.loginbar.pull-right .homenavbox ul>li+li::before {
    content: "|";
    color: #d1a26b;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 下拉選單：預設隱藏，hover父級時展開，並在子菜單內保持顯示 */
.loginbar li {
    position: relative;
}

.loginbar li ul.lenguages {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    /* 緊貼父項，不留縫隙 */
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0;
    margin: 0;
}

/* 父li hover 或子menu hover 時均保持展開 */
.loginbar li:hover>ul.lenguages,
.loginbar li ul.lenguages:hover {
    display: flex !important;
}

/* 右側下拉選單靠右展開 */
.loginbar.pull-right li ul.lenguages {
    right: 0;
    left: auto;
}

/* 移除下拉選單項目的分隔符 */
.loginbar ul.lenguages li+li::before,
.loginbar ul.lenguages li::before {
    content: none !important;
}

/* 下拉選單項目樣式：字體 16px，行高 1.6，寬度填滿 */
.loginbar li ul.lenguages li {
    width: 100%;
}

.loginbar li ul.lenguages li a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
}

/* 改進：hover 整行高亮，深灰背景 */
.loginbar li ul.lenguages li a:hover {
    background-color: #e0e0e0;
}

.navbar-toggle {
    z-index: 1000;
}

.navbar-collapse.collapse {
    display: none !important;
}

@media (max-width: 992px) {

    /* 先把 collapse 內所有的 submenu 隱藏 */
    .navbar-responsive-collapse .dropdown-menu.lenguages {
        display: none !important;
    }

    /* 讓每個 .dropdown 都變成相對定位，讓它的子選單能相對定位 */
    .navbar-responsive-collapse .dropdown {
        position: relative !important;
    }

    /* 只在點開 dropdown 時顯示、直向排列，並置中在父節點下方 */
    .navbar-responsive-collapse .dropdown.open>.dropdown-menu.lenguages {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        /* 從父節點寬度的中間開始 */
        right: auto !important;
        /* 取消原本的 right:0 */
        transform: translateX(-50%) !important;
        /* 左移自身寬度一半，置中 */
        background: #fff !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        min-width: 150px !important;
        /* 可隨需求調整 */
        padding: 0 !important;
        margin: 0 !important;
        z-index: 2000;
        /* 確保在最上層 */
    }

    /* 防止舊的 space-around 影響 */
    .navbar-responsive-collapse .navbar-nav .open .dropdown-menu {
        justify-content: flex-start !important;
    }
}

/* 針對 Bootstrap3 的 .navbar-toggle，Bootstrap4 的 .navbar-toggler 都一併處理 */
@media (max-width: 992px) {

    /* 確保 header 裡有位置給按鈕 */
    .navbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Bootstrap3 的 toggle */
    .navbar-header .navbar-toggle,
    /* Bootstrap4 的 toggle */
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

    .store-block {
      margin-bottom: 50px;
    }

    .store-gallery {
      display: table;
      width: 100%;
      table-layout: fixed;
    }

    .store-left,
    .store-right {
      display: table-cell;
      vertical-align: top;
    }

    .store-left {
      width: 50%;
      padding-right: 5px;
    }

    .store-right {
      width: 50%;
    }

    .store-left img,
    .store-right img {
      display: block;
      width: 100%;
      object-fit: cover;
      cursor: pointer;
    }

    .store-left img {
      height: 400px; /* 固定左圖高度 */
    }

    .store-info {
       max-width: 540px; margin: 20px auto;
    }

    .store-right .grid-cell {
      float: left;
      width: 50%;
      padding: 2px;
    }

    .store-right .grid-cell img {
      height: 196px; /* 固定右圖每張高度，使總高度一致 */
    }

    @media (max-width: 767px) {
        .store-gallery {
            display: block;
        }
        .store-left,
        .store-right {
            display: block;
            width: 100%;
        }
        .grid-cell {
            float: left;
            width: 50%;
        }
        .grid-cell img,
        .store-left img {
            height: auto; /* 防止壓住下方區塊 */
        }
        .store-left img {
            height: 400px !important; /* ✅ 限高400px */
            object-fit: cover;
        }
    }

