/*
Theme Name: Gift Factory
Theme URI: 
Author: 
Author URI: 
Description: 禮品製造所網站布景主題
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gift-factory
*/

/* ========================================
   基本重置
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Inter, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   Header 樣式
   ======================================== */
.site-header {
    background: #867055;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 15px 0 0;
    border-radius: 0 0 20px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(1920px, 100%);
    padding: 0 clamp(20px, 8vw, 240px);
}

.header-logo {
    justify-self: center;
}

.header-top .header-top-right {
    justify-self: end;
    margin-right: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-gift-selection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    border-radius: 999px;
    border: 2px solid #6d5a45;
    background: #fff;
    color: #6d5a45;
    font-size: 16px;
    font-weight: 700;
    font-family: "Noto Sans TC", sans-serif;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.btn-gift-selection:hover {
    background: #6d5a45;
    color: #fff;
}

.btn-gift-selection--mobile {
    padding: 3px 10px;
    font-size: 10px;
    border-width: 1.5px;
    letter-spacing: 0.03em;
    margin-right: -10px;
}

.header-logo img {
    width: 250px;
    height: 66px;
    flex-shrink: 0;
}

.header-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-container {
    display: flex;
    width: min(1920px, 100%);
    height: 67px;
    padding: 24px clamp(20px, 18.3vw, 420px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(130, 112, 85, 0.18);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 左側導航選單 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.2vw, 98px);
    flex-wrap: nowrap;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu li a {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(14px, 1.1vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.11em;
    transition: opacity 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    opacity: 1;
    color: #A07744;
}

.nav-menu__highlight a {
    border: 2px solid #6d5a45;
    border-radius: 999px;
    padding: 6px 20px;
    font-weight: 700 !important;
    color: #6d5a45 !important;
    transition: background 0.2s, color 0.2s;
}

.nav-menu__highlight a:hover {
    background: #6d5a45;
    color: #fff !important;
}

/* 右側功能區 */
.header-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-left: clamp(16px, 6vw, 140px);
}

/* 搜尋框 */
.header-search {
    display: flex;
    width: 220px;
    height: 36px;
    padding: 9px 13px;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: #fff;
}

.header-search input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    font-family: Inter, sans-serif;
    white-space: nowrap;
    color: #523817;
}

.header-search .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #523817;
}

/* 按鈕區 */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.btn {
    font-family: Inter, sans-serif;
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    display: flex;
    width: clamp(120px, 9vw, 160px);
    height: clamp(36px, 3vw, 46px);
    padding: 8px clamp(8px, 1vw, 10px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: #A07744;
    font-size: 24px;
    color: #fff;
    border: 1px solid #A07744;
}

.btn-primary:hover {
    background: #6d5a45;
}

.btn-outline {
    display: flex;
    width: clamp(120px, 9vw, 160px);
    height: clamp(36px, 3vw, 46px);
    padding: 8px clamp(28px, 4vw, 50px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: #523817;
    font-size: 24px;
    color: #fff;
    border: 1px solid #523817;
}

.btn-outline:hover {
    background: #6d5a45;
}

.btn-price-selection {
    background: #A07744;
    border: 1px solid #A07744;
}

.header-buttons .btn {
    width: clamp(120px, 9vw, 160px);
    height: clamp(31px, 2.55vw, 39px);
    padding: 7px 0;
    font-size: clamp(17px, 1.5vw, 20px);
    justify-content: center;
}

.dropdown-toggle svg {
    margin-left: 4px;
    width: clamp(12px, 0.9vw, 14px);
    height: clamp(12px, 0.9vw, 14px);
    aspect-ratio: 1 / 1;
}

/* Desktop Price Dropdown */
.desktop-price-dropdown {
    position: relative;
    display: inline-block;
}

.desktop-price-dropdown .btn-price-selection {
    /* Ensure button looks clickable and holds the shape */
    cursor: pointer;
}

.desktop-price-dropdown__list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.desktop-price-dropdown__list::before {
    /* Optional: Arrow pointing up */
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.desktop-price-dropdown:hover .desktop-price-dropdown__list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.desktop-price-dropdown__list li {
    display: block;
    width: 100%;
}

.desktop-price-dropdown__list li a {
    display: block;
    padding: 10px 16px;
    color: #523817;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s;
    text-align: center;
}

.desktop-price-dropdown__list li a:hover {
    background: #f6f1ea;
    color: #A07744;
}

.dropdown-arrow {
    margin-left: 8px;
    width: 10px;
}

@media (max-width: 1200px) {
    .header-container {
        padding: 20px clamp(16px, 8vw, 240px);
    }
}

@media (max-width: 1024px) {
    .header-inner {
        gap: 12px;
    }

    .header-buttons {
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: clamp(12px, 2vw, 24px);
    }

    .header-right {
        margin-left: clamp(8px, 3vw, 24px);
    }
}

/* ========================================
   主要內容區
   ======================================== */
.site-main {
    min-height: calc(100vh - 100px - 200px);
    margin-top: 150px;
    /* Space for fixed header on desktop */
}

/* ========================================
   Banner 樣式 (首頁與內頁統一)
   ======================================== */
.home-banner,
.page-banner {
    width: 100%;
    margin-top: -10px;
    position: relative;
    z-index: 0;
}

.home-banner picture,
.page-banner picture {
    display: block;
    width: 100%;
}

.home-banner img,
.page-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* 確保圖片以相同方式顯示,避免高度差異 */
}

/* ========================================
   禮品製造所
   ======================================== */
.factory-section {
    position: relative;
    padding: clamp(32px, 6vw, 60px) 0 clamp(40px, 7vw, 80px);
    overflow: visible;
    background: #fff;
    height: clamp(520px, 52vw, 670px);
    z-index: 3;
}

.factory-section__bg-left,
.factory-section__bg-right {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.factory-section__bg-left {
    left: 0;
    bottom: 0;
    width: clamp(520px, 70vw, 1000px);
    max-width: 1000px;
    height: auto;
}

.factory-section__bg-right {
    right: 0;
    bottom: clamp(0px, 2vw, 20px);
    transform: translateY(-20px) scale(1.6);
    transform-origin: top right;
    z-index: 30;
    width: clamp(120px, 18vw, 260px);
    max-width: 260px;
    height: auto;
}

.factory-section__content {
    position: relative;
    z-index: 1;
    max-width: clamp(900px, 70vw, 1200px);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

.factory-section__title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(260px, 28vw, 362px);
    height: clamp(70px, 10vw, 97px);
    margin-bottom: clamp(12px, 2vw, 18px);
}

.factory-section__title-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.factory-section__title-text {
    position: relative;
    color: #523817;
    font-family: Inter, sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.factory-section__intro {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 1.6vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    max-width: clamp(560px, 65vw, 780px);
    margin: 0 auto clamp(24px, 4vw, 36px);
    text-align: left;
}

.factory-section__items {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 8vw, 120px);
    flex-wrap: wrap;
    margin-bottom: clamp(24px, 4vw, 32px);
}

.factory-section__item img {
    display: block;
    width: clamp(90px, 10vw, 124.944px);
    height: clamp(88px, 10vw, 121.333px);
    object-fit: contain;
}

.factory-section__item {
    text-align: center;
    max-width: clamp(180px, 18vw, 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.factory-section__item-title {
    margin: clamp(8px, 1.5vw, 10px) 0 clamp(4px, 1vw, 6px);
    color: #A07744;
    font-family: Inter, sans-serif;
    font-size: clamp(18px, 2.2vw, 24px);
    font-style: normal;
    font-weight: 350;
    line-height: normal;
}

.factory-section__item-desc {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

.factory-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 168px;
    height: 48px;
    padding: 9px 36px;
    border-radius: 4px;
    background: #A07744;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 350;
    line-height: normal;
    white-space: nowrap;
}

.factory-section__cta-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.factory-section__cta-arrow svg {
    display: block;
    width: 24px;
    height: 10px;
}

.factory-section__cta:hover {
    background: #6d5a45;
}

@media (max-width: 900px) {
    .factory-section {
        padding: 40px 0 60px;
    }

    .factory-section__title {
        transform: scale(0.7) !important;
    }
}

/* ========================================
   Homepage Slider Styles (Reusable)
   ======================================== */
.homepage-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.homepage-slider__track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    touch-action: pan-y;
}

.homepage-slider__item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.homepage-slider__item .gift-card,
.homepage-slider__item .product-card {
    width: 100%;
    flex: 1;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.homepage-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.homepage-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DDDDDD;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.homepage-slider__dot.active {
    background-color: #A07744;
}

@media (min-width: 901px) {
    .homepage-slider__item {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    .homepage-slider__item {
        padding: 0 5px;
    }

    .homepage-slider__item .gift-card,
    .homepage-slider__item .product-card {
        width: 70%;
        margin: 0 auto;
        flex: none;
    }
}


/* ========================================
   禮品選物
   ======================================== */
.gift-selection-section {
    position: relative;
    padding: clamp(40px, 7vw, 80px) 0 clamp(60px, 9vw, 120px);
    overflow: visible;
    background: #fff;
    height: 1008px;
    z-index: 1;
}

.gift-selection-section__bg-base,
.gift-selection-section__bg-left,
.gift-selection-section__bg-right {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.gift-selection-section__bg-base {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 0;
}

.gift-selection-section__bg-left {
    left: 0;
    bottom: clamp(-140px, -6vw, -40px);
    width: clamp(260px, 28vw, 428px);
    height: clamp(420px, 45vw, 684px);
    transform: translateY(clamp(140px, 18vw, 250px)) translateY(-24px) scale(1.2);
    transform-origin: left bottom;
    z-index: 0;
}

.gift-selection-section__bg-right {
    right: 0;
    bottom: clamp(-140px, -6vw, -40px);
    width: clamp(360px, 40vw, 677px);
    height: clamp(360px, 40vw, 677px);
    object-fit: contain;
    transform: translateY(clamp(180px, 22vw, 320px)) translateY(-80px);
    transform-origin: right bottom;
    z-index: 5;
}

.gift-selection-section__content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

.gift-selection-section__title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(260px, 28vw, 362px);
    height: clamp(70px, 10vw, 97px);
    margin-bottom: 16px;
    margin-top: 120px;
}

.gift-selection-section__title-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gift-selection-section__title-text {
    position: relative;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.gift-selection-section__intro {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 1.4vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    max-width: clamp(560px, 70vw, 750px);
    margin: 0 auto clamp(32px, 4vw, 48px);
    text-align: left;
}

.gift-selection-section__cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 32px);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.gift-card {
    flex: 1 1 320px;
    width: min(374px, 100%);
    max-width: 374px;
    height: auto;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(82, 56, 23, 0.18);
}

.gift-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 374 / 291.139;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    display: block;
}

.gift-card__body {
    padding: clamp(12px, 1.4vw, 16px) clamp(16px, 2vw, 20px) clamp(16px, 2.2vw, 20px);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 10px);
    height: 100%;
}

.gift-card__title {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.gift-card__prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gift-card__price-original {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: clamp(11px, 1vw, 12px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: line-through;
}

.gift-card__price-sale {
    color: #A07744;
    font-family: Inter, sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.gift-card__cta {
    display: flex;
    width: clamp(110px, 12vw, 128px);
    height: clamp(32px, 3vw, 36px);
    padding: clamp(7px, 1vw, 9px) clamp(12px, 1.6vw, 17px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 12px);
    border-radius: 100px;
    border: 1px solid #523817;
    color: #523817;
    font-family: Inter, sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    margin-top: auto;
    align-self: flex-end;
}

.gift-card__cta:hover {
    background: #f6f1ea;
}

.gift-card__cta-icon {
    display: inline-flex;
    width: clamp(22px, 2.4vw, 28px);
    height: clamp(22px, 2.4vw, 28px);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-selection-section__cta {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .gift-selection-section__title {
        transform: scale(0.7) !important;
    }

    .gift-selection-section__intro {
        height: auto;
        line-height: 1.6;
    }

    .gift-selection-section__bg-left,
    .gift-selection-section__bg-right {
        opacity: 0.5;
    }
}

/* ========================================
   客製化禮品
   ======================================== */
.custom-gift-section {
    position: relative;
    padding: clamp(40px, 7vw, 80px) 0 clamp(60px, 9vw, 120px);
    background: #fff;
}

.custom-gift-section__content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

/* ========================================
   節慶禮品
   ======================================== */
.seasonal-gift-section {
    position: relative;
    padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px);
    background: #fff;
    height: 1188px;
    overflow: hidden;
    z-index: 1;
}

.seasonal-gift-section__bg-base,
.seasonal-gift-section__bg-top-right,
.seasonal-gift-section__bg-bottom-left {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.seasonal-gift-section__bg-base {
    inset: 0;
    width: 80%;
    height: 80%;
    margin: auto;
    object-fit: contain;
    object-position: center;
    z-index: 0;
}

.seasonal-gift-section__bg-top-right {
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 3vw, 40px);
    transform: translateX(-250px);
    width: clamp(180px, 22vw, 300px);
    height: auto;
    z-index: 1;
}

.seasonal-gift-section__bg-bottom-left {
    left: clamp(12px, 2vw, 40px);
    bottom: clamp(-10px, -2vw, 0px);
    transform: translateX(70px) translateY(-40px);
    width: clamp(220px, 28vw, 360px);
    height: auto;
    z-index: 1;
}

.seasonal-gift-section__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    text-align: center;
}

@media (max-width: 900px) {
    .seasonal-gift-section {
        height: auto;
        padding: 50px 0 80px;
    }

    .seasonal-gift-section__bg-top-right,
    .seasonal-gift-section__bg-bottom-left {
        opacity: 0.6;
    }
}

/* ========================================
   Footer 樣式
   ======================================== */
.site-footer {
    background: #867055;
    padding: 40px 60px;
    color: #fff;
}

/* ========================================
   Mobile Header（設計稿：深棕頂欄、漢堡／Logo／搜尋、選單開啟時顯示 X）
   ======================================== */
.mobile-header {
    display: none;
    width: 100%;
    background: #867055;
    padding: 10px 16px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1001;
}

.mobile-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 40px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    color: #fff;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1003;
}

.mobile-search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mobile-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.mobile-header.is-drawer-open .mobile-menu-toggle {
    display: none;
}

.mobile-header.is-drawer-open .mobile-search-toggle {
    display: none;
}

.mobile-header.is-drawer-open .btn-gift-selection--mobile {
    display: none;
}

.mobile-header.is-drawer-open .mobile-drawer-close {
    display: flex;
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 28px;
}

.mobile-header-logo img {
    height: 100%;
    width: auto;
    max-height: 28px;
    object-fit: contain;
}

/* 側邊選單開啟時的主內容遮罩（變暗） */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 側邊選單（白底、頂部兩按鈕 + 導覽連結 + 分隔線） */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    max-width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
    padding: 56px 20px 24px;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.is-active {
    transform: translateX(0);
}

.mobile-nav-drawer__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-drawer-btn {
    display: flex;
    height: 24px;
    padding: 9px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    width: 100%;
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mobile-drawer-btn--primary {
    background: #867055;
    color: #fff;
}

.mobile-drawer-btn--primary:hover {
    opacity: 0.9;
}

.mobile-drawer-btn--secondary {
    background: #EAE0D1;
    color: #7A5C3D;
    padding-left: 14px;
    padding-right: 36px;
    position: relative;
}

.mobile-drawer-btn--secondary .mobile-drawer-btn__text {
    transform: translateX(0.6rem);
}

.mobile-drawer-btn--secondary .mobile-drawer-btn__arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.mobile-drawer-btn--secondary:hover {
    opacity: 0.9;
}

/* 價格選物展開：按鈕改白底+咖啡色框、箭頭向上、下緣與列表相接 */
.mobile-price-dropdown.is-open .mobile-drawer-btn--secondary {
    background: #fff;
    border: 1px solid #c4a574;
    border-radius: 999px 999px 0 0;
}

.mobile-price-dropdown.is-open .mobile-drawer-btn__arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 價格選物展開列表（邊框與分隔線同為咖啡色） */
.mobile-price-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: none;
    border: 1px solid #c4a574;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.mobile-price-dropdown.is-open .mobile-price-dropdown__list {
    display: block;
}

.mobile-price-dropdown__list li {
    border-bottom: 1px solid #c4a574;
}

.mobile-price-dropdown__list li:last-child {
    border-bottom: none;
}

.mobile-price-dropdown__list li a {
    display: block;
    padding: 12px 14px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-price-dropdown__list li a:hover {
    color: #7A5C3D;
    background: rgba(234, 224, 209, 0.4);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu li a {
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    padding: 14px 0;
    display: block;
    transition: opacity 0.2s ease;
}

.mobile-nav-menu li a:hover {
    opacity: 0.7;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-overlay__container {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.is-active .mobile-search-overlay__container {
    transform: translateY(0);
}

.mobile-search-overlay__form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
}

.mobile-search-overlay__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #333;
    outline: none;
}

.mobile-search-overlay__input::placeholder {
    color: #999;
}

.mobile-search-overlay__submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #523817;
    transition: color 0.2s ease;
}

.mobile-search-overlay__submit:hover {
    color: #A07744;
}

.mobile-search-overlay__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.mobile-search-overlay__close:hover {
    color: #333;
}

/* Responsive Visibility */
@media (max-width: 900px) {
    .site-header {
        padding: 0;
        border-radius: 0;
    }

    .desktop-header {
        display: none !important;
    }

    .mobile-header {
        display: block;
    }

    .mobile-nav-drawer {
        top: 0;
        padding-top: 56px;
    }

    .site-main {
        margin-top: 58px;
    }

    .page-banner,
    .page-header-banner,
    .single-banner {
        margin-top: 0;
    }
}

/* ========================================
   404 Page
   ======================================== */
.page-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ECF0F1;
    margin-top: 0;
    padding-top: 150px;
    min-height: 100vh;
}

.page-404__link {
    display: inline-block;
    cursor: pointer;
}

.page-404__image {
    display: block;
    width: auto;
    height: auto;
}

.page-404__image--mobile {
    display: none;
}

@media (max-width: 900px) {
    .page-404 {
        padding-top: 50px;
    }

    .page-404__image--desktop {
        display: none;
    }

    .page-404__image--mobile {
        display: block;
    }
}

/* 404 頁面 footer 區域背景色調整 */
body.error404 .footer__hero {
    background-color: #ECF0F1;
}

/* ========================================
   浮動聯繫按鈕 - BEM 命名
   ======================================== */

/* Block: floating-contact */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: scale(0.7);
    transform-origin: bottom right;
}

.floating-contact.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 主按鈕 */
.floating-contact__main-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    left: -1rem;
    top: -4rem;
    transform: scale(2.0);
}

.floating-contact__main-button:hover,
.floating-contact__main-button.is-hover-active {
    transform: scale(2.1);
    background-image: url('assets/images/24hr_hover.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.floating-contact__main-button:hover .floating-contact__main-icon,
.floating-contact__main-button.is-hover-active .floating-contact__main-icon {
    opacity: 0;
}

.floating-contact__main-button:active {
    transform: scale(1.96);
}

.floating-contact__main-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* 卡片容器 - 相對定位容器 */
.floating-contact__card {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    transform-origin: center center;
}

/* 公事包背景圖 */
.floating-contact__briefcase-bg {
    width: 260px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.2));
}

/* 按鈕內容容器 - 疊在背景圖上 */
.floating-contact__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

/* 子按鈕容器 - 水平排列，預設展開 */
.floating-contact__sub-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: rotate(-3deg);
}

/* 子按鈕 */
.floating-contact__sub-button {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform 0.2s ease;
    text-decoration: none;
    overflow: visible;
}

.floating-contact__sub-button:hover {
    transform: translateY(-2px);
}



/* 子按鈕圖標 */
.floating-contact__sub-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* 聯絡資訊按鈕 - 棕色按鈕 */
.floating-contact__info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 40px;
    padding: 10px 20px;
    background: #A07744;
    border-radius: 20px;
    color: #ffffff;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
    transform: rotate(-3deg);
}

.floating-contact__info-button:hover {
    background: #8b6838;
    transform: translateY(-1px);
}

.floating-contact__info-button:active {
    transform: scale(0.98);
}

/* 響應式設計 - 平板 */
@media (max-width: 1024px) {
    .floating-contact {
        bottom: 24px;
        right: 24px;
    }

    .floating-contact__main-button {
        width: 100px;
        height: 100px;
        left: -0.8rem;
        top: -1.6rem;
    }

    .floating-contact__briefcase-bg {
        width: 220px;
    }

    .floating-contact__sub-button {
        width: 48px;
        height: 48px;
    }

    .floating-contact__sub-buttons {
        gap: 10px;
    }

    .floating-contact__content {
        gap: 10px;
    }

    .floating-contact__info-button {
        width: 150px;
        height: 36px;
        font-size: 15px;
    }
}

/* 響應式設計 - 手機：隱藏桌面版浮動按鈕 */
@media (max-width: 900px) {
    .floating-contact {
        display: none !important;
    }
}

/* 焦點狀態 - 移除點擊時的外圈效果 */
.floating-contact__main-button:focus {
    outline: none;
}

.floating-contact__sub-button:focus {
    outline: none;
}

.floating-contact__info-button:focus {
    outline: none;
}

/* 鍵盤導航可訪問性 - 只在使用鍵盤時顯示 */
.floating-contact__main-button:focus-visible {
    outline: 3px solid rgba(160, 119, 68, 0.5);
    outline-offset: 2px;
}

.floating-contact__sub-button:focus-visible {
    outline: 3px solid rgba(160, 119, 68, 0.5);
    outline-offset: 2px;
}

.floating-contact__info-button:focus-visible {
    outline: 3px solid rgba(160, 119, 68, 0.5);
    outline-offset: 2px;
}

/* ========================================
   行動版浮動聯繫按鈕 - 僅手機端顯示
   ======================================== */

/* 桌面端隱藏 */
.mobile-floating-contact {
    display: none;
}

/* 手機端顯示 */
@media (max-width: 900px) {
    .mobile-floating-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        bottom: 16px;
        right: 12px;
        z-index: 9999;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .mobile-floating-contact.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* 24H 線上估價大按鈕 */
    .mobile-floating-contact__main-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        text-decoration: none;
        transition: transform 0.25s ease;
        position: relative;
        z-index: 2;
    }

    .mobile-floating-contact__main-btn:active {
        transform: scale(0.95);
    }

    .mobile-floating-contact__main-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    /* 聯繫按鈕群組 - 垂直排列 */
    .mobile-floating-contact__buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: -10px;
        position: relative;
        z-index: 1;
    }

    /* 個別聯繫按鈕 */
    .mobile-floating-contact__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: transparent;
        box-shadow: none;
        text-decoration: none;
        transition: transform 0.2s ease;
        padding: 0;
        margin-bottom: -5px;
    }

    .mobile-floating-contact__btn:active {
        transform: scale(0.92);
    }

    /* 聯繫按鈕圖標 */
    .mobile-floating-contact__icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    }

    /* 焦點樣式 */
    .mobile-floating-contact__main-btn:focus,
    .mobile-floating-contact__btn:focus {
        outline: none;
    }

    .mobile-floating-contact__main-btn:focus-visible,
    .mobile-floating-contact__btn:focus-visible {
        outline: 3px solid rgba(160, 119, 68, 0.5);
        outline-offset: 2px;
    }
}


/* ========================================
   好評推薦 - 新版卡片樣式
   ======================================== */
.review-card-grid {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 1.6vw, 24px);
    width: 100%;
}

.review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* 輕微陰影 */
    padding: clamp(20px, 2vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    flex: 1;
    min-width: 0;
    /* 防止 flex item 溢出 */
    box-sizing: border-box;
    text-align: left;
}

/* 用於手機版 Slider 的卡片容器 */
#reviews-mobile-wrapper .review-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

#reviews-mobile-wrapper .review-card {
    padding: 16px;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 星星評分 */
.review-stars {
    display: flex;
    gap: 4px;
}

.review-stars svg {
    width: 20px;
    height: 20px;
    fill: #FFC107;
    /* 黃色星星 */
}

/* 評論內容 */
.review-content {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* 限制行數 */
    -webkit-box-orient: vertical;
}

/* 評論圖片 */
.review-images {
    display: flex;
    gap: 10px;
    margin-top: auto;
    /* 推到底部 */
}

.review-images img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* 用戶資訊 */
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #EAEAEA;
}

.review-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ccc;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.review-author-meta {
    font-size: 13px;
    color: #666;
}

/* 響應式顯示切換 */
#reviews-desktop-wrapper {
    display: block;
}

#reviews-mobile-wrapper {
    display: none;
}

@media (max-width: 768px) {
    #reviews-desktop-wrapper {
        display: none;
    }

    #reviews-mobile-wrapper {
        display: block;
    }

    .review-stars svg {
        width: 16px;
        height: 16px;
    }

    .review-images img {
        width: 48px;
        height: 48px;
    }

    .review-author-avatar {
        width: 40px;
        height: 40px;
    }

    .review-author-name {
        font-size: 14px;
    }

    .review-author-meta {
        font-size: 12px;
    }
}

/* ========================================
   動畫效果 (Scroll Animations) — 已停用：區塊改為直接顯示，無淡入/上移動畫
   ======================================== */
.fade-in-up,
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in,
.fade-in.is-visible {
    opacity: 1;
}

.scale-in,
.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays — 無動畫時保留 class 不影響版面 */
.delay-100,
.delay-200,
.delay-300,
.delay-400,
.delay-500,
.delay-600 {
    /* 僅保留以相容既有 markup，無 transition 故無延遲效果 */
}

/* ========================================
   文章列表頁面分頁樣式
   ======================================== */
.article-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.article-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #867055;
    color: #867055;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-pagination .page-numbers.current,
.article-pagination .page-numbers:hover:not(.next):not(.prev) {
    background-color: #867055;
    color: #fff;
}

.article-pagination .page-numbers.next {
    width: auto;
    height: 45px;
    padding: 0 30px;
    border-radius: 22.5px;
    text-transform: uppercase;
}

.article-pagination .page-numbers.next:hover {
    background-color: #f6f1ea;
}

.article-pagination .page-numbers.prev {
    display: none;
}

@media (max-width: 768px) {
    .article-pagination {
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .article-pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .article-pagination .page-numbers.next {
        height: 36px;
        padding: 0 20px;
        font-size: 14px;
    }
}

/* ========================================
   文章列表頁面共用樣式 (Banner & Grid)
   ======================================== */
.page-header-banner {
    width: 100%;
    margin-top: -10rem;
    position: relative;
    z-index: 0;
}

.page-header-banner picture,
.page-header-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-header-banner {
        margin-top: 0;
    }
}

.article-list-section {
    padding: clamp(100px, 10vw, 150px) 20px clamp(40px, 4vw, 60px);
    /* Increased top padding significantly */
    background-color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-list-container {
    width: 100%;
    max-width: 1386px;
    margin: 0 auto;
}

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(25px, 2.5vw, 36px);
    width: 100%;
    justify-items: center;
}

@media (max-width: 1024px) {
    .article-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .article-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   文章列表卡片樣式 (嚴格對照 single.php)
   ======================================== */
.article-card {
    position: relative;
    width: 100%;
    /* max-width is handled by grid, but we keep upper bound to match single.php feeling if simple grid item */
    /* max-width: 438px; Removed to let grid control width, but can be added back if needed */
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0px clamp(10px, 1.04vw, 14.904px) clamp(10px, 1.04vw, 14.904px) 0px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card__image {
    width: 100%;
    height: clamp(262px, 26.25vw, 378px);
    background-color: #d9d9d9;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

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

.article-card__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: clamp(176px, 17.64vw, 254px);
    padding: clamp(25px, 2.5vw, 36px);
    background-color: #ffffff;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
    flex: 1;
}

.article-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(10px, 1.04vw, 15px);
    gap: 10px;
}

.article-card__title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: clamp(17.6px, 1.776vw, 25.6px);
    line-height: 1.4;
    color: #000000;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card__date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.55vw, 22.357px);
    line-height: 1.4;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.article-card__desc {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(15.2px, 1.552vw, 19.2px);
    line-height: 1.6;
    color: #000000;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(170px, 17.01vw, 245px);
    height: clamp(43px, 4.31vw, 62px);
    margin: clamp(10px, 1.04vw, 15px) auto 0;
    background: linear-gradient(90deg, #a07744 0%, #b39168 100%);
    border-radius: clamp(36px, 3.62vw, 52.165px);
    text-decoration: none;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(17px, 1.67vw, 24px);
    line-height: 1;
}

.article-card__btn:hover {
    opacity: 0.9;
}

/* ========================================
   文章列表裝飾標題樣式
   ======================================== */
.article-list-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 308px;
    height: 68px;
    margin: 0 auto 100px;
    /* Increased from 60px */
}

/* 矩形外框 */
.article-list-header__box {
    position: relative;
    width: 308px;
    height: 68px;
    border-radius: 10px;
    border: 3.2px solid #867055;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 蝴蝶結裝飾 */
.article-list-header__bow {
    position: absolute;
    top: -2.88rem;
    left: 0.8rem;
    width: 96px;
    height: 54px;
    z-index: 1;
}

.article-list-header__bow svg {
    width: 100%;
    height: 100%;
}

/* 標題文字 */
.article-list-header__title {
    position: relative;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 24px;
    font-style: normal;
    line-height: normal;
    color: #000000;
    text-align: center;
    margin: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    .article-list-header {
        width: 280px;
        height: 60px;
        margin-bottom: 60px;
        /* Increased from 40px */
    }

    .article-list-header__box {
        width: 280px;
        height: 60px;
        border-width: 3px;
    }

    .article-list-header__bow {
        top: -2.5rem;
        left: 0.5rem;
        width: 80px;
        height: 45px;
    }

    .article-list-header__title {
        font-size: 22px;
    }
}

/* Article List Anchor Offset */
#article-list-title {
    scroll-margin-top: 250px;
}

/* ===== 禮品選物左側分類選單：hover / 當前分類（強制覆蓋） ===== */
.product-listing__sidebar .category-nav__item:hover {
    color: #A07744 !important;
    background-color: rgba(160, 119, 68, 0.12) !important;
    border-left-color: rgba(160, 119, 68, 0.5) !important;
}
.product-listing__sidebar .category-nav__item--active {
    color: #8B6914 !important;
    font-weight: 500 !important;
    background-color: rgba(160, 119, 68, 0.18) !important;
    border-left-color: #A07744 !important;
}
.product-listing__sidebar .category-nav__item--active:hover {
    color: #8B6914 !important;
    background-color: rgba(160, 119, 68, 0.22) !important;
    border-left-color: #8B6914 !important;
}
.product-listing__sidebar .category-nav__parent-row .category-nav__item:hover {
    color: #A07744 !important;
    background-color: rgba(160, 119, 68, 0.12) !important;
    border-left-color: rgba(160, 119, 68, 0.5) !important;
}
.product-listing__sidebar .category-nav__parent-row .category-nav__item--active {
    color: #8B6914 !important;
    font-weight: 500 !important;
    background-color: rgba(160, 119, 68, 0.18) !important;
    border-left-color: #A07744 !important;
}
.product-listing__sidebar .category-nav__parent-row .category-nav__item--active:hover {
    color: #8B6914 !important;
    background-color: rgba(160, 119, 68, 0.22) !important;
    border-left-color: #8B6914 !important;
}
.product-listing__sidebar .category-nav__child:hover {
    color: #A07744 !important;
    background-color: rgba(160, 119, 68, 0.12) !important;
    border-left-color: rgba(160, 119, 68, 0.5) !important;
}
.product-listing__sidebar .category-nav__child.category-nav__item--active {
    color: #8B6914 !important;
    background-color: rgba(160, 119, 68, 0.18) !important;
    border-left-color: #A07744 !important;
}
.product-listing__sidebar .category-nav__child.category-nav__item--active:hover {
    background-color: rgba(160, 119, 68, 0.22) !important;
    border-left-color: #8B6914 !important;
}

/* 用 data-current 強制套用當前分類樣式（避免被其他規則蓋掉） */
aside.product-listing__sidebar a.category-nav__item[data-current="1"],
.product-listing__sidebar .category-nav__child[data-current="1"] {
    color: #8B6914 !important;
    font-weight: 500 !important;
    background-color: rgba(160, 119, 68, 0.18) !important;
    border-left-color: #A07744 !important;
}
/* 父分類列：有 data-current 時整列同色塊，連結本身不重複底 */
.product-listing__sidebar .category-nav__parent-row a.category-nav__item[data-current="1"] {
    background-color: transparent !important;
    border-left-color: transparent !important;
}
.product-listing__sidebar .category-nav__parent-row:has(a[data-current="1"]) {
    background-color: rgba(160, 119, 68, 0.18) !important;
    border-left-color: #A07744 !important;
}
/* 展開鈕無框、與父列融為一體 */
.product-listing__sidebar .category-nav__toggle {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}