/* ================================================================
   SITE NAVBAR - customize.css
   ================================================================ */

/* ---- 基礎變數 ---- */
:root {
    --snav-height-menu: 44px;
    --snav-total-height: 108px;
    /* 由 JS 動態更新 */
    --snav-bg: transparent;
    --snav-bg-scrolled: #ffffff;
    --snav-color: #1a1a1a;
    --snav-color-hover: #555;
    --snav-border: rgba(0, 0, 0, 0.08);
    --snav-font-size: 13px;
    --snav-letter-spacing: 0.1em;
    --snav-transition: 0.3s ease;
    --mega-image-ratio: calc(7 / 5);
    /* 5:7 寬高比 → height = width * 7/5 */
    --font-special: "Playfair Display", "Noto Serif TC", "Songti TC", Georgia, serif;

}

#share-btn {
    color: #fff;
    display: none;
}

.title {
    font-weight: 600;
}

.title>span:nth-child(2) {
    font-family: var(--font-base);
    font-size: 15px;
}

aside .article-group .group-title {
    font-size: var(--font-size-base);
}

.course-hero .breadcrumb {
    margin-bottom: 0;
}

.blog-info .title,
.course-display>h1 {
    font-size: var(--font-size-2xl);
    font-family: var(--font-special);
    padding-bottom: 20px;
}

.course-hero h1.h2 {
    font-size: var(--font-size-2xl);
    font-family: var(--font-special);
    font-weight: 500 !important;
    letter-spacing: 1.5px;
}

.course-aside-content .course-title-group>h2 {
    font-size: var(--font-size-md) !important;
}

.blog-info .article-img {
    text-align: center;
}

.event-block {
    background-color: transparent;
    padding: 0;
}

.course-block {
    border: 0px;
    padding: 0;
}

.html-info h1 {
    font-size: var(--font-size-2xl);
    font-family: var(--font-special);
}

.html-info h1,
.html-info h2,
.html-info h3,
.html-info h4,
.html-info h5,
.html-info h6 {
    letter-spacing: 1.5px;
    color: #000;
    font-weight: 600;
}

.html-info h2 {
    font-size: var(--font-size-xl);
    font-family: var(--font-special);
}

.html-info h3 {
    font-size: var(--font-size-lg);
}

.html-info h4 {
    font-size: var(--font-size-md);
}

.html-info h5 {
    font-size: var(--font-size-base);
}

.html-info h6 {
    font-size: var(--font-size-sm);
}

.blog-info .subTitle {
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: #1a1a1a;
    margin: 20px 0 10px 0;
}

.pagging-title>span,
.pagging-title h1 {
    display: inline-block;
    border: 0px;
    font-size: var(--font-size-base);
    padding: 0px;
    font-weight: 400;
}

.product-group>a .text-box>.middle-title {
    color: var(--default-color);
    font-size: var(--font-size-sm);
}

.product-group>a .text-box>p {
    font-size: var(--font-size-xs);
    font-weight: 300;
}

.product-group>a .img-box {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.hamburger .line {
    width: 22px;
    height: 2px;
    display: block;
    margin: 5px auto;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

.product-info {
    margin-top: 0px;
}

.blog-grid .text-box .middle-title {
    line-height: 1.5;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .content.nav-logo {
        padding-top: 0;
    }
}

/* ---- 主體 Navbar ---- */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--snav-bg);
    transition: background var(--snav-transition), box-shadow var(--snav-transition);
}

.site-navbar.is-scrolled {
    background: var(--snav-bg-scrolled);
    box-shadow: 0 1px 0 var(--snav-border);
}

/* body padding 避免內容被遮住 */
body {
    padding-top: var(--snav-total-height);
}

body.course-detail-page {
    padding-top: 0;
}

body.course-detail-page {
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    body {
        padding-top: var(--padding-mobile-nav, 67px);
    }

    body.is-homepage {
        padding-top: 0;
    }
}

.signup-footer button:first-child {
    font-size: 31px;
}

.blog-footer>ul>li a:first-child {
    font-size: 23px;
}

.read-more.btn.btn-border {
    font-size: 12px;
    margin-top: 10px;
}

.blog-row-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-row-link:hover {
    color: inherit;
    text-decoration: none;
}

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

.blog-row .img-fluid {
    aspect-ratio: 360 / 240;
    object-fit: cover;
    width: 100%;
}

#index-blog .blog-row {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

.article-classify,
.blog-info .article-classify>a {
    font-weight: 300;
}

.middle-title,
.course-block .middle-title a {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    color: #000;
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.remove-btn {
    background: transparent;
}

.course-block:hover,
.event-block:hover {
    box-shadow: none;
}

.event-block>.text-box {
    padding: 0;
}

.event-block>.img-box>.event-date {
    top: 0px;
}

.pagging-title {
    margin-bottom: 0px;
    font-size: var(--font-size-xl);
    color: #000;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ----------------------------------------------------------------
   首頁透明導覽列（白色文字 → 滾動後白底黑字）
   ---------------------------------------------------------------- */
body.is-homepage {
    padding-top: 0;
}

body.is-homepage .site-navbar:not(.is-scrolled) {
    --snav-color: #fff;
    --snav-color-hover: rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

body.is-homepage .site-navbar:not(.is-scrolled) .site-navbar-title {
    color: #fff;
}

body.is-homepage .site-navbar:not(.is-scrolled) .site-nav-badge {
    background: #fff;
    color: #1a1a1a;
}

body.is-homepage .site-navbar:not(.is-scrolled) .site-navbar-logo img {
    filter: brightness(0) invert(1);
}

/* 首頁手機版透明導航列 */
body.is-homepage .mobile-menu:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

body.is-homepage .mobile-menu:not(.is-scrolled) .hamburger .line {
    background-color: #fff;
}

body.is-homepage .mobile-menu:not(.is-scrolled) .mobile-btn>a,
body.is-homepage .mobile-menu:not(.is-scrolled) .mobile-btn .mobile-cart-toggle {
    color: #fff;
}

body.is-homepage .mobile-menu:not(.is-scrolled) .mobile-logo img {
    filter: brightness(0) invert(1);
}

body.is-homepage .mobile-menu:not(.is-scrolled) .logo-text {
    color: #fff;
}

body.is-homepage .mobile-menu.is-scrolled {
    background: #fff;
}

.mobile-btn>a {
    margin-right: 5px;
}

.logo-img img {
    padding: 5px 0 0 0;
}

.mobile-menu {
    padding: 0;
}

.mobile-menu.left-style .hamburger {
    margin-top: 0;
}

/* ----------------------------------------------------------------
   頂部列：左(語言) / 中(Logo) / 右(Icons)
   ---------------------------------------------------------------- */
.site-navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: relative;
}

/* 左側 */
.site-navbar-top-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Logo 絕對置中 */
.site-navbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.site-navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.site-navbar-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.site-navbar-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--snav-color);
    text-transform: uppercase;
}

/* 右側 Actions */
.site-navbar-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.site-nav-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--snav-color);
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: color var(--snav-transition);
}

.site-nav-action-btn:hover {
    color: var(--snav-color-hover);
}

.site-nav-action-btn .bi-search {
    font-size: 16px;
}

/* 覆蓋 cart-dropdown.css，統一購物車按鈕風格 */
.cart-dropdown-wrapper {
    overflow: visible;
}

.cart-dropdown-toggle {
    position: relative;
    padding: 0;
    color: var(--snav-color);
    transition: color var(--snav-transition);
}

.cart-dropdown-toggle:hover {
    background: none;
    color: var(--snav-color-hover);
}

.cart-dropdown-menu {
    z-index: 1000;
}

.cart-dropdown-item i {
    color: #333;
}

/* 手機版：覆蓋 left-style 的 float 排版，改用 flex 讓 logo 置中 */
@media all and (max-width: 992px) {
    .mobile-menu.left-style {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        overflow: hidden;
    }

    /* 公告欄獨佔一整行 */
    .mobile-menu.left-style .top-message-bar {
        grid-column: 1 / -1;
    }

    .mobile-menu.left-style .hamburger {
        float: none;
        justify-self: start;
    }

    .mobile-menu.left-style .mobile-logo {
        float: none;
        justify-self: center;
        margin-left: 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-menu.left-style .mobile-btn {
        float: none;
        justify-self: end;
    }
}

.mobile-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon .bi-search {
    font-size: 16px;
}

.mobile-btn>*+* {
    margin-left: var(--spacing-sm);
}

.mobile-cart-dropdown {
    position: relative;
}

.mobile-cart-menu {
    z-index: 1001;
}

.site-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-style: normal;
}

/* ----------------------------------------------------------------
   選單列
   ---------------------------------------------------------------- */
.site-navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--snav-height-menu);
    overflow: hidden;
    max-height: var(--snav-height-menu);
    transition: max-height var(--snav-transition),
        opacity var(--snav-transition),
        border-color var(--snav-transition);
    opacity: 1;
}

/* 往下滑 → 選單收起 */
.site-navbar.menu-collapsed .site-navbar-menu {
    max-height: 0;
    opacity: 0;
    border-top-color: transparent;
}

/* 選單列內 ul */
.site-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    height: 100%;
    align-items: stretch;
}

.site-nav-list>li {
    display: flex;
    align-items: stretch;
    position: relative;
}

.site-nav-list>li>a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    font-size: var(--snav-font-size);
    letter-spacing: var(--snav-letter-spacing);
    text-transform: uppercase;
    color: var(--snav-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--snav-transition);
    transition: color var(--snav-transition);
}

.site-nav-list>li>a:hover {
    color: var(--snav-color-hover);
}

.site-nav-list>li.is-active>a {
    color: var(--snav-color-hover);
}

/* 隱藏舊版 Bootstrap dropdown arrow */
.site-nav-list>li>a::after {
    display: none !important;
}

/* 隱藏舊版 dropdown-menu（由 mega menu 替代） */
.site-nav-list .dropdown-menu {
    display: none !important;
}

/* ----------------------------------------------------------------
   Mega Menu
   ---------------------------------------------------------------- */
.site-mega-menu {
    position: fixed;
    /* relative for close button positioning handled by fixed + absolute child */
    top: var(--snav-total-height);
    left: 0;
    right: 0;
    z-index: 899;
    background: #fff;
    border-top: none;
    box-shadow: none;

    /* 隱藏狀態 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-mega-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 選單收起時 mega menu 跟著位移 */
.site-navbar.menu-collapsed~.site-mega-menu {
    top: var(--snav-height-top);
}

/* 關閉按鈕 */
.site-mega-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    font-weight: 300;
}

.site-mega-menu-close:hover {
    color: #888;
}

.site-mega-menu-inner {
    display: flex;
    min-height: 300px;
    max-height: 70vh;
    padding: 2rem;
    gap: 2rem;
}

/* 左側圖片欄 — 圖:文 = 5:7 */
.site-mega-menu-image {
    flex: 1;
    overflow: hidden;
    display: none;
    /* 預設隱藏，有圖才顯示 */
    align-items: center;
    justify-content: center;
}

.site-mega-menu-image.has-image {
    display: flex;
}

.site-mega-menu-image img {
    height: 100%;
    width: auto;
    display: block;
}

/* 右側連結欄 — 圖:文 = 5:7 */

.site-mega-menu-links {
    flex: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    overflow-y: auto;
}

.site-mega-menu-links a {
    display: block;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    text-decoration: none;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-mega-menu-links a:hover {
    color: #888;
}

/* Backdrop — 從 navbar 底部開始 */
.site-mega-menu-backdrop {
    position: fixed;
    top: var(--snav-total-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 898;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.site-mega-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ----------------------------------------------------------------
   語言切換器樣式（在新 navbar 裡）
   ---------------------------------------------------------------- */
.site-navbar-top-left .language-switcher,
.site-navbar-top-left .lang-switcher {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--snav-color);
}

/* ----------------------------------------------------------------
   手機版手風琴選單
   ---------------------------------------------------------------- */

/* 第一層：選單名 + 箭頭 */
.has-accordion .accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.has-accordion .accordion-toggle>a {
    flex: 1;
    display: block;
    padding: 14px 20px;
    font-size: var(--font-size-base, 15px);
    color: #000;
    text-decoration: none;
}

/* + 按鈕 */
.has-accordion .accordion-btn {
    flex: 0 0 48px;
    height: 48px;
    background: none;
    border: none;
    border-left: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.has-accordion .accordion-btn:active {
    background: rgba(0, 0, 0, 0.04);
}

/* 箭頭 icon */
.has-accordion .accordion-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

/* 展開時：箭頭向下 */
.has-accordion .accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

/* 子選單 */
.has-accordion .accordion-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.02);
}

/* max-height 由 JS 動態設定為 scrollHeight，不再需要固定值 */

.has-accordion .accordion-submenu li a {
    display: block;
    padding: 12px 20px 12px 20px;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    color: #555;
}

.has-accordion .accordion-submenu li a:active {
    color: #1a1a1a;
}

.zeynep ul>li>a {
    font-weight: 400;
}

.zeynep ul {
    padding-left: 0;
}

@media (max-width: 768px) {
    .info-mobileTab {
        margin-top: 67px;
    }
}

/* ----------------------------------------------------------------
   Editorial Feature Block (ignant style)
   ---------------------------------------------------------------- */
.editorial-feature {
    padding: 60px 0;
}

/* 共用區塊標題 */
.block-section-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 40px;
    font-family: var(--font-base);
}

.ef-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 520px;
}

/* 圖片區 */
.ef-image {
    overflow: hidden;
}

.ef-image-inner {
    width: 100%;
    height: 100%;
}

.ef-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

/* 文字區 */
.ef-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    background: #f5f5f3;
}

.ef-content-inner {
    max-width: 480px;
    text-align: center;
}

.ef-category {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 28px;
    font-family: var(--font-base);
    font-weight: 400;
}

.ef-category a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.ef-category a:hover {
    text-decoration: underline;
    color: #1a1a1a;
}

.ef-cat-dot {
    margin: 0 2px;
    color: #1a1a1a;
}

.ef-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-3xl);
    font-weight: 400;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.ef-desc {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    font-family: var(--font-base);
}

.btn.btn-full,
.btn.btn-border {
    font-size: 13px;
    padding: 10px 48px;
    letter-spacing: 0.15em;
}

.btn-outline-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 48px;
    border: 1px solid var(--outline-button-border-color);
    color: var(--outline-button-text-color);
    background: var(--outline-button-bg-color);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-base);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    min-width: 200px;
}

.btn-outline-arrow:hover {
    border-color: var(--outline-button-border-hover-color);
    color: var(--outline-button-text-hover-color);
    background: var(--outline-button-bg-hover-color);
    text-decoration: none;
}

.btn-outline-arrow--white {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-arrow--white:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-arrow-icon {
    font-size: 18px;
    transition: transform 0.3s;
    position: relative;
    top: -4px;
}

.btn-outline-arrow:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* Fade-in-up 動畫 */
.ef-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ef-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 交錯延遲 */
.ef-fade-up:nth-child(1) {
    transition-delay: 0s;
}

.ef-fade-up:nth-child(2) {
    transition-delay: 0.15s;
}

.ef-fade-up:nth-child(3) {
    transition-delay: 0.3s;
}

.ef-fade-up:nth-child(4) {
    transition-delay: 0.45s;
}

/* RWD 手機版 */
@media (max-width: 991px) {

    .editorial-feature .container {
        padding: 0;
        max-width: 100%;
    }

    .ef-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ef-image {
        position: relative;
        z-index: 1;
    }

    .ef-image-inner img {
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .ef-content {
        position: relative;
        z-index: 2;
        margin-top: -8rem;
        margin-left: 20px;
        margin-right: 20px;
        padding: 40px 20px;
        background: #f7f7f7;
    }

    .ef-content-inner {
        padding: 0;
    }

    .btn-outline-arrow,
    .btn {
        padding: 10px 36px;
    }

    .btn.btn-outline-secondary {
        padding: 0.375rem 0.75rem;
    }
}

/* ----------------------------------------------------------------
   Peek Carousel Block (ignant style) — 手寫版
   ---------------------------------------------------------------- */
.peek-carousel {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.peek-carousel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 相關輪播（文章內頁等）縮小上下間距 */
.related-carousel {
    padding: 30px 0 60px 0;
}

/* container：overflow visible 讓卡片 peek 出去 */
.peek-container {
    overflow: visible;
}

/* 標題 + 箭頭 水平排列 */
.peek-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 40px;
    padding-right: 30px;
}

.peek-header .block-section-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    text-align: left;
}

/* 導航箭頭 — 右側 */
.peek-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.peek-arrow {
    background: none;
    border: none;
    cursor: pointer;
    width: 6rem;
    height: 20px;
    position: relative;
    padding: 0;
    transition: opacity 0.2s;
}

.peek-arrow:hover {
    opacity: 0.5;
}

.peek-arrow.is-disabled {
    opacity: 0.2;
    cursor: default;
}

/* 線條主體 */
.peek-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #1a1a1a;
}

/* 箭頭尖端：隱藏 ::after，改用 .peek-arrow-tip + 額外偽元素 */
.peek-arrow::after {
    display: none;
}

/* 右箭頭 > 尖端 */
.peek-next .peek-arrow-tip,
.peek-next .peek-arrow-tip::after {
    content: '';
    position: absolute;
    right: 0;
    width: 5px;
    height: 1px;
    background: #1a1a1a;
}

.peek-next .peek-arrow-tip {
    top: 50%;
    transform: rotate(-40deg);
    transform-origin: right center;
}

.peek-next .peek-arrow-tip::after {
    top: 0;
    right: 0;
    transform: rotate(80deg);
    transform-origin: right center;
}

/* 左箭頭 < 尖端 */
.peek-prev {
    margin-right: 10px;
}

.peek-prev .peek-arrow-tip,
.peek-prev .peek-arrow-tip::after {
    content: '';
    position: absolute;
    left: 0;
    width: 5px;
    height: 1px;
    background: #1a1a1a;
}

.peek-prev .peek-arrow-tip {
    top: 50%;
    transform: rotate(40deg);
    transform-origin: left center;
}

.peek-prev .peek-arrow-tip::after {
    top: 0;
    left: 0;
    transform: rotate(-80deg);
    transform-origin: left center;
}

/* 輪播軌道 */
.peek-track-wrap {
    overflow: visible;
}

.peek-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* 單張卡片 */
.peek-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

.peek-slide.is-outside {
    opacity: 0.2;
}

.peek-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.peek-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

.peek-slide-img {
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

/* 共用卡片標籤 */
.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-family: var(--font-base);
    padding: 8px 10px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 0;
}

/* 圖片比例 240/360 = 2:3 */
.peek-ratio {
    display: block;
    position: relative;
    padding-top: calc(240 / 360 * 100%);
    overflow: hidden;
}

.peek-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.peek-slide-link:hover .peek-ratio img {
    transform: scale(1.03);
}

.peek-slide-title a {
    color: inherit;
    text-decoration: none;
}

.peek-slide-title a:hover {
    text-decoration: underline;
}

/* 卡片文字 */
.peek-slide-info {
    padding-top: 4px;
}

.peek-slide-info .ef-category {
    margin-bottom: 10px;
    text-align: left;
}

.peek-slide-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日期（文章、活動有日期；課程無日期則不顯示） */
.peek-slide-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
}

/* MORE ARTICLES 按鈕 */
.peek-more {
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

/* RWD 手機版 */
@media (max-width: 991px) {
    .peek-carousel {
        padding: 40px 0 60px;
        overflow: hidden;
    }

    .peek-carousel .container.peek-container,
    .person-carousel .container.peek-container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .peek-track-wrap {
        overflow: hidden;
    }

    .peek-more {
        padding-top: 40px;
    }

    .peek-header {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
        padding-bottom: 24px;
    }

    .peek-header .block-section-title {
        position: static;
        transform: none;
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-bottom: 16px;
    }

    .peek-nav {
        margin-left: auto;
        margin-right: auto;
    }

    .peek-arrow {
        width: 60px;
        height: 20px;
    }

    .peek-arrow::before {
        width: 100%;
    }
}

/* ----------------------------------------------------------------
   Person Carousel Block (人物介紹輪播)
   ---------------------------------------------------------------- */
.person-carousel {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.person-carousel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.person-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.person-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

.person-avatar {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.person-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.person-slide-link:hover .person-avatar img {
    transform: scale(1.05);
}

.person-info {
    padding: 0 4px;
}

.person-name {
    font-family: var(--font-serif);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.person-title {
    font-size: var(--font-size-sm);
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* RWD 手機版 */
@media (max-width: 991px) {
    .person-carousel {
        padding: 40px 0 60px;
    }

    .person-carousel .peek-track-wrap {
        overflow: hidden;
    }
}

/* ----------------------------------------------------------------
   手機版隱藏新 navbar
   ---------------------------------------------------------------- */
@media (max-width: 991px) {

    .site-navbar,
    .site-mega-menu,
    .site-mega-menu-backdrop {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}

@media screen and (max-width: 480px) {
    .btn-outline-arrow {
        padding: 8px 20px;
    }
}

/* ----------------------------------------------------------------
   IG Mosaic Block
   ---------------------------------------------------------------- */
.ig-mosaic-section {
    padding: 60px 0 80px;
}

.ig-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
        "a a b c d"
        "a a e f f"
        "g h i f f";
    gap: 12px;
}

.ig-mosaic-a {
    grid-area: a;
}

.ig-mosaic-b {
    grid-area: b;
}

.ig-mosaic-c {
    grid-area: c;
}

.ig-mosaic-d {
    grid-area: d;
}

.ig-mosaic-e {
    grid-area: e;
}

.ig-mosaic-f {
    grid-area: f;
}

.ig-mosaic-g {
    grid-area: g;
}

.ig-mosaic-h {
    grid-area: h;
}

.ig-mosaic-i {
    grid-area: i;
}

.ig-mosaic-grid div {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.ig-mosaic-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ig-mosaic-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .ig-mosaic-section {
        padding: 40px 0 60px;
    }

    .ig-mosaic-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "a a"
            "b c"
            "d e"
            "f f"
            "g h"
            "i i";
    }

    .ig-mosaic-grid img {
        aspect-ratio: 1 / 1;
    }

    .btn-outline-arrow {
        min-width: inherit;
    }
}

/* ----------------------------------------------------------------
   Hero Parallax Block (視差大圖)
   ---------------------------------------------------------------- */
.hero-parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 24px;
}

.hero-parallax-subtitle {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 28px;
    opacity: 0.85;
    font-family: var(--font-base);
}

.hero-parallax-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-3xl);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 24px;
}

.hero-parallax-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px;
    font-family: var(--font-base);
}

.hero-parallax-category {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-family: var(--font-base);
    font-weight: 400;
}

.hero-parallax-category a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-parallax-category a:hover {
    text-decoration: underline;
}

.hero-parallax-dot {
    margin: 0 6px;
}

@media (max-width: 767px) {
    .hero-parallax {
        height: 75vh;
        min-height: 400px;
        background-attachment: scroll;
    }

    .hero-parallax-title {
        font-size: 24px;
    }

    .hero-parallax-subtitle {
        font-size: 11px;
    }
}

/* ----------------------------------------------------------------
   Product Showcase (商品櫥窗)
   ---------------------------------------------------------------- */
.psc-section {
    padding: 60px 0 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tab-pane .psc-section {
    padding-top: 2rem;
}

.psc-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 商品列表 header（標題 + 排序） */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.product-header .breadcrumb {
    margin-bottom: 5px;
}

.product-header__left {
    flex: 1;
    min-width: 0;
}

.psc-sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 16px;
    /* 與 breadcrumb ol 的 margin-bottom 對齊 */
}

.psc-sort-dropdown label {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    white-space: nowrap;
}

.psc-sort-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    min-width: 160px;
}

.psc-sort-dropdown select:hover,
.psc-sort-dropdown select:focus {
    border-color: #999;
}

/* 手機版：垂直靠左 */
@media (max-width: 767px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .psc-sort-dropdown {
        padding-bottom: 0;
        margin-bottom: 12px;
    }
}

/* 網格：桌面 4 欄 */
.psc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 網格：有側邊欄時 3 欄（產品列表頁） */
.psc-grid--sidebar {
    grid-template-columns: repeat(3, 1fr);
}

/* 單張商品卡 */
.psc-card {
    box-sizing: border-box;
}

.psc-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.psc-card__link:hover {
    text-decoration: none;
    color: inherit;
}

/* 圖片容器 — 1:1 正方形 */
.psc-card__media {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

/* 圖片 */
.psc-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease, transform 0.5s ease;
}

.psc-card__img--primary {
    opacity: 1;
    z-index: 1;
}

.psc-card__img--hover {
    opacity: 0;
    z-index: 2;
}

/* Hover：換圖 + 圖片微放大 */
.psc-card__link:hover .psc-card__img--primary {
    opacity: 0;
}

.psc-card__link:hover .psc-card__img--hover {
    opacity: 1;
    transform: scale(1.03);
}


/* 加入購物車按鈕 — 桌面 hover 從底部滑入 */
.psc-card__action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 16px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        opacity 0.3s ease;
}

.psc-card__link:hover .psc-card__action {
    transform: translateY(0);
    opacity: 1;
}

.psc-btn-cart {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.psc-btn-cart:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* 手機版購物車按鈕 — 桌面隱藏 */
.psc-card__action-mobile {
    display: none;
}

/* 商品資訊 */
.psc-card__info {
    padding-top: 14px;
    text-align: center;
}

.psc-card__name {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}

.psc-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.psc-price-current {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.psc-price-original {
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

/* ── RWD 手機版 ≤767px ── */
@media (max-width: 767px) {
    .psc-section {
        padding: 40px 0 60px;
    }

    .psc-section .block-section-title {
        font-size: 12px;
        margin-bottom: 28px;
    }

    .psc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .psc-card {
        display: flex;
        flex-direction: column;
    }

    .psc-card__info {
        flex: 1;
    }

    /* 桌面 hover 按鈕隱藏 */
    .psc-card__action {
        display: none;
    }

    /* 手機版購物車 icon 按鈕 — 常駐，推到底部 */
    .psc-card__action-mobile {
        display: block;
        padding-top: 10px;
        margin-top: auto;
    }

    .psc-btn-cart-mobile {
        display: block;
        width: 100%;
        background: #fff;
        color: #1a1a1a;
        border: 1px solid #e0e0e0;
        font-size: 18px;
        text-align: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    .psc-btn-cart-mobile:hover {
        background: #f5f5f5;
    }

    .psc-card__price {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .psc-price-current {
        font-size: 15px;
    }

    .psc-price-original {
        font-size: 12px;
    }

    /* 產品列表價格分兩排置中 */
    .price-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .price-row span+span {
        margin-left: 0;
    }
}

/* ── Quick View Modal ── */
.psc-qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.psc-qv-overlay.is-active {
    display: block;
    opacity: 1;
}

.psc-qv-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    background: #fff;
    width: 90%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.psc-qv-modal.is-active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.psc-qv-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.psc-qv-close:hover {
    color: #1a1a1a;
}

.psc-qv-body {
    padding: 40px;
}

.psc-qv-loading {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
    font-family: var(--font-base);
}

/* 內容排版：左圖右文 */
.psc-qv-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.psc-qv-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.psc-qv-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.psc-qv-info {
    flex: 1;
    min-width: 0;
}

.psc-qv-title {
    font-family: var(--font-special);
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.psc-qv-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.psc-qv-tags li a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 11px;
    color: #666;
    text-decoration: none;
    font-family: var(--font-base);
    transition: border-color 0.2s, color 0.2s;
}

.psc-qv-tags li a:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.psc-qv-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #1a1a1a;
    font-family: var(--font-base);
}

.psc-qv-notice-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.psc-qv-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 12px;
}

.psc-qv-restrictions {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
}

.psc-qv-restrictions li {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    font-family: var(--font-base);
}

/* 價格 */
.psc-qv-price-area {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.psc-qv-price-current {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-base);
}

.psc-qv-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-family: var(--font-base);
}

/* 規格選擇 */
.psc-qv-specs {
    margin-bottom: 18px;
}

.psc-qv-spec-group {
    margin-bottom: 12px;
}

.psc-qv-spec-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: var(--font-base);
}

.psc-qv-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.psc-qv-spec-list li a {
    display: block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    color: #1a1a1a;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-base);
}

.psc-qv-spec-list li a:hover {
    border-color: #999;
    text-decoration: none;
    color: #1a1a1a;
}

.psc-qv-spec-list li.chosen a {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.psc-qv-spec-list li.out-of-stock a {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* 數量 */
.psc-qv-quantity {
    margin-bottom: 20px;
}

.psc-qv-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    margin-top: 6px;
}

.psc-qv-counter-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    font-size: 18px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.psc-qv-counter-btn:hover {
    background: #f5f5f5;
}

.psc-qv-counter-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-family: var(--font-base);
    -moz-appearance: textfield;
    appearance: textfield;
}

.psc-qv-counter-input::-webkit-inner-spin-button,
.psc-qv-counter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.psc-qv-stock {
    display: inline-block;
    margin-left: 12px;
    font-size: 12px;
    color: #999;
    font-family: var(--font-base);
}

/* 加入購物車按鈕 */
.psc-qv-add-cart {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 14px;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.psc-qv-add-cart:hover {
    background: #333;
}

/* 查看詳情連結 */
.psc-qv-view-detail {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    transition: color 0.2s;
    font-family: var(--font-base);
}

.psc-qv-view-detail:hover {
    color: #1a1a1a;
}

/* 即將開賣提示 */
.psc-qv-sale-status {
    padding: 12px 16px;
    background: #f0f7ff;
    color: #3a6fa0;
    font-size: 13px;
    font-family: var(--font-base);
    margin-bottom: 12px;
    line-height: 1.5;
}

.psc-qv-sale-status i {
    margin-right: 4px;
}

/* ── Quick View Modal RWD ── */
@media (max-width: 767px) {
    .psc-qv-modal {
        width: 95%;
        max-height: 90vh;
    }

    .psc-qv-body {
        padding: 24px 20px;
    }

    .psc-qv-inner {
        flex-direction: column;
        gap: 20px;
    }

    .psc-qv-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .psc-qv-title {
        font-size: 18px;
    }

    .psc-qv-price-current {
        font-size: 18px;
    }
}

/* ── 產品內頁 slider 圖片 1:1 ── */
.product-slider-for .slider-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-slider-nav .slider-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ── 加購商品區塊 ── */
.addon-products {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #f7f7f7;
}

.addon-products-header {
    background: #efefef;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-products-header i {
    color: #888;
}

.addon-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.addon-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.addon-product-item:last-child {
    border-bottom: none;
}

/* checkbox */
.addon-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.addon-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #333;
}

/* 商品圖 */
.addon-product-image {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.addon-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

/* 商品資訊 */
.addon-product-info {
    flex: 1;
    min-width: 0;
}

.addon-product-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* 數量控制 */
.addon-product-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.addon-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.15s;
}

.addon-qty-btn:hover {
    background: #f0f0f0;
}

.addon-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.addon-qty-input::-webkit-outer-spin-button,
.addon-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 價格 */
.addon-product-price {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.addon-price-label {
    color: #888;
}

.addon-price-current {
    font-weight: 600;
    color: #222;
}

.addon-limit-hint {
    color: #e25555;
    font-size: 13px;
}

/* RWD */
@media (max-width: 767px) {
    .addon-product-image {
        width: 60px;
        height: 60px;
    }

    .addon-product-item {
        gap: 10px;
        padding: 12px;
    }

    .addon-product-title {
        font-size: 14px;
    }
}

/* ── 產品詳情頁籤 ── */
.product-detail-tabs {
    margin-top: 24px;
}

.product-detail-tab-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    box-shadow: inset 0 -2px 0 #e5e5e5;
}

.product-detail-tab-item {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    box-shadow: inset 0 -2px 0 transparent;
}

.product-detail-tab-item:hover {
    color: #333;
}

.product-detail-tab-item.active {
    color: #222;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 #222;
}

.product-detail-tab-content {
    display: none;
    padding: 30px 0;
}

.product-detail-tab-content.active {
    display: block;
}

.product-tab-placeholder h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.product-tab-placeholder h4:not(:first-child) {
    margin-top: 28px;
}

.product-tab-placeholder ul {
    margin: 0;
    padding-left: 20px;
}

.product-tab-placeholder li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .product-detail-tab-nav {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .product-detail-tab-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .product-detail-tab-content {
        padding: 20px 0;
    }
}

/* ========== Index Banner Full Viewport Height ========== */
.index-banner-slider {
    min-height: 100vh;
}

.index-banner-for,
.index-banner-for .slick-list,
.index-banner-for .slick-track,
.index-banner-for .slick-item {
    height: 100vh;
}

.index-banner-for .slick-item a {
    display: block;
    height: 100%;
}

.index-banner-for .slick-item picture,
.index-banner-for .slick-item .banner-video-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.index-banner-for .slick-item picture img,
.index-banner-for .slick-item .banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 590px) {

    .index-banner-for .slick-item .banner-video-mobile-fallback,
    .index-banner-for .slick-item .banner-video-mobile-fallback img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

aside>ul>li>a[aria-expanded=true],
aside>ul>li>a.selected {
    font-weight: 500;
}