/* =========================================================
   FOOTER 完整樣式
   僅作用於 .site-footer
   不影響其他頁面區塊
========================================================= */

.site-footer {
    width: 100%;
    margin: 60px 0 0;
    padding: 52px 0 34px;

    background: #151a18;
    color: #c5cbc8;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    box-sizing: border-box;
}


/* =========================================================
   Footer 主容器
   桌機固定 5 欄
========================================================= */

.site-footer > .col-full {
    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;

    column-gap: 36px !important;
    row-gap: 0 !important;

    width: 100% !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 24px !important;
    padding-right: 24px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   Footer 所有 Widget
========================================================= */

.site-footer > .col-full > .widget {
    float: none !important;
    clear: none !important;

    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   五個主要欄位位置
========================================================= */

.site-footer > .col-full > #text-10 {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.site-footer > .col-full > #text-11 {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.site-footer > .col-full > #text-12 {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.site-footer > .col-full > #text-13 {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.site-footer > .col-full > #text-18 {
    grid-column: 5 !important;
    grid-row: 1 !important;
}


/* =========================================================
   text-20
   併到「熱門推薦」欄下面
========================================================= */

.site-footer > .col-full > #text-20 {
    grid-column: 5 !important;
    grid-row: 1 !important;

    align-self: start !important;

    margin-top: 238px !important;

    padding: 0 !important;
}


/* =========================================================
   Widget 標題
========================================================= */

.site-footer > .col-full > .widget > .widget-title,
.site-footer > .col-full > .widget > .gamma.widget-title {
    position: relative;

    display: block !important;

    width: 100% !important;

    margin: 0 0 18px !important;

    padding:
        0
        0
        12px !important;

    color: #ffffff !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    letter-spacing: 0.01em;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.13) !important;

    box-sizing: border-box !important;
}


/* 標題左側短線 */
.site-footer > .col-full > .widget > .widget-title::after,
.site-footer > .col-full > .widget > .gamma.widget-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 30px;
    height: 2px;

    background: #8da198;

    border-radius: 10px;
}


/* =========================================================
   textwidget
========================================================= */

.site-footer > .col-full > .widget > .textwidget {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    color: #c0c6c3 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   UL
========================================================= */

.site-footer > .col-full > .widget > .textwidget > ul {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   LI
========================================================= */

.site-footer > .col-full > .widget > .textwidget > ul > li {
    display: block !important;

    float: none !important;
    clear: none !important;

    width: 100% !important;

    margin: 0 !important;

    padding:
        6px
        0 !important;

    color: #c0c6c3 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;

    border: 0 !important;

    list-style: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   Footer Links
========================================================= */

.site-footer > .col-full > .widget > .textwidget > ul > li > a {
    display: inline-block !important;

    max-width: 100%;

    color: #c0c6c3 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;

    text-decoration: none !important;

    overflow-wrap: break-word;

    transition:
        color .2s ease,
        transform .2s ease;
}


/* hover */
.site-footer > .col-full > .widget > .textwidget > ul > li > a:hover {
    color: #ffffff !important;

    transform: translateX(3px);
}


/* =========================================================
   沒有連結的純文字
   例如 IQOS煙彈
========================================================= */

.site-footer > .col-full > .widget > .textwidget > ul > li:not(:has(a)) {
    color: #8f9793 !important;
}


/* =========================================================
   清理多餘 P / &nbsp;
========================================================= */

.site-footer > .col-full > .widget > .textwidget > p {
    display: none !important;

    height: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;
}


/* =========================================================
   桌機尺寸微調
========================================================= */

@media screen and (min-width: 1101px) {

    .site-footer > .col-full {
        grid-template-columns:
            1.06fr
            1.04fr
            1.14fr
            1fr
            1fr !important;
    }

}


/* =========================================================
   平板
   3 欄
========================================================= */

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

    .site-footer {
        margin-top: 50px;

        padding:
            44px
            0
            30px;
    }


    .site-footer > .col-full {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        column-gap: 28px !important;
        row-gap: 38px !important;

        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    /* 第一排 */

    .site-footer > .col-full > #text-10 {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-footer > .col-full > #text-11 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .site-footer > .col-full > #text-12 {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }


    /* 第二排 */

    .site-footer > .col-full > #text-13 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .site-footer > .col-full > #text-18 {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }


    /* 香煙項目接熱門推薦 */

    .site-footer > .col-full > #text-20 {
        grid-column: 2 !important;
        grid-row: 2 !important;

        margin-top: 230px !important;
    }

}


/* =========================================================
   小平板
   2 欄
========================================================= */

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

    .site-footer {
        margin-top: 45px;

        padding:
            38px
            0
            26px;
    }


    .site-footer > .col-full {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 22px !important;
        row-gap: 34px !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }


    /* 第一排 */

    .site-footer > .col-full > #text-10 {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-footer > .col-full > #text-11 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }


    /* 第二排 */

    .site-footer > .col-full > #text-12 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .site-footer > .col-full > #text-13 {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }


    /* 第三排 */

    .site-footer > .col-full > #text-18 {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }


    .site-footer > .col-full > #text-20 {
        grid-column: 1 !important;
        grid-row: 3 !important;

        margin-top: 220px !important;
    }


    .site-footer > .col-full > .widget > .widget-title,
    .site-footer > .col-full > .widget > .gamma.widget-title {
        margin-bottom: 15px !important;

        font-size: 15px !important;
    }


    .site-footer > .col-full > .widget > .textwidget > ul > li,
    .site-footer > .col-full > .widget > .textwidget > ul > li > a {
        font-size: 13px !important;
    }

}


/* =========================================================
   手機
========================================================= */

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

    .site-footer {
        margin-top: 38px;

        padding:
            32px
            0
            24px;
    }


    .site-footer > .col-full {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 16px !important;
        row-gap: 30px !important;

        padding-left: 14px !important;
        padding-right: 14px !important;
    }


    /* -------------------------
       第一排
    ------------------------- */

    .site-footer > .col-full > #text-10 {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-footer > .col-full > #text-11 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }


    /* -------------------------
       第二排
    ------------------------- */

    .site-footer > .col-full > #text-12 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .site-footer > .col-full > #text-13 {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }


    /* -------------------------
       第三排
    ------------------------- */

    .site-footer > .col-full > #text-18 {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }


    /* 香煙選單接在熱門推薦下 */
    .site-footer > .col-full > #text-20 {
        grid-column: 1 !important;
        grid-row: 3 !important;

        margin-top: 205px !important;
    }


    /* 標題 */
    .site-footer > .col-full > .widget > .widget-title,
    .site-footer > .col-full > .widget > .gamma.widget-title {
        margin:
            0
            0
            12px !important;

        padding-bottom: 9px !important;

        font-size: 14px !important;
        line-height: 1.4 !important;
    }


    .site-footer > .col-full > .widget > .widget-title::after,
    .site-footer > .col-full > .widget > .gamma.widget-title::after {
        width: 24px;
    }


    /* LI */
    .site-footer > .col-full > .widget > .textwidget > ul > li {
        padding:
            5px
            0 !important;

        font-size: 12px !important;
        line-height: 1.6 !important;
    }


    /* Link */
    .site-footer > .col-full > .widget > .textwidget > ul > li > a {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }


    /* 手機取消 hover 位移 */
    .site-footer > .col-full > .widget > .textwidget > ul > li > a:hover {
        transform: none;
    }

}


/* =========================================================
   超小手機
========================================================= */

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

    .site-footer > .col-full {
        column-gap: 12px !important;
        row-gap: 28px !important;

        padding-left: 10px !important;
        padding-right: 10px !important;
    }


    .site-footer > .col-full > .widget > .widget-title,
    .site-footer > .col-full > .widget > .gamma.widget-title {
        font-size: 13px !important;
    }


    .site-footer > .col-full > .widget > .textwidget > ul > li,
    .site-footer > .col-full > .widget > .textwidget > ul > li > a {
        font-size: 11px !important;
    }


    .site-footer > .col-full > #text-20 {
        margin-top: 195px !important;
    }

}
/* =========================================================
   COPYRIGHT 區
   僅作用於 footer.copyright
========================================================= */

footer.copyright {
    width: 100%;
    margin: 0;
    padding: 18px 0;

    background: #101412;
    color: #8f9793;

    border-top: 1px solid rgba(255,255,255,0.06);

    box-sizing: border-box;
}


/* =========================================================
   內層容器
========================================================= */

footer.copyright > .col-full {
    width: 100% !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 24px !important;
    padding-right: 24px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   Widget
========================================================= */

footer.copyright > .col-full > .widget {
    float: none !important;
    clear: none !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   textwidget
========================================================= */

footer.copyright
> .col-full
> .widget
> .textwidget {
    margin: 0 !important;
    padding: 0 !important;

    text-align: center;

    color: #8f9793 !important;
}


/* =========================================================
   段落
========================================================= */

footer.copyright
> .col-full
> .widget
> .textwidget
> p {
    margin: 0 !important;
    padding: 0 !important;

    color: #8f9793 !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;

    letter-spacing: .01em;
}


/* =========================================================
   連結
========================================================= */

footer.copyright
> .col-full
> .widget
> .textwidget
> p
> a {
    color: #c6ceca !important;

    font-size: inherit !important;
    font-weight: 500 !important;

    text-decoration: none !important;

    border-bottom: 1px solid transparent;

    transition:
        color .2s ease,
        border-color .2s ease;
}


footer.copyright
> .col-full
> .widget
> .textwidget
> p
> a:hover {
    color: #ffffff !important;

    border-bottom-color: rgba(255,255,255,0.35);
}


/* =========================================================
   平板
========================================================= */

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

    footer.copyright {
        padding: 16px 0;
    }


    footer.copyright > .col-full {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }


    footer.copyright
    > .col-full
    > .widget
    > .textwidget
    > p {
        font-size: 12px !important;
    }

}


/* =========================================================
   手機
========================================================= */

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

    footer.copyright {
        padding: 15px 0;
    }


    footer.copyright > .col-full {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }


    footer.copyright
    > .col-full
    > .widget
    > .textwidget {
        text-align: center;
    }


    footer.copyright
    > .col-full
    > .widget
    > .textwidget
    > p {
        font-size: 11px !important;
        line-height: 1.8 !important;
    }

}


/* =========================================================
   超小手機
========================================================= */

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

    footer.copyright > .col-full {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }


    footer.copyright
    > .col-full
    > .widget
    > .textwidget
    > p {
        font-size: 10px !important;
    }

}